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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03db94983bfb119b3575f026b313a389b770187d
| 458
|
asm
|
Assembly
|
programs/oeis/054/A054071.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/054/A054071.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/054/A054071.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A054071: Position of 1 in the permutation of 1,2,...,n obtained by ordering the fractional parts {h*sqrt(2)} for h=1,2,...,n.
; 1,1,2,2,3,3,3,4,4,5,5,5,6,6,7,7,8,8,8,9,9,10,10,10,11,11,12,12,13,13,13,14,14,15,15,15,16,16,17,17,17,18,18,19,19,20,20,20,21,21,22,22,22,23,23,24,24,25,25,25,26,26,27,27,27,28,28
mov $1,$0
mov $2,$0
mul $0,2
add $0,9
div $1,10
lpb $0,1
sub $0,$1
add $2,$0
mov $0,1
mov $1,19691
div $2,7
add $1,$2
lpe
sub $1,19691
| 25.444444
| 181
| 0.606987
|
524b8153025ab3a1602fb47998cb860561ed0da3
| 824
|
asm
|
Assembly
|
programs/oeis/220/A220084.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/220/A220084.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/220/A220084.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A220084: a(n) = (n + 1)*(20*n^2 + 19*n + 6)/6.
; 1,15,62,162,335,601,980,1492,2157,2995,4026,5270,6747,8477,10480,12776,15385,18327,21622,25290,29351,33825,38732,44092,49925,56251,63090,70462,78387,86885,95976,105680,116017,127007,138670,151026,164095,177897,192452,207780,223901,240835,258602,277222,296715,317101,338400,360632,383817,407975,433126,459290,486487,514737,544060,574476,606005,638667,672482,707470,743651,781045,819672,859552,900705,943151,986910,1032002,1078447,1126265,1175476,1226100,1278157,1331667,1386650,1443126,1501115,1560637,1621712,1684360,1748601,1814455,1881942,1951082,2021895,2094401,2168620,2244572,2322277,2401755,2483026,2566110,2651027,2737797,2826440,2916976,3009425,3103807,3200142,3298450
mul $0,2
add $0,1
mov $1,$0
mul $0,2
mul $1,10
add $1,5
bin $1,2
mul $0,$1
div $0,240
add $0,1
| 58.857143
| 678
| 0.788835
|
15aef14d7d1f65ddf348e95cc009ac74b3213c50
| 259
|
asm
|
Assembly
|
programs/oeis/214/A214446.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/214/A214446.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/214/A214446.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A214446: n*(n^2-2*n-1)
; -2,-2,6,28,70,138,238,376,558,790,1078,1428,1846,2338,2910,3568,4318,5166,6118,7180,8358,9658,11086,12648,14350,16198,18198,20356,22678,25170,27838,30688,33726,36958,40390,44028,47878
mov $1,$0
pow $0,2
sub $0,2
add $1,1
mul $0,$1
| 28.777778
| 185
| 0.706564
|
8a418c41ec84820d50f1a745e67aa816749ada3b
| 691
|
asm
|
Assembly
|
src/test/ref/parse-negated-struct-ref.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/test/ref/parse-negated-struct-ref.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/test/ref/parse-negated-struct-ref.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
// Test parsing a negated struct reference - which causes problems with the ASMREL labels !a++
// https://gitlab.com/camelot/kickc/issues/266
// Commodore 64 PRG executable file
.file [name="parse-negated-struct-ref.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.segment Code
main: {
.label SCREEN = $400
.label a = aa
// if(!a->b)
lda a
bne !a+
// *SCREEN = 'a'
lda #'a'
sta SCREEN
// asm
// ASMREL labels
jmp !a+
!a:
// }
rts
}
.segment Data
aa: .byte 1
| 23.033333
| 94
| 0.636758
|
7a98f92f7b4f4e69678aca26bd9d151afa597fc7
| 967
|
asm
|
Assembly
|
programs/oeis/186/A186707.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/186/A186707.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/186/A186707.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A186707: Partial sums of A007202 (crystal ball sequence for hexagonal close-packing).
; 1,14,71,224,547,1134,2101,3584,5741,8750,12811,18144,24991,33614,44297,57344,73081,91854,114031,140000,170171,204974,244861,290304,341797,399854,465011,537824,618871,708750,808081,917504,1037681,1169294,1313047,1469664,1639891,1824494,2024261,2240000,2472541,2722734,2991451,3279584,3588047,3917774,4269721,4644864,5044201,5468750,5919551,6397664,6904171,7440174,8006797,8605184,9236501,9901934,10602691,11340000,12115111,12929294,13783841,14680064,15619297,16602894,17632231,18708704,19833731,21008750,22235221,23514624,24848461,26238254,27685547,29191904,30758911,32388174,34081321,35840000,37665881,39560654,41526031,43563744,45675547,47863214,50128541,52473344,54899461,57408750,60003091,62684384,65454551,68315534,71269297,74317824,77463121,80707214,84052151,87500000
mov $1,2
mov $2,$0
add $2,1
pow $2,4
mul $1,$2
div $2,4
sub $1,$2
sub $1,2
div $1,2
add $1,1
mov $0,$1
| 64.466667
| 774
| 0.825233
|
903b9c7aa60b56b08dd30fe61df226936852a49b
| 560
|
asm
|
Assembly
|
oeis/017/A017213.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/017/A017213.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/017/A017213.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A017213: a(n) = (9*n + 4)^5.
; 1024,371293,5153632,28629151,102400000,282475249,656356768,1350125107,2535525376,4437053125,7339040224,11592740743,17623416832,25937424601,37129300000,51888844699,71008211968,95388992557,126049300576,164130859375,210906087424,267785184193,336323216032,418227202051,515363200000,629763392149,763633171168,919358226007,1099511627776,1306860915625,1544375182624,1815232161643,2122825311232,2470770901501,2862915100000,3303341057599,3796375994368,4346598285457,4958844546976,5638216721875,6390089165824
mul $0,9
add $0,4
pow $0,5
| 80
| 500
| 0.867857
|
56ca6aeb5da893a3798f2d2b9284e66562ae07f5
| 1,877
|
asm
|
Assembly
|
programs/oeis/262/A262414.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/262/A262414.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/262/A262414.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A262414: Number of (n+1) X (2+1) 0..1 arrays with each row divisible by 3 and column not divisible by 3, read as a binary number with top and left being the most significant bits.
; 0,4,12,48,144,468,1404,4320,12960,39204,117612,353808,1061424,3187188,9561564,28693440,86080320,258267204,774801612,2324483568,6973450704,20920588308,62761764924,188286003360,564858010080,1694576156004,5083728468012,15251191781328,45753575343984,137260745163828,411782235491484,1235346763870080,3706040291610240,11118121047017604,33354363141052812,100063089939719088,300189269819157264,900567811007153748,2701703433021461244,8105110303713429600,24315330911140288800,72945992747368004004,218837978242104012012,656513934768153448848,1969541804304460346544,5908625413038905278068,17725876239116715834204,53177628717726720217920,159532886153180160653760,478598658460670200107204,1435795975382010600321612,4307387926149420955402608,12922163778448262866207824,38766491335354956061936788,116299474006064868185810364,348898422018225106947371040,1046695266054675320842113120,3140085798164117469696159204,9420257394492352409088477612,28260772183477331748774892368,84782316550431995246324677104,254346949651296809303502409908,763040848953890427910507229724,2289122546861673754425106824960,6867367640585021263275320474880,20602102921755071201906716832004,61806308765265213605720150496012,185418926295795663053402717710128,556256778887386989160208153130384,1668770336662161034189351258057428,5006311009986483102568053774172284,15018933029959449507830341718515680,45056799089878348523491025155547040,135170397269635046170851616654637604,405511191808905138512554849963912812
add $0,1
seq $0,297619 ; a(n) = 2*a(n-1) + 2*a(n-2) - 4*a(n-3), a(1) = 0, a(2) = 0, a(3) = 8.
div $0,4
mov $2,$0
div $0,2
seq $0,240400 ; Numbers n having a partition into distinct parts of form 3^k-2^k.
add $0,$2
div $0,3
mul $0,4
| 144.384615
| 1,461
| 0.87853
|
26bdb913f7ab414760707518e7aa4cc6d611e028
| 345
|
asm
|
Assembly
|
programs/oeis/029/A029096.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/029/A029096.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/029/A029096.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A029096: Expansion of 1/((1-x)(1-x^5)(1-x^8)(1-x^9)).
; 1,1,1,1,1,2,2,2,3,4,5,5,5,6,7,8,9,10,12,13,14,15,16,18,20,22,24,26,28,30,32,34,37,40,43,46,49,52,55,58,62,66,70,74,78,83,87,91,96,101,107,112,117,123,129,135,141,147
lpb $0
mov $2,$0
sub $0,5
seq $2,25789 ; Expansion of 1/((1-x)(1-x^8)(1-x^9)).
add $1,$2
lpe
add $1,1
mov $0,$1
| 28.75
| 167
| 0.576812
|
31659531fcb9c588bd038e22bd1b1686653d72f4
| 918
|
asm
|
Assembly
|
SethWhitakerProj4/SethWhitakerProj4.asm
|
sethjwhitaker/CSCI321-projects
|
a6a100e0a8e0c02bdbff16dc0d2bc058cce6cd45
|
[
"MIT"
] | null | null | null |
SethWhitakerProj4/SethWhitakerProj4.asm
|
sethjwhitaker/CSCI321-projects
|
a6a100e0a8e0c02bdbff16dc0d2bc058cce6cd45
|
[
"MIT"
] | null | null | null |
SethWhitakerProj4/SethWhitakerProj4.asm
|
sethjwhitaker/CSCI321-projects
|
a6a100e0a8e0c02bdbff16dc0d2bc058cce6cd45
|
[
"MIT"
] | null | null | null |
; SethWhitakerProj3.asm - Project 4
; Seth Whitaker: 06/21/2020
.386
.model flat,stdcall
.stack 4096
ExitProcess PROTO, dwExitCode:DWORD
.data
source BYTE "This is the string that will be reversed", 0
target BYTE SIZEOF source DUP('#')
.code
main PROC
mov esi, OFFSET target - 2 ; Adress 2 bytes before target
mov edi, OFFSET target ; Adress of first byte of target
mov ecx, SIZEOF source - 1 ; Size of source string minus null char
L1:
mov al, [esi] ; Move char from current source address into al reg
mov [edi], al ; Move char from al reg to current target address
dec esi ; Move backwards one byte in source
inc edi ; Move forwards one byte in target
loop L1 ; loop
mov al, 0 ; After loop terminates, edi is pointing to last char of target
mov [edi], al ; Therefore, replace that char with null char
INVOKE ExitProcess, 0 ; Exit with code 0
main ENDP
END main
| 24.810811
| 79
| 0.706972
|
ffe4d6055bd9559565816b5f8097770b941bdd6c
| 1,934
|
asm
|
Assembly
|
projects/dxilconv/test/dxbc2dxil-asm/indexabletemp6.asm
|
clayne/DirectXShaderCompiler
|
0ef9b702890b1d45f0bec5fa75481290323e14dc
|
[
"NCSA"
] | 1,192
|
2017-01-23T23:27:01.000Z
|
2019-05-05T14:08:40.000Z
|
projects/dxilconv/test/dxbc2dxil-asm/indexabletemp6.asm
|
clayne/DirectXShaderCompiler
|
0ef9b702890b1d45f0bec5fa75481290323e14dc
|
[
"NCSA"
] | 2,214
|
2019-05-06T22:22:53.000Z
|
2022-03-31T19:38:50.000Z
|
projects/dxilconv/test/dxbc2dxil-asm/indexabletemp6.asm
|
clayne/DirectXShaderCompiler
|
0ef9b702890b1d45f0bec5fa75481290323e14dc
|
[
"NCSA"
] | 269
|
2019-05-07T11:59:04.000Z
|
2022-03-30T08:41:50.000Z
|
/*// RUN: %testasm %s /allowMinimumPrecision /Fo %t.dxbc*/
// RUN: %dxbc2dxil %t.dxbc /emit-llvm /o %t.ll.converted
// RUN: fc %b.ref %t.ll.converted
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1 INTERNAL
//
//
// Note: shader requires additional functionality:
// Minimum-precision data types
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
// min16float g1[4]; // Offset: 0 Size: 52
// min16float g2[8]; // Offset: 64 Size: 116
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim HLSL Bind Count
// ------------------------------ ---------- ------- ----------- -------------- ------
// $Globals cbuffer NA NA cb0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// A 0 xyzw 0 NONE min16f
// B 0 x 1 NONE int x
// C 0 y 1 NONE int y
//
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET 0 x 0 TARGET min16f x
//
ps_5_0
dcl_globalFlags refactoringAllowed | enableMinimumPrecision
dcl_constantbuffer cb0[12], dynamicIndexed
dcl_input_ps constant v1.x
dcl_input_ps constant v1.y
dcl_output o0.x {min16f}
dcl_temps 1
dcl_indexableTemp x0[4], 4
mov r0.x, v1.x
mov x0[0].x, cb0[r0.x + 4].x
mov r0.y, x0[0].x
mov x0[0].x {min16f}, cb0[r0.x + 0].x {min16f}
mov x0[1].x {min16f}, cb0[r0.x + 4].x {min16f}
mov r0.x, v1.y
add x0[r0.x + 0].x {min16f}, x0[r0.x + 0].x {min16f}, r0.y {min16f}
mov o0.x {min16f}, x0[r0.x + 0].x {min16f}
ret
| 30.21875
| 86
| 0.463806
|
c2e0841df8f21a2e3852de2d1ca0ff65ac4305ee
| 552
|
asm
|
Assembly
|
src/arch/i686/arch_start.asm
|
jaeh/IncludeOS
|
1cc2bcf36758ff5ef3099e0c0c1ee55f0bb1de02
|
[
"Apache-2.0"
] | 3,673
|
2015-12-01T22:14:02.000Z
|
2019-03-22T03:07:20.000Z
|
src/arch/i686/arch_start.asm
|
jaeh/IncludeOS
|
1cc2bcf36758ff5ef3099e0c0c1ee55f0bb1de02
|
[
"Apache-2.0"
] | 960
|
2015-12-01T20:40:36.000Z
|
2019-03-22T13:21:21.000Z
|
src/arch/i686/arch_start.asm
|
jaeh/IncludeOS
|
1cc2bcf36758ff5ef3099e0c0c1ee55f0bb1de02
|
[
"Apache-2.0"
] | 357
|
2015-12-02T09:32:50.000Z
|
2019-03-22T09:32:34.000Z
|
global __arch_start:function
global fast_kernel_start:function
extern kernel_start
[BITS 32]
;; @param: eax - multiboot magic
;; @param: ebx - multiboot bootinfo addr
__arch_start:
;; Create stack frame for backtrace
push ebp
mov ebp, esp
;; hack to avoid stack protector
mov DWORD [0x1014], 0x89abcdef
fast_kernel_start:
;; Push params on 16-byte aligned stack
sub esp, 8
and esp, -16
mov [esp], eax
mov [esp+4], ebx
call kernel_start
;; Restore stack frame
mov esp, ebp
pop ebp
ret
| 17.25
| 43
| 0.668478
|
68ba128af8d016990561f7126e02ddf80d488ff1
| 159
|
asm
|
Assembly
|
audio/sfx/intro_whoosh.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
audio/sfx/intro_whoosh.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
audio/sfx/intro_whoosh.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
SFX_Intro_Whoosh_Ch8:
noise_note 4, 2, -4, 32
noise_note 3, 10, 0, 32
noise_note 3, 11, 0, 33
noise_note 3, 12, 0, 34
noise_note 15, 13, 2, 36
sound_ret
| 19.875
| 25
| 0.685535
|
a4c3686b0c6d6c4316b2383ca1ed019a8ec780e2
| 1,611
|
asm
|
Assembly
|
bcm-secimage/gmp-6.0.0/mpn/udiv.asm
|
hixio-mh/citadel_sdk_2.1.1
|
bd15f6ae6c4b39c069d5beefa30c820e351d3b52
|
[
"Apache-2.0"
] | null | null | null |
bcm-secimage/gmp-6.0.0/mpn/udiv.asm
|
hixio-mh/citadel_sdk_2.1.1
|
bd15f6ae6c4b39c069d5beefa30c820e351d3b52
|
[
"Apache-2.0"
] | null | null | null |
bcm-secimage/gmp-6.0.0/mpn/udiv.asm
|
hixio-mh/citadel_sdk_2.1.1
|
bd15f6ae6c4b39c069d5beefa30c820e351d3b52
|
[
"Apache-2.0"
] | null | null | null |
dnl x86 mpn_udiv_qrnnd -- 2 by 1 limb division
dnl Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C mp_limb_t mpn_udiv_qrnnd (mp_limb_t *remptr, mp_limb_t high, mp_limb_t low,
C mp_limb_t divisor);
defframe(PARAM_DIVISOR, 16)
defframe(PARAM_LOW, 12)
defframe(PARAM_HIGH, 8)
defframe(PARAM_REMPTR, 4)
TEXT
ALIGN(8)
PROLOGUE(mpn_udiv_qrnnd)
deflit(`FRAME',0)
movl PARAM_LOW, %eax
movl PARAM_HIGH, %edx
divl PARAM_DIVISOR
movl PARAM_REMPTR, %ecx
movl %edx, (%ecx)
ret
EPILOGUE()
| 30.396226
| 79
| 0.740534
|
52934041c81e1a3e52f875db0fbf43c56003c186
| 615
|
asm
|
Assembly
|
programs/oeis/160/A160094.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/160/A160094.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/160/A160094.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A160094: 1 + the number of trailing zeros in n (A122840).
; 1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,2
add $0,1
lpb $0
dif $0,10
add $1,1
lpe
add $1,1
| 61.5
| 501
| 0.520325
|
d92f84425a354d6283c95c5a73094d9fbfef9de4
| 673
|
asm
|
Assembly
|
oeis/061/A061705.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/061/A061705.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/061/A061705.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A061705: Number of matchings in the wheel graph with n spokes.
; Submitted by Jon Maiga
; 2,5,10,19,36,66,120,215,382,673,1178,2050,3550,6121,10514,17999,30720,52290,88788,150427,254342,429245,723190,1216514,2043386,3427661,5742490,9609355,16062492,26821698,44744688,74576735,124192270,206650201,343594514,570877954,947857750,1572754225,2608015778,4322192327,7159034232,11851475010,19609583820,32430381859,53608363286,88576465781,146290947310,241511251970,398552156402,657457204373,1084153113898,1787147867395,2944982283540,4851349002306,7989231439464,13152699446759,21646950044830
mov $1,$0
lpb $1
sub $1,1
mov $2,$0
add $3,2
add $0,$3
mov $3,$2
lpe
add $0,2
| 48.071429
| 493
| 0.811293
|
05c5047d5f138c9b12d4bb17480c4bd6ee704ef5
| 4,644
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_543.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_543.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_543.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x929, %rbp
nop
nop
nop
nop
and %rdi, %rdi
mov $0x6162636465666768, %r14
movq %r14, %xmm6
vmovups %ymm6, (%rbp)
nop
nop
nop
nop
and %r14, %r14
lea addresses_UC_ht+0xc129, %rsi
lea addresses_A_ht+0x929, %rdi
and $21829, %rbx
mov $81, %rcx
rep movsw
cmp %rcx, %rcx
lea addresses_UC_ht+0x9531, %rbp
dec %r11
mov $0x6162636465666768, %r14
movq %r14, %xmm2
movups %xmm2, (%rbp)
nop
nop
nop
nop
nop
and $24440, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %rdi
push %rsi
// Faulty Load
lea addresses_A+0x10129, %rsi
nop
nop
nop
nop
and $29437, %r12
mov (%rsi), %r10
lea oracles, %rdi
and $0xff, %r10
shlq $12, %r10
mov (%rdi,%r10,1), %r10
pop %rsi
pop %rdi
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 16, 'same': False, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 51.6
| 2,999
| 0.663006
|
e9e1d7290ae57b2a1fcde435b8530855ea57b972
| 7,486
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_864.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_864.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_864.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1aded, %r9
nop
nop
xor $59637, %rdx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm7
movups %xmm7, (%r9)
nop
nop
nop
nop
nop
xor %r9, %r9
lea addresses_UC_ht+0x49fd, %r14
clflush (%r14)
nop
nop
nop
nop
inc %r9
movb $0x61, (%r14)
add %rbp, %rbp
lea addresses_A_ht+0xba4d, %rsi
lea addresses_D_ht+0x1bf9d, %rdi
nop
nop
nop
nop
sub %r9, %r9
mov $81, %rcx
rep movsw
nop
nop
xor $9944, %rdx
lea addresses_UC_ht+0x1c3fd, %rcx
and %r14, %r14
movups (%rcx), %xmm0
vpextrq $0, %xmm0, %r9
nop
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_WT_ht+0xcec9, %r14
nop
nop
nop
inc %rdi
movb $0x61, (%r14)
nop
nop
inc %rdi
lea addresses_UC_ht+0xfa5, %rbp
nop
nop
nop
inc %rsi
mov (%rbp), %edx
nop
nop
cmp %rdx, %rdx
lea addresses_A_ht+0x107fd, %r14
sub $1284, %rcx
movw $0x6162, (%r14)
nop
nop
sub $44469, %rcx
lea addresses_A_ht+0xcd7d, %rsi
lea addresses_A_ht+0x14917, %rdi
nop
nop
nop
xor %rbx, %rbx
mov $77, %rcx
rep movsq
sub $27761, %r14
lea addresses_WT_ht+0x47d5, %rsi
dec %r9
movb $0x61, (%rsi)
nop
nop
nop
nop
xor %r14, %r14
lea addresses_UC_ht+0x1bd7d, %rbp
nop
nop
inc %r14
movl $0x61626364, (%rbp)
add %r14, %r14
lea addresses_normal_ht+0xc1fd, %r14
nop
nop
nop
nop
and %rdi, %rdi
movl $0x61626364, (%r14)
cmp $4948, %rdi
lea addresses_UC_ht+0x2b3d, %rsi
lea addresses_WC_ht+0x16bd, %rdi
clflush (%rsi)
nop
nop
nop
nop
xor %rbp, %rbp
mov $99, %rcx
rep movsq
nop
nop
nop
nop
cmp %r14, %r14
lea addresses_UC_ht+0xa7fd, %rcx
nop
nop
nop
nop
nop
sub $11796, %rsi
and $0xffffffffffffffc0, %rcx
vmovntdqa (%rcx), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rdi
nop
nop
nop
nop
xor $56866, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r9
push %rax
push %rbx
push %rdi
push %rdx
// Load
lea addresses_US+0x9ffd, %rdi
and %r14, %r14
mov (%rdi), %eax
nop
nop
nop
nop
add $21540, %rax
// Faulty Load
lea addresses_A+0x7ffd, %rdi
nop
nop
nop
nop
nop
cmp %rbx, %rbx
movaps (%rdi), %xmm1
vpextrq $1, %xmm1, %rdx
lea oracles, %rax
and $0xff, %rdx
shlq $12, %rdx
mov (%rax,%rdx,1), %rdx
pop %rdx
pop %rdi
pop %rbx
pop %rax
pop %r9
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': True, 'size': 16}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}}
{'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}}
{'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 2}}
{'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}}
{'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}}
{'src': {'NT': True, 'same': False, 'congruent': 11, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'ff': 1, '00': 220, '47': 2, '45': 21582, '82': 7, '08': 9, 'ca': 8}
00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 08 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 ca 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 45 45 45 45 45 45
*/
| 34.33945
| 2,999
| 0.652418
|
7143e1ccb45dbb6b48dd9be78f900e9066757c1d
| 823
|
asm
|
Assembly
|
programs/oeis/168/A168538.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/168/A168538.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/168/A168538.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A168538: a(n) = (n+6)*(n+1)*(n^2 + 7*n + 16)/4.
; 0,24,84,204,414,750,1254,1974,2964,4284,6000,8184,10914,14274,18354,23250,29064,35904,43884,53124,63750,75894,89694,105294,122844,142500,164424,188784,215754,245514,278250,314154,353424,396264,442884,493500,548334,607614,671574,740454,814500,893964,979104,1070184,1167474,1271250,1381794,1499394,1624344,1756944,1897500,2046324,2203734,2370054,2545614,2730750,2925804,3131124,3347064,3573984,3812250,4062234,4324314,4598874,4886304,5187000,5501364,5829804,6172734,6530574,6903750,7292694,7697844,8119644,8558544,9015000,9489474,9982434,10494354,11025714,11577000,12148704,12741324,13355364,13991334,14649750,15331134,16036014,16764924,17518404,18297000,19101264,19931754,20789034,21673674,22586250,23527344,24497544,25497444,26527644
add $0,4
bin $0,4
sub $0,1
mul $0,6
| 102.875
| 735
| 0.818955
|
ff40b3d025e29b1b9265acb096bfac7462516278
| 1,062
|
asm
|
Assembly
|
sk/sfx/CC.asm
|
Cancer52/flamedriver
|
9ee6cf02c137dcd63e85a559907284283421e7ba
|
[
"0BSD"
] | 9
|
2017-10-09T20:28:45.000Z
|
2021-06-29T21:19:20.000Z
|
sk/sfx/CC.asm
|
Cancer52/flamedriver
|
9ee6cf02c137dcd63e85a559907284283421e7ba
|
[
"0BSD"
] | 12
|
2018-08-01T13:52:20.000Z
|
2022-02-21T02:19:37.000Z
|
sk/sfx/CC.asm
|
Cancer52/flamedriver
|
9ee6cf02c137dcd63e85a559907284283421e7ba
|
[
"0BSD"
] | 2
|
2018-02-17T19:50:36.000Z
|
2019-10-30T19:28:06.000Z
|
Sound_CC_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_CC_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $02
smpsHeaderSFXChannel cFM3, Sound_CC_FM3, $00, $06
smpsHeaderSFXChannel cFM4, Sound_CC_FM4, $00, $06
; FM3 Data
Sound_CC_FM3:
dc.b nE0, $03, nC0, $07, nA0, $0A, nEb1, $07
; FM4 Data
Sound_CC_FM4:
smpsSetvoice $00
dc.b nAb0, $08, nBb0, $08
smpsContinuousLoop Sound_CC_FM3
smpsStop
Sound_CC_Voices:
; Voice $00
; $FA
; $11, $31, $13, $30, $0A, $0F, $1F, $1F, $05, $18, $09, $02
; $06, $0F, $06, $02, $0F, $07, $4F, $2F, $07, $0E, $0E, $80
smpsVcAlgorithm $02
smpsVcFeedback $07
smpsVcUnusedBits $03
smpsVcDetune $03, $01, $03, $01
smpsVcCoarseFreq $00, $03, $01, $01
smpsVcRateScale $00, $00, $00, $00
smpsVcAttackRate $1F, $1F, $0F, $0A
smpsVcAmpMod $00, $00, $00, $00
smpsVcDecayRate1 $02, $09, $18, $05
smpsVcDecayRate2 $02, $06, $0F, $06
smpsVcDecayLevel $02, $04, $00, $00
smpsVcReleaseRate $0F, $0F, $07, $0F
smpsVcTotalLevel $00, $0E, $0E, $07
| 26.55
| 62
| 0.629002
|
5932ed4e76680dc002cff58e555c0756f96a6d17
| 5,966
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1240.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1240.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1240.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x119be, %rsi
lea addresses_WT_ht+0x11c76, %rdi
nop
nop
nop
nop
nop
add $20639, %r12
mov $113, %rcx
rep movsw
xor %r8, %r8
lea addresses_D_ht+0x4e3e, %rbp
clflush (%rbp)
nop
nop
nop
nop
nop
sub $50861, %r9
movl $0x61626364, (%rbp)
nop
sub %r8, %r8
lea addresses_D_ht+0x180, %r8
nop
nop
add $64959, %rbp
mov (%r8), %r9
nop
inc %rbp
lea addresses_normal_ht+0xd01e, %rbp
and $20590, %r8
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
vmovups %ymm1, (%rbp)
add %rdi, %rdi
lea addresses_WT_ht+0x24ee, %rsi
lea addresses_WC_ht+0x7dbe, %rdi
inc %r14
mov $25, %rcx
rep movsl
nop
nop
nop
nop
and %r14, %r14
lea addresses_A_ht+0x1a09e, %rbp
cmp $25612, %rsi
mov $0x6162636465666768, %r9
movq %r9, %xmm3
vmovups %ymm3, (%rbp)
nop
nop
nop
nop
nop
sub $46771, %r8
lea addresses_normal_ht+0x1409e, %rsi
lea addresses_normal_ht+0x2e9e, %rdi
sub %r12, %r12
mov $31, %rcx
rep movsl
nop
nop
sub %rcx, %rcx
lea addresses_WT_ht+0x16956, %r14
nop
add %rdi, %rdi
mov $0x6162636465666768, %r12
movq %r12, (%r14)
nop
nop
xor %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r8
push %rcx
push %rsi
// Faulty Load
lea addresses_PSE+0x1809e, %r8
nop
nop
nop
nop
nop
add %r14, %r14
mov (%r8), %r11
lea oracles, %rsi
and $0xff, %r11
shlq $12, %r11
mov (%rsi,%r11,1), %r11
pop %rsi
pop %rcx
pop %r8
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 2}}
{'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
*/
| 42.312057
| 2,999
| 0.660744
|
30b5173979dd23e5289285bfe36af19f8b8fc7bd
| 1,227
|
asm
|
Assembly
|
src/public/src/FM7/util/rs232cLoader/minloader.asm
|
rothberg-cmu/rothberg-run
|
a42df5ca9fae97de77753864f60d05295d77b59f
|
[
"MIT"
] | 1
|
2019-08-10T00:24:09.000Z
|
2019-08-10T00:24:09.000Z
|
src/public/src/FM7/util/rs232cLoader/minloader.asm
|
rothberg-cmu/rothberg-run
|
a42df5ca9fae97de77753864f60d05295d77b59f
|
[
"MIT"
] | null | null | null |
src/public/src/FM7/util/rs232cLoader/minloader.asm
|
rothberg-cmu/rothberg-run
|
a42df5ca9fae97de77753864f60d05295d77b59f
|
[
"MIT"
] | 2
|
2019-05-01T03:11:10.000Z
|
2019-05-01T03:30:35.000Z
|
ORG $2000
; IO_RS232C_CMD $FD07 (7,U)
; IO_RS232C_DATA $FD06 (6,U)
; IO_RS232C_ENABLE $FD0C ($0C,U) FM77AV20/40 and newer only
; IO_RS232C_MODE $FD0B ($0B,U) FM77AV20/40 and newer only
; 2019/01/20 In FM-7 (original) FD0B works as FD0F (RAM mode on/off)
LEAX RESET_CMD,PCR
LDU #$FD00 ; 3 clocks
; The following 3 lines will enable RS232C in FM77AV20/40 and newer,
; For some reason it prevents FM-7 from returning to F-BASIC.
LDD #$0510
STA $0C,U
STB $0B,U
RESET_LOOP ORCC #$50 ; 3 clocks Do it in the loop to wait for 8251A
LDA ,X+ ; 3 clocks
STA 7,U ; 3 clocks
BPL RESET_LOOP ; Only last command is negative. 3 clocks
MUL ; Wait 11 clocks. Is it necessary?
LDX #$6000 ; 3 clocks
LDB #$02 ; 2 clocks
LOAD_LOOP BITB 7,U
BEQ LOAD_LOOP
LDA 6,U ; 1 byte shorter than "LDA IO_RS232C_DATA"
STA ,X+
CMPX #$6100
BNE LOAD_LOOP
LDA $0F,U ; New! FM-7's FD0F seems to be leaked to FD0B
; (motherboard not checking Address Bus 2?)
; Tested 2019/01/20. Thanks Apollo again!
RTS
RESET_CMD FCB 0,0,0,$40,$4E,$B7
END_OF_PROGRAM
| 28.534884
| 73
| 0.597392
|
206b957b0e49c4ac6184f5785d3a51a33f450c5f
| 4,055
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_726.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_726.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_726.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rcx
lea addresses_D_ht+0x7a42, %rcx
nop
nop
nop
nop
cmp $19382, %r12
mov $0x6162636465666768, %r15
movq %r15, (%rcx)
nop
add %r14, %r14
pop %rcx
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r8
push %rdi
push %rdx
push %rsi
// Faulty Load
lea addresses_WT+0xd142, %r8
clflush (%r8)
nop
nop
inc %r11
movaps (%r8), %xmm3
vpextrq $1, %xmm3, %r12
lea oracles, %r11
and $0xff, %r12
shlq $12, %r12
mov (%r11,%r12,1), %r12
pop %rsi
pop %rdx
pop %rdi
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_WT', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 64.365079
| 2,999
| 0.662885
|
e5d92208075d37e05cd3f82b0381467e966c7463
| 10,625
|
asm
|
Assembly
|
P6/data_P6_2/MDTest161.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | 1
|
2022-01-23T09:24:47.000Z
|
2022-01-23T09:24:47.000Z
|
P6/data_P6_2/MDTest161.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | null | null | null |
P6/data_P6_2/MDTest161.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | null | null | null |
ori $ra,$ra,0xf
lb $4,7($0)
srav $5,$1,$5
mfhi $4
addu $3,$4,$3
mtlo $4
mfhi $2
mult $3,$5
sb $1,3($0)
lb $1,2($0)
addu $5,$2,$4
mthi $1
ori $6,$3,34044
div $1,$ra
div $1,$ra
addu $6,$5,$1
lb $1,14($0)
multu $1,$2
divu $4,$ra
srav $4,$2,$1
mflo $3
sb $0,6($0)
lb $4,1($0)
sb $5,12($0)
addiu $6,$6,-10587
mult $1,$2
lb $0,1($0)
mtlo $1
lui $1,11770
lui $1,2021
div $6,$ra
mthi $4
lb $2,8($0)
addiu $1,$1,-21488
sll $4,$4,17
div $0,$ra
lb $1,8($0)
sll $0,$6,19
mult $4,$6
div $4,$ra
lb $1,13($0)
sll $0,$0,13
div $3,$ra
srav $4,$4,$4
mtlo $2
multu $1,$1
lb $4,10($0)
addiu $3,$1,2601
divu $1,$ra
srav $0,$0,$0
sll $5,$5,0
sb $3,1($0)
multu $5,$4
srav $5,$2,$2
sll $4,$0,15
mfhi $4
lui $4,37215
mult $3,$6
lui $2,50578
mtlo $4
srav $0,$0,$0
sll $2,$2,10
ori $5,$5,41220
addiu $0,$3,19912
mtlo $5
ori $4,$4,18876
mtlo $2
divu $2,$ra
lb $5,2($0)
srav $3,$3,$3
mtlo $0
lui $4,42887
addu $4,$4,$5
mfhi $1
lui $0,42605
srav $6,$4,$5
lb $3,2($0)
ori $4,$1,13793
lb $1,11($0)
addu $5,$5,$5
addu $4,$4,$4
mflo $4
multu $3,$2
lb $2,13($0)
addiu $1,$0,-8275
divu $1,$ra
divu $5,$ra
addiu $4,$2,-26459
divu $1,$ra
multu $5,$6
sll $6,$4,14
ori $5,$1,43064
addu $4,$4,$4
srav $5,$1,$4
ori $6,$0,3882
mthi $6
mthi $4
mthi $6
mflo $6
lui $4,23517
mflo $4
divu $2,$ra
ori $1,$1,14936
srav $5,$2,$5
addu $0,$4,$4
lb $4,13($0)
addiu $5,$5,-9772
lb $3,9($0)
multu $4,$4
mtlo $5
multu $6,$4
lui $4,36813
srav $4,$1,$2
mult $4,$4
multu $1,$5
mthi $1
div $5,$ra
lui $5,50918
mult $1,$4
srav $4,$4,$5
mtlo $5
sb $4,5($0)
mtlo $4
sll $4,$5,9
multu $3,$5
addiu $0,$0,8888
lb $6,1($0)
multu $1,$1
lb $3,16($0)
div $0,$ra
lb $5,9($0)
mthi $1
divu $1,$ra
sb $5,3($0)
mflo $6
mflo $1
ori $1,$1,44384
multu $4,$4
srav $1,$2,$5
mfhi $5
mflo $1
divu $5,$ra
mthi $4
div $5,$ra
mtlo $6
sll $4,$4,27
sll $5,$4,0
mflo $0
mfhi $0
mfhi $4
multu $5,$5
sll $4,$6,22
ori $4,$0,42544
div $5,$ra
div $0,$ra
mult $6,$6
div $0,$ra
addiu $5,$1,-26185
multu $4,$4
mthi $1
addu $4,$4,$0
sll $2,$2,13
ori $3,$4,14604
addu $3,$0,$3
div $5,$ra
multu $5,$6
sll $4,$6,30
multu $1,$5
sll $4,$4,27
sb $4,11($0)
ori $0,$5,46581
ori $4,$5,41729
srav $5,$1,$5
mtlo $4
lb $5,10($0)
multu $2,$2
mfhi $3
multu $5,$2
sb $2,3($0)
mfhi $4
ori $1,$4,33790
addiu $0,$1,-20183
multu $5,$2
addu $6,$2,$2
srav $2,$2,$1
mflo $4
multu $4,$2
lui $4,49399
ori $4,$0,14307
addiu $1,$2,-5246
mult $0,$6
mult $4,$4
addu $4,$4,$5
div $5,$ra
addu $2,$2,$4
addiu $2,$6,-20351
mult $4,$4
addu $4,$1,$4
addu $0,$2,$2
addiu $0,$2,30576
div $4,$ra
sll $0,$6,27
lb $2,8($0)
addiu $0,$1,-28339
lb $3,15($0)
ori $4,$1,31384
multu $1,$4
mthi $0
mtlo $1
mfhi $4
mfhi $1
addu $5,$2,$3
multu $4,$0
addu $1,$5,$2
srav $0,$4,$0
mtlo $3
addiu $5,$5,17187
addiu $6,$6,-5938
ori $2,$2,53941
addu $2,$2,$2
div $1,$ra
addu $1,$4,$3
mfhi $6
mtlo $3
ori $5,$5,26300
ori $1,$4,59990
ori $1,$2,39704
mfhi $1
multu $5,$2
sb $1,9($0)
mfhi $2
lui $1,29232
mflo $4
lui $4,13261
mthi $4
multu $5,$5
mthi $5
ori $0,$3,17104
div $0,$ra
addu $1,$4,$0
div $4,$ra
multu $4,$3
mfhi $4
mfhi $4
mflo $1
addu $5,$5,$2
mflo $4
lui $4,38337
ori $5,$1,18712
addu $1,$4,$5
div $5,$ra
mflo $4
addiu $4,$4,-12620
lb $5,14($0)
srav $4,$1,$4
mult $4,$6
mtlo $1
lui $5,8099
mfhi $4
mtlo $3
srav $2,$0,$2
mtlo $4
addu $4,$5,$4
div $4,$ra
mthi $2
mthi $1
srav $4,$4,$6
mthi $1
mflo $1
sll $2,$2,30
multu $5,$5
addu $0,$0,$3
mfhi $5
multu $5,$4
multu $5,$5
sb $5,4($0)
mflo $3
ori $4,$4,45435
ori $4,$6,618
addiu $6,$5,-25615
mthi $5
sb $4,11($0)
srav $4,$1,$1
lui $0,15610
multu $4,$6
mthi $4
mult $3,$3
srav $2,$2,$4
multu $1,$1
srav $6,$5,$5
div $4,$ra
mthi $1
mtlo $2
sll $4,$1,16
mthi $4
divu $1,$ra
multu $5,$5
ori $2,$2,31246
sb $6,1($0)
addu $1,$1,$1
div $2,$ra
lui $4,5194
sb $2,7($0)
addiu $1,$1,-29122
divu $4,$ra
mthi $6
mult $1,$2
multu $2,$2
mflo $6
srav $1,$1,$4
div $6,$ra
divu $0,$ra
mthi $5
ori $4,$2,38290
addiu $5,$1,-18748
mtlo $1
mflo $5
mfhi $3
mthi $3
lui $4,16288
mtlo $4
addiu $5,$3,-19717
sll $0,$0,10
addiu $3,$3,-19334
addu $6,$5,$6
srav $5,$2,$2
addu $2,$2,$1
addiu $1,$6,7053
sb $5,8($0)
mfhi $6
mfhi $1
multu $1,$1
mthi $0
addu $6,$4,$2
srav $4,$5,$1
addiu $4,$4,15913
sb $5,12($0)
lui $6,13030
lb $2,1($0)
mfhi $5
mfhi $1
sll $1,$5,1
sll $2,$2,28
mflo $5
ori $6,$2,38457
sb $4,9($0)
mult $0,$1
addu $1,$1,$2
addiu $5,$5,10372
ori $4,$2,4719
lui $6,17132
mult $5,$6
mult $1,$4
srav $5,$4,$1
mflo $4
srav $4,$4,$4
mult $2,$2
sll $1,$4,24
mthi $1
mtlo $1
addu $4,$2,$4
mthi $4
div $1,$ra
mtlo $5
sb $1,11($0)
divu $1,$ra
mflo $6
ori $2,$2,62384
lb $6,16($0)
mthi $3
mtlo $3
mfhi $3
sll $1,$4,6
mfhi $5
ori $0,$0,24718
divu $1,$ra
ori $4,$1,56587
sb $4,4($0)
mult $2,$6
lb $2,14($0)
lui $5,58512
sb $3,0($0)
sb $3,11($0)
lb $4,3($0)
mthi $4
lui $2,51089
multu $4,$4
div $4,$ra
multu $3,$2
mthi $4
addu $1,$4,$4
div $4,$ra
srav $6,$6,$6
mflo $4
lui $1,17397
lui $0,48426
lb $0,8($0)
sb $0,5($0)
mfhi $5
mfhi $5
mfhi $4
lui $4,47973
mthi $3
addiu $4,$0,-7336
addu $4,$4,$1
sb $2,0($0)
sll $2,$2,0
lb $5,5($0)
multu $0,$2
srav $4,$4,$4
lb $0,16($0)
lb $2,14($0)
sb $2,6($0)
mflo $4
mfhi $5
srav $4,$5,$1
div $6,$ra
ori $4,$2,21543
sb $6,14($0)
mtlo $4
sb $4,0($0)
sb $5,13($0)
lb $1,1($0)
mthi $5
addiu $1,$1,1363
mfhi $6
sll $4,$1,28
ori $5,$1,63644
div $4,$ra
sll $2,$2,22
divu $4,$ra
mfhi $2
div $3,$ra
addu $4,$2,$4
mflo $4
lb $5,7($0)
addiu $1,$6,29244
sll $5,$1,2
srav $6,$6,$6
lb $4,9($0)
lui $1,4250
ori $2,$2,47068
sll $6,$6,2
lui $5,18612
mthi $0
mthi $5
div $5,$ra
mflo $1
mtlo $1
mfhi $1
addiu $0,$0,8499
mult $1,$1
div $5,$ra
multu $5,$5
sb $1,6($0)
mfhi $0
multu $5,$2
lb $5,3($0)
mflo $5
ori $4,$4,6502
mfhi $1
sll $4,$1,4
addiu $0,$4,-26311
addiu $1,$4,-15956
addiu $2,$0,-16698
lui $4,23109
mtlo $4
sll $5,$2,0
divu $5,$ra
multu $4,$4
lb $5,16($0)
mult $2,$2
div $2,$ra
ori $5,$2,1829
addu $5,$5,$1
mflo $3
mflo $5
lb $0,10($0)
mfhi $0
sll $6,$2,10
sb $3,10($0)
addu $1,$1,$1
addiu $1,$1,-18024
sb $4,14($0)
divu $5,$ra
addu $1,$4,$5
div $4,$ra
multu $4,$2
addu $5,$4,$2
mflo $5
mtlo $5
sb $6,1($0)
mthi $4
mtlo $6
sb $1,2($0)
addu $4,$2,$2
mflo $1
mult $1,$2
mtlo $1
lb $3,7($0)
multu $0,$2
srav $0,$6,$1
multu $4,$4
mthi $4
mthi $4
addu $1,$0,$3
mfhi $0
sb $4,10($0)
mflo $1
ori $1,$1,34096
mtlo $1
mthi $5
addu $2,$2,$2
addu $6,$2,$6
addiu $4,$5,19296
ori $4,$0,35083
lui $4,64831
div $5,$ra
mfhi $1
divu $6,$ra
sb $1,11($0)
mult $4,$4
mult $4,$4
srav $4,$0,$1
mult $5,$5
mthi $5
div $5,$ra
srav $4,$4,$4
mthi $2
ori $4,$2,34175
multu $1,$1
addiu $5,$5,-21724
ori $5,$5,45862
mflo $4
mult $3,$5
srav $1,$1,$5
lui $1,25559
addiu $6,$6,25416
mthi $0
mtlo $4
multu $4,$4
div $1,$ra
ori $2,$2,14231
sll $5,$4,23
multu $5,$5
sb $5,11($0)
addu $4,$4,$4
sll $1,$1,16
mtlo $1
lui $4,36783
mflo $4
mfhi $4
sll $5,$4,11
divu $2,$ra
ori $3,$5,27565
lb $4,10($0)
mtlo $1
sll $5,$4,3
multu $4,$4
sb $4,8($0)
div $1,$ra
mtlo $3
mfhi $0
ori $1,$1,29801
lb $5,7($0)
mtlo $4
divu $5,$ra
multu $1,$2
addiu $5,$0,13219
mult $1,$2
sll $0,$0,17
sb $1,1($0)
mthi $2
lb $1,2($0)
addu $4,$4,$4
addu $0,$0,$2
lb $0,5($0)
addiu $5,$5,23161
mult $4,$4
mthi $0
mflo $2
mthi $6
div $4,$ra
addu $3,$3,$3
srav $1,$1,$3
lb $1,1($0)
mtlo $5
mflo $3
sll $4,$4,6
div $2,$ra
mflo $3
mtlo $1
lui $4,33131
multu $5,$5
mflo $1
mthi $0
div $2,$ra
addiu $4,$3,12854
div $4,$ra
lb $4,13($0)
divu $5,$ra
srav $4,$1,$1
srav $3,$1,$3
divu $5,$ra
mult $5,$5
divu $1,$ra
div $2,$ra
sll $4,$3,10
sb $5,12($0)
srav $2,$2,$3
lui $4,23641
srav $3,$2,$3
mflo $4
addiu $1,$2,11481
mult $6,$6
sb $5,13($0)
sll $0,$2,2
div $1,$ra
mthi $1
addiu $0,$1,-2393
sll $6,$2,8
div $3,$ra
sb $4,13($0)
lui $4,51021
lui $5,7854
addiu $4,$1,27489
mflo $1
mflo $5
div $3,$ra
sll $5,$4,2
lb $2,8($0)
addu $5,$2,$2
mflo $5
srav $4,$1,$4
mult $4,$5
srav $4,$3,$3
multu $4,$4
ori $2,$2,64464
sll $4,$2,5
mfhi $5
addiu $4,$6,23443
mthi $4
sb $4,6($0)
divu $3,$ra
mult $6,$2
multu $4,$4
div $5,$ra
srav $4,$2,$1
div $4,$ra
ori $5,$5,22494
mtlo $0
addiu $4,$1,-9461
sb $4,3($0)
mult $4,$6
lb $5,8($0)
div $6,$ra
divu $4,$ra
div $5,$ra
mfhi $5
mfhi $4
mthi $6
mult $0,$1
mfhi $5
mfhi $6
mult $5,$6
addu $3,$5,$3
div $4,$ra
ori $2,$2,10615
mthi $4
sll $4,$2,14
srav $3,$4,$3
addiu $3,$2,-13696
ori $1,$3,6416
mflo $5
lb $4,6($0)
addu $0,$4,$4
mthi $3
lui $0,16712
div $0,$ra
lui $5,48997
mfhi $1
mflo $6
mthi $4
sll $4,$4,18
addiu $3,$4,-10626
sb $5,14($0)
div $1,$ra
addu $2,$2,$4
addiu $1,$6,19720
mtlo $1
mthi $3
multu $1,$0
sb $1,2($0)
lui $1,53410
addu $4,$4,$3
mult $5,$1
mflo $4
sb $4,16($0)
divu $4,$ra
mult $2,$4
sll $5,$1,20
lb $0,13($0)
addu $5,$5,$3
addiu $2,$2,13099
mfhi $1
divu $1,$ra
ori $5,$6,32160
div $4,$ra
multu $5,$4
ori $5,$6,6540
srav $1,$1,$1
lb $4,2($0)
mfhi $1
mthi $5
mflo $6
lb $2,0($0)
sll $5,$4,31
ori $1,$2,18825
mthi $4
lb $5,12($0)
mfhi $5
sb $3,4($0)
srav $2,$2,$2
mfhi $4
mfhi $1
addiu $5,$1,-184
mtlo $5
mult $2,$0
lb $6,14($0)
srav $1,$3,$3
srav $4,$1,$3
sb $1,3($0)
addu $4,$6,$5
lui $6,4088
mthi $4
div $0,$ra
ori $1,$1,28645
mthi $4
srav $0,$0,$4
div $4,$ra
mtlo $4
mtlo $1
div $4,$ra
div $3,$ra
srav $2,$4,$2
addu $1,$0,$2
mflo $5
sb $5,10($0)
divu $1,$ra
sb $0,0($0)
divu $2,$ra
srav $5,$5,$4
addiu $6,$6,-21847
lui $1,34413
mflo $4
sll $4,$4,12
multu $4,$4
mthi $2
sb $4,16($0)
mthi $3
sb $4,14($0)
addu $4,$4,$2
addu $4,$2,$0
mflo $1
addiu $1,$2,-22592
srav $4,$4,$4
mthi $1
addiu $1,$1,-26167
sb $0,12($0)
addu $1,$2,$2
lb $1,10($0)
lb $4,8($0)
mthi $3
div $3,$ra
multu $2,$2
multu $4,$4
lb $6,13($0)
ori $5,$1,57816
div $0,$ra
addiu $4,$4,11133
lb $4,9($0)
addiu $1,$1,-13995
divu $1,$ra
divu $0,$ra
mfhi $5
multu $5,$4
addu $0,$4,$0
sll $5,$1,8
divu $6,$ra
divu $3,$ra
mthi $5
sll $5,$2,13
sll $5,$4,31
mult $2,$2
mult $1,$2
addiu $1,$4,-24402
addu $3,$4,$3
addu $1,$2,$1
mult $6,$6
mthi $4
multu $6,$2
lb $6,5($0)
addiu $4,$4,4187
div $6,$ra
divu $4,$ra
srav $5,$2,$4
addu $0,$0,$0
lb $3,15($0)
mthi $4
sb $5,10($0)
mult $1,$4
mflo $5
multu $1,$0
sll $6,$1,6
srav $5,$5,$5
lb $0,1($0)
divu $3,$ra
mflo $2
sll $4,$6,4
addiu $4,$5,23757
sll $4,$2,0
div $3,$ra
div $1,$ra
lb $4,3($0)
addu $4,$1,$4
mult $4,$2
mult $0,$4
mflo $2
mflo $5
mflo $2
div $4,$ra
mtlo $6
mflo $4
ori $5,$5,2152
mthi $6
addu $2,$2,$2
sll $1,$1,8
lb $2,11($0)
mflo $4
mthi $4
mult $2,$2
multu $0,$2
sb $1,14($0)
addu $4,$5,$5
divu $5,$ra
ori $1,$1,42611
divu $4,$ra
ori $3,$1,36124
mtlo $6
lui $0,33409
sll $1,$4,18
mtlo $1
mfhi $5
addiu $4,$4,14662
addiu $4,$4,-24536
div $2,$ra
addu $6,$5,$3
sll $4,$1,6
mtlo $6
mthi $4
ori $5,$0,25344
mtlo $2
srav $0,$4,$1
mthi $4
sb $4,8($0)
mtlo $3
addiu $4,$1,24497
lb $4,9($0)
sb $4,0($0)
mult $5,$0
addu $4,$4,$4
sll $6,$2,0
mtlo $4
mflo $1
ori $4,$5,19672
divu $4,$ra
multu $1,$0
lb $6,2($0)
addu $5,$5,$5
lui $3,31481
divu $1,$ra
lb $1,14($0)
mflo $3
mthi $3
ori $1,$4,19053
mflo $5
srav $2,$2,$4
mtlo $5
addiu $4,$4,29740
| 11.938202
| 18
| 0.5632
|
330c9b1958abcaaa16cb93e9d2ede486869ba72f
| 89,840
|
asm
|
Assembly
|
AudioDriver/SoundSystem.asm
|
adamsmasher/bustfree
|
446d6777f42d3baa57f29ec9e4613a3e5cd4afe9
|
[
"MIT"
] | null | null | null |
AudioDriver/SoundSystem.asm
|
adamsmasher/bustfree
|
446d6777f42d3baa57f29ec9e4613a3e5cd4afe9
|
[
"MIT"
] | null | null | null |
AudioDriver/SoundSystem.asm
|
adamsmasher/bustfree
|
446d6777f42d3baa57f29ec9e4613a3e5cd4afe9
|
[
"MIT"
] | null | null | null |
INCLUDE "AudioDriver/SoundSystemNotes.inc"
INCLUDE "AudioDriver/SoundSystem.def"
INCLUDE "AudioDriver/SoundSystem.inc"
; tabs=8,hard
;***************************************************************************************************************************
;* default behaviors
;***************************************************************************************************************************
; force support for color gameboy-specific roms to be disabled if not user-specified
IF !DEF(SOUNDSYSTEM_GBC_COMPATIBLE)
SOUNDSYSTEM_GBC_COMPATIBLE EQU 0
ENDC
; force support for large roms to be disabled if not user-specified
IF !DEF(SOUNDSYSTEM_LARGE_ROM)
SOUNDSYSTEM_LARGE_ROM EQU 0
ENDC
; force the code to reside in bank 0 if not user-specified
IF !DEF(SOUNDSYSTEM_CODE_BANK)
SOUNDSYSTEM_CODE_BANK EQU 0
ENDC
; force the variables to reside in wram bank 0 if not user-specified
IF !DEF(SOUNDSYSTEM_WRAM_BANK)
SOUNDSYSTEM_WRAM_BANK EQU 0
ENDC
; force the sfx to be enabled if not user-specified
if !DEF(SOUNDSYSTEM_ENABLE_SFX)
SOUNDSYSTEM_ENABLE_SFX EQU 1
ENDC
; force the vu meters to be disabled if not user-specified
if !DEF(SOUNDSYSTEM_ENABLE_VUM)
SOUNDSYSTEM_ENABLE_VUM EQU 0
ENDC
; force certain settings if the rom is not specific to color gameboy
IF (SOUNDSYSTEM_GBC_COMPATIBLE == 0)
PURGE SOUNDSYSTEM_WRAM_BANK
SOUNDSYSTEM_WRAM_BANK EQU 0
ENDC
; do some sanity checking
IF (SOUNDSYSTEM_GBC_COMPATIBLE != 0)
ASSERT(SOUNDSYSTEM_WRAM_BANK < 8)
; force boolean
PURGE SOUNDSYSTEM_GBC_COMPATIBLE
SOUNDSYSTEM_GBC_COMPATIBLE EQU 1
ENDC
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ASSERT(SOUNDSYSTEM_CODE_BANK < 512)
; force boolean
PURGE SOUNDSYSTEM_LARGE_ROM
SOUNDSYSTEM_LARGE_ROM EQU 1
ENDC
IF (SOUNDSYSTEM_ENABLE_SFX != 0)
; force boolean
PURGE SOUNDSYSTEM_ENABLE_SFX
SOUNDSYSTEM_ENABLE_SFX EQU 1
ENDC
IF (SOUNDSYSTEM_ENABLE_VUM != 0)
; force boolean
PURGE SOUNDSYSTEM_ENABLE_VUM
SOUNDSYSTEM_ENABLE_VUM EQU 1
ENDC
sizeof_BANK_VAR = 1+SOUNDSYSTEM_LARGE_ROM ; the size, in bytes, of the bank variables
; display the configuration
PRINTT "SoundSystem Configuration:\n"
IF (SOUNDSYSTEM_GBC_COMPATIBLE == 0)
PRINTT " GBC Only: no\n"
ELSE
PRINTT " GBC Only: YES\n"
ENDC
IF (SOUNDSYSTEM_LARGE_ROM == 0)
PRINTT " Large ROM: no\n"
ELSE
PRINTT " Large ROM: YES\n"
ENDC
PRINTT " Code Bank: {SOUNDSYSTEM_CODE_BANK}\n"
PRINTT " WRAM Bank: {SOUNDSYSTEM_WRAM_BANK}\n"
IF (SOUNDSYSTEM_ENABLE_SFX == 0)
PRINTT " SFX: disabled\n"
ELSE
PRINTT " SFX: ENABLED\n"
ENDC
IF (SOUNDSYSTEM_ENABLE_VUM == 0)
PRINTT " VU Meters: disabled\n"
ELSE
PRINTT " VU Meters: ENABLED\n"
ENDC
;***************************************************************************************************************************
;* hardware registers
;***************************************************************************************************************************
rROMB0 EQU $2000 ; $2000->$2FFF
rROMB1 EQU $3000 ; $3000->$3FFF - If more than 256 ROM banks are present.
rSVBK EQU $FF70
rAUD1SWEEP EQU $FF10
rAUD1LEN EQU $FF11
rAUD1ENV EQU $FF12
rAUD1LOW EQU $FF13
rAUD1HIGH EQU $FF14
rAUD2LEN EQU $FF16
rAUD2ENV EQU $FF17
rAUD2LOW EQU $FF18
rAUD2HIGH EQU $FF19
rAUD3ENA EQU $FF1A
rAUD3LEN EQU $FF1B
rAUD3LEVEL EQU $FF1C
rAUD3LOW EQU $FF1D
rAUD3HIGH EQU $FF1E
rAUD4LEN EQU $FF20
rAUD4ENV EQU $FF21
rAUD4POLY EQU $FF22
rAUD4GO EQU $FF23
rAUDVOL EQU $FF24
rAUDTERM EQU $FF25
rAUDENA EQU $FF26
_AUD3WAVERAM EQU $FF30 ; $FF30->$FF3F
; values for rAUD1LEN, rAUD2LEN
AUDLEN_DUTY_75 EQU %11000000 ; 75%
AUDLEN_DUTY_50 EQU %10000000 ; 50%
AUDLEN_DUTY_25 EQU %01000000 ; 25%
AUDLEN_DUTY_12_5 EQU %00000000 ; 12.5%
AUDLEN_LENGTHMASK EQU %00111111
; values for rAUD1HIGH, rAUD2HIGH, rAUD3HIGH
AUDHIGH_RESTART EQU %10000000
AUDHIGH_LENGTH_ON EQU %01000000
AUDHIGH_LENGTH_OFF EQU %00000000
; values for rAUD3ENA
AUD3ENA_ON EQU %10000000
; values for rAUDVOL
AUDVOL_VIN_LEFT EQU %10000000 ; SO2
AUDVOL_VIN_RIGHT EQU %00001000 ; SO1
; values for rAUDTERM
; SO2
AUDTERM_4_LEFT EQU %10000000
AUDTERM_3_LEFT EQU %01000000
AUDTERM_2_LEFT EQU %00100000
AUDTERM_1_LEFT EQU %00010000
; SO1
AUDTERM_4_RIGHT EQU %00001000
AUDTERM_3_RIGHT EQU %00000100
AUDTERM_2_RIGHT EQU %00000010
AUDTERM_1_RIGHT EQU %00000001
AUDTERM_ALL EQU $FF ; shorthand instead of ORing all the EQUs together
;***************************************************************************************************************************
;* supported music commands
;***************************************************************************************************************************
RSSET 0
MUSIC_CMD_ENDOFFRAME RB 1
MUSIC_CMD_PLAYINSTNOTE RB 1
MUSIC_CMD_PLAYINST RB 1
MUSIC_CMD_SETVOLUME RB 1
MUSIC_CMD_VIBRATO_ON RB 1
MUSIC_CMD_EFFECT_OFF RB 1
MUSIC_CMD_SYNCFLAG RB 1
MUSIC_CMD_ENDOFPATTERN RB 1
MUSIC_CMD_GOTOORDER RB 1
MUSIC_CMD_ENDOFSONG RB 1
MUSIC_CMD_SETSPEED RB 1
MUSIC_CMD_ENDOFFRAME1X RB 1
MUSIC_CMD_ENDOFFRAME2X RB 1
MUSIC_CMD_ENDOFFRAME3X RB 1
MUSIC_CMD_ENDOFFRAME4X RB 1
MUSIC_CMD_PITCHUP_ON RB 1
MUSIC_CMD_PITCHDOWN_ON RB 1
MUSIC_CMD_TRIPLENOTE_ON RB 1
MUSIC_CMD_EXTRA RB 1
;***************************************************************************************************************************
;* supported music effects
;***************************************************************************************************************************
RSRESET
MUSIC_FX_NONE RB 1
MUSIC_FX_VIB1 RB 1
MUSIC_FX_VIB2 RB 1
MUSIC_FX_TRIPLEFREQ1 RB 1
MUSIC_FX_TRIPLEFREQ2 RB 1
MUSIC_FX_TRIPLEFREQ3 RB 1
MUSIC_FX_PITCHUP RB 1
MUSIC_FX_PITCHDOWN RB 1
;***************************************************************************************************************************
;* supported instrument commands
;***************************************************************************************************************************
RSRESET
; common commands
MUSIC_INSTCMD_X_FRAMEEND RB 1
MUSIC_INSTCMD_X_START RB 1
MUSIC_INSTCMD_X_END RB 1
MUSIC_INSTCMD_X_ENVELOPE RB 1
MUSIC_INSTCMD_X_STARTFREQ RB 1
MUSIC_INSTCMD_X_ENVELOPEVOL RB 1
MUSIC_INSTCMD_X_STARTENVVOLFREQ RB 1
MUSIC_INSTCMD_X_PANMID RB 1
MUSIC_INSTCMD_X_PANRIGHT RB 1
MUSIC_INSTCMD_X_PANLEFT RB 1
; count of common instrument commands
MUSIC_INSTCMD_COMMONCOUNT RB 0
; specific commands
; channels 1 and 2
RSSET MUSIC_INSTCMD_COMMONCOUNT
MUSIC_INSTCMD_12_PULSELEN RB 1
MUSIC_INSTCMD_1_SWEEP RB 1
; channel 3
RSSET MUSIC_INSTCMD_COMMONCOUNT
MUSIC_INSTCMD_3_WAVE RB 1
MUSIC_INSTCMD_3_LEN RB 1
; channel 4
RSSET MUSIC_INSTCMD_COMMONCOUNT
MUSIC_INSTCMD_4_POLYLOAD RB 1
MUSIC_INSTCMD_4_LEN RB 1
;***************************************************************************************************************************
;* wSoundFXLock bit definitions
;***************************************************************************************************************************
SFXLOCKF_4_LEFT EQU AUDTERM_4_LEFT
SFXLOCKF_3_LEFT EQU AUDTERM_3_LEFT
SFXLOCKF_2_LEFT EQU AUDTERM_2_LEFT
SFXLOCKF_1_LEFT EQU AUDTERM_1_LEFT
SFXLOCKF_4_RIGHT EQU AUDTERM_4_RIGHT
SFXLOCKF_3_RIGHT EQU AUDTERM_3_RIGHT
SFXLOCKF_2_RIGHT EQU AUDTERM_2_RIGHT
SFXLOCKF_1_RIGHT EQU AUDTERM_1_RIGHT
SFXLOCKB_CHANNEL4 EQU 3
SFXLOCKB_CHANNEL3 EQU 2
SFXLOCKB_CHANNEL2 EQU 1
SFXLOCKB_CHANNEL1 EQU 0
;***************************************************************************************************************************
;* work ram
;***************************************************************************************************************************
IF (SOUNDSYSTEM_WRAM_BANK == 0)
SECTION "SoundSystem Variables",WRAM0,ALIGN[7]
ELSE
SECTION "SoundSystem Variables",WRAMX,BANK[SOUNDSYSTEM_WRAM_BANK],ALIGN[7]
ENDC
wMusicSyncData:: DS 1 ; arbitrary value set by the song to sync visual effects with bg music
; soundfx variables
wSoundFXLock: DS 1 ; bitfield (see above), 1 = Music, 0 = SFX Locked
wSoundFXTable: DS 2 ; table of soundfx pointers
wSoundFXBank: DS sizeof_BANK_VAR ; bank of soundfxs
wSoundFXStart: DS 4 ; sound fx to start
wSoundFXNote: DS 1 ; sound fx's start note
; music/sfx shared variables
wMusicSFXPanning: DS 1
wMusicSFXInstPause1: DS 1 ; frames left before instrument/soundfx update for channel 1
wMusicSFXInstPause2: DS 1 ; frames left before instrument/soundfx update for channel 2
wMusicSFXInstPause3: DS 1 ; frames left before instrument/soundfx update for channel 3
wMusicSFXInstPause4: DS 1 ; frames left before instrument/soundfx update for channel 4
wMusicSFXInstPtr1: DS 2 ; pointer to playing instrument/soundfx for channel 1
wMusicSFXInstPtr2: DS 2 ; pointer to playing instrument/soundfx for channel 2
wMusicSFXInstPtr3: DS 2 ; pointer to playing instrument/soundfx for channel 3
wMusicSFXInstPtr4: DS 2 ; pointer to playing instrument/soundfx for channel 4
wMusicSFXInstBank1: DS sizeof_BANK_VAR ; bank of active instrument for channel 1
wMusicSFXInstBank2: DS sizeof_BANK_VAR ; bank of active instrument for channel 2
wMusicSFXInstBank3: DS sizeof_BANK_VAR ; bank of active instrument for channel 3
wMusicSFXInstBank4: DS sizeof_BANK_VAR ; bank of active instrument for channel 4
wMusicSFXInstChnl3WaveID: DS 1 ; current waveid loaded, IDs of 255 in instruments will load, whatever the value here
wMusicSFXInstChnl3Lock: DS 1 ; 0 = no lock, 1 = external lock
; music variables
wMusicPlayState:: DS 1 ; current music playback state, 0 = stopped, 1 = playing
wMusicNextFrame: DS 1 ; number of frames until the next music commands
wMusicCommandPtr: DS 2 ; position of playing music
wMusicCommandBank: DS sizeof_BANK_VAR ; bank of playing music
wMusicOrderPtr: DS 2 ; position of pattern order list (list of pointers to start of patterns)
wMusicOrderBank: DS sizeof_BANK_VAR ; bank of order list
wMusicInstrumentTable: DS 2 ; table of instrument pointers
wMusicInstrumentBank: DS sizeof_BANK_VAR ; bank of instruments
; miscellaneous variables
wChannelMusicFreq1: DS 2 ; GB frequency of channel 1 for music backup
wChannelMusicFreq2: DS 2 ; GB frequency of channel 2 for music backup
wChannelMusicFreq3: DS 2 ; GB frequency of channel 3 for music backup
wChannelMusicFreq4: DS 2 ; GB frequency of channel 4 for music backup
wChannelMusicNote1: DS 1 ; note of channel 1 for music backup
wChannelMusicNote2: DS 1 ; note of channel 2 for music backup
wChannelMusicNote3: DS 1 ; note of channel 3 for music backup
wChannelMusicNote4: DS 1 ; note of channel 4 for music backup
wChannelFreq1: DS 2 ; GB frequency of channel 1
wChannelFreq2: DS 2 ; GB frequency of channel 2
wChannelFreq3: DS 2 ; GB frequency of channel 3
wChannelFreq4: DS 2 ; GB frequency of channel 4
wChannelVol1: DS 1 ; volumes of channel 1, byte[4:VOL,4:xxxx]
wChannelVol2: DS 1 ; volumes of channel 2, byte[4:VOL,4:xxxx]
wChannelVol3: DS 1 ; volumes of channel 3, byte[4:VOL,4:xxxx]
wChannelVol4: DS 1 ; volumes of channel 4, byte[4:VOL,4:xxxx]
wMusicSpeed: DS 1 ; speed
; effect variables
wChannelMusicEffect1: DS 1 ; active effect for channel 1, 0 = none
wChannelMusicEffect2: DS 1 ; active effect for channel 2, 0 = none
wChannelMusicEffect3: DS 1 ; active effect for channel 3, 0 = none
wChannelMusicEffect4: DS 1 ; active effect for channel 4, 0 = none
wChannelMusicFXParamA1: DS 2 ; effect parameters for channel 1
wChannelMusicFXParamA2: DS 2 ; effect parameters for channel 2
wChannelMusicFXParamA3: DS 2 ; effect parameters for channel 3
wChannelMusicFXParamA4: DS 2 ; effect parameters for channel 4
wChannelMusicFXParamB1: DS 2 ; effect parameters for channel 1
wChannelMusicFXParamB2: DS 2 ; effect parameters for channel 2
wChannelMusicFXParamB3: DS 2 ; effect parameters for channel 3
wChannelMusicFXParamB4: DS 2 ; effect parameters for channel 4
wTemp: DS 2 ; temporary storage for player calcs
IF (SOUNDSYSTEM_ENABLE_VUM)
wVUMeter1:: DS 1 ; vu meter data for channel 1
wVUMeter2:: DS 1 ; vu meter data for channel 2
wVUMeter3:: DS 1 ; vu meter data for channel 3
wVUMeter4:: DS 1 ; vu meter data for channel 4
ENDC
;***************************************************************************************************************************
;* Identification
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Identity",ROM0
ELSE
SECTION "SoundSystem_Identity",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SoundSystem_Version::
DB "SoundSystem v20.249",$00
SoundSystem_Author::
DB "Code: S. Hockenhull",$00
;***************************************************************************************************************************
;* SoundSystem_Init
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Init",ROM0
ELSE
SECTION "SoundSystem_Init",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SoundSystem_Init::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; set all channel samples to 'stop'
ld hl,wMusicSFXInstPtr1
ld e,4
.instptrloop:
ld a,LOW(Music_InstrumentEnd)
ld [hl+],a
ld a,HIGH(Music_InstrumentEnd)
ld [hl+],a
dec e
jr nz,.instptrloop
; set all channel banks to be the bank with the stop instrument
ld hl,wMusicSFXInstBank1
ld e,4
IF (SOUNDSYSTEM_LARGE_ROM)
.instbankloop:
ld a,LOW(BANK(Music_InstrumentEnd))
ld [hl+],a
ld a,HIGH(BANK(Music_InstrumentEnd))
ld [hl+],a
dec e
jr nz,.instbankloop
ELSE
ld a,BANK(Music_InstrumentEnd)
.instbankloop:
ld [hl+],a
dec e
jr nz,.instbankloop
ENDC
; set all channel volumes to 8
ld a,$80
ld hl,wChannelVol1
REPT 4
ld [hl+],a
ENDR
; set all channel sfxs to unused (etc.)
ld a,$FF
ld hl,wSoundFXStart
REPT 4
ld [hl+],a
ENDR
ld [wSoundFXLock],a
ld [wMusicSFXPanning],a
ld [wMusicSFXInstChnl3WaveID],a
; clear all channel music effects
xor a
ld hl,wChannelMusicEffect1
REPT 4
ld [hl+],a
ENDR
ld [wMusicSFXInstChnl3Lock],a
; clear all sfx pause timers
ld hl,wMusicSFXInstPause1
REPT 4
ld [hl+],a
ENDR
; clear all channel music frequencies
ld hl,wChannelMusicFreq1
REPT 8
ld [hl+],a
ENDR
IF (SOUNDSYSTEM_ENABLE_VUM)
; clear all vu meter values
ld hl,wVUMeter1
REPT 4
ld [hl+],a
ENDR
ENDC
; enable sound
ld a,AUD3ENA_ON
ldh [rAUDENA],a
; channel 1
xor a
ldh [rAUD1SWEEP],a
; all channels off
call Music_Pause
; general
ld a,(AUDVOL_VIN_LEFT|AUDVOL_VIN_RIGHT) ^ $FF ; same as ~(), but ~ here triggers a false warning
ldh [rAUDVOL],a
ld a,AUDTERM_ALL
ldh [rAUDTERM],a
ret
; dummy instrument to init/clear instrument pointers
Music_InstrumentEnd:
DB MUSIC_INSTCMD_X_END
;***************************************************************************************************************************
;* SoundSystem_Process
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Process",ROM0
ELSE
SECTION "SoundSystem_Process",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SoundSystem_Process::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
IF (SOUNDSYSTEM_ENABLE_SFX)
; sfx start process
ld hl,wSoundFXStart
ld c,4
.multisfx:
ld a,[hl]
push hl
push bc
xor $FF
jp z,.nonewsfx
ld b,a ; save
; change the rom bank
ld a,[wSoundFXBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [rROMB1],a
ENDC
; lock & update SFX
ld a,b ; restore
cpl
; calculate table plus index address
ld b,a ;save
ld a,[wSoundFXTable]
ld e,a
ld a,[wSoundFXTable+1]
ld d,a
ld a,b ;restore
ld b,0
add a
rl b
add a
rl b
add a ; 4 words
rl b
add e
ld l,a
ld a,0 ; can't xor a here becuase of the adc
adc d
add b
ld h,a
push hl
ld a,[wSoundFXNote]
add a
ld l,a
ld h,HIGH(FrequencyTable)
ASSERT LOW(FrequencyTable) == 0
ld a,[hl+]
ld [wTemp],a
ld a,[hl]
ld [wTemp+1],a ; store note freq
pop hl
; update wSoundFXLock
ld a,[wSoundFXLock]
ld d,a
; load channel 1
ld a,[hl+]
ld c,a
ld a,[hl+]
ld b,a
or c
jr z,.nosfxchnl1
ld a,c
ld [wMusicSFXInstPtr1],a
ld a,b
ld [wMusicSFXInstPtr1+1],a
; update the rom bank
ld a,[wSoundFXBank]
ld [wMusicSFXInstBank1],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [wMusicSFXInstBank1+1],a
ENDC
ld a,[wTemp]
ld [wChannelFreq1],a
ld a,[wTemp+1]
ld [wChannelFreq1+1],a
ld a,d
and ~(SFXLOCKF_1_LEFT|SFXLOCKF_1_RIGHT)
ld d,a
ld a,1 ; set counter to immediate start
ld [wMusicSFXInstPause1],a
.nosfxchnl1:
; load channel 2
ld a,[hl+]
ld c,a
ld a,[hl+]
ld b,a
or c
jr z,.nosfxchnl2
ld a,c
ld [wMusicSFXInstPtr2],a
ld a,b
ld [wMusicSFXInstPtr2+1],a
; update the rom bank
ld a,[wSoundFXBank]
ld [wMusicSFXInstBank2],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [wMusicSFXInstBank2+1],a
ENDC
ld a,[wTemp]
ld [wChannelFreq2],a
ld a,[wTemp+1]
ld [wChannelFreq2+1],a
ld a,d
and ~(SFXLOCKF_2_LEFT|SFXLOCKF_2_RIGHT)
ld d,a
ld a,1 ; set counter to immediate start
ld [wMusicSFXInstPause2],a
.nosfxchnl2:
; load channel 3
ld a,[hl+]
ld c,a
ld a,[hl+]
ld b,a
or c
jr z,.nosfxchnl3
ld a,[wMusicSFXInstChnl3Lock]
or a
jr nz,.nosfxchnl3
ld a,c
ld [wMusicSFXInstPtr3],a
ld a,b
ld [wMusicSFXInstPtr3+1],a
; update the rom bank
ld a,[wSoundFXBank]
ld [wMusicSFXInstBank3],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [wMusicSFXInstBank3+1],a
ENDC
ld a,[wTemp]
ld [wChannelFreq3],a
ld a,[wTemp+1]
ld [wChannelFreq3+1],a
ld a,d
and ~(SFXLOCKF_3_LEFT|SFXLOCKF_3_RIGHT)
ld d,a
ld a,1 ; set counter to immediate start
ld [wMusicSFXInstPause3],a
.nosfxchnl3:
; load channel 4
ld a,[hl+]
ld c,a
ld a,[hl+]
ld b,a
or c
jr z,.nosfxchnl4
ld a,c
ld [wMusicSFXInstPtr4],a
ld a,b
ld [wMusicSFXInstPtr4+1],a
; update the rom bank
ld a,[wSoundFXBank]
ld [wMusicSFXInstBank4],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [wMusicSFXInstBank4+1],a
ENDC
ld a,d
and (SFXLOCKF_4_LEFT|SFXLOCKF_4_RIGHT) ^ $FF ; same as ~(), but ~ here triggers a false warning
ld d,a
ld a,1 ; set counter to immediate start
ld [wMusicSFXInstPause4],a
.nosfxchnl4:
pop bc
pop hl
; update wSoundFXLock
ld a,d
ld [wSoundFXLock],a
; de-flag sfx start
ld a,$FF
ld [hl+],a
dec c
jp nz,.multisfx
jr .newsfxdone
.nonewsfx:
add sp,4
.newsfxdone:
ENDC
;-------------------------------
; instruments and SFX process
;-------------------------------
; channel 1
ld hl,wMusicSFXInstPause1
dec [hl]
jr nz,SSFP_Inst1UpdateDone
; change the rom bank
ld a,[wMusicSFXInstBank1]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicSFXInstBank1+1]
ld [rROMB1],a
ENDC
ld hl,wMusicSFXInstPtr1
ld a,[hl+]
ld d,[hl]
ld e,a
jp SSFP_Inst1Update
SSFP_Inst1UpdateFrameEnd:
; save back
ld hl,wMusicSFXInstPtr1
ld a,e
ld [hl+],a
ld [hl],d
SSFP_Inst1UpdateDone:
;-------------------------------
; channel 2
ld hl,wMusicSFXInstPause2
dec [hl]
jr nz,SSFP_Inst2UpdateDone
; change the rom bank
ld a,[wMusicSFXInstBank2]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicSFXInstBank2+1]
ld [rROMB1],a
ENDC
ld hl,wMusicSFXInstPtr2
ld a,[hl+]
ld d,[hl]
ld e,a
jp SSFP_Inst2Update
SSFP_Inst2UpdateFrameEnd:
; save back
ld hl,wMusicSFXInstPtr2
ld a,e
ld [hl+],a
ld [hl],d
SSFP_Inst2UpdateDone:
;-------------------------------
; channel 3
ld hl,wMusicSFXInstPause3
dec [hl]
jr nz,SSFP_Inst3UpdateDone
; change the rom bank
ld a,[wMusicSFXInstBank3]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicSFXInstBank3+1]
ld [rROMB1],a
ENDC
ld hl,wMusicSFXInstPtr3
ld a,[hl+]
ld d,[hl]
ld e,a
jp SSFP_Inst3Update
SSFP_Inst3UpdateFrameEnd:
; save back
ld hl,wMusicSFXInstPtr3
ld a,e
ld [hl+],a
ld [hl],d
SSFP_Inst3UpdateDone:
;-------------------------------
; channel 4
ld hl,wMusicSFXInstPause4
dec [hl]
jr nz,SSFP_Inst4UpdateDone
; change the rom bank
ld a,[wMusicSFXInstBank4]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicSFXInstBank4+1]
ld [rROMB1],a
ENDC
ld hl,wMusicSFXInstPtr4
ld a,[hl+]
ld d,[hl]
ld e,a
jp SSFP_Inst4Update
SSFP_Inst4UpdateFrameEnd:
; save back
ld hl,wMusicSFXInstPtr4
ld a,e
ld [hl+],a
ld [hl],d
SSFP_Inst4UpdateDone:
;-------------------------------
; process music
ld a,[wMusicPlayState]
or a ; is music playing?
ret z ; no, exit early (nothing to do)
;-------------------------------
; update music effects
;-------------------------------
; channel 1
ld a,[wChannelMusicEffect1]
or a ; is channel 1 playing music fx?
jr z,SSFP_MusicFX_Done1 ; no, skip to the next channel
; check if sound effect active (no music fx then)
ld b,a
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL1,a ; is channel 1 playing fx?
jr z,SSFP_MusicFX_Done1 ; no, skip to the next channel
; call the fx handler
ld a,b
ld hl,SSFP_MusicFX_JumpTable1
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
SSFP_MusicFX_Done1: ; some handlers return here
;-------------------------------
; channel 2
ld a,[wChannelMusicEffect2]
or a ; is channel 2 playing music fx?
jr z,SSFP_MusicFX_Done2 ; no, skip to the next channel
; check if sound effect active (no music fx then)
ld b,a
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL2,a ; is channel 2 playing fx?
jr z,SSFP_MusicFX_Done2 ; no, skip to the next channel
; call the fx handler
ld a,b
ld hl,SSFP_MusicFX_JumpTable2
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
SSFP_MusicFX_Done2: ; some handlers return here
;-------------------------------
; channel 3
ld a,[wChannelMusicEffect3]
or a ; is channel 3 playing music fx?
jr z,SSFP_MusicFX_Done3 ; no, skip to the next channel
; check if sound effect active (no music fx then)
ld b,a
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL3,a ; is channel 3 playing fx?
jr z,SSFP_MusicFX_Done3 ; no, skip to the next channel
; call the fx handler
ld a,b
ld hl,SSFP_MusicFX_JumpTable3
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
SSFP_MusicFX_Done3: ; some handlers return here
;-------------------------------
; update music
; determine if music should update this frame
ld a,[wMusicNextFrame]
dec a
ld [wMusicNextFrame],a
ret nz ; no update needed
; change the rom bank
ld a,[wMusicCommandBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicCommandBank+1]
ld [rROMB1],a
ENDC
; put the music command handler in de
ld hl,wMusicCommandPtr
ld a,[hl+]
ld e,a
ld d,[hl]
;-------------------------------
SSFP_MusicUpdate: ; some handlers return here
ld a,[de]
inc de
ld hl,SSFP_Music_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
;-------------------------------
SSFP_MusicUpdateFrameEnd: ; some handlers return here
; update the ptr for next time
ld hl,wMusicCommandPtr
ld a,e
ld [hl+],a
ld [hl],d
ret
;***************************************************************************************************************************
;* Music_PrepareInst
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Music_PrepareInst",ROM0
ELSE
SECTION "SoundSystem_Music_PrepareInst",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
Music_PrepareInst::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
ld hl,wMusicInstrumentTable
ld a,e
ld [hl+],a
ld a,d
ld [hl+],a ; hl = wMusicInstrumentBank
ASSERT wMusicInstrumentBank == wMusicInstrumentTable+2
ld a,c
ld [hl+],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,b
ld [hl],a
ENDC
ret
;***************************************************************************************************************************
;* Music_Play
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Music_Play",ROM0
ELSE
SECTION "SoundSystem_Music_Play",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
Music_Play::
push bc
call Music_Pause
pop bc
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; change to the rom bank containting the order list
ld a,c
ld [wMusicOrderBank],a
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,b
ld [wMusicOrderBank+1],a
ld [rROMB1],a
ENDC
; set to advance on next frame
ld a,1
ld [wMusicNextFrame],a
; clear misc variables
xor a
ld [wMusicSyncData],a
; clear effects
ld hl,wChannelMusicEffect1
ld [hl+],a
ld [hl+],a
ld [hl+],a
ld [hl],a
; set command pointer to value of first order
ld h,d
ld l,e
ld a,[hl+]
ld [wMusicCommandPtr],a
ld a,[hl+]
ld [wMusicCommandPtr+1],a
ld a,[hl+]
ld [wMusicCommandBank],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[hl]
ld [wMusicCommandBank+1],a
ENDC
; set order pointer to next order
ld a,e
add 4
ld [wMusicOrderPtr],a
ld a,d
adc 0
ld [wMusicOrderPtr+1],a
; turn on the music
ld a,MUSIC_STATE_PLAYING
ld [wMusicPlayState],a
ret
;***************************************************************************************************************************
;* Music_Pause
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Music_Pause",ROM0
ELSE
SECTION "SoundSystem_Music_Pause",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
Music_Pause::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; stop playing
xor a
ld [wMusicPlayState],a
; turn off channels used by music
ld a,[wSoundFXLock]
ld b,a
ld c,AUDHIGH_RESTART
;-------------------------------
; channel 1
bit SFXLOCKB_CHANNEL1,b ; is channel 1 playing music?
jr z,.nomusic1 ; no, skip to the next channel
; clear the channel 1 registers
xor a
ldh [rAUD1ENV],a
ld a,c
ldh [rAUD1HIGH],a
; set the stop command
ld hl,wMusicSFXInstPtr1
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nomusic1:
;-------------------------------
; channel 2
bit SFXLOCKB_CHANNEL2,b ; is channel 2 playing music?
jr z,.nomusic2 ; no, skip to the next channel
; clear the channel 2 registers
xor a
ldh [rAUD2ENV],a
ld a,c
ldh [rAUD2HIGH],a
; set the stop command
ld hl,wMusicSFXInstPtr2
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nomusic2:
;-------------------------------
; channel 3
bit SFXLOCKB_CHANNEL3,b ; is channel 3 playing music?
jr z,.nomusic3 ; no, skip to the next channel
; clear the channel 3 registers
xor a
ldh [rAUD3ENA],a
; set the stop command
ld hl,wMusicSFXInstPtr3
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nomusic3:
;-------------------------------
; channel 4
bit SFXLOCKB_CHANNEL4,b ; is channel 4 playing music?
ret nz ; no, exit
; clear the channel 4 registers
xor a
ldh [rAUD4ENV],a
ld a,c
ldh [rAUD4GO],a
; set the stop command
ld hl,wMusicSFXInstPtr4
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
ret
;***************************************************************************************************************************
;* Music_Resume
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Music_Resume",ROM0
ELSE
SECTION "SoundSystem_Music_Resume",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
Music_Resume::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
ld a,MUSIC_STATE_PLAYING
ld [wMusicPlayState],a
ret
;***************************************************************************************************************************
;* SFX_Prepare
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_Prepare",ROM0
ELSE
SECTION "SoundSystem_SFX_Prepare",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_Prepare::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
ld hl,wSoundFXTable
ld a,e
ld [hl+],a
ld a,d
ld [hl+],a ; hl = wSoundFXBank here
ASSERT wSoundFXBank == wSoundFXTable+2
ld a,c
ld [hl+],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,b
ld [hl],a
ENDC
ret
ENDC
;***************************************************************************************************************************
;* SFX_Play
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_Play",ROM0
ELSE
SECTION "SoundSystem_SFX_Play",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_Play::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; find an open channel, else put it on channel 4
ld hl,wSoundFXStart
ld d,4
.loop:
ld a,[hl]
xor $FF ; is this channel open?
jr z,.found ; yes, store the sfx data
inc hl
dec d
jr nz,.loop
.found:
ld a,b
ld [hl],a
ld a,c
ld [wSoundFXNote],a
ret
ENDC
;***************************************************************************************************************************
;* SFX_Stop
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_Stop",ROM0
ELSE
SECTION "SoundSystem_SFX_Stop",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_Stop::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; turn off channels used by sfx
ld a,[wSoundFXLock]
ld b,a
ld c,AUDHIGH_RESTART
; channel 1
bit SFXLOCKB_CHANNEL1,b ; is channel 1 playing sfx?
jr nz,.nosfx1 ; no, skip to the next channel
xor a
ld [rAUD1ENV],a
ld a,c
ld [rAUD1HIGH],a
ld hl,wMusicSFXInstPtr1
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nosfx1:
; channel 2
bit SFXLOCKB_CHANNEL2,b ; is channel 2 playing sfx?
jr nz,.nosfx2 ; no, skip to the next channel
xor a
ld [rAUD2ENV],a
ld a,c
ld [rAUD2HIGH],a
ld hl,wMusicSFXInstPtr2
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nosfx2:
; channel 3
bit SFXLOCKB_CHANNEL3,b ; is channel 3 playing sfx?
jr nz,.nosfx3 ; no, skip to the next channel
ld a,[wMusicSFXInstChnl3Lock]
or a
jr nz,.nosfx3
ld [rAUD3ENA],a ; a = 0 here
ld hl,wMusicSFXInstPtr3
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nosfx3:
; channel 4
bit SFXLOCKB_CHANNEL4,b ; is channel 4 playing sfx?
ret nz ; no, exit
xor a
ld [rAUD4ENV],a
ld a,c
ld [rAUD4GO],a
ld hl,wMusicSFXInstPtr4
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
ret
ENDC
;***************************************************************************************************************************
;* SFX_LockChannel3
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_LockChannel3",ROM0
ELSE
SECTION "SoundSystem_SFX_LockChannel3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_LockChannel3::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
ld a,1
ld [wMusicSFXInstChnl3Lock],a
ld a,[wSoundFXLock]
and ~(SFXLOCKF_3_LEFT|SFXLOCKF_3_RIGHT)
ld [wSoundFXLock],a
ld hl,wMusicSFXInstPtr1
ld a,LOW(Music_InstrumentEnd)
ld [hl+],a
ld a,HIGH(Music_InstrumentEnd)
ld [hl],a
ret
ENDC
;***************************************************************************************************************************
;* SFX_UnlockChannel3
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_UnlockChannel3",ROM0
ELSE
SECTION "SoundSystem_SFX_UnlockChannel3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_UnlockChannel3::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
xor a
ld [wMusicSFXInstChnl3Lock],a
ld a,[wSoundFXLock]
or SFXLOCKF_3_LEFT|SFXLOCKF_3_RIGHT
ld [wSoundFXLock],a
ret
ENDC
;***************************************************************************************************************************
;* music fx handlers
;***************************************************************************************************************************
; channel 1
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_VIB1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_VIB1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_VIB1:
ld hl,wChannelFreq1
ld a,[hl]
add 1 ; can't use inc a here because of the adc
ld [hl+],a
ldh [rAUD1LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD1HIGH],a
ld hl,wChannelMusicFXParamA1+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done1
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB2
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_VIB2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_VIB2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_VIB2:
ld hl,wChannelFreq1
ld a,[hl]
add $FF ; can't use dec a here because of the adc
ld [hl+],a
ldh [rAUD1LOW],a
ld a,[hl]
adc $FF
and $07
ld [hl],a
ldh [rAUD1HIGH],a
ld hl,wChannelMusicFXParamA1+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done1
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB1
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_TF1:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote1]
ld c,a
ld a,[wChannelMusicFXParamA1]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD1LOW],a
ld a,[hl]
ldh [rAUD1HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ2
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_TF2:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote1]
ld c,a
ld a,[wChannelMusicFXParamA1+1]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD1LOW],a
ld a,[hl]
ldh [rAUD1HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ3
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF3",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_TF3:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote1]
add a
ld l,a
ld a,[hl+]
ldh [rAUD1LOW],a
ld a,[hl]
ldh [rAUD1HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ1
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_PITCHUP",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_PITCHUP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_PITCHUP:
ld hl,wChannelMusicFXParamA1
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done1
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB1
ld b,[hl]
ld hl,wChannelFreq1
ld a,[hl]
add b
ld [hl+],a
ldh [rAUD1LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD1HIGH],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_PITCHDOWN",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_PITCHDOWN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_PITCHDOWN:
ld hl,wChannelMusicFXParamA1
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done1
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB1
ld b,[hl]
ld hl,wChannelFreq1
ld a,[hl]
sub b
ld [hl+],a
ldh [rAUD1LOW],a
ld a,[hl]
sbc 0
and $07
ld [hl],a
ldh [rAUD1HIGH],a
jp SSFP_MusicFX_Done1
; ==========================================================================================================================
; channel 2
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_VIB1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_VIB1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_VIB1:
ld hl,wChannelFreq2
ld a,[hl]
add 1 ; can't use inc a here because of the adc
ld [hl+],a
ldh [rAUD2LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD2HIGH],a
ld hl,wChannelMusicFXParamA2+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done2
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB2
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_VIB2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_VIB2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_VIB2:
ld hl,wChannelFreq2
ld a,[hl]
add $FF ; can't use dec a here because of the adc
ld [hl+],a
ldh [rAUD2LOW],a
ld a,[hl]
adc $FF
and $07
ld [hl],a
ldh [rAUD2HIGH],a
ld hl,wChannelMusicFXParamA2+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done2
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB1
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_TF1:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote2]
ld c,a
ld a,[wChannelMusicFXParamA2]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD2LOW],a
ld a,[hl]
ldh [rAUD2HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ2
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_TF2:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote2]
ld c,a
ld a,[wChannelMusicFXParamA2+1]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD2LOW],a
ld a,[hl]
ldh [rAUD2HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ3
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF3",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_TF3:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote2]
add a
ld l,a
ld a,[hl+]
ldh [rAUD2LOW],a
ld a,[hl]
ldh [rAUD2HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ1
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_PITCHUP",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_PITCHUP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_PITCHUP:
ld hl,wChannelMusicFXParamA2
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done2
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB2
ld b,[hl]
ld hl,wChannelFreq2
ld a,[hl]
add b
ld [hl+],a
ldh [rAUD2LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD2HIGH],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_PITCHDOWN",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_PITCHDOWN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_PITCHDOWN:
ld hl,wChannelMusicFXParamA2
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done2
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB2
ld b,[hl]
ld hl,wChannelFreq2
ld a,[hl]
sub b
ld [hl+],a
ldh [rAUD2LOW],a
ld a,[hl]
sbc 0
and $07
ld [hl],a
ldh [rAUD2HIGH],a
jp SSFP_MusicFX_Done2
; ==========================================================================================================================
; channel 3
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_VIB1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_VIB1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_VIB1:
ld hl,wChannelFreq3
ld a,[hl]
add 1 ; can't use inc a here because of the adc
ld [hl+],a
ldh [rAUD3LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD3HIGH],a
ld hl,wChannelMusicFXParamA3+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done3
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB2
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_VIB2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_VIB2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_VIB2:
ld hl,wChannelFreq3
ld a,[hl]
add $FF ; can't use dec a here because of the adc
ld [hl+],a
ldh [rAUD3LOW],a
ld a,[hl]
adc $FF
and $07
ld [hl],a
ldh [rAUD3HIGH],a
ld hl,wChannelMusicFXParamA3+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done3
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB1
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_TF1:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote3]
ld c,a
ld a,[wChannelMusicFXParamA3]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD3LOW],a
ld a,[hl]
ldh [rAUD3HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ2
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_TF2:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote3]
ld c,a
ld a,[wChannelMusicFXParamA3+1]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD3LOW],a
ld a,[hl]
ldh [rAUD3HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ3
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF3",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_TF3:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote3]
add a
ld l,a
ld a,[hl+]
ldh [rAUD3LOW],a
ld a,[hl]
ldh [rAUD3HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ1
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_PITCHUP",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_PITCHUP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_PITCHUP:
ld hl,wChannelMusicFXParamA3
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done3
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB3
ld b,[hl]
ld hl,wChannelFreq3
ld a,[hl]
add b
ld [hl+],a
ldh [rAUD3LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD3HIGH],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_PITCHDOWN",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_PITCHDOWN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_PITCHDOWN:
ld hl,wChannelMusicFXParamA3
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done3
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB3
ld b,[hl]
ld hl,wChannelFreq3
ld a,[hl]
sub b
ld [hl+],a
ldh [rAUD3LOW],a
ld a,[hl]
sbc 0
and $07
ld [hl],a
ldh [rAUD3HIGH],a
jp SSFP_MusicFX_Done3
;***************************************************************************************************************************
;* music command handlers
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME:
ld a,[de]
inc de
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_PLAYINST/NOTE",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_PLAYINST/NOTE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_PLAYINSTNOTE:
ld a,[de]
inc de
ld l,a
ld a,[de]
and $03
ld b,HIGH(wChannelMusicNote1)
add LOW(wChannelMusicNote1)
ld c,a
ld a,l
ld [bc],a
ld a,l
add a
ld l,a
ld h,HIGH(FrequencyTable)
ASSERT LOW(FrequencyTable) == 0
ld b,HIGH(wChannelMusicFreq1)
ld a,[de]
and $03
add a
add LOW(wChannelMusicFreq1)
ld c,a
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a ; store note freq
; fall-through
; --------------------------------------------------------------------------------------------------------------------------
SSFP_MUSIC_CMD_PLAYINST:
ld a,[de]
inc de
ld b,a ;save
and $FC
srl a
ld c,a
ld hl,wMusicInstrumentTable
ld a,[hl+]
add c
ld c,a
ld a,[hl]
adc 0
ld h,a
ld l,c
; check for lock
ld a,[wSoundFXLock]
ld c,a
ld a,b ;restore
and $03
jp z,.playchannel1
dec a
jr z,.playchannel2
dec a
jr z,.playchannel3
.playchannel4:
bit SFXLOCKB_CHANNEL4,c
jp z,.channeldone
; change the rom bank
ld a,[wMusicInstrumentBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [rROMB1],a
ENDC
ld a,[hl+]
ld [wMusicSFXInstPtr4],a
ld a,[hl]
ld [wMusicSFXInstPtr4+1],a
ld a,1
ld [wMusicSFXInstPause4],a
; update the rom bank
ld a,[wMusicInstrumentBank]
ld [wMusicSFXInstBank4],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [wMusicSFXInstBank4+1],a
ENDC
ld hl,wChannelMusicFreq4
ld bc,wChannelFreq4
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jr .channeldone
.playchannel2:
bit SFXLOCKB_CHANNEL2,c
jr z,.channeldone
; change the rom bank
ld a,[wMusicInstrumentBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [rROMB1],a
ENDC
ld a,[hl+]
ld [wMusicSFXInstPtr2],a
ld a,[hl]
ld [wMusicSFXInstPtr2+1],a
ld a,1
ld [wMusicSFXInstPause2],a
; update the rom bank
ld a,[wMusicInstrumentBank]
ld [wMusicSFXInstBank2],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [wMusicSFXInstBank2+1],a
ENDC
ld hl,wChannelMusicFreq2
ld bc,wChannelFreq2
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jr .channeldone
.playchannel3:
bit SFXLOCKB_CHANNEL3,c
jr z,.channeldone
; change the rom bank
ld a,[wMusicInstrumentBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [rROMB1],a
ENDC
ld a,[hl+]
ld [wMusicSFXInstPtr3],a
ld a,[hl]
ld [wMusicSFXInstPtr3+1],a
ld a,1
ld [wMusicSFXInstPause3],a
; update the rom bank
ld a,[wMusicInstrumentBank]
ld [wMusicSFXInstBank3],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [wMusicSFXInstBank3+1],a
ENDC
ld hl,wChannelMusicFreq3
ld bc,wChannelFreq3
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jr .channeldone
.playchannel1:
bit SFXLOCKB_CHANNEL1,c
jr z,.channeldone
; change the rom bank
ld a,[wMusicInstrumentBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [rROMB1],a
ENDC
ld a,[hl+]
ld [wMusicSFXInstPtr1],a
ld a,[hl]
ld [wMusicSFXInstPtr1+1],a
ld a,1
ld [wMusicSFXInstPause1],a
; update the rom bank
ld a,[wMusicInstrumentBank]
ld [wMusicSFXInstBank1],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [wMusicSFXInstBank1+1],a
ENDC
ld hl,wChannelMusicFreq1
ld bc,wChannelFreq1
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
.channeldone:
; change the rom bank
ld a,[wMusicCommandBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicCommandBank+1]
ld [rROMB1],a
ENDC
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_SETVOLUME",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_SETVOLUME",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_SETVOLUME:
ld a,[de]
inc de
ld c,a
and $03
add LOW(wChannelVol1)
ld l,a
ld a,HIGH(wChannelVol1)
adc 0
ld h,a
ld a,c
and $F0
ld [hl],a
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_VIBRATO_ON",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_VIBRATO_ON",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_VIBRATO_ON:
ld a,[de]
ld c,a
and $03
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_VIB1
sub LOW(wChannelMusicEffect1)
add a
add LOW(wChannelMusicFXParamA1)
ld c,a
ld b,HIGH(wChannelMusicFXParamA1)
ld a,[de]
swap a
and $0F
ld [bc],a ; store max
inc bc
ld l,a
and $01
srl l
or l
ld [bc],a ; store max
inc de
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_EFFECT_OFF",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_EFFECT_OFF",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_EFFECT_OFF:
ld a,[de]
inc de
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_NONE
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_SYNCFLAG",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_SYNCFLAG",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_SYNCFLAG:
ld a,[de]
inc de
ld [wMusicSyncData],a
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFPATTERN",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFPATTERN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFPATTERN:
; change the rom bank
ld a,[wMusicOrderBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicOrderBank+1]
ld [rROMB1],a
ENDC
ld hl,wMusicOrderPtr
ld a,[hl+]
ld h,[hl]
ld l,a
add 4
ld [wMusicOrderPtr],a
ld a,h
adc 0
ld [wMusicOrderPtr+1],a
ld a,[hl+]
ld e,a
ld a,[hl+]
ld d,a
; change and update the rom bank
ld a,[hl+]
ld [wMusicCommandBank],a
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[hl]
ld [wMusicCommandBank+1],a
ld [rROMB1],a
ENDC
ld a,1
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_GOTOORDER",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_GOTOORDER",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_GOTOORDER:
ld a,[wMusicOrderPtr]
ld c,a
ld a,[wMusicOrderPtr+1]
ld b,a
ld a,[de]
inc de
ld l,a
ld a,[de]
inc de
ld h,a
add hl,bc
ld a,h
ld [wMusicOrderPtr+1],a
ld a,l
ld [wMusicOrderPtr],a
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFSONG",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFSONG",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFSONG:
xor a
ld [wMusicPlayState],a
dec de
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_SETSPEED",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_SETSPEED",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_SETSPEED:
ld a,[de]
inc de
ld [wMusicSpeed],a
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME1X",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME1X",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME1X:
ld a,[wMusicSpeed]
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME2X",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME2X",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME2X:
ld a,[wMusicSpeed]
add a
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME3X",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME3X",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME3X:
ld a,[wMusicSpeed]
ld c,a
add a
add c
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME4X",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME4X",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME4X:
ld a,[wMusicSpeed]
add a
add a
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_PITCHUPDOWN_ON",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_PITCHUPDOWN_ON",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_PITCHUP_ON:
ld a,[de]
and $03
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_PITCHUP
jr SSFP_MUSIC_CMD_PITCHUP_reuse
SSFP_MUSIC_CMD_PITCHDOWN_ON:
ld a,[de]
and $03
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_PITCHDOWN
SSFP_MUSIC_CMD_PITCHUP_reuse:
sub LOW(wChannelMusicEffect1)
add a
add LOW(wChannelMusicFXParamA1)
ld c,a
ld b,HIGH(wChannelMusicFXParamA1)
ld a,[de]
swap a
and $0F
ld [bc],a ; store max
inc c
ld [bc],a ; store max
ld a,7
add c
ld c,a
ld a,[de]
srl a
srl a
and $03
inc a
ld [bc],a
inc de
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_TRIPLENOTE_ON",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_TRIPLENOTE_ON",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_TRIPLENOTE_ON:
ld a,[de]
inc de
; note
ld l,a
ld b,HIGH(wChannelMusicFXParamA1)
ld a,[de]
and $03
add a
add LOW(wChannelMusicFXParamA1)
ld c,a
ld a,l
swap a
and $0F
ld [bc],a
inc c
ld a,l
and $0F
ld [bc],a ; store note freq
ld a,[de]
inc de
ld c,a
and $03
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_TRIPLEFREQ1
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_EXTRA",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_EXTRA",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_EXTRA:
ld a,[de]
inc de
ld c,a
and $03
jr z,SSFP_MUSIC_CMD_EXTRA_chnl1
dec a
jr z,SSFP_MUSIC_CMD_EXTRA_chnl2
dec a
jr z,SSFP_MUSIC_CMD_EXTRA_chnl3
; chnl 4
jp SSFP_MusicUpdate
SSFP_MUSIC_CMD_EXTRA_chnl1:
ld a,c
and $FC
ldh [rAUD1LEN],a
jp SSFP_MusicUpdate
SSFP_MUSIC_CMD_EXTRA_chnl2:
ld a,c
and $FC
ldh [rAUD2LEN],a
jp SSFP_MusicUpdate
SSFP_MUSIC_CMD_EXTRA_chnl3:
ld a,[wMusicSFXInstChnl3Lock]
or a
jp nz,SSFP_MusicUpdate
ld a,c
and $FC
ldh [rAUD3LEVEL],a
jp SSFP_MusicUpdate
;***************************************************************************************************************************
;* instrument command handlers
;***************************************************************************************************************************
; channel 1
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1Update",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1Update",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1Update:
ld a,[de]
inc de
ld hl,SSFP_Inst1_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_FRAMEEND",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_FRAMEEND",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_FRAMEEND:
ld a,[de]
inc de
ld [wMusicSFXInstPause1],a ; load new pause
jp SSFP_Inst1UpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_START",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_START",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_START:
ld a,[wChannelFreq1]
ldh [rAUD1LOW],a
ld a,[de]
inc de
ld hl,wChannelFreq1+1
or [hl]
ldh [rAUD1HIGH],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_END",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_END",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_END:
dec de ; rewind counter
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL1,a
jp nz,SSFP_Inst1UpdateFrameEnd
or SFXLOCKF_1_LEFT|SFXLOCKF_1_RIGHT
ld [wSoundFXLock],a
; restore music freq
ld hl,wChannelMusicFreq1
ld bc,wChannelFreq1
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jp SSFP_Inst1UpdateFrameEnd ; do nothing else (counter loaded with 0 (256) frame wait)
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_ENVELOPE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_ENVELOPE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_ENVELOPE:
ld a,[de]
inc de
ld hl,wChannelVol1
or [hl]
ldh [rAUD1ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter1],a
ENDC
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_STARTFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_STARTFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_STARTFREQ:
ld a,[de]
inc de
ldh [rAUD1LOW],a
ld a,[de]
inc de
ldh [rAUD1HIGH],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_ENVELOPEVOL",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_ENVELOPEVOL",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_ENVELOPEVOL:
ld a,[de]
inc de
ldh [rAUD1ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter1],a
ENDC
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_STARTENVVOLFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_STARTENVVOLFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_STARTENVVOLFREQ:
ld a,[de]
inc de
ldh [rAUD1ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter1],a
ENDC
ld a,[de]
inc de
ldh [rAUD1LOW],a
ld a,[de]
inc de
ldh [rAUD1HIGH],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_PANMID",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_PANMID",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_PANMID:
ld hl,wMusicSFXPanning
ld a,AUDTERM_1_LEFT|AUDTERM_1_RIGHT
or [hl]
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_PANRIGHT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_PANRIGHT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_PANRIGHT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_1_RIGHT
or [hl]
and ~AUDTERM_1_LEFT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_PANLEFT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_PANLEFT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_PANLEFT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_1_LEFT
or [hl]
and ~AUDTERM_1_RIGHT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_PULSELEN",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_PULSELEN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_PULSELEN:
ld a,[de]
inc de
ldh [rAUD1LEN],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_SWEEP",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_SWEEP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_SWEEP:
ld a,[de]
inc de
ldh [rAUD1SWEEP],a
jp SSFP_Inst1Update
; ==========================================================================================================================
; channel 2
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2Update",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2Update",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2Update:
ld a,[de]
inc de
ld hl,SSFP_Inst2_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_FRAMEEND",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_FRAMEEND",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_FRAMEEND:
ld a,[de]
inc de
ld [wMusicSFXInstPause2],a ; load new pause
jp SSFP_Inst2UpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_START",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_START",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_START:
ld a,[wChannelFreq2]
ldh [rAUD2LOW],a
ld a,[de]
inc de
ld hl,wChannelFreq2+1
or [hl]
ldh [rAUD2HIGH],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_END",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_END",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_END:
dec de ; rewind counter
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL2,a
jp nz,SSFP_Inst2UpdateFrameEnd
or SFXLOCKF_2_LEFT|SFXLOCKF_2_RIGHT
ld [wSoundFXLock],a
; restore music freq
ld hl,wChannelMusicFreq2
ld bc,wChannelFreq2
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jp SSFP_Inst2UpdateFrameEnd ; do nothing else (counter loaded with 0 (256) frame wait)
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_ENVELOPE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_ENVELOPE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_ENVELOPE:
ld a,[de]
inc de
ld hl,wChannelVol2
or [hl]
ldh [rAUD2ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter2],a
ENDC
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_STARTFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_STARTFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_STARTFREQ:
ld a,[de]
inc de
ldh [rAUD2LOW],a
ld a,[de]
inc de
ldh [rAUD2HIGH],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_ENVELOPEVOL",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_ENVELOPEVOL",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_ENVELOPEVOL:
ld a,[de]
inc de
ldh [rAUD2ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter2],a
ENDC
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_STARTENVVOLFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_STARTENVVOLFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_STARTENVVOLFREQ:
ld a,[de]
inc de
ldh [rAUD2ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter2],a
ENDC
ld a,[de]
inc de
ldh [rAUD2LOW],a
ld a,[de]
inc de
ldh [rAUD2HIGH],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_PANMID",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_PANMID",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_PANMID:
ld hl,wMusicSFXPanning
ld a,AUDTERM_2_LEFT|AUDTERM_2_RIGHT
or [hl]
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_PANRIGHT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_PANRIGHT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_PANRIGHT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_2_RIGHT
or [hl]
and ~AUDTERM_2_LEFT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_PANLEFT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_PANLEFT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_PANLEFT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_2_LEFT
or [hl]
and ~AUDTERM_2_RIGHT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_PULSELEN",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_PULSELEN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_PULSELEN:
ld a,[de]
inc de
ldh [rAUD2LEN],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_SWEEP",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_SWEEP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_SWEEP:
inc de ; ignore
jp SSFP_Inst2Update
; ==========================================================================================================================
; channel 3
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3Update",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3Update",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3Update:
ld a,[de]
inc de
ld hl,SSFP_Inst3_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_FRAMEEND",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_FRAMEEND",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_FRAMEEND:
ld a,[de]
inc de
ld [wMusicSFXInstPause3],a ; load new pause
jp SSFP_Inst3UpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_START",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_START",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_START:
ld a,[wChannelFreq3]
ldh [rAUD3LOW],a
ld a,AUD3ENA_ON
ldh [rAUD3ENA],a
ld a,[de]
inc de
ld hl,wChannelFreq3+1
or [hl]
ldh [rAUD3HIGH],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_END",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_END",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_END:
dec de ; rewind counter
xor a
ldh [rAUD3ENA],a
IF (SOUNDSYSTEM_ENABLE_VUM)
ld [wVUMeter3],a
ENDC
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL3,a
jp nz,SSFP_Inst3UpdateFrameEnd
or SFXLOCKF_3_LEFT|SFXLOCKF_3_RIGHT
ld [wSoundFXLock],a
; restore music freq
ld hl,wChannelMusicFreq3
ld bc,wChannelFreq3
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jp SSFP_Inst3UpdateFrameEnd ; do nothing else (counter loaded with 0 (256) frame wait)
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_ENVELOPE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_ENVELOPE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_ENVELOPE:
ld a,[de]
inc de
ld hl,wChannelVol3
or [hl]
ldh [rAUD3LEVEL],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
sla a
and $0C
dec a
xor $0C
ld [wVUMeter3],a
ENDC
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_STARTFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_STARTFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_STARTFREQ:
ld a,[de]
inc de
ldh [rAUD3LOW],a
ld a,AUD3ENA_ON
ldh [rAUD3ENA],a
ld a,[de]
inc de
ldh [rAUD3HIGH],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_ENVELOPEVOL",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_ENVELOPEVOL",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_ENVELOPEVOL:
ld a,[de]
inc de
ldh [rAUD3LEVEL],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
sla a
and $0C
dec a
xor $0C
ld [wVUMeter3],a
ENDC
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_STARTENVVOLFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_STARTENVVOLFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_STARTENVVOLFREQ:
ld a,[de]
inc de
ldh [rAUD3LEVEL],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
sla a
and $0C
dec a
xor $0C
ld [wVUMeter3],a
ENDC
ld a,[de]
inc de
ldh [rAUD3LOW],a
ld a,AUD3ENA_ON
ldh [rAUD3ENA],a
ld a,[de]
inc de
ldh [rAUD3HIGH],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_PANMID",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_PANMID",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_PANMID:
ld hl,wMusicSFXPanning
ld a,AUDTERM_3_LEFT|AUDTERM_3_RIGHT
or [hl]
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_PANRIGHT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_PANRIGHT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_PANRIGHT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_3_RIGHT
or [hl]
and ~AUDTERM_3_LEFT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_PANLEFT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_PANLEFT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_PANLEFT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_3_LEFT
or [hl]
and ~AUDTERM_3_RIGHT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_WAVE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_WAVE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_WAVE:
ld hl,wMusicSFXInstChnl3WaveID
ld a,[de]
inc de
cp 255
jr z,.loadlong
cp [hl]
jr z,.skip
.loadlong:
ld hl,_AUD3WAVERAM
xor a
ldh [rAUD3ENA],a
REPT 16
ld a,[de]
inc de
ld [hl+],a
ENDR
jp SSFP_Inst3Update
.skip:
ld a,e
add 16
ld e,a
ld a,d
adc 0
ld d,a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_LEN",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_LEN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_LEN:
ld a,[de]
inc de
ldh [rAUD3LEN],a
jp SSFP_Inst3Update
; ==========================================================================================================================
; channel 4
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4Update",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4Update",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4Update:
ld a,[de]
inc de
ld hl,SSFP_Inst4_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_FRAMEEND",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_FRAMEEND",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_FRAMEEND:
ld a,[de]
inc de
ld [wMusicSFXInstPause4],a ; load new pause
jp SSFP_Inst4UpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_START",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_START",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_START:
ld a,[de]
inc de
ldh [rAUD4GO],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_END",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_END",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_END:
dec de ; rewind counter
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL4,a
jp nz,SSFP_Inst4UpdateFrameEnd
or SFXLOCKF_4_LEFT|SFXLOCKF_4_RIGHT
ld [wSoundFXLock],a
; restore music freq
ld hl,wChannelMusicFreq4
ld bc,wChannelFreq4
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jp SSFP_Inst4UpdateFrameEnd ; do nothing else (counter loaded with 0 (256) frame wait)
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_ENVELOPE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_ENVELOPE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_ENVELOPE:
ld a,[de]
inc de
ld hl,wChannelVol4
or [hl]
ldh [rAUD4ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter4],a
ENDC
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_STARTFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_STARTFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_STARTFREQ:
ld a,[de]
inc de
ldh [rAUD4POLY],a
ld a,[de]
inc de
ldh [rAUD4GO],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_ENVELOPEVOL",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_ENVELOPEVOL",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_ENVELOPEVOL:
ld a,[de]
inc de
ldh [rAUD4ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter4],a
ENDC
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_STARTENVVOLFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_STARTENVVOLFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_STARTENVVOLFREQ:
ld a,[de]
inc de
ldh [rAUD4ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter4],a
ENDC
ld a,[de]
inc de
ldh [rAUD4POLY],a
ld a,[de]
inc de
ldh [rAUD4GO],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_PANMID",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_PANMID",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_PANMID:
ld hl,wMusicSFXPanning
ld a,AUDTERM_4_LEFT|AUDTERM_4_RIGHT
or [hl]
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_PANRIGHT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_PANRIGHT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_PANRIGHT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_4_RIGHT
or [hl]
and AUDTERM_4_LEFT ^ $FF ; same as ~, but ~ here triggers a false warning
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_PANLEFT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_PANLEFT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_PANLEFT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_4_LEFT
or [hl]
and ~AUDTERM_4_RIGHT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_POLYLOAD",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_POLYLOAD",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_POLYLOAD:
ld a,[de]
inc de
ldh [rAUD4POLY],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_LEN",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_LEN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_LEN:
ld a,[de]
inc de
ldh [rAUD4LEN],a
jp SSFP_Inst4Update
;***************************************************************************************************************************
;* tables of fx/command handlers
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Music FX Table 1",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Music FX Table 1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_MusicFX_JumpTable1:
DW $0000 ; dummy
DW SSFP_MUSIC_FX1_VIB1
DW SSFP_MUSIC_FX1_VIB2
DW SSFP_MUSIC_FX1_TF1
DW SSFP_MUSIC_FX1_TF2
DW SSFP_MUSIC_FX1_TF3
DW SSFP_MUSIC_FX1_PITCHUP
DW SSFP_MUSIC_FX1_PITCHDOWN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Music FX Table 2",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Music FX Table 2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_MusicFX_JumpTable2:
DW $0000 ; dummy
DW SSFP_MUSIC_FX2_VIB1
DW SSFP_MUSIC_FX2_VIB2
DW SSFP_MUSIC_FX2_TF1
DW SSFP_MUSIC_FX2_TF2
DW SSFP_MUSIC_FX2_TF3
DW SSFP_MUSIC_FX2_PITCHUP
DW SSFP_MUSIC_FX2_PITCHDOWN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Music FX Table 3",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Music FX Table 3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_MusicFX_JumpTable3:
DW $0000 ; dummy
DW SSFP_MUSIC_FX3_VIB1
DW SSFP_MUSIC_FX3_VIB2
DW SSFP_MUSIC_FX3_TF1
DW SSFP_MUSIC_FX3_TF2
DW SSFP_MUSIC_FX3_TF3
DW SSFP_MUSIC_FX3_PITCHUP
DW SSFP_MUSIC_FX3_PITCHDOWN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Music Table",ROM0,ALIGN[6]
ELSE
SECTION "SoundSystem Music Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[6]
ENDC
SSFP_Music_JumpTable:
DW SSFP_MUSIC_CMD_ENDOFFRAME
DW SSFP_MUSIC_CMD_PLAYINSTNOTE
DW SSFP_MUSIC_CMD_PLAYINST
DW SSFP_MUSIC_CMD_SETVOLUME
DW SSFP_MUSIC_CMD_VIBRATO_ON
DW SSFP_MUSIC_CMD_EFFECT_OFF
DW SSFP_MUSIC_CMD_SYNCFLAG
DW SSFP_MUSIC_CMD_ENDOFPATTERN
DW SSFP_MUSIC_CMD_GOTOORDER
DW SSFP_MUSIC_CMD_ENDOFSONG
DW SSFP_MUSIC_CMD_SETSPEED
DW SSFP_MUSIC_CMD_ENDOFFRAME1X
DW SSFP_MUSIC_CMD_ENDOFFRAME2X
DW SSFP_MUSIC_CMD_ENDOFFRAME3X
DW SSFP_MUSIC_CMD_ENDOFFRAME4X
DW SSFP_MUSIC_CMD_PITCHUP_ON
DW SSFP_MUSIC_CMD_PITCHDOWN_ON
DW SSFP_MUSIC_CMD_TRIPLENOTE_ON
DW SSFP_MUSIC_CMD_EXTRA
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Inst1 Table",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Inst1 Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_Inst1_JumpTable: ; common commands
DW SSFP_Inst1_CMD_FRAMEEND
DW SSFP_Inst1_CMD_START
DW SSFP_Inst1_CMD_END
DW SSFP_Inst1_CMD_ENVELOPE
DW SSFP_Inst1_CMD_STARTFREQ
DW SSFP_Inst1_CMD_ENVELOPEVOL
DW SSFP_Inst1_CMD_STARTENVVOLFREQ
DW SSFP_Inst1_CMD_PANMID
DW SSFP_Inst1_CMD_PANRIGHT
DW SSFP_Inst1_CMD_PANLEFT
; specific commands
DW SSFP_Inst1_CMD_PULSELEN
DW SSFP_Inst1_CMD_SWEEP
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Inst2 Table",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Inst2 Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_Inst2_JumpTable: ; common commands
DW SSFP_Inst2_CMD_FRAMEEND
DW SSFP_Inst2_CMD_START
DW SSFP_Inst2_CMD_END
DW SSFP_Inst2_CMD_ENVELOPE
DW SSFP_Inst2_CMD_STARTFREQ
DW SSFP_Inst2_CMD_ENVELOPEVOL
DW SSFP_Inst2_CMD_STARTENVVOLFREQ
DW SSFP_Inst2_CMD_PANMID
DW SSFP_Inst2_CMD_PANRIGHT
DW SSFP_Inst2_CMD_PANLEFT
; specific commands
DW SSFP_Inst2_CMD_PULSELEN
DW SSFP_Inst2_CMD_SWEEP
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Inst3 Table",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Inst3 Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_Inst3_JumpTable: ; common commands
DW SSFP_Inst3_CMD_FRAMEEND
DW SSFP_Inst3_CMD_START
DW SSFP_Inst3_CMD_END
DW SSFP_Inst3_CMD_ENVELOPEVOL ; prevent crash
DW SSFP_Inst3_CMD_STARTFREQ
DW SSFP_Inst3_CMD_ENVELOPEVOL
DW SSFP_Inst3_CMD_STARTENVVOLFREQ
DW SSFP_Inst3_CMD_PANMID
DW SSFP_Inst3_CMD_PANRIGHT
DW SSFP_Inst3_CMD_PANLEFT
; specific commands
DW SSFP_Inst3_CMD_WAVE
DW SSFP_Inst3_CMD_LEN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Inst4 Table",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Inst4 Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_Inst4_JumpTable: ; common commands
DW SSFP_Inst4_CMD_FRAMEEND
DW SSFP_Inst4_CMD_START
DW SSFP_Inst4_CMD_END
DW SSFP_Inst4_CMD_ENVELOPE
DW SSFP_Inst4_CMD_STARTFREQ
DW SSFP_Inst4_CMD_ENVELOPEVOL
DW SSFP_Inst4_CMD_STARTENVVOLFREQ
DW SSFP_Inst4_CMD_PANMID
DW SSFP_Inst4_CMD_PANRIGHT
DW SSFP_Inst4_CMD_PANLEFT
; specific commands
DW SSFP_Inst4_CMD_POLYLOAD
DW SSFP_Inst4_CMD_LEN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Frequency Table",ROM0,ALIGN[8]
ELSE
SECTION "SoundSystem Frequency Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[8]
ENDC
FrequencyTable:
; C C#/Db D D#/Eb E F F#/Gb G G#/Ab A A#/Bb B
DW $0020,$0091,$00FC,$0160,$01C0,$0219,$026E,$02BE,$030a,$0351,$0394,$03D4 ; octave 2
DW $0410,$0448,$047E,$04B0,$04E0,$050D,$0537,$055F,$0585,$05A8,$05Ca,$05EA ; octave 3
DW $0608,$0624,$063F,$0658,$0670,$0686,$069C,$06B0,$06C2,$06D4,$06E5,$06F5 ; octave 4
DW $0704,$0712,$071F,$072C,$0738,$0743,$074E,$0758,$0761,$076a,$0773,$077A ; octave 5
DW $0782,$0789,$0790,$0796,$079C,$07A2,$07A7,$07AC,$07B1,$07B5,$07B9,$07BD ; octave 6
DW $07C1,$07C5,$07C8,$07CB,$07CE,$07D1,$07D3,$07D6,$07D8,$07DB,$07DD,$07DF ; octave 7
| 23.830239
| 124
| 0.610174
|
6c560f38447223ccc3f345c57c26a1dda6b9a74b
| 104
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fsdiv.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fsdiv.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fsdiv.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC ___fsdiv
EXTERN cm48_sdccixp_dsdiv
defc ___fsdiv = cm48_sdccixp_dsdiv
| 11.555556
| 34
| 0.855769
|
a4738e6c6e5a66d960612663867d30d4fa7830f5
| 1,324
|
asm
|
Assembly
|
sw/552tests/rand_simple/t_2_stu.asm
|
JPShen-UWM/ThreadKraken
|
849c510531f28e36d3469535737b2120bd774935
|
[
"MIT"
] | 1
|
2022-02-15T16:03:25.000Z
|
2022-02-15T16:03:25.000Z
|
sw/552tests/rand_simple/t_2_stu.asm
|
JPShen-UWM/ThreadKraken
|
849c510531f28e36d3469535737b2120bd774935
|
[
"MIT"
] | null | null | null |
sw/552tests/rand_simple/t_2_stu.asm
|
JPShen-UWM/ThreadKraken
|
849c510531f28e36d3469535737b2120bd774935
|
[
"MIT"
] | null | null | null |
// seed 2
lbi r0, 38 // icount 0
slbi r0, 147 // icount 1
lbi r1, 211 // icount 2
slbi r1, 113 // icount 3
lbi r2, 182 // icount 4
slbi r2, 149 // icount 5
lbi r3, 41 // icount 6
slbi r3, 110 // icount 7
lbi r4, 157 // icount 8
slbi r4, 155 // icount 9
lbi r5, 65 // icount 10
slbi r5, 224 // icount 11
lbi r6, 194 // icount 12
slbi r6, 116 // icount 13
lbi r7, 101 // icount 14
slbi r7, 32 // icount 15
andni r4, r4, 1 // icount 16
stu r3, r4, 12 // icount 17
andni r3, r3, 1 // icount 18
stu r6, r3, 14 // icount 19
andni r6, r6, 1 // icount 20
stu r7, r6, 14 // icount 21
andni r2, r2, 1 // icount 22
stu r2, r2, 4 // icount 23
andni r7, r7, 1 // icount 24
stu r6, r7, 8 // icount 25
andni r2, r2, 1 // icount 26
stu r3, r2, 6 // icount 27
andni r0, r0, 1 // icount 28
stu r2, r0, 6 // icount 29
andni r0, r0, 1 // icount 30
stu r6, r0, 12 // icount 31
andni r4, r4, 1 // icount 32
stu r5, r4, 8 // icount 33
andni r2, r2, 1 // icount 34
stu r1, r2, 6 // icount 35
andni r4, r4, 1 // icount 36
stu r4, r4, 0 // icount 37
andni r4, r4, 1 // icount 38
stu r6, r4, 10 // icount 39
andni r1, r1, 1 // icount 40
stu r5, r1, 2 // icount 41
andni r2, r2, 1 // icount 42
stu r2, r2, 2 // icount 43
andni r6, r6, 1 // icount 44
stu r6, r6, 14 // icount 45
andni r0, r0, 1 // icount 46
stu r7, r0, 6 // icount 47
halt // icount 48
| 25.960784
| 28
| 0.617069
|
e6939f4d6e5408358417dcb765743b6d7d5dbf48
| 503
|
asm
|
Assembly
|
libsrc/z88/savescr.asm
|
andydansby/z88dk-mk2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | 1
|
2020-09-15T08:35:49.000Z
|
2020-09-15T08:35:49.000Z
|
libsrc/z88/savescr.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
libsrc/z88/savescr.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
;
; Small C+ Runtime Library
;
; Z88 Application functions
;
; *** Z88 SPECIFIC FUNCTION - probably no equiv for your machine! ***
;
; 11/4/99
;
; Save User Screen
;
; int savescr(void)
;
; Returns 0 on failure, or handle on success
XLIB savescr
INCLUDE "saverst.def"
.savescr
ld a,SR_SUS
call_oz(os_sr)
ld hl,0
ret c
push ix
pop hl
ret
| 16.766667
| 75
| 0.471173
|
e252a85b4d6aa6ae103e4cf9a1ce0dc421ee5e71
| 208
|
asm
|
Assembly
|
unordnung_auch_assembler/asm/attiny13/blinker-16bit-Counter.asm
|
no-go/Blink_atmega328p
|
a81e41906c4a6d843a7fb87962288a0894105bd7
|
[
"Unlicense"
] | null | null | null |
unordnung_auch_assembler/asm/attiny13/blinker-16bit-Counter.asm
|
no-go/Blink_atmega328p
|
a81e41906c4a6d843a7fb87962288a0894105bd7
|
[
"Unlicense"
] | null | null | null |
unordnung_auch_assembler/asm/attiny13/blinker-16bit-Counter.asm
|
no-go/Blink_atmega328p
|
a81e41906c4a6d843a7fb87962288a0894105bd7
|
[
"Unlicense"
] | null | null | null |
.include "myTiny13.h"
Main:
sbi DDRB, 4
Bittoggle:
ldi A, 0b00010000
in B, PINB
eor A, B
out PORTB, A
ldi XH, 255 ; X := 128k
ldi XL, 255
Loop:
sbiw X, 1 ; X = X-1
breq Bittoggle
rjmp Loop
| 12.235294
| 25
| 0.610577
|
c877e13c72f69b3f67cbf2e2c8f6184d9018f227
| 1,836
|
asm
|
Assembly
|
old/arithmetic/fpmacros.asm
|
paulscottrobson/mega65-basic
|
33c87e8b67f6c39b47286264976f6a63ab2673d6
|
[
"MIT"
] | null | null | null |
old/arithmetic/fpmacros.asm
|
paulscottrobson/mega65-basic
|
33c87e8b67f6c39b47286264976f6a63ab2673d6
|
[
"MIT"
] | null | null | null |
old/arithmetic/fpmacros.asm
|
paulscottrobson/mega65-basic
|
33c87e8b67f6c39b47286264976f6a63ab2673d6
|
[
"MIT"
] | null | null | null |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : fpmacros.asm
; Purpose : Floating Point Macros
; Date : 11th August 2019
; Author : Paul Robson (paul@robsons.org.uk)
;
; *******************************************************************************************
; *******************************************************************************************
iszero32 .macro
lda \1 ; check if \1 zero
ora \1+1
ora \1+2
ora \1+3
.endm
add32 .macro ; add \2 to \1
clc
lda \1+0
adc \2+0
sta \1+0
lda \1+1
adc \2+1
sta \1+1
lda \1+2
adc \2+2
sta \1+2
lda \1+3
adc \2+3
sta \1+3
.endm
sub32 .macro ; subtract \2 from \1
sec
lda \1+0
sbc \2+0
sta \1+0
lda \1+1
sbc \2+1
sta \1+1
lda \1+2
sbc \2+2
sta \1+2
lda \1+3
sbc \2+3
sta \1+3
.endm
asl32 .macro ; asl32 \1
asl 0+\1
rol 1+\1
rol 2+\1
rol 3+\1
.endm
asl32x .macro ; asl32 \1,x
asl 0+\1,x
rol 1+\1,x
rol 2+\1,x
rol 3+\1,x
.endm
lsr32 .macro ; lsr32 \1
lsr 3+\1
ror 2+\1
ror 1+\1
ror 0+\1
.endm
lsr32x .macro ; lsr32 \1,x
lsr 3+\1,x
ror 2+\1,x
ror 1+\1,x
ror 0+\1,x
.endm
ror32 .macro ; ror32 \1
ror 3+\1
ror 2+\1
ror 1+\1
ror 0+\1
.endm
ror32x .macro ; ror32 \1,x
ror 3+\1,x
ror 2+\1,x
ror 1+\1,x
ror 0+\1,x
.endm
fpush .macro ; push 8 byte value on 6502 stack
ldx #0
_F1: lda \1,x
pha
inx
cpx #8
bne _F1
.endm
fpull .macro ; pull 8 byte value off 6502 stack.
ldx #7
_F2: pla
sta \1,x
dex
bpl _F2
.endm
| 16.540541
| 93
| 0.382898
|
b0969432daa42bf1bd52531e0dbcd553057dcf20
| 2,176
|
asm
|
Assembly
|
core/x86/RC4.asm
|
mshafiqsb/Amber
|
1117babcd42c5d4c8a5e33f39d84dd1ce15933a8
|
[
"MIT"
] | null | null | null |
core/x86/RC4.asm
|
mshafiqsb/Amber
|
1117babcd42c5d4c8a5e33f39d84dd1ce15933a8
|
[
"MIT"
] | null | null | null |
core/x86/RC4.asm
|
mshafiqsb/Amber
|
1117babcd42c5d4c8a5e33f39d84dd1ce15933a8
|
[
"MIT"
] | null | null | null |
;-----------------------------------------------------------------------------;
; Authors: Michael Schierl, Ege Balcı
; Version: 2.0 (02 December 2017)
;-----------------------------------------------------------------------------;
[BITS 32]
; Input: EBP - Data to decode
; ESI - Key
; ECX - Data size
; EDI - Scratch place for S-box
; Direction flag has to be cleared
; Output: None. Data is decoded in place.
; Clobbers: EAX, EBX, ECX, EDX, EBP
cld
call start
Payload:
incbin "payload.enc"
PSize: equ $-Payload
Key:
incbin "payload.key"
KSize: equ $-Key
; Initialize S-box
start:
pop ebp ; Pop out the address of payload to ebp
lea esi,[ebp+PSize] ; Load the address of key to esi
mov ecx,PSize ; Move the size of the amber payload to ecx
mov edi,esp ; Set the address of stack as scratch box
xor eax, eax ; Start with 0
init:
stosb ; Store next SBox byte S[i] = i
inc al ; Increase byte to write (EDI is increased automatically)
jnz init ; Loop until we wrap around
sub edi, 0x100 ; Restore EDI
; Permute S-box according to key
xor ebx, ebx ; Clear EBX (EAX is already cleared)
permute:
add bl,[edi+eax] ; BL += S[AL] + KEY[AL % sizeof(Key)]
mov edx,eax ;
and dl,KSize-1 ; dl & sizeof(Key)
add bl,[esi+edx] ; Move next byte of key to bl
mov dl,[edi+eax] ; swap S[AL] and S[BL]
xchg dl,[edi+ebx] ; ..
mov [edi+eax], dl ; ..
inc al ; AL += 1 until we wrap around
jnz permute ;
; Decryption loop
xor ebx, ebx ; Clear EBX (EAX is already cleared)
decrypt:
inc al ; AL += 1
add bl,[edi+eax] ; BL += S[AL]
mov dl,[edi+eax] ; swap S[AL] and S[BL]
xchg dl,[edi+ebx] ;
mov [edi+eax], dl ;
add dl,[edi+ebx] ; DL = S[AL]+S[BL]
mov dl,[edi+edx] ; DL = S[DL]
xor [ebp],dl ; [EBP] ^= DL
inc ebp ; Advance data pointer
dec ecx ; Reduce counter
jnz decrypt ; Until finished
jmp Payload
| 35.096774
| 83
| 0.504596
|
a08c09d8f8b33e9289e9584b18f296d75a93929f
| 7,410
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_ht_xt_/i9-9900K_12_0xa0_notsx.log_2213_817.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_ht_xt_/i9-9900K_12_0xa0_notsx.log_2213_817.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_ht_xt_/i9-9900K_12_0xa0_notsx.log_2213_817.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 %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x13439, %rsi
lea addresses_normal_ht+0x1a17f, %rdi
nop
nop
nop
nop
nop
xor $15092, %r14
mov $28, %rcx
rep movsl
nop
and $14452, %r14
lea addresses_WT_ht+0x750f, %rsi
lea addresses_WT_ht+0x15b8f, %rdi
nop
nop
lfence
mov $63, %rcx
rep movsl
nop
nop
sub $10997, %rax
lea addresses_A_ht+0x538f, %rdx
nop
nop
nop
dec %r10
mov $0x6162636465666768, %rsi
movq %rsi, (%rdx)
nop
nop
nop
add $17897, %r14
lea addresses_WC_ht+0x188f, %rdx
nop
nop
nop
nop
add $31718, %r14
movl $0x61626364, (%rdx)
nop
nop
cmp %rdx, %rdx
lea addresses_normal_ht+0x454f, %r10
nop
dec %r14
mov (%r10), %si
nop
add $24638, %r14
lea addresses_A_ht+0x9367, %r10
nop
nop
nop
dec %rax
movl $0x61626364, (%r10)
sub %r14, %r14
lea addresses_normal_ht+0x698f, %rdi
nop
nop
and $7992, %rax
mov (%rdi), %rdx
nop
nop
cmp $6518, %r10
lea addresses_WT_ht+0x115e7, %rsi
lea addresses_UC_ht+0x18f8f, %rdi
nop
cmp %rax, %rax
mov $87, %rcx
rep movsl
add $36794, %r10
lea addresses_normal_ht+0xd6ef, %r10
nop
nop
nop
nop
nop
sub %rdi, %rdi
movb (%r10), %dl
nop
nop
nop
nop
and $19921, %rax
lea addresses_D_ht+0x1b45a, %rsi
lea addresses_normal_ht+0x1cd41, %rdi
inc %r9
mov $95, %rcx
rep movsl
nop
nop
sub $10008, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rsi
// Load
lea addresses_WT+0x10b8f, %rcx
nop
nop
cmp $26935, %r12
mov (%rcx), %esi
nop
nop
nop
dec %r12
// Load
lea addresses_WT+0x10b8f, %r8
clflush (%r8)
nop
nop
nop
xor $52568, %r15
movntdqa (%r8), %xmm5
vpextrq $1, %xmm5, %rcx
nop
nop
nop
add $35847, %rcx
// Store
lea addresses_PSE+0xf68f, %rsi
sub $31515, %rbp
mov $0x5152535455565758, %r15
movq %r15, (%rsi)
nop
nop
nop
dec %r15
// Load
lea addresses_A+0x6d8f, %r8
sub $3537, %rcx
mov (%r8), %r12w
nop
nop
nop
nop
nop
cmp %rbx, %rbx
// Faulty Load
lea addresses_WT+0x10b8f, %r8
nop
nop
nop
nop
xor %r12, %r12
mov (%r8), %rbp
lea oracles, %r12
and $0xff, %rbp
shlq $12, %rbp
mov (%r12,%rbp,1), %rbp
pop %rsi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}}
{'39': 2212, '68': 1}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 68 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 34.626168
| 2,999
| 0.655735
|
49c1e1fd2fc50ecef5694777eb62f23afdd122e3
| 295
|
asm
|
Assembly
|
programs/oeis/155/A155559.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/155/A155559.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/155/A155559.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A155559: a(n) = 2*A131577(n).
; 0,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
pow $2,$0
sub $1,$2
| 36.875
| 222
| 0.762712
|
f1d3bacb2e0dcfdfc0f1221db8ebc0be04f7951c
| 7,319
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2324.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2324.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2324.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xd53e, %rcx
nop
nop
and %r10, %r10
movb (%rcx), %r15b
and $31690, %r15
lea addresses_UC_ht+0x15b4e, %rdi
nop
nop
and $8070, %rsi
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
and $0xffffffffffffffc0, %rdi
movntdq %xmm4, (%rdi)
nop
nop
nop
nop
nop
and $44717, %rdi
lea addresses_WC_ht+0x3e26, %rbp
nop
nop
nop
nop
nop
sub $11942, %r15
mov (%rbp), %si
xor %r10, %r10
lea addresses_WT_ht+0x828a, %rsi
lea addresses_UC_ht+0x18a5a, %rdi
nop
nop
cmp %r9, %r9
mov $77, %rcx
rep movsl
nop
nop
nop
nop
sub $9608, %r15
lea addresses_WT_ht+0x13b4, %rcx
clflush (%rcx)
nop
nop
nop
nop
xor %rdi, %rdi
movl $0x61626364, (%rcx)
nop
cmp %r10, %r10
lea addresses_normal_ht+0x1cabe, %rsi
nop
nop
and %r10, %r10
mov (%rsi), %cx
and %rbp, %rbp
lea addresses_normal_ht+0x1376, %rsi
clflush (%rsi)
xor %r10, %r10
mov (%rsi), %edi
nop
nop
nop
dec %rdi
lea addresses_WC_ht+0x1863e, %r15
nop
nop
xor %rsi, %rsi
movl $0x61626364, (%r15)
sub %r15, %r15
lea addresses_WT_ht+0x38be, %r15
nop
cmp $23081, %rdi
mov (%r15), %esi
nop
nop
cmp %r10, %r10
lea addresses_WC_ht+0x1106e, %rdi
and $51200, %r9
mov $0x6162636465666768, %r15
movq %r15, (%rdi)
nop
nop
add %rdi, %rdi
lea addresses_normal_ht+0x431e, %rsi
clflush (%rsi)
nop
add %r10, %r10
movb $0x61, (%rsi)
dec %r15
lea addresses_normal_ht+0x54f6, %r10
nop
nop
xor %rsi, %rsi
movl $0x61626364, (%r10)
nop
cmp %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_PSE+0x37be, %rbp
nop
nop
nop
sub %r8, %r8
movb $0x51, (%rbp)
nop
sub %r8, %r8
// Store
lea addresses_normal+0x16abe, %r8
nop
nop
nop
cmp $15562, %r10
mov $0x5152535455565758, %rdi
movq %rdi, (%r8)
nop
nop
nop
nop
inc %r10
// Faulty Load
lea addresses_normal+0x16abe, %rcx
nop
nop
nop
nop
nop
sub $14221, %r15
vmovups (%rcx), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %r8
lea oracles, %rsi
and $0xff, %r8
shlq $12, %r8
mov (%rsi,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 16, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 36.778894
| 2,999
| 0.654461
|
fe99d7db6059974cd23b0fc62dd51e597cd49ac9
| 58
|
asm
|
Assembly
|
emulator/test.asm
|
paulscottrobson/scmp-williamson-machine
|
7a0cbe529d41dff9c7a3e1419765482aa164c408
|
[
"MIT"
] | null | null | null |
emulator/test.asm
|
paulscottrobson/scmp-williamson-machine
|
7a0cbe529d41dff9c7a3e1419765482aa164c408
|
[
"MIT"
] | null | null | null |
emulator/test.asm
|
paulscottrobson/scmp-williamson-machine
|
7a0cbe529d41dff9c7a3e1419765482aa164c408
|
[
"MIT"
] | null | null | null |
cpu sc/mp
bootloader:
nop
ccl
ldi 0x36
dai 0x65
| 7.25
| 11
| 0.637931
|
84a12cf35403b37446567907cbbb5937f3ff6237
| 6,485
|
asm
|
Assembly
|
Code/CustomControl/RADebug/RADebug/Breakpoint.asm
|
CherryDT/FbEditMOD
|
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
|
[
"Unlicense"
] | 11
|
2016-12-03T16:35:42.000Z
|
2022-03-26T06:02:53.000Z
|
Code/CustomControl/RADebug/RADebug/Breakpoint.asm
|
CherryDT/FbEditMOD
|
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
|
[
"Unlicense"
] | 1
|
2018-02-24T20:17:46.000Z
|
2018-03-02T08:57:40.000Z
|
Code/CustomControl/RADebug/RADebug/Breakpoint.asm
|
CherryDT/FbEditMOD
|
beb0eb22cae1b8f7203d55bd6b293d8ec88231ca
|
[
"Unlicense"
] | 4
|
2018-10-19T01:14:55.000Z
|
2021-09-11T18:51:48.000Z
|
.code
ClearBreakpoints proc
invoke RtlZeroMemory,offset breakpoint,sizeof breakpoint
invoke RtlZeroMemory,offset szBPSourceName,sizeof szBPSourceName
ret
ClearBreakpoints endp
AddBreakpoint proc uses ebx esi,nLine:DWORD,lpFileName:DWORD
mov esi,offset szBPSourceName
mov ebx,0
.while byte ptr [esi]
invoke strcmpi,esi,lpFileName
.break .if !eax
inc ebx
lea esi,[esi+MAX_PATH]
.endw
.if !byte ptr [esi]
invoke strcpy,esi,lpFileName
.endif
mov esi,offset breakpoint
.while [esi].BREAKPOINT.LineNumber
lea esi,[esi+sizeof BREAKPOINT]
.endw
mov [esi].BREAKPOINT.FileID,ebx
mov eax,nLine
mov [esi].BREAKPOINT.LineNumber,eax
ret
AddBreakpoint endp
MapBreakPoints proc uses ebx esi edi
LOCAL CountBP:DWORD
LOCAL CountSource:DWORD
LOCAL Unhandled:DWORD
mov esi,dbg.hMemLine
xor ecx,ecx
.while ecx<dbg.inxline
mov [esi].DEBUGLINE.BreakPoint,FALSE
inc ecx
add esi,sizeof DEBUGLINE
.endw
mov Unhandled,0
mov CountBP,512
mov esi,offset breakpoint
.while CountBP
mov eax,[esi].BREAKPOINT.LineNumber
.if eax
push esi
call MatchIt
pop esi
.endif
dec CountBP
add esi,sizeof BREAKPOINT
.endw
mov eax,Unhandled
ret
MatchIt:
mov eax,[esi].BREAKPOINT.FileID
mov edx,MAX_PATH
mul edx
mov edi,offset szBPSourceName
lea edi,[edi+eax]
mov eax,dbg.inxsource
mov CountSource,eax
mov ebx,dbg.hMemSource
.while CountSource
;PrintStringByAddr edi
;lea eax,[ebx].DEBUGSOURCE.FileName
;PrintStringByAddr eax
;
invoke strcmpi,edi,addr [ebx].DEBUGSOURCE.FileName
.if !eax
mov edx,[ebx].DEBUGSOURCE.FileID
mov eax,[esi].BREAKPOINT.LineNumber
mov esi,dbg.hMemLine
inc Unhandled
xor ecx,ecx
.while ecx<dbg.inxline
.if eax==[esi].DEBUGLINE.LineNumber
.if dx==[esi].DEBUGLINE.FileID
mov [esi].DEBUGLINE.BreakPoint,TRUE
mov [esi].DEBUGLINE.NoDebug,0
dec Unhandled
.break
.endif
.endif
inc ecx
add esi,sizeof DEBUGLINE
.endw
.break
.endif
dec CountSource
add ebx,sizeof DEBUGSOURCE
.endw
retn
MapBreakPoints endp
SetBreakPointsAll proc
mov edx,dbg.minadr
mov ecx,dbg.maxadr
sub ecx,edx
invoke WriteProcessMemory,dbg.hdbghand,edx,dbg.hMemBP,ecx,0
ret
SetBreakPointsAll endp
SetBreakPoints proc uses ebx edi
mov edi,dbg.hMemLine
mov ebx,dbg.inxline
.while ebx
.if [edi].DEBUGLINE.BreakPoint && ![edi].DEBUGLINE.NoDebug
invoke WriteProcessMemory,dbg.hdbghand,[edi].DEBUGLINE.Address,addr szBP,1,0
.endif
lea edi,[edi+sizeof DEBUGLINE]
dec ebx
.endw
ret
SetBreakPoints endp
IsLineCode proc uses ebx esi edi,nLine:DWORD,lpFileName:DWORD
mov edi,dbg.inxsource
mov ebx,dbg.hMemSource
.while edi
invoke strcmpi,lpFileName,addr [ebx].DEBUGSOURCE.FileName
.if !eax
mov edx,[ebx].DEBUGSOURCE.FileID
mov eax,nLine
mov esi,dbg.hMemLine
xor ecx,ecx
.while ecx<dbg.inxline
.if eax==[esi].DEBUGLINE.LineNumber
.if dx==[esi].DEBUGLINE.FileID
mov eax,TRUE
jmp Ex
.endif
.endif
inc ecx
add esi,sizeof DEBUGLINE
.endw
.break
.endif
dec edi
lea ebx,[ebx+sizeof DEBUGSOURCE]
.endw
xor eax,eax
Ex:
ret
IsLineCode endp
SetBreakpointAtCurrentLine proc uses ebx esi edi,nLine:DWORD,lpFileName:DWORD
mov edi,dbg.inxsource
mov ebx,dbg.hMemSource
.while edi
invoke strcmpi,lpFileName,addr [ebx].DEBUGSOURCE.FileName
.if !eax
mov edx,[ebx].DEBUGSOURCE.FileID
mov eax,nLine
mov esi,dbg.hMemLine
xor ecx,ecx
.while ecx<dbg.inxline
.if eax==[esi].DEBUGLINE.LineNumber
.if dx==[esi].DEBUGLINE.FileID
invoke WriteProcessMemory,dbg.hdbghand,[esi].DEBUGLINE.Address,addr szBP,1,0
jmp Ex
.endif
.endif
inc ecx
add esi,sizeof DEBUGLINE
.endw
.break
.endif
dec edi
lea ebx,[ebx+sizeof DEBUGSOURCE]
.endw
Ex:
ret
SetBreakpointAtCurrentLine endp
ClearBreakPointsAll proc
mov edx,dbg.minadr
mov ecx,dbg.maxadr
sub ecx,edx
invoke WriteProcessMemory,dbg.hdbghand,edx,dbg.hMemNoBP,ecx,0
ret
ClearBreakPointsAll endp
MapNoDebug proc uses ebx esi edi
LOCAL buffer[256]:BYTE
LOCAL buffer1[8]:BYTE
LOCAL nInx:DWORD
mov edi,dbg.hMemSymbol
mov ebx,dbg.inxsymbol
xor eax,eax
.while ebx
mov [edi].DEBUGSYMBOL.NoDebug,ax
dec ebx
add edi,sizeof DEBUGSYMBOL
.endw
mov ecx,dbg.inxline
mov esi,dbg.hMemLine
.while ecx
mov [esi].DEBUGLINE.NoDebug,al
dec ecx
lea esi,[esi+sizeof DEBUGLINE]
.endw
; Do not debug the proc line
mov esi,dbg.hMemSymbol
mov ecx,dbg.inxsymbol
.while ecx
.if [esi].DEBUGSYMBOL.nType=='p'
push ecx
invoke FindWord,addr [esi].DEBUGSYMBOL.szName,addr szPrpp
.if eax
mov edi,eax
; Point to parameters
invoke strlen,edi
lea edi,[edi+eax+1]
movzx eax,byte ptr [edi]
.if !eax
; Point to return type
invoke strlen,edi
lea edi,[edi+eax+1]
; Point to locals
invoke strlen,edi
lea edi,[edi+eax+1]
movzx eax,byte ptr [edi]
.endif
.if eax
mov eax,[esi].DEBUGSYMBOL.Address
mov ebx,dbg.inxline
mov edi,dbg.hMemLine
.while ebx
.if eax==[edi].DEBUGLINE.Address
mov [edi].DEBUGLINE.NoDebug,TRUE
.break
.endif
dec ebx
lea edi,[edi+sizeof DEBUGLINE]
.endw
.endif
.endif
pop ecx
.endif
dec ecx
lea esi,[esi+sizeof DEBUGSYMBOL]
.endw
; Map procs that sould not be debugged
mov esi,lpNoDebug
.while TRUE
.break .if !byte ptr [esi]
mov edi,dbg.hMemSymbol
mov ebx,dbg.inxsymbol
.while ebx
invoke strcmp,esi,addr [edi].DEBUGSYMBOL.szName
.if !eax
mov [edi].DEBUGSYMBOL.NoDebug,1
mov edx,[edi].DEBUGSYMBOL.Address
mov eax,edx
add edx,[edi].DEBUGSYMBOL.nSize
mov ecx,dbg.inxline
push esi
mov esi,dbg.hMemLine
.while ecx
.if [esi].DEBUGLINE.Address>=eax
.if [esi].DEBUGLINE.Address<edx
mov [esi].DEBUGLINE.NoDebug,1
.endif
.endif
dec ecx
lea esi,[esi+sizeof DEBUGLINE]
.endw
pop esi
.endif
dec ebx
lea edi,[edi+sizeof DEBUGSYMBOL]
.endw
invoke strlen,esi
lea esi,[esi+eax+1]
.endw
ret
MapNoDebug endp
| 21.54485
| 83
| 0.659368
|
654049e45074855eaa08948f9cbd8855411cfb53
| 434
|
asm
|
Assembly
|
audio/sfx/battle_34.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
audio/sfx/battle_34.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
audio/sfx/battle_34.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
SFX_Battle_34_Ch5:
duty_cycle_pattern 3, 2, 3, 1
square_note 8, 15, -7, 1016
square_note 15, 15, -7, 1024
square_note 15, 15, 3, 1024
sound_ret
SFX_Battle_34_Ch6:
duty_cycle_pattern 2, 3, 1, 0
square_note 8, 14, -7, 960
square_note 15, 14, -7, 960
square_note 15, 14, 3, 960
sound_ret
SFX_Battle_34_Ch8:
noise_note 4, 15, -7, 81
noise_note 8, 15, -7, 84
noise_note 15, 15, -7, 85
noise_note 15, 15, 3, 86
sound_ret
| 18.869565
| 30
| 0.698157
|
5a526b713a60a16fcd88bb6d27a53c70f14bc3c8
| 469
|
asm
|
Assembly
|
programs/oeis/125/A125145.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/125/A125145.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/125/A125145.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A125145: a(n) = 3a(n-1) + 3a(n-2). a(0) = 1, a(1) = 4.
; 1,4,15,57,216,819,3105,11772,44631,169209,641520,2432187,9221121,34959924,132543135,502509177,1905156936,7222998339,27384465825,103822392492,393620574951,1492328902329,5657848431840,21450532002507,81325141303041,308327019916644,1168956483659055,4431850510727097
mov $2,$0
mov $0,1
mov $1,2
mov $3,1
lpb $2,1
add $0,$3
mul $1,3
sub $2,1
mov $3,$1
add $1,$0
sub $3,$0
lpe
sub $1,2
div $1,2
add $1,1
| 24.684211
| 263
| 0.703625
|
1a9a7f0820fadbbc0605042109d85d2a048701a2
| 128
|
asm
|
Assembly
|
dsp++/src/arch/x86/xxgetbv.asm
|
andrzejc/dsp-
|
fd39d2395a37ade36e3b551d261de0177b78296b
|
[
"MIT"
] | null | null | null |
dsp++/src/arch/x86/xxgetbv.asm
|
andrzejc/dsp-
|
fd39d2395a37ade36e3b551d261de0177b78296b
|
[
"MIT"
] | null | null | null |
dsp++/src/arch/x86/xxgetbv.asm
|
andrzejc/dsp-
|
fd39d2395a37ade36e3b551d261de0177b78296b
|
[
"MIT"
] | null | null | null |
.CODE
xxgetbv PROC
mov ecx, [esp + 4]
xgetbv
; db 0fh
; db 01h
; db d0h
ret
xxgetbv ENDP
END
| 12.8
| 34
| 0.492188
|
1afb9ef2b2621da961e3d5692129ecfa9d4dd3d3
| 596
|
asm
|
Assembly
|
oeis/161/A161712.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/161/A161712.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/161/A161712.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A161712: a(n) = (4*n^3 - 6*n^2 + 8*n + 3)/3.
; 1,3,9,27,65,131,233,379,577,835,1161,1563,2049,2627,3305,4091,4993,6019,7177,8475,9921,11523,13289,15227,17345,19651,22153,24859,27777,30915,34281,37883,41729,45827,50185,54811,59713,64899,70377,76155,82241,88643,95369,102427,109825,117571,125673,134139,142977,152195,161801,171803,182209,193027,204265,215931,228033,240579,253577,267035,280961,295363,310249,325627,341505,357891,374793,392219,410177,428675,447721,467323,487489,508227,529545,551451,573953,597059,620777,645115,670081,695683,721929
mul $0,2
mov $1,$0
add $0,1
bin $1,3
add $0,$1
| 66.222222
| 500
| 0.771812
|
763ee230756506acdda4be18d62ecfb9a8742db0
| 479
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/integer/l_mulu_40_32x8.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/integer/l_mulu_40_32x8.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/math/integer/l_mulu_40_32x8.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
INCLUDE "clib_cfg.asm"
SECTION code_math
PUBLIC l_mulu_40_32x8
; compute: adehl = dehl * a
; alters : af, bc, de, hl, ixh
IF __CLIB_OPT_IMATH <= 50
EXTERN l_small_mul_40_32x8
l_mulu_40_32x8:
exx
push bc
push de
push hl
exx
call l_small_mul_40_32x8
exx
pop hl
pop de
pop bc
exx
ret
ENDIF
IF __CLIB_OPT_IMATH > 50
EXTERN l_fast_mulu_40_32x8
defc l_mulu_40_32x8 = l_fast_mulu_40_32x8
ENDIF
| 10.886364
| 44
| 0.647182
|
715aa7a875933a461aacebbe571140b35fa42e53
| 663
|
asm
|
Assembly
|
oeis/032/A032121.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/032/A032121.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/032/A032121.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A032121: Number of reversible strings with n beads of 4 colors.
; Submitted by Jon Maiga
; 1,4,10,40,136,544,2080,8320,32896,131584,524800,2099200,8390656,33562624,134225920,536903680,2147516416,8590065664,34359869440,137439477760,549756338176,2199025352704,8796095119360,35184380477440,140737496743936,562949986975744,2251799847239680,9007199388958720,36028797153181696,144115188612726784,576460752840294400,2305843011361177600,9223372039002259456,36893488156009037824,147573952598266347520,590295810393065390080,2361183241469182345216,9444732965876729380864,37778931863094600663040
mov $1,2
pow $1,$0
mod $0,2
add $0,$1
add $0,1
mul $1,$0
mov $0,$1
div $0,2
| 51
| 494
| 0.850679
|
6aa21bd45c9287af585ee7036eebc6f40e46742c
| 416
|
asm
|
Assembly
|
programs/oeis/277/A277977.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/277/A277977.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/277/A277977.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A277977: a(n) = n*(1-3n+2*n^2+2*n^3)/2.
; 0,1,19,96,298,715,1461,2674,4516,7173,10855,15796,22254,30511,40873,53670,69256,88009,110331,136648,167410,203091,244189,291226,344748,405325,473551,550044,635446,730423,835665,951886,1079824,1220241,1373923,1541680,1724346
mov $1,1
sub $1,$0
mov $2,$0
pow $2,2
sub $2,$1
add $1,$2
lpb $2
bin $0,2
mul $1,$2
sub $1,$0
sub $2,2
pow $2,2
mod $2,9
lpe
mov $0,$1
| 21.894737
| 225
| 0.670673
|
51bfeedad5e7947878a2be4df56c336584815277
| 1,801
|
asm
|
Assembly
|
sadi.asm
|
NotExactlySiev/rohama
|
ba422358cdd773068c5d246f869b1f72166eb8a7
|
[
"CC0-1.0"
] | null | null | null |
sadi.asm
|
NotExactlySiev/rohama
|
ba422358cdd773068c5d246f869b1f72166eb8a7
|
[
"CC0-1.0"
] | null | null | null |
sadi.asm
|
NotExactlySiev/rohama
|
ba422358cdd773068c5d246f869b1f72166eb8a7
|
[
"CC0-1.0"
] | null | null | null |
mkfile: subroutine
ldy #0 ; first find empty row
lda #$00
sta $1
lda #$60
sta $2
.mf_l lda ($1),x
beq .mf_o
lda $1
clc
adc #12
sta $1
bne .mf_j
inc $2
.mf_j jmp .mf_l
.mf_o
lda #1
.mf_l2 sta ($1),y ; write table information
iny
cpy #$C
beq .mf_o2
lda $2,y
jmp .mf_l2
.mf_o2 ldy #1 ; load file address
lda ($1),y
sta $10
iny
lda ($1),y
sta $11
ldy #0
lda #EOF
sta ($10),y
rts
mkdir: subroutine
ldy #0 ; find empty row
lda #$00
sta $1
lda #$60
sta $2
.md_l lda ($1),x
beq .md_o
lda $1
clc
adc #12
sta $1
bne .md_j
inc $2
.md_j jmp .md_l
.md_o lda #3 ; fill table
sta ($1),y
lda #0
iny
sta ($1),y
iny
sta ($1),y
ldy #3 ; fill parent and name
.md_l2 lda $2,y
sta ($1),y
iny
cpy #$C
bne .md_l2
rts
listfiles: subroutine ; puts a list of all files into buffer
ldx #0
lda #$00
sta FLPT
lda #$60
sta FLPTH
lda #00
sta BUFFPT
lda #$03
sta BUFFPTH
.lf_l ldy #0 ; file loop
lda (FLPT),y
beq .lf_d
ldy #4
.lf_l2 lda (FLPT),y ; put to buffer
beq .lf_o
sta (BUFFPT,x)
inc BUFFPT
iny
cpy #12
beq .lf_o
jmp .lf_l2
.lf_o lda #LF
sta (BUFFPT,x)
inc BUFFPT
lda FLPT
clc
adc #12
sta FLPT
jmp .lf_l
.lf_d lda #EOS
sta (BUFFPT,x)
inc BUFFPT
lda #0
sta BUFFPT
lda #$03
sta BUFFPTH
rts
| 16.522936
| 60
| 0.428651
|
0e723fd26ee9b291aa89f34f49c106e8cbe16c43
| 7,193
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2506.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2506.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2506.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 %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xd642, %rdi
nop
nop
and $60117, %r9
mov (%rdi), %r14w
xor %rdx, %rdx
lea addresses_WT_ht+0xa262, %r10
nop
sub %r14, %r14
mov (%r10), %rdi
nop
nop
nop
nop
nop
lfence
lea addresses_UC_ht+0x3ec2, %rbp
nop
nop
cmp $33792, %r11
movups (%rbp), %xmm6
vpextrq $1, %xmm6, %rdx
nop
lfence
lea addresses_normal_ht+0x7402, %rsi
lea addresses_UC_ht+0x8f5a, %rdi
clflush (%rsi)
nop
nop
nop
inc %r10
mov $18, %rcx
rep movsw
nop
nop
nop
nop
add $42386, %rcx
lea addresses_D_ht+0x1b782, %rdi
nop
nop
add $39047, %r14
mov $0x6162636465666768, %rbp
movq %rbp, (%rdi)
nop
nop
nop
nop
inc %r9
lea addresses_D_ht+0x163c2, %rsi
lea addresses_UC_ht+0x2722, %rdi
nop
nop
nop
nop
mfence
mov $91, %rcx
rep movsq
nop
nop
nop
nop
dec %rsi
lea addresses_D_ht+0x1b42, %rsi
lea addresses_UC_ht+0x1cd82, %rdi
nop
nop
nop
nop
xor %rdx, %rdx
mov $117, %rcx
rep movsw
nop
sub $28679, %rbp
lea addresses_WT_ht+0x10242, %rsi
lea addresses_D_ht+0x98f7, %rdi
nop
nop
nop
nop
nop
inc %rdx
mov $27, %rcx
rep movsb
nop
nop
nop
inc %r11
lea addresses_A_ht+0x15e82, %r9
nop
nop
nop
nop
nop
add $55062, %r11
mov (%r9), %r10
nop
nop
nop
and %r9, %r9
lea addresses_UC_ht+0x140a2, %rcx
nop
nop
nop
add %r14, %r14
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
movups %xmm3, (%rcx)
nop
nop
xor $61051, %rdi
lea addresses_D_ht+0x1db02, %r10
nop
dec %r11
movl $0x61626364, (%r10)
nop
sub %r14, %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r15
push %r9
push %rax
push %rcx
push %rdx
// Load
lea addresses_RW+0x13b42, %rdx
nop
nop
nop
xor %r12, %r12
mov (%rdx), %ax
nop
and $45238, %rdx
// Store
lea addresses_D+0x1b852, %r12
nop
add %r15, %r15
mov $0x5152535455565758, %r14
movq %r14, (%r12)
and %r12, %r12
// Faulty Load
lea addresses_RW+0x13b42, %r12
nop
nop
nop
nop
nop
add %rax, %rax
mov (%r12), %r15
lea oracles, %rax
and $0xff, %r15
shlq $12, %r15
mov (%rax,%r15,1), %r15
pop %rdx
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 3, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': True, 'NT': True}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 33.769953
| 2,999
| 0.656889
|
911178756eb25a82d95a99bde00ad0d19056a3c6
| 5,371
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1180.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1180.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1180.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 %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x189c5, %r9
nop
nop
nop
nop
nop
xor %rdx, %rdx
movups (%r9), %xmm2
vpextrq $0, %xmm2, %rax
dec %r11
lea addresses_A_ht+0x48c5, %r13
add $2973, %r10
mov (%r13), %r9d
nop
nop
sub %r13, %r13
lea addresses_D_ht+0x1adc5, %r9
nop
nop
cmp $33142, %rcx
movups (%r9), %xmm5
vpextrq $0, %xmm5, %r13
and $63689, %r10
lea addresses_WT_ht+0x19545, %rsi
lea addresses_normal_ht+0xbde5, %rdi
nop
nop
nop
nop
cmp %r11, %r11
mov $66, %rcx
rep movsl
nop
nop
nop
and $25007, %rsi
lea addresses_WC_ht+0xb085, %rsi
lea addresses_D_ht+0x10dc5, %rdi
inc %r13
mov $118, %rcx
rep movsl
dec %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r15
push %r9
push %rbx
push %rcx
push %rdx
// Load
lea addresses_D+0x1b5c5, %rbx
nop
nop
nop
nop
and %rdx, %rdx
mov (%rbx), %ecx
nop
nop
nop
nop
inc %r11
// Faulty Load
lea addresses_UC+0x15cc5, %r13
and $35666, %r15
mov (%r13), %r11d
lea oracles, %rdx
and $0xff, %r11
shlq $12, %r11
mov (%rdx,%r11,1), %r11
pop %rdx
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}}
{'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
*/
| 44.02459
| 2,999
| 0.657978
|
64cba0c0772e13471aac3c5e9ef8432615533127
| 6,660
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_9.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_9.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_9.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x157d7, %rsi
lea addresses_WT_ht+0xe6ff, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
sub %rbp, %rbp
mov $77, %rcx
rep movsq
nop
nop
xor $6650, %rax
lea addresses_A_ht+0x1ae5f, %rsi
lea addresses_normal_ht+0x1a118, %rdi
nop
nop
nop
and $30277, %r14
mov $64, %rcx
rep movsl
nop
nop
nop
xor %rbp, %rbp
lea addresses_A_ht+0x1e897, %r14
nop
nop
nop
nop
cmp $50153, %rbp
mov (%r14), %esi
nop
nop
nop
nop
cmp $1187, %rbp
lea addresses_normal_ht+0x32ce, %rax
nop
nop
nop
nop
add $17081, %r9
movw $0x6162, (%rax)
nop
nop
dec %rcx
lea addresses_normal_ht+0xaf37, %rbp
and %r14, %r14
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
movups %xmm0, (%rbp)
nop
nop
add $29610, %rcx
lea addresses_D_ht+0x19105, %rdi
cmp $8346, %r14
movb $0x61, (%rdi)
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_WC_ht+0x1efff, %rbp
nop
inc %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
movups %xmm1, (%rbp)
nop
nop
nop
nop
sub $49200, %rbp
lea addresses_WC_ht+0x19b7f, %r9
nop
add $11899, %r14
mov (%r9), %ebp
nop
and %r14, %r14
lea addresses_normal_ht+0xb03f, %rsi
clflush (%rsi)
nop
nop
nop
nop
nop
and %r9, %r9
movw $0x6162, (%rsi)
inc %r14
lea addresses_D_ht+0x797f, %rax
nop
nop
nop
nop
xor %rbp, %rbp
movups (%rax), %xmm1
vpextrq $0, %xmm1, %rsi
nop
nop
nop
nop
sub %rbp, %rbp
lea addresses_UC_ht+0x7640, %r14
nop
and %rbp, %rbp
movb $0x61, (%r14)
xor %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r9
push %rcx
push %rdi
push %rsi
// Faulty Load
lea addresses_PSE+0x11bff, %rdi
nop
nop
nop
nop
nop
lfence
vmovups (%rdi), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %r9
lea oracles, %r14
and $0xff, %r9
shlq $12, %r9
mov (%r14,%r9,1), %r9
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}}
{'src': {'same': True, 'congruent': 7, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': True, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 37.206704
| 2,999
| 0.657808
|
1da8d5946828f4e33a3e826c23a747ccfcf641f2
| 1,026
|
asm
|
Assembly
|
2020 Fall E C E 252/HW08/HW08B/HW08/hw08.asm
|
jsswd888/2020_FALL_UW_MADISON
|
8bfb4616ec8d9c609ef0e15111ac98cfb1af9a65
|
[
"MIT"
] | null | null | null |
2020 Fall E C E 252/HW08/HW08B/HW08/hw08.asm
|
jsswd888/2020_FALL_UW_MADISON
|
8bfb4616ec8d9c609ef0e15111ac98cfb1af9a65
|
[
"MIT"
] | null | null | null |
2020 Fall E C E 252/HW08/HW08B/HW08/hw08.asm
|
jsswd888/2020_FALL_UW_MADISON
|
8bfb4616ec8d9c609ef0e15111ac98cfb1af9a65
|
[
"MIT"
] | null | null | null |
; Filename: hw08.asm
; Author(s): KAIWEN SHI
; kshi42@wisc.edu
;
; Description: Performs various operations on values in
; various memory locations
.ORIG x0200
START
LEA R5, data ; get pointer to data array
; YOUR CODE GOES BELOW HERE
LEA R0, A
LEA R1, B
LEA R2, C
LDR R0, R5, #3 ;A = data[3]
ADD R1, R0, -2 ;B = A - 2
LDR R2, R5, #0 ;C = data[0]
ADD R2, R1, R2 ;C = B + data[0]
LDR R3, R5, #2 ;R3 = data[2]
LDR R4, R5, #1 ;R4 = data[1]
ADD R4, R1, R3 ;R4 = B + data[2]
STR R4, R5, #1 ;change data[1]
; YOUR CODE GOES ABOVE HERE
BR START
; program data
A .FILL x1111
B .FILL x2222
C .FILL x3333
; Note: normally we would not comment an array like this,
; but we wanted to make it easy to see which element is which
data .FILL #10 ; data[0]
.FILL #20 ; data[1]
.FILL #-15 ; data[2]
.FILL #1 ; data[3]
.END
| 24.428571
| 67
| 0.512671
|
255dc837246eac8e77021015312be1d39f032f0c
| 12,466
|
asm
|
Assembly
|
P6/data_P6_2/ALUTest33.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | 1
|
2022-01-23T09:24:47.000Z
|
2022-01-23T09:24:47.000Z
|
P6/data_P6_2/ALUTest33.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | null | null | null |
P6/data_P6_2/ALUTest33.asm
|
alxzzhou/BUAA_CO_2020
|
b54bf367081a5a11701ebc3fc78a23494aecca9e
|
[
"Apache-2.0"
] | null | null | null |
nor $6,$3,$3
xori $5,$2,20560
sltiu $5,$3,28288
lbu $3,0($0)
addiu $3,$6,-1646
andi $3,$5,15901
addiu $3,$5,30642
srav $3,$4,$3
or $5,$4,$3
lhu $3,16($0)
ori $6,$5,21146
srl $1,$3,18
srav $5,$4,$3
sh $4,14($0)
sll $6,$2,24
addu $3,$4,$3
slti $1,$3,-29877
subu $3,$3,$3
sb $6,11($0)
andi $4,$4,18385
slt $5,$3,$3
addu $6,$1,$3
slti $5,$2,9022
sw $1,4($0)
srl $1,$3,7
sra $0,$5,17
sh $3,6($0)
sll $4,$4,26
slt $1,$6,$3
ori $3,$5,63766
srl $3,$3,7
sw $3,4($0)
sltiu $3,$4,-15286
lb $3,3($0)
lbu $4,4($0)
sll $0,$4,5
xori $1,$3,17709
lh $4,10($0)
lhu $3,12($0)
lb $4,7($0)
lh $3,6($0)
srlv $4,$4,$3
andi $3,$6,46437
addiu $3,$3,-23853
sll $5,$4,29
srlv $5,$5,$3
srl $5,$3,29
slti $3,$3,25961
sra $4,$4,7
subu $1,$6,$3
lhu $3,0($0)
srav $4,$4,$3
slti $3,$5,-18370
srav $4,$3,$3
lbu $4,14($0)
xori $0,$3,58343
sll $3,$0,9
sllv $0,$0,$3
sb $4,7($0)
sllv $3,$5,$3
lhu $4,6($0)
lh $5,4($0)
and $3,$1,$3
slti $4,$4,2895
sra $5,$3,22
xor $6,$4,$3
lhu $0,0($0)
sll $5,$1,16
addu $5,$0,$3
subu $3,$0,$3
subu $1,$4,$3
addiu $1,$5,17795
sltiu $4,$4,5126
xori $3,$3,23848
or $3,$4,$3
andi $1,$1,8981
xori $1,$1,23728
addu $1,$1,$3
sw $4,16($0)
nor $5,$4,$3
sb $4,10($0)
nor $3,$4,$3
and $1,$3,$3
or $1,$1,$3
sh $6,8($0)
srav $6,$6,$3
addu $1,$3,$3
or $1,$1,$3
lb $4,15($0)
nor $4,$2,$3
sra $1,$1,21
addiu $3,$3,-7555
slt $6,$4,$3
xori $3,$5,54945
addu $3,$3,$3
slti $4,$3,11787
lb $1,2($0)
andi $3,$3,38936
sll $3,$4,27
sll $3,$4,27
andi $5,$3,11476
sra $5,$3,4
ori $4,$1,26856
ori $3,$3,45007
slt $0,$0,$3
subu $1,$1,$3
subu $3,$3,$3
addu $3,$5,$3
ori $2,$2,14337
lw $4,12($0)
lb $1,8($0)
xor $0,$3,$3
andi $0,$3,5112
srlv $5,$5,$3
lbu $6,16($0)
addiu $4,$5,-6034
lhu $4,0($0)
subu $5,$3,$3
lh $3,16($0)
nor $3,$2,$3
or $4,$5,$3
xor $5,$4,$3
sltiu $5,$5,-14304
sra $5,$2,15
xor $0,$1,$3
sltu $3,$5,$3
lw $5,4($0)
slt $0,$1,$3
sltiu $1,$3,9448
lw $4,16($0)
ori $1,$4,45013
subu $3,$4,$3
sllv $3,$3,$3
srav $0,$3,$3
sra $1,$1,21
sb $3,2($0)
addu $3,$1,$3
sra $0,$3,24
lb $6,13($0)
sll $1,$1,7
srlv $0,$5,$3
sllv $5,$5,$3
srl $3,$1,11
sw $6,4($0)
sllv $1,$1,$3
nor $4,$5,$3
subu $0,$1,$3
slti $3,$3,-20264
addiu $4,$5,-32296
nor $3,$1,$3
subu $0,$0,$3
srlv $5,$5,$3
srl $4,$1,29
srav $3,$5,$3
sltiu $4,$2,-23461
srl $1,$1,22
sra $0,$1,5
sb $5,11($0)
subu $1,$1,$3
subu $3,$3,$3
nor $3,$4,$3
sb $4,8($0)
lhu $3,10($0)
srav $6,$3,$3
sll $3,$6,12
ori $5,$1,12365
sltiu $1,$3,27713
sra $4,$3,7
srlv $1,$3,$3
nor $1,$4,$3
srlv $3,$4,$3
sltu $3,$5,$3
srl $4,$3,31
addiu $5,$5,-15855
sw $5,16($0)
sltiu $3,$0,8673
lbu $5,14($0)
ori $3,$6,27571
sb $6,7($0)
srl $4,$4,22
sw $0,4($0)
sh $4,16($0)
slt $1,$3,$3
sb $3,3($0)
lh $4,0($0)
lhu $5,12($0)
and $1,$1,$3
sra $4,$1,15
sra $5,$3,12
lb $3,0($0)
and $5,$5,$3
lb $3,8($0)
sh $5,0($0)
slti $1,$5,25010
sllv $3,$0,$3
ori $1,$5,6949
sra $3,$3,3
lw $3,0($0)
sra $0,$3,26
subu $0,$0,$3
sra $1,$3,2
xori $3,$1,20900
xori $4,$4,40392
lw $3,12($0)
srav $4,$3,$3
addu $0,$0,$3
sra $3,$1,22
sltiu $3,$4,11962
andi $1,$1,35570
xor $1,$3,$3
xor $4,$3,$3
ori $3,$3,48024
slti $5,$1,27951
addu $3,$0,$3
lw $5,8($0)
andi $6,$4,52694
lbu $3,16($0)
lw $3,8($0)
lbu $3,14($0)
sltu $3,$0,$3
and $1,$5,$3
lb $5,16($0)
srav $6,$1,$3
sll $1,$1,10
sh $4,0($0)
slti $5,$6,-11710
sll $4,$5,19
sll $0,$5,26
and $4,$6,$3
addu $4,$0,$3
addu $5,$3,$3
nor $4,$2,$3
andi $4,$4,5754
addiu $3,$3,-4968
slt $3,$3,$3
lhu $4,10($0)
srlv $3,$4,$3
sb $0,15($0)
srl $1,$1,30
sltu $3,$3,$3
srl $5,$5,15
subu $0,$4,$3
addu $5,$4,$3
andi $3,$4,29337
andi $1,$1,25214
xor $3,$0,$3
addiu $0,$3,20805
srl $3,$4,17
and $5,$6,$3
xor $4,$4,$3
and $1,$0,$3
and $0,$1,$3
sb $1,15($0)
sw $6,12($0)
lhu $6,12($0)
and $3,$0,$3
nor $1,$6,$3
sh $0,2($0)
lhu $4,14($0)
nor $4,$6,$3
srl $3,$4,14
lb $4,10($0)
srlv $6,$3,$3
lh $3,16($0)
or $4,$4,$3
xori $3,$0,39884
sltu $4,$1,$3
subu $1,$3,$3
lbu $4,14($0)
srav $4,$3,$3
sb $0,2($0)
addiu $4,$4,-12522
srav $5,$6,$3
srlv $4,$3,$3
lw $3,4($0)
lh $0,10($0)
sllv $4,$3,$3
sh $3,6($0)
sw $3,4($0)
lbu $3,8($0)
slt $3,$0,$3
xori $3,$4,65470
slt $5,$1,$3
sw $0,0($0)
slt $4,$1,$3
xori $3,$1,33910
addiu $0,$2,-4835
sw $5,16($0)
sb $1,10($0)
slti $3,$3,-3540
or $4,$5,$3
slti $3,$4,27205
lbu $6,14($0)
sll $4,$4,0
slt $5,$5,$3
lh $3,0($0)
sb $5,5($0)
sllv $5,$3,$3
srav $6,$1,$3
addiu $6,$3,27075
sltiu $5,$3,26601
xori $0,$4,33781
srl $3,$3,5
lw $0,12($0)
sb $4,6($0)
sw $1,4($0)
lbu $1,13($0)
or $3,$3,$3
srl $3,$4,19
lhu $3,4($0)
lb $3,11($0)
xor $2,$2,$3
sb $0,6($0)
addiu $0,$2,6730
subu $6,$5,$3
srav $5,$3,$3
addiu $3,$4,24121
srl $4,$5,9
srav $3,$4,$3
lbu $4,13($0)
sll $4,$4,11
sltu $4,$3,$3
slt $4,$4,$3
addu $3,$4,$3
ori $3,$5,36313
sltiu $6,$0,-28058
addu $3,$2,$3
nor $5,$3,$3
lb $1,14($0)
sllv $5,$5,$3
subu $3,$3,$3
nor $5,$4,$3
and $1,$1,$3
srlv $5,$0,$3
or $0,$0,$3
subu $3,$6,$3
sra $4,$4,28
slti $1,$1,9539
sltiu $6,$6,-5485
slti $0,$4,13429
addiu $0,$1,16808
lw $4,12($0)
sltiu $5,$4,-3345
srlv $1,$4,$3
sra $2,$2,3
sra $3,$3,16
sw $5,12($0)
sb $3,1($0)
subu $6,$1,$3
lbu $3,14($0)
sltu $3,$3,$3
sra $5,$1,13
and $5,$3,$3
subu $4,$3,$3
subu $0,$3,$3
sra $3,$3,7
or $3,$5,$3
addu $3,$3,$3
and $1,$3,$3
sltiu $5,$4,15159
addu $5,$5,$3
srl $0,$1,10
sltu $4,$5,$3
subu $4,$5,$3
ori $4,$6,54981
slti $3,$3,-8865
ori $3,$6,4554
sllv $4,$0,$3
slt $3,$3,$3
slt $6,$0,$3
sll $1,$3,19
subu $3,$3,$3
or $6,$2,$3
slti $5,$3,-8124
and $0,$5,$3
lh $1,2($0)
subu $4,$1,$3
addiu $6,$1,28264
slti $6,$3,8626
addu $4,$1,$3
lbu $4,6($0)
srlv $3,$1,$3
andi $3,$3,34095
sw $1,16($0)
lh $1,4($0)
sltu $4,$3,$3
srl $0,$4,14
sb $3,16($0)
slti $2,$2,18739
addiu $4,$3,8802
addu $3,$3,$3
nor $4,$4,$3
sb $6,3($0)
lw $4,16($0)
nor $1,$1,$3
slti $1,$3,-10739
xor $3,$1,$3
srl $3,$4,19
subu $5,$5,$3
lw $6,12($0)
srav $0,$4,$3
nor $6,$0,$3
slt $5,$0,$3
lw $1,16($0)
sw $5,0($0)
srlv $3,$3,$3
lw $4,12($0)
or $5,$5,$3
subu $6,$5,$3
sb $3,9($0)
addu $4,$1,$3
addiu $5,$3,1295
sltiu $1,$3,29693
addiu $0,$0,-15337
sll $4,$5,16
srl $5,$6,5
srl $6,$3,2
lbu $3,5($0)
and $0,$3,$3
nor $3,$3,$3
xor $5,$5,$3
sltiu $3,$5,-24642
sllv $1,$1,$3
andi $6,$4,6059
ori $6,$4,19882
sb $1,16($0)
or $1,$4,$3
subu $0,$3,$3
or $4,$3,$3
xor $3,$3,$3
addu $3,$4,$3
xori $3,$3,55772
srav $6,$6,$3
slt $6,$6,$3
xori $0,$1,17863
srl $1,$5,25
lhu $4,0($0)
or $1,$0,$3
srl $3,$3,30
srlv $5,$3,$3
lh $3,14($0)
andi $0,$0,13585
subu $3,$5,$3
or $5,$4,$3
slt $3,$4,$3
addu $4,$3,$3
lb $5,15($0)
nor $3,$3,$3
addiu $5,$5,8817
slt $1,$4,$3
slti $0,$3,26870
slti $4,$3,18189
sltiu $0,$3,22230
lbu $5,8($0)
nor $1,$5,$3
srlv $3,$4,$3
addu $3,$1,$3
sw $0,0($0)
sw $4,4($0)
ori $3,$3,46483
sra $3,$5,31
lh $5,0($0)
subu $1,$1,$3
srlv $4,$3,$3
xori $0,$6,33656
sltu $3,$3,$3
sll $5,$4,24
sw $4,16($0)
subu $1,$4,$3
or $4,$4,$3
ori $3,$4,34555
subu $1,$3,$3
or $3,$4,$3
lbu $3,12($0)
slti $4,$3,-1704
addiu $3,$3,-477
sb $0,2($0)
addu $4,$4,$3
xori $4,$4,38343
sllv $1,$0,$3
subu $3,$3,$3
sh $6,0($0)
ori $4,$1,34954
sb $4,7($0)
nor $4,$4,$3
lw $1,8($0)
xori $3,$3,55150
lw $3,16($0)
addu $4,$3,$3
slt $4,$1,$3
srl $5,$1,20
nor $5,$3,$3
or $5,$3,$3
subu $5,$5,$3
slt $0,$0,$3
or $1,$1,$3
or $5,$5,$3
subu $1,$1,$3
and $3,$1,$3
xor $6,$6,$3
lhu $0,4($0)
sltu $6,$3,$3
sh $3,4($0)
sw $5,4($0)
lb $4,4($0)
xor $3,$3,$3
and $5,$1,$3
slti $3,$4,32685
lbu $3,12($0)
addu $4,$1,$3
addiu $5,$5,-22068
subu $3,$4,$3
addu $4,$4,$3
addu $3,$1,$3
and $4,$5,$3
sltiu $3,$4,-16286
nor $3,$4,$3
srav $5,$5,$3
sh $4,2($0)
addu $1,$1,$3
lhu $3,12($0)
slti $4,$0,-30502
lw $4,12($0)
srl $6,$3,26
andi $6,$4,54853
lbu $3,14($0)
ori $3,$0,51647
sll $3,$3,23
lb $4,1($0)
srav $3,$3,$3
slt $1,$3,$3
addiu $4,$5,-26327
sra $3,$1,11
sw $4,0($0)
xor $4,$4,$3
addiu $0,$5,-22734
sltiu $4,$0,19444
addiu $4,$4,16064
sb $5,12($0)
lbu $6,9($0)
nor $1,$1,$3
srlv $3,$5,$3
xor $4,$4,$3
subu $6,$1,$3
addu $4,$0,$3
addiu $3,$3,27072
lhu $4,0($0)
lh $4,0($0)
subu $4,$0,$3
xor $3,$4,$3
sll $4,$3,2
sh $3,14($0)
sw $3,16($0)
ori $1,$4,51329
lb $6,10($0)
addu $6,$6,$3
sb $3,13($0)
addiu $0,$4,-32414
sh $5,6($0)
andi $1,$0,19016
srl $1,$3,31
lw $3,4($0)
srlv $1,$1,$3
slti $6,$4,-17809
ori $4,$4,9505
lbu $3,0($0)
addu $1,$3,$3
and $1,$1,$3
slti $5,$3,-10266
subu $1,$4,$3
addu $3,$4,$3
sra $1,$3,28
addiu $4,$5,-15982
or $5,$3,$3
andi $4,$1,22564
sltiu $0,$1,-6216
sw $1,4($0)
nor $0,$4,$3
sltiu $3,$3,-8219
lbu $4,14($0)
sh $5,12($0)
sb $3,3($0)
sltiu $6,$4,-22038
addiu $4,$4,-16817
lbu $3,13($0)
subu $4,$1,$3
sra $3,$5,5
slt $5,$4,$3
lbu $1,16($0)
sltiu $6,$4,-9758
subu $1,$4,$3
srl $3,$1,7
lb $3,0($0)
sw $4,16($0)
slt $4,$4,$3
sll $6,$5,19
and $3,$3,$3
sw $1,16($0)
addiu $3,$6,-5119
lhu $4,4($0)
srlv $6,$1,$3
lh $3,14($0)
sltu $4,$4,$3
addu $0,$4,$3
srav $3,$0,$3
or $1,$1,$3
sra $3,$5,18
slt $3,$3,$3
sw $3,8($0)
srav $5,$3,$3
lbu $3,13($0)
lhu $6,0($0)
addiu $4,$5,24403
srl $3,$6,4
slt $6,$0,$3
srl $4,$4,1
lw $4,4($0)
addu $4,$0,$3
lhu $3,0($0)
xor $3,$3,$3
slti $1,$4,-32348
addiu $4,$5,2759
andi $5,$5,52566
and $3,$4,$3
sh $6,14($0)
addiu $4,$6,-22596
sltu $5,$4,$3
subu $5,$5,$3
srlv $5,$3,$3
subu $3,$3,$3
sra $6,$6,13
sltiu $1,$3,30386
srav $5,$5,$3
srlv $5,$4,$3
sb $3,11($0)
sb $5,7($0)
sllv $4,$4,$3
srlv $3,$1,$3
sra $3,$3,22
sw $6,12($0)
sb $3,10($0)
nor $4,$5,$3
lh $0,16($0)
xori $4,$2,24974
xori $4,$1,20460
addiu $1,$3,-29111
lhu $5,14($0)
sltu $3,$1,$3
addu $1,$6,$3
srav $3,$3,$3
lb $5,6($0)
addiu $3,$4,25549
addiu $4,$6,19120
sb $4,4($0)
addu $6,$3,$3
lhu $3,0($0)
addu $6,$6,$3
lbu $4,13($0)
addiu $4,$3,300
slt $3,$5,$3
srlv $0,$3,$3
addu $3,$5,$3
srlv $1,$5,$3
sra $3,$3,5
srav $3,$5,$3
xori $1,$4,45490
subu $0,$3,$3
sh $1,2($0)
nor $6,$6,$3
subu $1,$1,$3
srlv $3,$4,$3
sltiu $3,$3,-19276
sllv $5,$2,$3
sb $4,15($0)
xor $5,$3,$3
addiu $3,$1,22120
srav $1,$3,$3
sltu $4,$6,$3
sll $3,$0,12
slti $3,$5,-27023
sltiu $4,$4,-18731
slti $1,$6,-1063
and $3,$6,$3
subu $0,$0,$3
slt $5,$0,$3
addu $3,$5,$3
lw $4,8($0)
addu $4,$4,$3
sh $5,2($0)
srav $3,$3,$3
lh $1,16($0)
sh $5,0($0)
lh $5,8($0)
addu $3,$5,$3
lh $4,4($0)
lbu $3,0($0)
nor $4,$3,$3
lb $4,7($0)
addiu $1,$1,-13752
addu $1,$5,$3
xori $4,$6,60379
slt $3,$4,$3
sltiu $6,$5,10178
lhu $4,16($0)
sllv $5,$5,$3
subu $3,$1,$3
subu $3,$4,$3
and $5,$4,$3
sra $4,$3,4
sll $5,$3,19
addu $0,$3,$3
lw $6,4($0)
slti $5,$2,-27242
srlv $0,$5,$3
addiu $2,$2,-10179
sh $3,16($0)
or $3,$5,$3
addiu $3,$4,-2421
sll $4,$2,6
sll $0,$0,30
or $5,$5,$3
sra $3,$0,5
or $1,$3,$3
slt $5,$4,$3
sltu $3,$3,$3
sb $5,2($0)
or $1,$6,$3
sllv $1,$0,$3
sh $3,6($0)
addu $4,$1,$3
or $0,$3,$3
lh $4,2($0)
sltiu $4,$4,23764
sw $6,12($0)
addu $4,$3,$3
lb $6,15($0)
sll $0,$4,18
or $4,$2,$3
addiu $3,$4,-14138
lh $3,8($0)
xori $3,$4,26856
sra $3,$1,3
sh $5,12($0)
sra $3,$4,29
sltiu $4,$4,-21551
lb $3,6($0)
sllv $3,$1,$3
andi $3,$4,18157
sw $4,0($0)
xori $4,$2,12141
lw $1,12($0)
slt $5,$4,$3
slt $1,$3,$3
srl $4,$4,4
sltu $5,$3,$3
lbu $3,14($0)
nor $5,$1,$3
nor $4,$5,$3
addiu $4,$3,25432
addu $3,$3,$3
lh $5,14($0)
and $1,$0,$3
sw $3,8($0)
sra $3,$0,17
xori $3,$5,9679
srl $4,$1,11
addiu $3,$1,-20060
nor $1,$1,$3
srl $5,$0,9
srav $5,$5,$3
sltiu $3,$3,-26962
subu $3,$3,$3
srav $6,$1,$3
subu $3,$3,$3
sltu $0,$0,$3
ori $1,$3,50292
lw $6,12($0)
subu $3,$4,$3
addu $0,$0,$3
sh $3,4($0)
sw $5,8($0)
lb $5,0($0)
slt $1,$4,$3
lhu $3,8($0)
subu $3,$3,$3
srl $3,$6,24
addiu $3,$0,-16837
addu $4,$4,$3
xori $5,$4,33624
sra $5,$3,7
lh $4,4($0)
lh $4,0($0)
slt $0,$3,$3
addiu $3,$3,19909
or $3,$6,$3
addiu $3,$5,-411
sltu $3,$5,$3
ori $3,$4,40340
sltiu $4,$5,20052
slti $0,$3,-6717
sll $1,$5,0
sra $5,$5,22
and $1,$1,$3
sb $3,6($0)
or $5,$3,$3
subu $6,$3,$3
sltiu $0,$4,1838
subu $6,$3,$3
xori $6,$3,25163
sltu $1,$4,$3
sw $5,4($0)
addiu $4,$4,14569
andi $4,$3,17376
xor $5,$3,$3
sb $5,5($0)
sllv $1,$1,$3
sltu $5,$3,$3
lh $5,2($0)
or $3,$3,$3
sll $5,$4,8
srav $1,$3,$3
subu $3,$3,$3
subu $5,$4,$3
lhu $4,14($0)
nor $5,$5,$3
subu $0,$3,$3
addu $1,$6,$3
lhu $4,14($0)
sltu $0,$1,$3
sw $1,0($0)
slt $4,$4,$3
addu $4,$4,$3
sltiu $1,$6,23742
nor $5,$3,$3
lb $4,8($0)
lb $1,12($0)
slti $0,$2,3915
srlv $4,$1,$3
sll $4,$4,30
srav $4,$3,$3
sra $5,$5,11
sb $0,11($0)
nor $4,$3,$3
sltu $1,$3,$3
sltu $1,$5,$3
lhu $3,12($0)
lb $0,16($0)
srlv $3,$3,$3
subu $3,$2,$3
or $4,$4,$3
lb $0,10($0)
addu $5,$3,$3
lhu $3,2($0)
lw $3,8($0)
subu $5,$4,$3
lw $0,4($0)
and $3,$1,$3
addiu $5,$4,-16079
sra $1,$3,7
or $4,$6,$3
sra $0,$5,13
lw $3,12($0)
sltu $5,$1,$3
xori $3,$3,42175
lb $3,15($0)
subu $1,$0,$3
sllv $1,$1,$3
lh $4,8($0)
lhu $5,16($0)
subu $5,$1,$3
lhu $0,14($0)
ori $5,$3,43962
subu $6,$3,$3
sllv $6,$5,$3
sltiu $4,$4,6332
addiu $1,$1,-1309
xor $1,$5,$3
slt $5,$3,$3
subu $3,$3,$3
and $4,$3,$3
sh $3,6($0)
slti $5,$5,6940
ori $4,$4,47399
lbu $4,15($0)
srlv $3,$3,$3
sra $3,$3,2
and $3,$4,$3
lb $1,16($0)
| 14.022497
| 18
| 0.519814
|
c40a456a573a846c095f23323ded0944e963c51d
| 3,495
|
asm
|
Assembly
|
programs/oeis/053/A053367.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/053/A053367.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/053/A053367.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A053367: Partial sums of A050494.
; 1,11,63,255,825,2277,5577,12441,25740,50050,92378,163098,277134,455430,726750,1129854,1716099,2552517,3725425,5344625,7548255,10508355,14437215,19594575,26295750,34920756,45924516,59848228,77331980,99128700,126119532,159330732,199952181,249357615,309126675,381068883,467249653,570018449,692039205,836323125,1006263984,1205676054,1438834782,1710520350,2026064250,2391399010,2813111210,3298497930,3855626775,4493399625,5221620261,6051066021,6993563643,8062069455,9270754075,10635091787,12171954762,13899712296,15838335240,18009505800,20436732888,23145473208,26163258264,29519827480,33247267625,37380158739,41955726759,47014003047,52597991025,58753840125,65531027265,72982546065,81165104020,90139327850,99969977250,110726167266,122481599526,135314802558,149309381430,164554276950,181144034667,199179083917,218766027161,240017939865,263054681175,288003215643,314997946263,344181059079,375702879630,409722241500,446406867244,485933761964,528489619812,574271243700,623485978500,676352158020,733099566045,793969911735,859217319675,929108834875,1003924943021,1083960106281,1169523314973,1260938655405,1358545894200,1462701079422,1573777158822,1692164615526,1818272121490,1952527209050,2095376960898,2247288718818,2408750811519,2580273301905,2762388754125,2955653020749,3160646050419,3377972716327,3608263665875,3852176191875,4110395125650,4383633752400,4672634749200,4978171146000,5301047310000,5642099953776,6002199167536,6382249475888,6783190919505,7206000162075,7651691622927,8121318635727,8615974633641,9136794361365,9684955114425,10261678006153,10868229262748,11505921546834,12176115309930,12880220174250,13619696344254,14396056048374,15210865011342,16065743957550,16962370145875,17902478936405,18887865389505,19920385897665,21001959850575,22134571333875,23320270862031,24561177145791,25859478894678,27217436654980,28637384683700,30121732858932,31672968627132,33293658987756,34986452515740,36754081422300,38599363654533,40525205034303,42534601436899,44630641009955,46816506433125,49095477219009,51470932055829,53946351192357,56525318865600,59211525771750,62008771580910,64920967496110,67952138857130,71106427789650,74388095900250,77801527017786,81351229981671,85041841477593,88878128921205,92864993390325,97007472606187,101310743964287,105780127615371,110421089597115,115239245017050,120240361287288,125430361411608,130815327325464,136401503289480,142195299337000,148203294776264,154432241747784,160889068837497,167580884746275,174514982016375,181698840815415,189140132778465,196846724908845,204826683538225,213088278346625,221639986442916,230490496506426,239648712990258,249123760386930,258924987556950,269061972120942,279544524915942,290382694516486,301586771821115,313167294704925,325135052738793,337501091975913,350276719806279,363473509879755,377103307098375,391178232678519,405710689283614,420713366228012,436199244752700,452181603373500,468674023302420,485690393942820,503244918459060,521352119421300,540026844526125,559284272393671,579139918441931,599609640838923,620709646533405,642456497364825,664867116253197,687958793469597,711749192987976,736256358918990,761498722026550,787495106327798,814264735777218,841827241035594,870202666324530,899411476367250,929474563416399,960413254369569,992249317973277,1025004972116125,1058702891211875,1093366213673175,1129018549476675,1165683987820275,1203387104873250,1242152971620000
mov $3,$0
lpb $0
mov $2,$0
cal $2,50494 ; Partial sums of A051923.
sub $0,1
add $1,$2
sub $1,1
lpe
add $1,1
add $1,$3
| 249.642857
| 3,329
| 0.908727
|
f28620691b3ca15a4f5ed7f7dc76f2d888fec57a
| 947
|
asm
|
Assembly
|
Lista2/Lista2/Parte2/Programa14.asm
|
GustavoLR548/ACII-GLR
|
135690945f5e29938ef640a3d5475f8a12dbd76c
|
[
"MIT"
] | 1
|
2021-11-03T17:22:02.000Z
|
2021-11-03T17:22:02.000Z
|
Lista2/Lista2/Parte2/Programa14.asm
|
GustavoLR548/ACII-GLR
|
135690945f5e29938ef640a3d5475f8a12dbd76c
|
[
"MIT"
] | null | null | null |
Lista2/Lista2/Parte2/Programa14.asm
|
GustavoLR548/ACII-GLR
|
135690945f5e29938ef640a3d5475f8a12dbd76c
|
[
"MIT"
] | null | null | null |
.data
TEMP: .word 51
FLAG: .word -2
.text
#Pegando o endereco base da data
main:
ori $t0,$zero,0x1001 # t0 = 1001 # Observacao: t0 eh o vetor
sll $t0,$t0,16 # t0 = t0 *= 2^16 = 10010000
addi $t1,$zero, 30 # t1 = 0 + 30
addi $t2,$zero, 50 # t2 = 0 + 50
lw $s0,0($t0) # Resgatar o valor em "0(t0)"
#Primeiro Teste do AND
test1:
slt $t3, $s0, $t1 # se "s0" for menor do que "t1", t3 sera igual a 1 , caso contrario, sera igual a 0
beq $t3,$zero, test2 # va para a funcao "test2" se t3 for igual a zero
sw $zero,4($t0) # salve 0 na posicao "4" em "t0"
j fim
#Segundo Teste do AND
test2:
slt $t3, $t2, $s0 # se "t2" for menor do que "s0", t3 sera igual a 1 , caso contrario, sera igual a 0
beq $t3,$zero, verdade # va para a funcao "verdade" se "t3" for igual a zero
sw $zero,4($t0) # salve 0 na posicao "4" em "t0"
j fim
## if resp == true
verdade:
addi $s0, $zero, 1 # s0 = 1
sw $s0, 4($t0) # salve s0 na posicao "4" em "t0"
fim:
| 27.852941
| 101
| 0.619852
|
eec3fbb19366443d0be4a87ec3546cadbc617c9d
| 8,320
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_1073.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_1073.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_1073.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 %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x860e, %r13
add $10203, %r8
mov (%r13), %rsi
nop
nop
and %r11, %r11
lea addresses_D_ht+0x15cde, %rsi
lea addresses_WC_ht+0x64de, %rdi
xor %rbx, %rbx
mov $19, %rcx
rep movsq
nop
nop
nop
nop
nop
dec %rbx
lea addresses_normal_ht+0xf60e, %r11
nop
nop
cmp $455, %r8
movw $0x6162, (%r11)
cmp $21044, %rdi
lea addresses_WT_ht+0x3b5e, %rsi
lea addresses_A_ht+0x4407, %rdi
nop
nop
nop
nop
cmp $20655, %r10
mov $40, %rcx
rep movsq
nop
nop
nop
cmp %rbx, %rbx
lea addresses_D_ht+0x1ce1e, %rbx
nop
nop
nop
xor $48127, %rdi
mov $0x6162636465666768, %rsi
movq %rsi, %xmm7
movups %xmm7, (%rbx)
nop
nop
nop
nop
dec %rdi
lea addresses_A_ht+0x1de5e, %rcx
nop
add $24810, %r11
mov (%rcx), %rbx
nop
nop
nop
nop
nop
xor %rbx, %rbx
lea addresses_A_ht+0x9c36, %r11
nop
nop
nop
xor $47368, %r13
mov (%r11), %r8d
nop
inc %r10
lea addresses_WC_ht+0x6f7e, %rcx
nop
nop
nop
cmp %r13, %r13
movb (%rcx), %r8b
nop
nop
nop
xor $40364, %rdi
lea addresses_normal_ht+0xa65e, %rsi
lea addresses_A_ht+0x1af5e, %rdi
nop
nop
inc %rbx
mov $126, %rcx
rep movsb
nop
nop
nop
nop
sub $13058, %rdi
lea addresses_A_ht+0x1af2e, %r13
nop
and %r10, %r10
mov (%r13), %bx
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0x1e984, %r11
clflush (%r11)
xor $39308, %r10
mov (%r11), %ecx
nop
nop
nop
add $49988, %r11
lea addresses_WT_ht+0x16b5e, %r11
nop
nop
nop
nop
and $17416, %rsi
movw $0x6162, (%r11)
nop
nop
nop
dec %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r8
push %rax
push %rbp
push %rcx
push %rdi
// Store
lea addresses_WC+0x11c9e, %rdi
nop
nop
nop
xor %r11, %r11
movw $0x5152, (%rdi)
nop
sub $9787, %r11
// Store
lea addresses_PSE+0x18dce, %rcx
clflush (%rcx)
nop
sub $63769, %r11
movl $0x51525354, (%rcx)
nop
nop
nop
nop
dec %rbp
// Store
lea addresses_normal+0x1455e, %r11
inc %r8
movw $0x5152, (%r11)
nop
nop
nop
nop
xor %r11, %r11
// Load
mov $0x6d3ef9000000095e, %rdi
nop
nop
nop
nop
inc %r11
movups (%rdi), %xmm7
vpextrq $1, %xmm7, %rbp
nop
nop
nop
xor $27706, %r10
// Store
lea addresses_UC+0xc25e, %r8
nop
nop
nop
add $16385, %rcx
mov $0x5152535455565758, %rbp
movq %rbp, (%r8)
nop
and %rcx, %rcx
// Store
lea addresses_normal+0x1b85e, %r11
nop
nop
nop
nop
sub $8440, %rbp
mov $0x5152535455565758, %r8
movq %r8, (%r11)
nop
nop
and %rax, %rax
// Faulty Load
lea addresses_UC+0xc25e, %rbp
add $40737, %rax
mov (%rbp), %r10
lea oracles, %rcx
and $0xff, %r10
shlq $12, %r10
mov (%rcx,%r10,1), %r10
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': True, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 3, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 31.877395
| 2,999
| 0.652043
|
9ee3b34e9b0f5925e8ec918adfd382db1fd9ea52
| 541
|
asm
|
Assembly
|
oeis/122/A122865.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/122/A122865.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/122/A122865.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A122865: Expansion of chi(x) * phi(x^3) * psi(-x^3) in powers of x where chi(), phi(), psi() are Ramanujan theta functions.
; Submitted by Jon Maiga
; 1,1,0,2,2,1,0,0,3,0,0,2,2,2,0,0,1,2,0,2,2,1,0,0,2,0,0,2,4,0,0,0,2,3,0,2,2,0,0,0,1,0,0,4,0,2,0,0,4,2,0,0,2,2,0,0,3,0,0,2,2,0,0,0,2,1,0,2,4,2,0,0,0,0,0,2,2,2,0,0,2,2,0,4,0,1,0,0,4,0,0,2,2,0,0,0,3,2,0,2
mul $0,3
seq $0,105673 ; One-half of theta series of square lattice (or half the number of ways of writing n > 0 as a sum of 2 squares), without the constant term, which is 1/2.
div $0,2
| 67.625
| 201
| 0.621072
|
9eed617d83ecde655bef522f73f86e62a0b5dec6
| 2,311
|
asm
|
Assembly
|
projects/07/StackArithmetic/StackTest/StackTest.asm
|
RobertCurry0216/nand2tetris
|
5be3e68b921561f9358b28876e1573b093f1244b
|
[
"MIT"
] | null | null | null |
projects/07/StackArithmetic/StackTest/StackTest.asm
|
RobertCurry0216/nand2tetris
|
5be3e68b921561f9358b28876e1573b093f1244b
|
[
"MIT"
] | null | null | null |
projects/07/StackArithmetic/StackTest/StackTest.asm
|
RobertCurry0216/nand2tetris
|
5be3e68b921561f9358b28876e1573b093f1244b
|
[
"MIT"
] | null | null | null |
// push constant 17
@17
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 17
@17
D=A
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-eq-9
D;JEQ
@end-9
D=0;JMP
(is-eq-9)
D=-1
(end-9)
@SP
A=M-1
M=D
// push constant 17
@17
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 16
@16
D=A
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-eq-12
D;JEQ
@end-12
D=0;JMP
(is-eq-12)
D=-1
(end-12)
@SP
A=M-1
M=D
// push constant 16
@16
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 17
@17
D=A
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-eq-15
D;JEQ
@end-15
D=0;JMP
(is-eq-15)
D=-1
(end-15)
@SP
A=M-1
M=D
// push constant 892
@892
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 891
@891
D=A
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-lt-18
D;JLT
@end-18
D=0;JMP
(is-lt-18)
D=-1
(end-18)
@SP
A=M-1
M=D
// push constant 891
@891
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 892
@892
D=A
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-lt-21
D;JLT
@end-21
D=0;JMP
(is-lt-21)
D=-1
(end-21)
@SP
A=M-1
M=D
// push constant 891
@891
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 891
@891
D=A
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-lt-24
D;JLT
@end-24
D=0;JMP
(is-lt-24)
D=-1
(end-24)
@SP
A=M-1
M=D
// push constant 32767
@32767
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 32766
@32766
D=A
@SP
A=M
M=D
@SP
M=M+1
// gt
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-gt-27
D;JGT
@end-27
D=0;JMP
(is-gt-27)
D=-1
(end-27)
@SP
A=M-1
M=D
// push constant 32766
@32766
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 32767
@32767
D=A
@SP
A=M
M=D
@SP
M=M+1
// gt
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-gt-30
D;JGT
@end-30
D=0;JMP
(is-gt-30)
D=-1
(end-30)
@SP
A=M-1
M=D
// push constant 32766
@32766
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 32766
@32766
D=A
@SP
A=M
M=D
@SP
M=M+1
// gt
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-gt-33
D;JGT
@end-33
D=0;JMP
(is-gt-33)
D=-1
(end-33)
@SP
A=M-1
M=D
// push constant 57
@57
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 31
@31
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 53
@53
D=A
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
AM=M-1
D=M
A=A-1
M=D+M
// push constant 112
@112
D=A
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
AM=M-1
D=M
A=A-1
M=M-D
// neg
@SP
A=M-1
M=-M
// and
@SP
AM=M-1
D=M
A=A-1
M=D&M
// push constant 82
@82
D=A
@SP
A=M
M=D
@SP
M=M+1
// or
@SP
AM=M-1
D=M
A=A-1
M=D|M
// not
@SP
A=M-1
M=!M
| 6.401662
| 22
| 0.564258
|
799d4e44a836b68a418c8a2a5dc47e6abf2fe0b6
| 1,762
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_261_1272.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_261_1272.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_261_1272.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:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r8
push %r9
push %rbp
push %rdx
// Store
mov $0x6e95dd0000000ed4, %r11
nop
nop
nop
add %rbp, %rbp
movl $0x51525354, (%r11)
nop
nop
nop
nop
nop
xor %r11, %r11
// Faulty Load
lea addresses_PSE+0x52c4, %r15
nop
nop
inc %rdx
movups (%r15), %xmm4
vpextrq $1, %xmm4, %r11
lea oracles, %rbp
and $0xff, %r11
shlq $12, %r11
mov (%rbp,%r11,1), %r11
pop %rdx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'33': 261}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 29.366667
| 782
| 0.655505
|
157d0dedfb05c1fd20994b5969b8c91a5c2f33d0
| 7,558
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_st_sm_/i7-8650U_0xd2.log_10252_56.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_st_sm_/i7-8650U_0xd2.log_10252_56.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_st_sm_/i7-8650U_0xd2.log_10252_56.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 %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x10d13, %r13
nop
nop
nop
nop
add %r11, %r11
mov (%r13), %r15w
nop
nop
xor $38807, %rsi
lea addresses_D_ht+0xaa43, %rsi
lea addresses_WT_ht+0xde43, %rdi
nop
nop
dec %r13
mov $102, %rcx
rep movsw
nop
inc %rcx
lea addresses_WC_ht+0x13443, %rsi
lea addresses_normal_ht+0x13b43, %rdi
clflush (%rdi)
nop
nop
nop
cmp %r13, %r13
mov $79, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %r15, %r15
lea addresses_WT_ht+0x2a43, %rsi
lea addresses_WC_ht+0x10243, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
dec %r15
mov $6, %rcx
rep movsq
nop
nop
nop
sub $65134, %rsi
lea addresses_normal_ht+0x18683, %r11
nop
nop
nop
nop
cmp %rax, %rax
mov $0x6162636465666768, %rsi
movq %rsi, (%r11)
nop
nop
and %rsi, %rsi
lea addresses_WC_ht+0x2843, %rdi
nop
nop
nop
nop
nop
sub $40074, %rcx
movb $0x61, (%rdi)
nop
nop
nop
nop
and %r15, %r15
lea addresses_A_ht+0x36a7, %rax
nop
nop
nop
xor $29232, %rsi
movb $0x61, (%rax)
nop
nop
nop
cmp $61435, %rdi
lea addresses_normal_ht+0x1d303, %rcx
nop
nop
nop
and %r11, %r11
movb $0x61, (%rcx)
nop
nop
nop
xor $40615, %r13
lea addresses_UC_ht+0x16573, %rsi
lea addresses_WT_ht+0x2ce7, %rdi
nop
nop
add %r10, %r10
mov $127, %rcx
rep movsq
nop
nop
inc %rdi
lea addresses_A_ht+0x4c3, %rdi
nop
nop
nop
nop
nop
xor %r13, %r13
mov $0x6162636465666768, %r11
movq %r11, %xmm6
movups %xmm6, (%rdi)
nop
nop
nop
nop
sub $18675, %r15
lea addresses_A_ht+0x6be3, %rsi
lea addresses_D_ht+0x1d64b, %rdi
nop
nop
nop
add $40846, %rax
mov $108, %rcx
rep movsb
nop
nop
nop
sub $29426, %r11
lea addresses_A_ht+0x14083, %r13
xor $3318, %rax
vmovups (%r13), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rsi
nop
nop
cmp $28236, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r9
push %rax
push %rdi
push %rdx
// Store
lea addresses_US+0x9043, %rdi
nop
sub %r13, %r13
movb $0x51, (%rdi)
nop
and %rdi, %rdi
// Load
lea addresses_WC+0x206b, %rax
nop
nop
and %r14, %r14
mov (%rax), %r9d
add $58551, %rdi
// Faulty Load
lea addresses_US+0x9043, %r14
nop
cmp %r11, %r11
mov (%r14), %ax
lea oracles, %r9
and $0xff, %rax
shlq $12, %rax
mov (%r9,%rax,1), %rax
pop %rdx
pop %rdi
pop %rax
pop %r9
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 1, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'51': 10252}
51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
| 33.295154
| 2,999
| 0.657052
|
7b0f7b77b77652b77b63ffca9a490d564299b745
| 1,866
|
asm
|
Assembly
|
MegaTest.asm
|
tifa64/SIC-XE-Assembler-
|
ac89abcf400b63b8ddfe79b7fb7d78e624b558dc
|
[
"MIT"
] | null | null | null |
MegaTest.asm
|
tifa64/SIC-XE-Assembler-
|
ac89abcf400b63b8ddfe79b7fb7d78e624b558dc
|
[
"MIT"
] | null | null | null |
MegaTest.asm
|
tifa64/SIC-XE-Assembler-
|
ac89abcf400b63b8ddfe79b7fb7d78e624b558dc
|
[
"MIT"
] | null | null | null |
COPY START 0
FIRST STL RETADR 17202D
LDB #LENGTH 69202D
BASE LENGTH
CLOOP +JSUB RDREC 4B101036
LDA LENGTH 032026
COMP #0 290000
JEQ ENDFIL 332007
+JSUB WRREC 4B10105D
J CLOOP 3F2FEC
ENDFIL LDA EOF 032010
STA BUFFER 0F2016
LDA #3 010003
STA LENGTH 0F200D
+JSUB WRREC 4B10105D
J @RETADR 3E2003
EOF BYTE C’EOF’ 454F46
RETADR RESW 1
LENGTH RESW 1
BUFFER RESB 4096
.
. READ RECORD INTO BUFFER
.
RDREC CLEAR X B410
CLEAR A B400
CLEAR S B440
+LDT #4096 75101000
RLOOP TD INPUT E32019
JEQ RLOOP 332FFA
RD INPUT DB2013
COMPR A,S A004
JEQ EXIT 332008
STCH BUFFER,X 57C003
TIXR T B850
JLT RLOOP 3B2FEA
EXIT STX LENGTH 134000
RSUB 4F0000
INPUT BYTE X'FI' F1
.
. SUBROUTINE TO WRITE RECORD FROM BUFFER
.
WRREC CLEAR X B410
LDT LENGTH 774000
WLOOP TD OUTPUT E32011
JEQ WLOOP 332FFA
LDCH BUFFER,X 53C003
WD OUTPUT DF2008
TIXR T B850
JLT WLOOP 3B2FEF
RSUB 4F0000
OUTPUT BYTE X'05' 05
END FIRST
| 35.884615
| 43
| 0.371383
|
ac6a3e96c173923aaae2bef98ace3c35861cc86c
| 154
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/copysign_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/copysign_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/copysign_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_clib
SECTION code_fp_math48
PUBLIC copysign_callee
EXTERN cm48_sccz80_copysign_callee
defc copysign_callee = cm48_sccz80_copysign_callee
| 15.4
| 50
| 0.88961
|
7221c2d962e2c27c9b8f4a76217429ee65090758
| 1,710
|
asm
|
Assembly
|
host/sgx/windows/host_context.asm
|
thomasten/openenclave
|
1b5038127636e03b1b532f47191802beff61abf7
|
[
"MIT"
] | null | null | null |
host/sgx/windows/host_context.asm
|
thomasten/openenclave
|
1b5038127636e03b1b532f47191802beff61abf7
|
[
"MIT"
] | null | null | null |
host/sgx/windows/host_context.asm
|
thomasten/openenclave
|
1b5038127636e03b1b532f47191802beff61abf7
|
[
"MIT"
] | null | null | null |
;; Copyright (c) Open Enclave SDK contributors.
;; Licensed under the MIT License.
OE_CONTEXT_FLAGS EQU 00
OE_CONTEXT_RBX EQU 08
OE_CONTEXT_RDI EQU 16
OE_CONTEXT_RSI EQU 24
OE_CONTEXT_R12 EQU 32
OE_CONTEXT_R13 EQU 40
OE_CONTEXT_R14 EQU 48
OE_CONTEXT_R15 EQU 56
OE_CONTEXT_FLOAT EQU 64
.CODE
PUBLIC oe_save_host_context
oe_save_host_context PROC
;; Subroutine prologue
push rbp
mov rbp, rsp
;; Save the flags to stack.
pushf
mov rax, [rsp]
mov [rcx+OE_CONTEXT_FLAGS], rax
popf
;; Save general registers.
mov [rcx+OE_CONTEXT_RBX], rbx
mov [rcx+OE_CONTEXT_RDI], rdi
mov [rcx+OE_CONTEXT_RSI], rsi
mov [rcx+OE_CONTEXT_R12], r12
mov [rcx+OE_CONTEXT_R13], r13
mov [rcx+OE_CONTEXT_R14], r14
mov [rcx+OE_CONTEXT_R15], r15
;; Save x87 FPU, MMX and SSE state (includes MXCSR and XMM registers).
fxsave [rcx+OE_CONTEXT_FLOAT]
;; Subroutine epilogue
mov rsp, rbp
pop rbp
ret
oe_save_host_context ENDP
PUBLIC oe_restore_host_context
oe_restore_host_context PROC
;; Subroutine prologue
push rbp
mov rbp, rsp
;; Restore the flags to stack.
push [rcx+OE_CONTEXT_FLAGS]
popfq
;; Restore general registers.
mov rbx, [rcx+OE_CONTEXT_RBX]
mov rdi, [rcx+OE_CONTEXT_RDI]
mov rsi, [rcx+OE_CONTEXT_RSI]
mov r12, [rcx+OE_CONTEXT_R12]
mov r13, [rcx+OE_CONTEXT_R13]
mov r14, [rcx+OE_CONTEXT_R14]
mov r15, [rcx+OE_CONTEXT_R15]
;; Restore x87 FPU, MMX and SSE state (includes MXCSR and XMM registers).
fxrstor [rcx+OE_CONTEXT_FLOAT]
;; Subroutine epilogue
mov rsp, rbp
pop rbp
ret
oe_restore_host_context ENDP
END
| 21.64557
| 77
| 0.687719
|
05212f4e972e1d4c17c2adcc3e368d2538d07d87
| 272
|
asm
|
Assembly
|
input/test6.asm
|
needsguidance/Semref
|
28cbaf2d953e982b22b929516c5e39f7b1c93ffb
|
[
"MIT"
] | 1
|
2019-11-12T22:03:04.000Z
|
2019-11-12T22:03:04.000Z
|
input/test6.asm
|
needsguidance/Semref
|
28cbaf2d953e982b22b929516c5e39f7b1c93ffb
|
[
"MIT"
] | 12
|
2019-10-27T00:14:05.000Z
|
2019-12-02T22:03:16.000Z
|
input/test6.asm
|
needsguidance/Semref
|
28cbaf2d953e982b22b929516c5e39f7b1c93ffb
|
[
"MIT"
] | 1
|
2020-05-21T11:56:43.000Z
|
2020-05-21T11:56:43.000Z
|
org 0
JMPADDR start:
a db A
b db B
suma db 0
resta db 0
and db 0
start:
LOADIM R1, #5
LOADIM R2, #F
ADD R3, R1, R2
STORE suma, R3
SUB R3, R1, R2
STORE resta, R3
AND R3, R1, R2
STORE and, R3
fin:
JMPADDR fin
| 15.111111
| 19
| 0.518382
|
7a17e847c64a73b2736315d5e36a737cc5491cba
| 63,769
|
asm
|
Assembly
|
examples/pxScene2d/external/libnode-v10.15.3/deps/openssl/config/archs/VC-WIN32/asm/crypto/aes/aes-586.asm
|
madanagopaltcomcast/pxCore
|
c4a3a40a190521c8b6383d126c87612eca5b3c42
|
[
"Apache-2.0"
] | 918
|
2016-12-22T02:53:08.000Z
|
2022-03-22T06:21:35.000Z
|
examples/pxScene2d/external/libnode-v10.15.3/deps/openssl/config/archs/VC-WIN32/asm/crypto/aes/aes-586.asm
|
madanagopaltcomcast/pxCore
|
c4a3a40a190521c8b6383d126c87612eca5b3c42
|
[
"Apache-2.0"
] | 1,432
|
2017-06-21T04:08:48.000Z
|
2020-08-25T16:21:15.000Z
|
examples/pxScene2d/external/libnode-v10.15.3/deps/openssl/config/archs/VC-WIN32/asm/crypto/aes/aes-586.asm
|
madanagopaltcomcast/pxCore
|
c4a3a40a190521c8b6383d126c87612eca5b3c42
|
[
"Apache-2.0"
] | 317
|
2017-06-20T19:57:17.000Z
|
2020-09-16T10:28:30.000Z
|
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
$@feat.00 equ 1
section .text code align=64
%else
section .text code
%endif
align 16
__x86_AES_encrypt_compact:
mov DWORD [20+esp],edi
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
mov esi,DWORD [240+edi]
lea esi,[esi*1+esi-2]
lea esi,[esi*8+edi]
mov DWORD [24+esp],esi
mov edi,DWORD [ebp-128]
mov esi,DWORD [ebp-96]
mov edi,DWORD [ebp-64]
mov esi,DWORD [ebp-32]
mov edi,DWORD [ebp]
mov esi,DWORD [32+ebp]
mov edi,DWORD [64+ebp]
mov esi,DWORD [96+ebp]
align 16
L$000loop:
mov esi,eax
and esi,255
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,bh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,ecx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,edx
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov DWORD [4+esp],esi
mov esi,ebx
and esi,255
shr ebx,16
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,ch
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,edx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,eax
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov DWORD [8+esp],esi
mov esi,ecx
and esi,255
shr ecx,24
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,dh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,eax
shr edi,16
and edx,255
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
movzx edi,bh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
and edx,255
movzx edx,BYTE [edx*1+ebp-128]
movzx eax,ah
movzx eax,BYTE [eax*1+ebp-128]
shl eax,8
xor edx,eax
mov eax,DWORD [4+esp]
and ebx,255
movzx ebx,BYTE [ebx*1+ebp-128]
shl ebx,16
xor edx,ebx
mov ebx,DWORD [8+esp]
movzx ecx,BYTE [ecx*1+ebp-128]
shl ecx,24
xor edx,ecx
mov ecx,esi
mov ebp,2155905152
and ebp,ecx
lea edi,[ecx*1+ecx]
mov esi,ebp
shr ebp,7
and edi,4278124286
sub esi,ebp
mov ebp,ecx
and esi,454761243
ror ebp,16
xor esi,edi
mov edi,ecx
xor ecx,esi
ror edi,24
xor esi,ebp
rol ecx,24
xor esi,edi
mov ebp,2155905152
xor ecx,esi
and ebp,edx
lea edi,[edx*1+edx]
mov esi,ebp
shr ebp,7
and edi,4278124286
sub esi,ebp
mov ebp,edx
and esi,454761243
ror ebp,16
xor esi,edi
mov edi,edx
xor edx,esi
ror edi,24
xor esi,ebp
rol edx,24
xor esi,edi
mov ebp,2155905152
xor edx,esi
and ebp,eax
lea edi,[eax*1+eax]
mov esi,ebp
shr ebp,7
and edi,4278124286
sub esi,ebp
mov ebp,eax
and esi,454761243
ror ebp,16
xor esi,edi
mov edi,eax
xor eax,esi
ror edi,24
xor esi,ebp
rol eax,24
xor esi,edi
mov ebp,2155905152
xor eax,esi
and ebp,ebx
lea edi,[ebx*1+ebx]
mov esi,ebp
shr ebp,7
and edi,4278124286
sub esi,ebp
mov ebp,ebx
and esi,454761243
ror ebp,16
xor esi,edi
mov edi,ebx
xor ebx,esi
ror edi,24
xor esi,ebp
rol ebx,24
xor esi,edi
xor ebx,esi
mov edi,DWORD [20+esp]
mov ebp,DWORD [28+esp]
add edi,16
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
cmp edi,DWORD [24+esp]
mov DWORD [20+esp],edi
jb NEAR L$000loop
mov esi,eax
and esi,255
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,bh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,ecx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,edx
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov DWORD [4+esp],esi
mov esi,ebx
and esi,255
shr ebx,16
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,ch
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,edx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,eax
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov DWORD [8+esp],esi
mov esi,ecx
and esi,255
shr ecx,24
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,dh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,eax
shr edi,16
and edx,255
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
movzx edi,bh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov edi,DWORD [20+esp]
and edx,255
movzx edx,BYTE [edx*1+ebp-128]
movzx eax,ah
movzx eax,BYTE [eax*1+ebp-128]
shl eax,8
xor edx,eax
mov eax,DWORD [4+esp]
and ebx,255
movzx ebx,BYTE [ebx*1+ebp-128]
shl ebx,16
xor edx,ebx
mov ebx,DWORD [8+esp]
movzx ecx,BYTE [ecx*1+ebp-128]
shl ecx,24
xor edx,ecx
mov ecx,esi
xor eax,DWORD [16+edi]
xor ebx,DWORD [20+edi]
xor ecx,DWORD [24+edi]
xor edx,DWORD [28+edi]
ret
align 16
__sse_AES_encrypt_compact:
pxor mm0,[edi]
pxor mm4,[8+edi]
mov esi,DWORD [240+edi]
lea esi,[esi*1+esi-2]
lea esi,[esi*8+edi]
mov DWORD [24+esp],esi
mov eax,454761243
mov DWORD [8+esp],eax
mov DWORD [12+esp],eax
mov eax,DWORD [ebp-128]
mov ebx,DWORD [ebp-96]
mov ecx,DWORD [ebp-64]
mov edx,DWORD [ebp-32]
mov eax,DWORD [ebp]
mov ebx,DWORD [32+ebp]
mov ecx,DWORD [64+ebp]
mov edx,DWORD [96+ebp]
align 16
L$001loop:
pshufw mm1,mm0,8
pshufw mm5,mm4,13
movd eax,mm1
movd ebx,mm5
mov DWORD [20+esp],edi
movzx esi,al
movzx edx,ah
pshufw mm2,mm0,13
movzx ecx,BYTE [esi*1+ebp-128]
movzx edi,bl
movzx edx,BYTE [edx*1+ebp-128]
shr eax,16
shl edx,8
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bh
shl esi,16
pshufw mm6,mm4,8
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,ah
shl esi,24
shr ebx,16
or edx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bh
shl esi,8
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,al
shl esi,24
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bl
movd eax,mm2
movd mm0,ecx
movzx ecx,BYTE [edi*1+ebp-128]
movzx edi,ah
shl ecx,16
movd ebx,mm6
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bh
shl esi,24
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bl
shl esi,8
shr ebx,16
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,al
shr eax,16
movd mm1,ecx
movzx ecx,BYTE [edi*1+ebp-128]
movzx edi,ah
shl ecx,16
and eax,255
or ecx,esi
punpckldq mm0,mm1
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bh
shl esi,24
and ebx,255
movzx eax,BYTE [eax*1+ebp-128]
or ecx,esi
shl eax,16
movzx esi,BYTE [edi*1+ebp-128]
or edx,eax
shl esi,8
movzx ebx,BYTE [ebx*1+ebp-128]
or ecx,esi
or edx,ebx
mov edi,DWORD [20+esp]
movd mm4,ecx
movd mm5,edx
punpckldq mm4,mm5
add edi,16
cmp edi,DWORD [24+esp]
ja NEAR L$002out
movq mm2,[8+esp]
pxor mm3,mm3
pxor mm7,mm7
movq mm1,mm0
movq mm5,mm4
pcmpgtb mm3,mm0
pcmpgtb mm7,mm4
pand mm3,mm2
pand mm7,mm2
pshufw mm2,mm0,177
pshufw mm6,mm4,177
paddb mm0,mm0
paddb mm4,mm4
pxor mm0,mm3
pxor mm4,mm7
pshufw mm3,mm2,177
pshufw mm7,mm6,177
pxor mm1,mm0
pxor mm5,mm4
pxor mm0,mm2
pxor mm4,mm6
movq mm2,mm3
movq mm6,mm7
pslld mm3,8
pslld mm7,8
psrld mm2,24
psrld mm6,24
pxor mm0,mm3
pxor mm4,mm7
pxor mm0,mm2
pxor mm4,mm6
movq mm3,mm1
movq mm7,mm5
movq mm2,[edi]
movq mm6,[8+edi]
psrld mm1,8
psrld mm5,8
mov eax,DWORD [ebp-128]
pslld mm3,24
pslld mm7,24
mov ebx,DWORD [ebp-64]
pxor mm0,mm1
pxor mm4,mm5
mov ecx,DWORD [ebp]
pxor mm0,mm3
pxor mm4,mm7
mov edx,DWORD [64+ebp]
pxor mm0,mm2
pxor mm4,mm6
jmp NEAR L$001loop
align 16
L$002out:
pxor mm0,[edi]
pxor mm4,[8+edi]
ret
align 16
__x86_AES_encrypt:
mov DWORD [20+esp],edi
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
mov esi,DWORD [240+edi]
lea esi,[esi*1+esi-2]
lea esi,[esi*8+edi]
mov DWORD [24+esp],esi
align 16
L$003loop:
mov esi,eax
and esi,255
mov esi,DWORD [esi*8+ebp]
movzx edi,bh
xor esi,DWORD [3+edi*8+ebp]
mov edi,ecx
shr edi,16
and edi,255
xor esi,DWORD [2+edi*8+ebp]
mov edi,edx
shr edi,24
xor esi,DWORD [1+edi*8+ebp]
mov DWORD [4+esp],esi
mov esi,ebx
and esi,255
shr ebx,16
mov esi,DWORD [esi*8+ebp]
movzx edi,ch
xor esi,DWORD [3+edi*8+ebp]
mov edi,edx
shr edi,16
and edi,255
xor esi,DWORD [2+edi*8+ebp]
mov edi,eax
shr edi,24
xor esi,DWORD [1+edi*8+ebp]
mov DWORD [8+esp],esi
mov esi,ecx
and esi,255
shr ecx,24
mov esi,DWORD [esi*8+ebp]
movzx edi,dh
xor esi,DWORD [3+edi*8+ebp]
mov edi,eax
shr edi,16
and edx,255
and edi,255
xor esi,DWORD [2+edi*8+ebp]
movzx edi,bh
xor esi,DWORD [1+edi*8+ebp]
mov edi,DWORD [20+esp]
mov edx,DWORD [edx*8+ebp]
movzx eax,ah
xor edx,DWORD [3+eax*8+ebp]
mov eax,DWORD [4+esp]
and ebx,255
xor edx,DWORD [2+ebx*8+ebp]
mov ebx,DWORD [8+esp]
xor edx,DWORD [1+ecx*8+ebp]
mov ecx,esi
add edi,16
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
cmp edi,DWORD [24+esp]
mov DWORD [20+esp],edi
jb NEAR L$003loop
mov esi,eax
and esi,255
mov esi,DWORD [2+esi*8+ebp]
and esi,255
movzx edi,bh
mov edi,DWORD [edi*8+ebp]
and edi,65280
xor esi,edi
mov edi,ecx
shr edi,16
and edi,255
mov edi,DWORD [edi*8+ebp]
and edi,16711680
xor esi,edi
mov edi,edx
shr edi,24
mov edi,DWORD [2+edi*8+ebp]
and edi,4278190080
xor esi,edi
mov DWORD [4+esp],esi
mov esi,ebx
and esi,255
shr ebx,16
mov esi,DWORD [2+esi*8+ebp]
and esi,255
movzx edi,ch
mov edi,DWORD [edi*8+ebp]
and edi,65280
xor esi,edi
mov edi,edx
shr edi,16
and edi,255
mov edi,DWORD [edi*8+ebp]
and edi,16711680
xor esi,edi
mov edi,eax
shr edi,24
mov edi,DWORD [2+edi*8+ebp]
and edi,4278190080
xor esi,edi
mov DWORD [8+esp],esi
mov esi,ecx
and esi,255
shr ecx,24
mov esi,DWORD [2+esi*8+ebp]
and esi,255
movzx edi,dh
mov edi,DWORD [edi*8+ebp]
and edi,65280
xor esi,edi
mov edi,eax
shr edi,16
and edx,255
and edi,255
mov edi,DWORD [edi*8+ebp]
and edi,16711680
xor esi,edi
movzx edi,bh
mov edi,DWORD [2+edi*8+ebp]
and edi,4278190080
xor esi,edi
mov edi,DWORD [20+esp]
and edx,255
mov edx,DWORD [2+edx*8+ebp]
and edx,255
movzx eax,ah
mov eax,DWORD [eax*8+ebp]
and eax,65280
xor edx,eax
mov eax,DWORD [4+esp]
and ebx,255
mov ebx,DWORD [ebx*8+ebp]
and ebx,16711680
xor edx,ebx
mov ebx,DWORD [8+esp]
mov ecx,DWORD [2+ecx*8+ebp]
and ecx,4278190080
xor edx,ecx
mov ecx,esi
add edi,16
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
ret
align 64
L$AES_Te:
dd 2774754246,2774754246
dd 2222750968,2222750968
dd 2574743534,2574743534
dd 2373680118,2373680118
dd 234025727,234025727
dd 3177933782,3177933782
dd 2976870366,2976870366
dd 1422247313,1422247313
dd 1345335392,1345335392
dd 50397442,50397442
dd 2842126286,2842126286
dd 2099981142,2099981142
dd 436141799,436141799
dd 1658312629,1658312629
dd 3870010189,3870010189
dd 2591454956,2591454956
dd 1170918031,1170918031
dd 2642575903,2642575903
dd 1086966153,1086966153
dd 2273148410,2273148410
dd 368769775,368769775
dd 3948501426,3948501426
dd 3376891790,3376891790
dd 200339707,200339707
dd 3970805057,3970805057
dd 1742001331,1742001331
dd 4255294047,4255294047
dd 3937382213,3937382213
dd 3214711843,3214711843
dd 4154762323,4154762323
dd 2524082916,2524082916
dd 1539358875,1539358875
dd 3266819957,3266819957
dd 486407649,486407649
dd 2928907069,2928907069
dd 1780885068,1780885068
dd 1513502316,1513502316
dd 1094664062,1094664062
dd 49805301,49805301
dd 1338821763,1338821763
dd 1546925160,1546925160
dd 4104496465,4104496465
dd 887481809,887481809
dd 150073849,150073849
dd 2473685474,2473685474
dd 1943591083,1943591083
dd 1395732834,1395732834
dd 1058346282,1058346282
dd 201589768,201589768
dd 1388824469,1388824469
dd 1696801606,1696801606
dd 1589887901,1589887901
dd 672667696,672667696
dd 2711000631,2711000631
dd 251987210,251987210
dd 3046808111,3046808111
dd 151455502,151455502
dd 907153956,907153956
dd 2608889883,2608889883
dd 1038279391,1038279391
dd 652995533,652995533
dd 1764173646,1764173646
dd 3451040383,3451040383
dd 2675275242,2675275242
dd 453576978,453576978
dd 2659418909,2659418909
dd 1949051992,1949051992
dd 773462580,773462580
dd 756751158,756751158
dd 2993581788,2993581788
dd 3998898868,3998898868
dd 4221608027,4221608027
dd 4132590244,4132590244
dd 1295727478,1295727478
dd 1641469623,1641469623
dd 3467883389,3467883389
dd 2066295122,2066295122
dd 1055122397,1055122397
dd 1898917726,1898917726
dd 2542044179,2542044179
dd 4115878822,4115878822
dd 1758581177,1758581177
dd 0,0
dd 753790401,753790401
dd 1612718144,1612718144
dd 536673507,536673507
dd 3367088505,3367088505
dd 3982187446,3982187446
dd 3194645204,3194645204
dd 1187761037,1187761037
dd 3653156455,3653156455
dd 1262041458,1262041458
dd 3729410708,3729410708
dd 3561770136,3561770136
dd 3898103984,3898103984
dd 1255133061,1255133061
dd 1808847035,1808847035
dd 720367557,720367557
dd 3853167183,3853167183
dd 385612781,385612781
dd 3309519750,3309519750
dd 3612167578,3612167578
dd 1429418854,1429418854
dd 2491778321,2491778321
dd 3477423498,3477423498
dd 284817897,284817897
dd 100794884,100794884
dd 2172616702,2172616702
dd 4031795360,4031795360
dd 1144798328,1144798328
dd 3131023141,3131023141
dd 3819481163,3819481163
dd 4082192802,4082192802
dd 4272137053,4272137053
dd 3225436288,3225436288
dd 2324664069,2324664069
dd 2912064063,2912064063
dd 3164445985,3164445985
dd 1211644016,1211644016
dd 83228145,83228145
dd 3753688163,3753688163
dd 3249976951,3249976951
dd 1977277103,1977277103
dd 1663115586,1663115586
dd 806359072,806359072
dd 452984805,452984805
dd 250868733,250868733
dd 1842533055,1842533055
dd 1288555905,1288555905
dd 336333848,336333848
dd 890442534,890442534
dd 804056259,804056259
dd 3781124030,3781124030
dd 2727843637,2727843637
dd 3427026056,3427026056
dd 957814574,957814574
dd 1472513171,1472513171
dd 4071073621,4071073621
dd 2189328124,2189328124
dd 1195195770,1195195770
dd 2892260552,2892260552
dd 3881655738,3881655738
dd 723065138,723065138
dd 2507371494,2507371494
dd 2690670784,2690670784
dd 2558624025,2558624025
dd 3511635870,3511635870
dd 2145180835,2145180835
dd 1713513028,1713513028
dd 2116692564,2116692564
dd 2878378043,2878378043
dd 2206763019,2206763019
dd 3393603212,3393603212
dd 703524551,703524551
dd 3552098411,3552098411
dd 1007948840,1007948840
dd 2044649127,2044649127
dd 3797835452,3797835452
dd 487262998,487262998
dd 1994120109,1994120109
dd 1004593371,1004593371
dd 1446130276,1446130276
dd 1312438900,1312438900
dd 503974420,503974420
dd 3679013266,3679013266
dd 168166924,168166924
dd 1814307912,1814307912
dd 3831258296,3831258296
dd 1573044895,1573044895
dd 1859376061,1859376061
dd 4021070915,4021070915
dd 2791465668,2791465668
dd 2828112185,2828112185
dd 2761266481,2761266481
dd 937747667,937747667
dd 2339994098,2339994098
dd 854058965,854058965
dd 1137232011,1137232011
dd 1496790894,1496790894
dd 3077402074,3077402074
dd 2358086913,2358086913
dd 1691735473,1691735473
dd 3528347292,3528347292
dd 3769215305,3769215305
dd 3027004632,3027004632
dd 4199962284,4199962284
dd 133494003,133494003
dd 636152527,636152527
dd 2942657994,2942657994
dd 2390391540,2390391540
dd 3920539207,3920539207
dd 403179536,403179536
dd 3585784431,3585784431
dd 2289596656,2289596656
dd 1864705354,1864705354
dd 1915629148,1915629148
dd 605822008,605822008
dd 4054230615,4054230615
dd 3350508659,3350508659
dd 1371981463,1371981463
dd 602466507,602466507
dd 2094914977,2094914977
dd 2624877800,2624877800
dd 555687742,555687742
dd 3712699286,3712699286
dd 3703422305,3703422305
dd 2257292045,2257292045
dd 2240449039,2240449039
dd 2423288032,2423288032
dd 1111375484,1111375484
dd 3300242801,3300242801
dd 2858837708,2858837708
dd 3628615824,3628615824
dd 84083462,84083462
dd 32962295,32962295
dd 302911004,302911004
dd 2741068226,2741068226
dd 1597322602,1597322602
dd 4183250862,4183250862
dd 3501832553,3501832553
dd 2441512471,2441512471
dd 1489093017,1489093017
dd 656219450,656219450
dd 3114180135,3114180135
dd 954327513,954327513
dd 335083755,335083755
dd 3013122091,3013122091
dd 856756514,856756514
dd 3144247762,3144247762
dd 1893325225,1893325225
dd 2307821063,2307821063
dd 2811532339,2811532339
dd 3063651117,3063651117
dd 572399164,572399164
dd 2458355477,2458355477
dd 552200649,552200649
dd 1238290055,1238290055
dd 4283782570,4283782570
dd 2015897680,2015897680
dd 2061492133,2061492133
dd 2408352771,2408352771
dd 4171342169,4171342169
dd 2156497161,2156497161
dd 386731290,386731290
dd 3669999461,3669999461
dd 837215959,837215959
dd 3326231172,3326231172
dd 3093850320,3093850320
dd 3275833730,3275833730
dd 2962856233,2962856233
dd 1999449434,1999449434
dd 286199582,286199582
dd 3417354363,3417354363
dd 4233385128,4233385128
dd 3602627437,3602627437
dd 974525996,974525996
db 99,124,119,123,242,107,111,197
db 48,1,103,43,254,215,171,118
db 202,130,201,125,250,89,71,240
db 173,212,162,175,156,164,114,192
db 183,253,147,38,54,63,247,204
db 52,165,229,241,113,216,49,21
db 4,199,35,195,24,150,5,154
db 7,18,128,226,235,39,178,117
db 9,131,44,26,27,110,90,160
db 82,59,214,179,41,227,47,132
db 83,209,0,237,32,252,177,91
db 106,203,190,57,74,76,88,207
db 208,239,170,251,67,77,51,133
db 69,249,2,127,80,60,159,168
db 81,163,64,143,146,157,56,245
db 188,182,218,33,16,255,243,210
db 205,12,19,236,95,151,68,23
db 196,167,126,61,100,93,25,115
db 96,129,79,220,34,42,144,136
db 70,238,184,20,222,94,11,219
db 224,50,58,10,73,6,36,92
db 194,211,172,98,145,149,228,121
db 231,200,55,109,141,213,78,169
db 108,86,244,234,101,122,174,8
db 186,120,37,46,28,166,180,198
db 232,221,116,31,75,189,139,138
db 112,62,181,102,72,3,246,14
db 97,53,87,185,134,193,29,158
db 225,248,152,17,105,217,142,148
db 155,30,135,233,206,85,40,223
db 140,161,137,13,191,230,66,104
db 65,153,45,15,176,84,187,22
db 99,124,119,123,242,107,111,197
db 48,1,103,43,254,215,171,118
db 202,130,201,125,250,89,71,240
db 173,212,162,175,156,164,114,192
db 183,253,147,38,54,63,247,204
db 52,165,229,241,113,216,49,21
db 4,199,35,195,24,150,5,154
db 7,18,128,226,235,39,178,117
db 9,131,44,26,27,110,90,160
db 82,59,214,179,41,227,47,132
db 83,209,0,237,32,252,177,91
db 106,203,190,57,74,76,88,207
db 208,239,170,251,67,77,51,133
db 69,249,2,127,80,60,159,168
db 81,163,64,143,146,157,56,245
db 188,182,218,33,16,255,243,210
db 205,12,19,236,95,151,68,23
db 196,167,126,61,100,93,25,115
db 96,129,79,220,34,42,144,136
db 70,238,184,20,222,94,11,219
db 224,50,58,10,73,6,36,92
db 194,211,172,98,145,149,228,121
db 231,200,55,109,141,213,78,169
db 108,86,244,234,101,122,174,8
db 186,120,37,46,28,166,180,198
db 232,221,116,31,75,189,139,138
db 112,62,181,102,72,3,246,14
db 97,53,87,185,134,193,29,158
db 225,248,152,17,105,217,142,148
db 155,30,135,233,206,85,40,223
db 140,161,137,13,191,230,66,104
db 65,153,45,15,176,84,187,22
db 99,124,119,123,242,107,111,197
db 48,1,103,43,254,215,171,118
db 202,130,201,125,250,89,71,240
db 173,212,162,175,156,164,114,192
db 183,253,147,38,54,63,247,204
db 52,165,229,241,113,216,49,21
db 4,199,35,195,24,150,5,154
db 7,18,128,226,235,39,178,117
db 9,131,44,26,27,110,90,160
db 82,59,214,179,41,227,47,132
db 83,209,0,237,32,252,177,91
db 106,203,190,57,74,76,88,207
db 208,239,170,251,67,77,51,133
db 69,249,2,127,80,60,159,168
db 81,163,64,143,146,157,56,245
db 188,182,218,33,16,255,243,210
db 205,12,19,236,95,151,68,23
db 196,167,126,61,100,93,25,115
db 96,129,79,220,34,42,144,136
db 70,238,184,20,222,94,11,219
db 224,50,58,10,73,6,36,92
db 194,211,172,98,145,149,228,121
db 231,200,55,109,141,213,78,169
db 108,86,244,234,101,122,174,8
db 186,120,37,46,28,166,180,198
db 232,221,116,31,75,189,139,138
db 112,62,181,102,72,3,246,14
db 97,53,87,185,134,193,29,158
db 225,248,152,17,105,217,142,148
db 155,30,135,233,206,85,40,223
db 140,161,137,13,191,230,66,104
db 65,153,45,15,176,84,187,22
db 99,124,119,123,242,107,111,197
db 48,1,103,43,254,215,171,118
db 202,130,201,125,250,89,71,240
db 173,212,162,175,156,164,114,192
db 183,253,147,38,54,63,247,204
db 52,165,229,241,113,216,49,21
db 4,199,35,195,24,150,5,154
db 7,18,128,226,235,39,178,117
db 9,131,44,26,27,110,90,160
db 82,59,214,179,41,227,47,132
db 83,209,0,237,32,252,177,91
db 106,203,190,57,74,76,88,207
db 208,239,170,251,67,77,51,133
db 69,249,2,127,80,60,159,168
db 81,163,64,143,146,157,56,245
db 188,182,218,33,16,255,243,210
db 205,12,19,236,95,151,68,23
db 196,167,126,61,100,93,25,115
db 96,129,79,220,34,42,144,136
db 70,238,184,20,222,94,11,219
db 224,50,58,10,73,6,36,92
db 194,211,172,98,145,149,228,121
db 231,200,55,109,141,213,78,169
db 108,86,244,234,101,122,174,8
db 186,120,37,46,28,166,180,198
db 232,221,116,31,75,189,139,138
db 112,62,181,102,72,3,246,14
db 97,53,87,185,134,193,29,158
db 225,248,152,17,105,217,142,148
db 155,30,135,233,206,85,40,223
db 140,161,137,13,191,230,66,104
db 65,153,45,15,176,84,187,22
dd 1,2,4,8
dd 16,32,64,128
dd 27,54,0,0
dd 0,0,0,0
global _AES_encrypt
align 16
_AES_encrypt:
L$_AES_encrypt_begin:
push ebp
push ebx
push esi
push edi
mov esi,DWORD [20+esp]
mov edi,DWORD [28+esp]
mov eax,esp
sub esp,36
and esp,-64
lea ebx,[edi-127]
sub ebx,esp
neg ebx
and ebx,960
sub esp,ebx
add esp,4
mov DWORD [28+esp],eax
call L$004pic_point
L$004pic_point:
pop ebp
lea eax,[_OPENSSL_ia32cap_P]
lea ebp,[(L$AES_Te-L$004pic_point)+ebp]
lea ebx,[764+esp]
sub ebx,ebp
and ebx,768
lea ebp,[2176+ebx*1+ebp]
bt DWORD [eax],25
jnc NEAR L$005x86
movq mm0,[esi]
movq mm4,[8+esi]
call __sse_AES_encrypt_compact
mov esp,DWORD [28+esp]
mov esi,DWORD [24+esp]
movq [esi],mm0
movq [8+esi],mm4
emms
pop edi
pop esi
pop ebx
pop ebp
ret
align 16
L$005x86:
mov DWORD [24+esp],ebp
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
call __x86_AES_encrypt_compact
mov esp,DWORD [28+esp]
mov esi,DWORD [24+esp]
mov DWORD [esi],eax
mov DWORD [4+esi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
pop edi
pop esi
pop ebx
pop ebp
ret
align 16
__x86_AES_decrypt_compact:
mov DWORD [20+esp],edi
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
mov esi,DWORD [240+edi]
lea esi,[esi*1+esi-2]
lea esi,[esi*8+edi]
mov DWORD [24+esp],esi
mov edi,DWORD [ebp-128]
mov esi,DWORD [ebp-96]
mov edi,DWORD [ebp-64]
mov esi,DWORD [ebp-32]
mov edi,DWORD [ebp]
mov esi,DWORD [32+ebp]
mov edi,DWORD [64+ebp]
mov esi,DWORD [96+ebp]
align 16
L$006loop:
mov esi,eax
and esi,255
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,dh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,ecx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,ebx
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov DWORD [4+esp],esi
mov esi,ebx
and esi,255
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,ah
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,edx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,ecx
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov DWORD [8+esp],esi
mov esi,ecx
and esi,255
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,bh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,eax
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,edx
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
and edx,255
movzx edx,BYTE [edx*1+ebp-128]
movzx ecx,ch
movzx ecx,BYTE [ecx*1+ebp-128]
shl ecx,8
xor edx,ecx
mov ecx,esi
shr ebx,16
and ebx,255
movzx ebx,BYTE [ebx*1+ebp-128]
shl ebx,16
xor edx,ebx
shr eax,24
movzx eax,BYTE [eax*1+ebp-128]
shl eax,24
xor edx,eax
mov edi,2155905152
and edi,ecx
mov esi,edi
shr edi,7
lea eax,[ecx*1+ecx]
sub esi,edi
and eax,4278124286
and esi,454761243
xor eax,esi
mov edi,2155905152
and edi,eax
mov esi,edi
shr edi,7
lea ebx,[eax*1+eax]
sub esi,edi
and ebx,4278124286
and esi,454761243
xor eax,ecx
xor ebx,esi
mov edi,2155905152
and edi,ebx
mov esi,edi
shr edi,7
lea ebp,[ebx*1+ebx]
sub esi,edi
and ebp,4278124286
and esi,454761243
xor ebx,ecx
rol ecx,8
xor ebp,esi
xor ecx,eax
xor eax,ebp
xor ecx,ebx
xor ebx,ebp
rol eax,24
xor ecx,ebp
rol ebx,16
xor ecx,eax
rol ebp,8
xor ecx,ebx
mov eax,DWORD [4+esp]
xor ecx,ebp
mov DWORD [12+esp],ecx
mov edi,2155905152
and edi,edx
mov esi,edi
shr edi,7
lea ebx,[edx*1+edx]
sub esi,edi
and ebx,4278124286
and esi,454761243
xor ebx,esi
mov edi,2155905152
and edi,ebx
mov esi,edi
shr edi,7
lea ecx,[ebx*1+ebx]
sub esi,edi
and ecx,4278124286
and esi,454761243
xor ebx,edx
xor ecx,esi
mov edi,2155905152
and edi,ecx
mov esi,edi
shr edi,7
lea ebp,[ecx*1+ecx]
sub esi,edi
and ebp,4278124286
and esi,454761243
xor ecx,edx
rol edx,8
xor ebp,esi
xor edx,ebx
xor ebx,ebp
xor edx,ecx
xor ecx,ebp
rol ebx,24
xor edx,ebp
rol ecx,16
xor edx,ebx
rol ebp,8
xor edx,ecx
mov ebx,DWORD [8+esp]
xor edx,ebp
mov DWORD [16+esp],edx
mov edi,2155905152
and edi,eax
mov esi,edi
shr edi,7
lea ecx,[eax*1+eax]
sub esi,edi
and ecx,4278124286
and esi,454761243
xor ecx,esi
mov edi,2155905152
and edi,ecx
mov esi,edi
shr edi,7
lea edx,[ecx*1+ecx]
sub esi,edi
and edx,4278124286
and esi,454761243
xor ecx,eax
xor edx,esi
mov edi,2155905152
and edi,edx
mov esi,edi
shr edi,7
lea ebp,[edx*1+edx]
sub esi,edi
and ebp,4278124286
and esi,454761243
xor edx,eax
rol eax,8
xor ebp,esi
xor eax,ecx
xor ecx,ebp
xor eax,edx
xor edx,ebp
rol ecx,24
xor eax,ebp
rol edx,16
xor eax,ecx
rol ebp,8
xor eax,edx
xor eax,ebp
mov edi,2155905152
and edi,ebx
mov esi,edi
shr edi,7
lea ecx,[ebx*1+ebx]
sub esi,edi
and ecx,4278124286
and esi,454761243
xor ecx,esi
mov edi,2155905152
and edi,ecx
mov esi,edi
shr edi,7
lea edx,[ecx*1+ecx]
sub esi,edi
and edx,4278124286
and esi,454761243
xor ecx,ebx
xor edx,esi
mov edi,2155905152
and edi,edx
mov esi,edi
shr edi,7
lea ebp,[edx*1+edx]
sub esi,edi
and ebp,4278124286
and esi,454761243
xor edx,ebx
rol ebx,8
xor ebp,esi
xor ebx,ecx
xor ecx,ebp
xor ebx,edx
xor edx,ebp
rol ecx,24
xor ebx,ebp
rol edx,16
xor ebx,ecx
rol ebp,8
xor ebx,edx
mov ecx,DWORD [12+esp]
xor ebx,ebp
mov edx,DWORD [16+esp]
mov edi,DWORD [20+esp]
mov ebp,DWORD [28+esp]
add edi,16
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
cmp edi,DWORD [24+esp]
mov DWORD [20+esp],edi
jb NEAR L$006loop
mov esi,eax
and esi,255
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,dh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,ecx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,ebx
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov DWORD [4+esp],esi
mov esi,ebx
and esi,255
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,ah
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,edx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,ecx
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov DWORD [8+esp],esi
mov esi,ecx
and esi,255
movzx esi,BYTE [esi*1+ebp-128]
movzx edi,bh
movzx edi,BYTE [edi*1+ebp-128]
shl edi,8
xor esi,edi
mov edi,eax
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp-128]
shl edi,16
xor esi,edi
mov edi,edx
shr edi,24
movzx edi,BYTE [edi*1+ebp-128]
shl edi,24
xor esi,edi
mov edi,DWORD [20+esp]
and edx,255
movzx edx,BYTE [edx*1+ebp-128]
movzx ecx,ch
movzx ecx,BYTE [ecx*1+ebp-128]
shl ecx,8
xor edx,ecx
mov ecx,esi
shr ebx,16
and ebx,255
movzx ebx,BYTE [ebx*1+ebp-128]
shl ebx,16
xor edx,ebx
mov ebx,DWORD [8+esp]
shr eax,24
movzx eax,BYTE [eax*1+ebp-128]
shl eax,24
xor edx,eax
mov eax,DWORD [4+esp]
xor eax,DWORD [16+edi]
xor ebx,DWORD [20+edi]
xor ecx,DWORD [24+edi]
xor edx,DWORD [28+edi]
ret
align 16
__sse_AES_decrypt_compact:
pxor mm0,[edi]
pxor mm4,[8+edi]
mov esi,DWORD [240+edi]
lea esi,[esi*1+esi-2]
lea esi,[esi*8+edi]
mov DWORD [24+esp],esi
mov eax,454761243
mov DWORD [8+esp],eax
mov DWORD [12+esp],eax
mov eax,DWORD [ebp-128]
mov ebx,DWORD [ebp-96]
mov ecx,DWORD [ebp-64]
mov edx,DWORD [ebp-32]
mov eax,DWORD [ebp]
mov ebx,DWORD [32+ebp]
mov ecx,DWORD [64+ebp]
mov edx,DWORD [96+ebp]
align 16
L$007loop:
pshufw mm1,mm0,12
pshufw mm5,mm4,9
movd eax,mm1
movd ebx,mm5
mov DWORD [20+esp],edi
movzx esi,al
movzx edx,ah
pshufw mm2,mm0,6
movzx ecx,BYTE [esi*1+ebp-128]
movzx edi,bl
movzx edx,BYTE [edx*1+ebp-128]
shr eax,16
shl edx,8
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bh
shl esi,16
pshufw mm6,mm4,3
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,ah
shl esi,24
shr ebx,16
or edx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bh
shl esi,24
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,al
shl esi,8
movd eax,mm2
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bl
shl esi,16
movd ebx,mm6
movd mm0,ecx
movzx ecx,BYTE [edi*1+ebp-128]
movzx edi,al
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bl
or edx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,ah
shl esi,16
shr eax,16
or edx,esi
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,bh
shr ebx,16
shl esi,8
movd mm1,edx
movzx edx,BYTE [edi*1+ebp-128]
movzx edi,bh
shl edx,24
and ebx,255
or edx,esi
punpckldq mm0,mm1
movzx esi,BYTE [edi*1+ebp-128]
movzx edi,al
shl esi,8
movzx eax,ah
movzx ebx,BYTE [ebx*1+ebp-128]
or ecx,esi
movzx esi,BYTE [edi*1+ebp-128]
or edx,ebx
shl esi,16
movzx eax,BYTE [eax*1+ebp-128]
or edx,esi
shl eax,24
or ecx,eax
mov edi,DWORD [20+esp]
movd mm4,edx
movd mm5,ecx
punpckldq mm4,mm5
add edi,16
cmp edi,DWORD [24+esp]
ja NEAR L$008out
movq mm3,mm0
movq mm7,mm4
pshufw mm2,mm0,228
pshufw mm6,mm4,228
movq mm1,mm0
movq mm5,mm4
pshufw mm0,mm0,177
pshufw mm4,mm4,177
pslld mm2,8
pslld mm6,8
psrld mm3,8
psrld mm7,8
pxor mm0,mm2
pxor mm4,mm6
pxor mm0,mm3
pxor mm4,mm7
pslld mm2,16
pslld mm6,16
psrld mm3,16
psrld mm7,16
pxor mm0,mm2
pxor mm4,mm6
pxor mm0,mm3
pxor mm4,mm7
movq mm3,[8+esp]
pxor mm2,mm2
pxor mm6,mm6
pcmpgtb mm2,mm1
pcmpgtb mm6,mm5
pand mm2,mm3
pand mm6,mm3
paddb mm1,mm1
paddb mm5,mm5
pxor mm1,mm2
pxor mm5,mm6
movq mm3,mm1
movq mm7,mm5
movq mm2,mm1
movq mm6,mm5
pxor mm0,mm1
pxor mm4,mm5
pslld mm3,24
pslld mm7,24
psrld mm2,8
psrld mm6,8
pxor mm0,mm3
pxor mm4,mm7
pxor mm0,mm2
pxor mm4,mm6
movq mm2,[8+esp]
pxor mm3,mm3
pxor mm7,mm7
pcmpgtb mm3,mm1
pcmpgtb mm7,mm5
pand mm3,mm2
pand mm7,mm2
paddb mm1,mm1
paddb mm5,mm5
pxor mm1,mm3
pxor mm5,mm7
pshufw mm3,mm1,177
pshufw mm7,mm5,177
pxor mm0,mm1
pxor mm4,mm5
pxor mm0,mm3
pxor mm4,mm7
pxor mm3,mm3
pxor mm7,mm7
pcmpgtb mm3,mm1
pcmpgtb mm7,mm5
pand mm3,mm2
pand mm7,mm2
paddb mm1,mm1
paddb mm5,mm5
pxor mm1,mm3
pxor mm5,mm7
pxor mm0,mm1
pxor mm4,mm5
movq mm3,mm1
movq mm7,mm5
pshufw mm2,mm1,177
pshufw mm6,mm5,177
pxor mm0,mm2
pxor mm4,mm6
pslld mm1,8
pslld mm5,8
psrld mm3,8
psrld mm7,8
movq mm2,[edi]
movq mm6,[8+edi]
pxor mm0,mm1
pxor mm4,mm5
pxor mm0,mm3
pxor mm4,mm7
mov eax,DWORD [ebp-128]
pslld mm1,16
pslld mm5,16
mov ebx,DWORD [ebp-64]
psrld mm3,16
psrld mm7,16
mov ecx,DWORD [ebp]
pxor mm0,mm1
pxor mm4,mm5
mov edx,DWORD [64+ebp]
pxor mm0,mm3
pxor mm4,mm7
pxor mm0,mm2
pxor mm4,mm6
jmp NEAR L$007loop
align 16
L$008out:
pxor mm0,[edi]
pxor mm4,[8+edi]
ret
align 16
__x86_AES_decrypt:
mov DWORD [20+esp],edi
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
mov esi,DWORD [240+edi]
lea esi,[esi*1+esi-2]
lea esi,[esi*8+edi]
mov DWORD [24+esp],esi
align 16
L$009loop:
mov esi,eax
and esi,255
mov esi,DWORD [esi*8+ebp]
movzx edi,dh
xor esi,DWORD [3+edi*8+ebp]
mov edi,ecx
shr edi,16
and edi,255
xor esi,DWORD [2+edi*8+ebp]
mov edi,ebx
shr edi,24
xor esi,DWORD [1+edi*8+ebp]
mov DWORD [4+esp],esi
mov esi,ebx
and esi,255
mov esi,DWORD [esi*8+ebp]
movzx edi,ah
xor esi,DWORD [3+edi*8+ebp]
mov edi,edx
shr edi,16
and edi,255
xor esi,DWORD [2+edi*8+ebp]
mov edi,ecx
shr edi,24
xor esi,DWORD [1+edi*8+ebp]
mov DWORD [8+esp],esi
mov esi,ecx
and esi,255
mov esi,DWORD [esi*8+ebp]
movzx edi,bh
xor esi,DWORD [3+edi*8+ebp]
mov edi,eax
shr edi,16
and edi,255
xor esi,DWORD [2+edi*8+ebp]
mov edi,edx
shr edi,24
xor esi,DWORD [1+edi*8+ebp]
mov edi,DWORD [20+esp]
and edx,255
mov edx,DWORD [edx*8+ebp]
movzx ecx,ch
xor edx,DWORD [3+ecx*8+ebp]
mov ecx,esi
shr ebx,16
and ebx,255
xor edx,DWORD [2+ebx*8+ebp]
mov ebx,DWORD [8+esp]
shr eax,24
xor edx,DWORD [1+eax*8+ebp]
mov eax,DWORD [4+esp]
add edi,16
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
cmp edi,DWORD [24+esp]
mov DWORD [20+esp],edi
jb NEAR L$009loop
lea ebp,[2176+ebp]
mov edi,DWORD [ebp-128]
mov esi,DWORD [ebp-96]
mov edi,DWORD [ebp-64]
mov esi,DWORD [ebp-32]
mov edi,DWORD [ebp]
mov esi,DWORD [32+ebp]
mov edi,DWORD [64+ebp]
mov esi,DWORD [96+ebp]
lea ebp,[ebp-128]
mov esi,eax
and esi,255
movzx esi,BYTE [esi*1+ebp]
movzx edi,dh
movzx edi,BYTE [edi*1+ebp]
shl edi,8
xor esi,edi
mov edi,ecx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp]
shl edi,16
xor esi,edi
mov edi,ebx
shr edi,24
movzx edi,BYTE [edi*1+ebp]
shl edi,24
xor esi,edi
mov DWORD [4+esp],esi
mov esi,ebx
and esi,255
movzx esi,BYTE [esi*1+ebp]
movzx edi,ah
movzx edi,BYTE [edi*1+ebp]
shl edi,8
xor esi,edi
mov edi,edx
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp]
shl edi,16
xor esi,edi
mov edi,ecx
shr edi,24
movzx edi,BYTE [edi*1+ebp]
shl edi,24
xor esi,edi
mov DWORD [8+esp],esi
mov esi,ecx
and esi,255
movzx esi,BYTE [esi*1+ebp]
movzx edi,bh
movzx edi,BYTE [edi*1+ebp]
shl edi,8
xor esi,edi
mov edi,eax
shr edi,16
and edi,255
movzx edi,BYTE [edi*1+ebp]
shl edi,16
xor esi,edi
mov edi,edx
shr edi,24
movzx edi,BYTE [edi*1+ebp]
shl edi,24
xor esi,edi
mov edi,DWORD [20+esp]
and edx,255
movzx edx,BYTE [edx*1+ebp]
movzx ecx,ch
movzx ecx,BYTE [ecx*1+ebp]
shl ecx,8
xor edx,ecx
mov ecx,esi
shr ebx,16
and ebx,255
movzx ebx,BYTE [ebx*1+ebp]
shl ebx,16
xor edx,ebx
mov ebx,DWORD [8+esp]
shr eax,24
movzx eax,BYTE [eax*1+ebp]
shl eax,24
xor edx,eax
mov eax,DWORD [4+esp]
lea ebp,[ebp-2048]
add edi,16
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
ret
align 64
L$AES_Td:
dd 1353184337,1353184337
dd 1399144830,1399144830
dd 3282310938,3282310938
dd 2522752826,2522752826
dd 3412831035,3412831035
dd 4047871263,4047871263
dd 2874735276,2874735276
dd 2466505547,2466505547
dd 1442459680,1442459680
dd 4134368941,4134368941
dd 2440481928,2440481928
dd 625738485,625738485
dd 4242007375,4242007375
dd 3620416197,3620416197
dd 2151953702,2151953702
dd 2409849525,2409849525
dd 1230680542,1230680542
dd 1729870373,1729870373
dd 2551114309,2551114309
dd 3787521629,3787521629
dd 41234371,41234371
dd 317738113,317738113
dd 2744600205,2744600205
dd 3338261355,3338261355
dd 3881799427,3881799427
dd 2510066197,2510066197
dd 3950669247,3950669247
dd 3663286933,3663286933
dd 763608788,763608788
dd 3542185048,3542185048
dd 694804553,694804553
dd 1154009486,1154009486
dd 1787413109,1787413109
dd 2021232372,2021232372
dd 1799248025,1799248025
dd 3715217703,3715217703
dd 3058688446,3058688446
dd 397248752,397248752
dd 1722556617,1722556617
dd 3023752829,3023752829
dd 407560035,407560035
dd 2184256229,2184256229
dd 1613975959,1613975959
dd 1165972322,1165972322
dd 3765920945,3765920945
dd 2226023355,2226023355
dd 480281086,480281086
dd 2485848313,2485848313
dd 1483229296,1483229296
dd 436028815,436028815
dd 2272059028,2272059028
dd 3086515026,3086515026
dd 601060267,601060267
dd 3791801202,3791801202
dd 1468997603,1468997603
dd 715871590,715871590
dd 120122290,120122290
dd 63092015,63092015
dd 2591802758,2591802758
dd 2768779219,2768779219
dd 4068943920,4068943920
dd 2997206819,2997206819
dd 3127509762,3127509762
dd 1552029421,1552029421
dd 723308426,723308426
dd 2461301159,2461301159
dd 4042393587,4042393587
dd 2715969870,2715969870
dd 3455375973,3455375973
dd 3586000134,3586000134
dd 526529745,526529745
dd 2331944644,2331944644
dd 2639474228,2639474228
dd 2689987490,2689987490
dd 853641733,853641733
dd 1978398372,1978398372
dd 971801355,971801355
dd 2867814464,2867814464
dd 111112542,111112542
dd 1360031421,1360031421
dd 4186579262,4186579262
dd 1023860118,1023860118
dd 2919579357,2919579357
dd 1186850381,1186850381
dd 3045938321,3045938321
dd 90031217,90031217
dd 1876166148,1876166148
dd 4279586912,4279586912
dd 620468249,620468249
dd 2548678102,2548678102
dd 3426959497,3426959497
dd 2006899047,2006899047
dd 3175278768,3175278768
dd 2290845959,2290845959
dd 945494503,945494503
dd 3689859193,3689859193
dd 1191869601,1191869601
dd 3910091388,3910091388
dd 3374220536,3374220536
dd 0,0
dd 2206629897,2206629897
dd 1223502642,1223502642
dd 2893025566,2893025566
dd 1316117100,1316117100
dd 4227796733,4227796733
dd 1446544655,1446544655
dd 517320253,517320253
dd 658058550,658058550
dd 1691946762,1691946762
dd 564550760,564550760
dd 3511966619,3511966619
dd 976107044,976107044
dd 2976320012,2976320012
dd 266819475,266819475
dd 3533106868,3533106868
dd 2660342555,2660342555
dd 1338359936,1338359936
dd 2720062561,2720062561
dd 1766553434,1766553434
dd 370807324,370807324
dd 179999714,179999714
dd 3844776128,3844776128
dd 1138762300,1138762300
dd 488053522,488053522
dd 185403662,185403662
dd 2915535858,2915535858
dd 3114841645,3114841645
dd 3366526484,3366526484
dd 2233069911,2233069911
dd 1275557295,1275557295
dd 3151862254,3151862254
dd 4250959779,4250959779
dd 2670068215,2670068215
dd 3170202204,3170202204
dd 3309004356,3309004356
dd 880737115,880737115
dd 1982415755,1982415755
dd 3703972811,3703972811
dd 1761406390,1761406390
dd 1676797112,1676797112
dd 3403428311,3403428311
dd 277177154,277177154
dd 1076008723,1076008723
dd 538035844,538035844
dd 2099530373,2099530373
dd 4164795346,4164795346
dd 288553390,288553390
dd 1839278535,1839278535
dd 1261411869,1261411869
dd 4080055004,4080055004
dd 3964831245,3964831245
dd 3504587127,3504587127
dd 1813426987,1813426987
dd 2579067049,2579067049
dd 4199060497,4199060497
dd 577038663,577038663
dd 3297574056,3297574056
dd 440397984,440397984
dd 3626794326,3626794326
dd 4019204898,4019204898
dd 3343796615,3343796615
dd 3251714265,3251714265
dd 4272081548,4272081548
dd 906744984,906744984
dd 3481400742,3481400742
dd 685669029,685669029
dd 646887386,646887386
dd 2764025151,2764025151
dd 3835509292,3835509292
dd 227702864,227702864
dd 2613862250,2613862250
dd 1648787028,1648787028
dd 3256061430,3256061430
dd 3904428176,3904428176
dd 1593260334,1593260334
dd 4121936770,4121936770
dd 3196083615,3196083615
dd 2090061929,2090061929
dd 2838353263,2838353263
dd 3004310991,3004310991
dd 999926984,999926984
dd 2809993232,2809993232
dd 1852021992,1852021992
dd 2075868123,2075868123
dd 158869197,158869197
dd 4095236462,4095236462
dd 28809964,28809964
dd 2828685187,2828685187
dd 1701746150,1701746150
dd 2129067946,2129067946
dd 147831841,147831841
dd 3873969647,3873969647
dd 3650873274,3650873274
dd 3459673930,3459673930
dd 3557400554,3557400554
dd 3598495785,3598495785
dd 2947720241,2947720241
dd 824393514,824393514
dd 815048134,815048134
dd 3227951669,3227951669
dd 935087732,935087732
dd 2798289660,2798289660
dd 2966458592,2966458592
dd 366520115,366520115
dd 1251476721,1251476721
dd 4158319681,4158319681
dd 240176511,240176511
dd 804688151,804688151
dd 2379631990,2379631990
dd 1303441219,1303441219
dd 1414376140,1414376140
dd 3741619940,3741619940
dd 3820343710,3820343710
dd 461924940,461924940
dd 3089050817,3089050817
dd 2136040774,2136040774
dd 82468509,82468509
dd 1563790337,1563790337
dd 1937016826,1937016826
dd 776014843,776014843
dd 1511876531,1511876531
dd 1389550482,1389550482
dd 861278441,861278441
dd 323475053,323475053
dd 2355222426,2355222426
dd 2047648055,2047648055
dd 2383738969,2383738969
dd 2302415851,2302415851
dd 3995576782,3995576782
dd 902390199,902390199
dd 3991215329,3991215329
dd 1018251130,1018251130
dd 1507840668,1507840668
dd 1064563285,1064563285
dd 2043548696,2043548696
dd 3208103795,3208103795
dd 3939366739,3939366739
dd 1537932639,1537932639
dd 342834655,342834655
dd 2262516856,2262516856
dd 2180231114,2180231114
dd 1053059257,1053059257
dd 741614648,741614648
dd 1598071746,1598071746
dd 1925389590,1925389590
dd 203809468,203809468
dd 2336832552,2336832552
dd 1100287487,1100287487
dd 1895934009,1895934009
dd 3736275976,3736275976
dd 2632234200,2632234200
dd 2428589668,2428589668
dd 1636092795,1636092795
dd 1890988757,1890988757
dd 1952214088,1952214088
dd 1113045200,1113045200
db 82,9,106,213,48,54,165,56
db 191,64,163,158,129,243,215,251
db 124,227,57,130,155,47,255,135
db 52,142,67,68,196,222,233,203
db 84,123,148,50,166,194,35,61
db 238,76,149,11,66,250,195,78
db 8,46,161,102,40,217,36,178
db 118,91,162,73,109,139,209,37
db 114,248,246,100,134,104,152,22
db 212,164,92,204,93,101,182,146
db 108,112,72,80,253,237,185,218
db 94,21,70,87,167,141,157,132
db 144,216,171,0,140,188,211,10
db 247,228,88,5,184,179,69,6
db 208,44,30,143,202,63,15,2
db 193,175,189,3,1,19,138,107
db 58,145,17,65,79,103,220,234
db 151,242,207,206,240,180,230,115
db 150,172,116,34,231,173,53,133
db 226,249,55,232,28,117,223,110
db 71,241,26,113,29,41,197,137
db 111,183,98,14,170,24,190,27
db 252,86,62,75,198,210,121,32
db 154,219,192,254,120,205,90,244
db 31,221,168,51,136,7,199,49
db 177,18,16,89,39,128,236,95
db 96,81,127,169,25,181,74,13
db 45,229,122,159,147,201,156,239
db 160,224,59,77,174,42,245,176
db 200,235,187,60,131,83,153,97
db 23,43,4,126,186,119,214,38
db 225,105,20,99,85,33,12,125
db 82,9,106,213,48,54,165,56
db 191,64,163,158,129,243,215,251
db 124,227,57,130,155,47,255,135
db 52,142,67,68,196,222,233,203
db 84,123,148,50,166,194,35,61
db 238,76,149,11,66,250,195,78
db 8,46,161,102,40,217,36,178
db 118,91,162,73,109,139,209,37
db 114,248,246,100,134,104,152,22
db 212,164,92,204,93,101,182,146
db 108,112,72,80,253,237,185,218
db 94,21,70,87,167,141,157,132
db 144,216,171,0,140,188,211,10
db 247,228,88,5,184,179,69,6
db 208,44,30,143,202,63,15,2
db 193,175,189,3,1,19,138,107
db 58,145,17,65,79,103,220,234
db 151,242,207,206,240,180,230,115
db 150,172,116,34,231,173,53,133
db 226,249,55,232,28,117,223,110
db 71,241,26,113,29,41,197,137
db 111,183,98,14,170,24,190,27
db 252,86,62,75,198,210,121,32
db 154,219,192,254,120,205,90,244
db 31,221,168,51,136,7,199,49
db 177,18,16,89,39,128,236,95
db 96,81,127,169,25,181,74,13
db 45,229,122,159,147,201,156,239
db 160,224,59,77,174,42,245,176
db 200,235,187,60,131,83,153,97
db 23,43,4,126,186,119,214,38
db 225,105,20,99,85,33,12,125
db 82,9,106,213,48,54,165,56
db 191,64,163,158,129,243,215,251
db 124,227,57,130,155,47,255,135
db 52,142,67,68,196,222,233,203
db 84,123,148,50,166,194,35,61
db 238,76,149,11,66,250,195,78
db 8,46,161,102,40,217,36,178
db 118,91,162,73,109,139,209,37
db 114,248,246,100,134,104,152,22
db 212,164,92,204,93,101,182,146
db 108,112,72,80,253,237,185,218
db 94,21,70,87,167,141,157,132
db 144,216,171,0,140,188,211,10
db 247,228,88,5,184,179,69,6
db 208,44,30,143,202,63,15,2
db 193,175,189,3,1,19,138,107
db 58,145,17,65,79,103,220,234
db 151,242,207,206,240,180,230,115
db 150,172,116,34,231,173,53,133
db 226,249,55,232,28,117,223,110
db 71,241,26,113,29,41,197,137
db 111,183,98,14,170,24,190,27
db 252,86,62,75,198,210,121,32
db 154,219,192,254,120,205,90,244
db 31,221,168,51,136,7,199,49
db 177,18,16,89,39,128,236,95
db 96,81,127,169,25,181,74,13
db 45,229,122,159,147,201,156,239
db 160,224,59,77,174,42,245,176
db 200,235,187,60,131,83,153,97
db 23,43,4,126,186,119,214,38
db 225,105,20,99,85,33,12,125
db 82,9,106,213,48,54,165,56
db 191,64,163,158,129,243,215,251
db 124,227,57,130,155,47,255,135
db 52,142,67,68,196,222,233,203
db 84,123,148,50,166,194,35,61
db 238,76,149,11,66,250,195,78
db 8,46,161,102,40,217,36,178
db 118,91,162,73,109,139,209,37
db 114,248,246,100,134,104,152,22
db 212,164,92,204,93,101,182,146
db 108,112,72,80,253,237,185,218
db 94,21,70,87,167,141,157,132
db 144,216,171,0,140,188,211,10
db 247,228,88,5,184,179,69,6
db 208,44,30,143,202,63,15,2
db 193,175,189,3,1,19,138,107
db 58,145,17,65,79,103,220,234
db 151,242,207,206,240,180,230,115
db 150,172,116,34,231,173,53,133
db 226,249,55,232,28,117,223,110
db 71,241,26,113,29,41,197,137
db 111,183,98,14,170,24,190,27
db 252,86,62,75,198,210,121,32
db 154,219,192,254,120,205,90,244
db 31,221,168,51,136,7,199,49
db 177,18,16,89,39,128,236,95
db 96,81,127,169,25,181,74,13
db 45,229,122,159,147,201,156,239
db 160,224,59,77,174,42,245,176
db 200,235,187,60,131,83,153,97
db 23,43,4,126,186,119,214,38
db 225,105,20,99,85,33,12,125
global _AES_decrypt
align 16
_AES_decrypt:
L$_AES_decrypt_begin:
push ebp
push ebx
push esi
push edi
mov esi,DWORD [20+esp]
mov edi,DWORD [28+esp]
mov eax,esp
sub esp,36
and esp,-64
lea ebx,[edi-127]
sub ebx,esp
neg ebx
and ebx,960
sub esp,ebx
add esp,4
mov DWORD [28+esp],eax
call L$010pic_point
L$010pic_point:
pop ebp
lea eax,[_OPENSSL_ia32cap_P]
lea ebp,[(L$AES_Td-L$010pic_point)+ebp]
lea ebx,[764+esp]
sub ebx,ebp
and ebx,768
lea ebp,[2176+ebx*1+ebp]
bt DWORD [eax],25
jnc NEAR L$011x86
movq mm0,[esi]
movq mm4,[8+esi]
call __sse_AES_decrypt_compact
mov esp,DWORD [28+esp]
mov esi,DWORD [24+esp]
movq [esi],mm0
movq [8+esi],mm4
emms
pop edi
pop esi
pop ebx
pop ebp
ret
align 16
L$011x86:
mov DWORD [24+esp],ebp
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
call __x86_AES_decrypt_compact
mov esp,DWORD [28+esp]
mov esi,DWORD [24+esp]
mov DWORD [esi],eax
mov DWORD [4+esi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
pop edi
pop esi
pop ebx
pop ebp
ret
global _AES_cbc_encrypt
align 16
_AES_cbc_encrypt:
L$_AES_cbc_encrypt_begin:
push ebp
push ebx
push esi
push edi
mov ecx,DWORD [28+esp]
cmp ecx,0
je NEAR L$012drop_out
call L$013pic_point
L$013pic_point:
pop ebp
lea eax,[_OPENSSL_ia32cap_P]
cmp DWORD [40+esp],0
lea ebp,[(L$AES_Te-L$013pic_point)+ebp]
jne NEAR L$014picked_te
lea ebp,[(L$AES_Td-L$AES_Te)+ebp]
L$014picked_te:
pushfd
cld
cmp ecx,512
jb NEAR L$015slow_way
test ecx,15
jnz NEAR L$015slow_way
bt DWORD [eax],28
jc NEAR L$015slow_way
lea esi,[esp-324]
and esi,-64
mov eax,ebp
lea ebx,[2304+ebp]
mov edx,esi
and eax,4095
and ebx,4095
and edx,4095
cmp edx,ebx
jb NEAR L$016tbl_break_out
sub edx,ebx
sub esi,edx
jmp NEAR L$017tbl_ok
align 4
L$016tbl_break_out:
sub edx,eax
and edx,4095
add edx,384
sub esi,edx
align 4
L$017tbl_ok:
lea edx,[24+esp]
xchg esp,esi
add esp,4
mov DWORD [24+esp],ebp
mov DWORD [28+esp],esi
mov eax,DWORD [edx]
mov ebx,DWORD [4+edx]
mov edi,DWORD [12+edx]
mov esi,DWORD [16+edx]
mov edx,DWORD [20+edx]
mov DWORD [32+esp],eax
mov DWORD [36+esp],ebx
mov DWORD [40+esp],ecx
mov DWORD [44+esp],edi
mov DWORD [48+esp],esi
mov DWORD [316+esp],0
mov ebx,edi
mov ecx,61
sub ebx,ebp
mov esi,edi
and ebx,4095
lea edi,[76+esp]
cmp ebx,2304
jb NEAR L$018do_copy
cmp ebx,3852
jb NEAR L$019skip_copy
align 4
L$018do_copy:
mov DWORD [44+esp],edi
dd 2784229001
L$019skip_copy:
mov edi,16
align 4
L$020prefetch_tbl:
mov eax,DWORD [ebp]
mov ebx,DWORD [32+ebp]
mov ecx,DWORD [64+ebp]
mov esi,DWORD [96+ebp]
lea ebp,[128+ebp]
sub edi,1
jnz NEAR L$020prefetch_tbl
sub ebp,2048
mov esi,DWORD [32+esp]
mov edi,DWORD [48+esp]
cmp edx,0
je NEAR L$021fast_decrypt
mov eax,DWORD [edi]
mov ebx,DWORD [4+edi]
align 16
L$022fast_enc_loop:
mov ecx,DWORD [8+edi]
mov edx,DWORD [12+edi]
xor eax,DWORD [esi]
xor ebx,DWORD [4+esi]
xor ecx,DWORD [8+esi]
xor edx,DWORD [12+esi]
mov edi,DWORD [44+esp]
call __x86_AES_encrypt
mov esi,DWORD [32+esp]
mov edi,DWORD [36+esp]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
lea esi,[16+esi]
mov ecx,DWORD [40+esp]
mov DWORD [32+esp],esi
lea edx,[16+edi]
mov DWORD [36+esp],edx
sub ecx,16
mov DWORD [40+esp],ecx
jnz NEAR L$022fast_enc_loop
mov esi,DWORD [48+esp]
mov ecx,DWORD [8+edi]
mov edx,DWORD [12+edi]
mov DWORD [esi],eax
mov DWORD [4+esi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
cmp DWORD [316+esp],0
mov edi,DWORD [44+esp]
je NEAR L$023skip_ezero
mov ecx,60
xor eax,eax
align 4
dd 2884892297
L$023skip_ezero:
mov esp,DWORD [28+esp]
popfd
L$012drop_out:
pop edi
pop esi
pop ebx
pop ebp
ret
pushfd
align 16
L$021fast_decrypt:
cmp esi,DWORD [36+esp]
je NEAR L$024fast_dec_in_place
mov DWORD [52+esp],edi
align 4
align 16
L$025fast_dec_loop:
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
mov edi,DWORD [44+esp]
call __x86_AES_decrypt
mov edi,DWORD [52+esp]
mov esi,DWORD [40+esp]
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
mov edi,DWORD [36+esp]
mov esi,DWORD [32+esp]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov ecx,DWORD [40+esp]
mov DWORD [52+esp],esi
lea esi,[16+esi]
mov DWORD [32+esp],esi
lea edi,[16+edi]
mov DWORD [36+esp],edi
sub ecx,16
mov DWORD [40+esp],ecx
jnz NEAR L$025fast_dec_loop
mov edi,DWORD [52+esp]
mov esi,DWORD [48+esp]
mov eax,DWORD [edi]
mov ebx,DWORD [4+edi]
mov ecx,DWORD [8+edi]
mov edx,DWORD [12+edi]
mov DWORD [esi],eax
mov DWORD [4+esi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
jmp NEAR L$026fast_dec_out
align 16
L$024fast_dec_in_place:
L$027fast_dec_in_place_loop:
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
lea edi,[60+esp]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov edi,DWORD [44+esp]
call __x86_AES_decrypt
mov edi,DWORD [48+esp]
mov esi,DWORD [36+esp]
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
mov DWORD [esi],eax
mov DWORD [4+esi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
lea esi,[16+esi]
mov DWORD [36+esp],esi
lea esi,[60+esp]
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov esi,DWORD [32+esp]
mov ecx,DWORD [40+esp]
lea esi,[16+esi]
mov DWORD [32+esp],esi
sub ecx,16
mov DWORD [40+esp],ecx
jnz NEAR L$027fast_dec_in_place_loop
align 4
L$026fast_dec_out:
cmp DWORD [316+esp],0
mov edi,DWORD [44+esp]
je NEAR L$028skip_dzero
mov ecx,60
xor eax,eax
align 4
dd 2884892297
L$028skip_dzero:
mov esp,DWORD [28+esp]
popfd
pop edi
pop esi
pop ebx
pop ebp
ret
pushfd
align 16
L$015slow_way:
mov eax,DWORD [eax]
mov edi,DWORD [36+esp]
lea esi,[esp-80]
and esi,-64
lea ebx,[edi-143]
sub ebx,esi
neg ebx
and ebx,960
sub esi,ebx
lea ebx,[768+esi]
sub ebx,ebp
and ebx,768
lea ebp,[2176+ebx*1+ebp]
lea edx,[24+esp]
xchg esp,esi
add esp,4
mov DWORD [24+esp],ebp
mov DWORD [28+esp],esi
mov DWORD [52+esp],eax
mov eax,DWORD [edx]
mov ebx,DWORD [4+edx]
mov esi,DWORD [16+edx]
mov edx,DWORD [20+edx]
mov DWORD [32+esp],eax
mov DWORD [36+esp],ebx
mov DWORD [40+esp],ecx
mov DWORD [44+esp],edi
mov DWORD [48+esp],esi
mov edi,esi
mov esi,eax
cmp edx,0
je NEAR L$029slow_decrypt
cmp ecx,16
mov edx,ebx
jb NEAR L$030slow_enc_tail
bt DWORD [52+esp],25
jnc NEAR L$031slow_enc_x86
movq mm0,[edi]
movq mm4,[8+edi]
align 16
L$032slow_enc_loop_sse:
pxor mm0,[esi]
pxor mm4,[8+esi]
mov edi,DWORD [44+esp]
call __sse_AES_encrypt_compact
mov esi,DWORD [32+esp]
mov edi,DWORD [36+esp]
mov ecx,DWORD [40+esp]
movq [edi],mm0
movq [8+edi],mm4
lea esi,[16+esi]
mov DWORD [32+esp],esi
lea edx,[16+edi]
mov DWORD [36+esp],edx
sub ecx,16
cmp ecx,16
mov DWORD [40+esp],ecx
jae NEAR L$032slow_enc_loop_sse
test ecx,15
jnz NEAR L$030slow_enc_tail
mov esi,DWORD [48+esp]
movq [esi],mm0
movq [8+esi],mm4
emms
mov esp,DWORD [28+esp]
popfd
pop edi
pop esi
pop ebx
pop ebp
ret
pushfd
align 16
L$031slow_enc_x86:
mov eax,DWORD [edi]
mov ebx,DWORD [4+edi]
align 4
L$033slow_enc_loop_x86:
mov ecx,DWORD [8+edi]
mov edx,DWORD [12+edi]
xor eax,DWORD [esi]
xor ebx,DWORD [4+esi]
xor ecx,DWORD [8+esi]
xor edx,DWORD [12+esi]
mov edi,DWORD [44+esp]
call __x86_AES_encrypt_compact
mov esi,DWORD [32+esp]
mov edi,DWORD [36+esp]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov ecx,DWORD [40+esp]
lea esi,[16+esi]
mov DWORD [32+esp],esi
lea edx,[16+edi]
mov DWORD [36+esp],edx
sub ecx,16
cmp ecx,16
mov DWORD [40+esp],ecx
jae NEAR L$033slow_enc_loop_x86
test ecx,15
jnz NEAR L$030slow_enc_tail
mov esi,DWORD [48+esp]
mov ecx,DWORD [8+edi]
mov edx,DWORD [12+edi]
mov DWORD [esi],eax
mov DWORD [4+esi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
mov esp,DWORD [28+esp]
popfd
pop edi
pop esi
pop ebx
pop ebp
ret
pushfd
align 16
L$030slow_enc_tail:
emms
mov edi,edx
mov ebx,16
sub ebx,ecx
cmp edi,esi
je NEAR L$034enc_in_place
align 4
dd 2767451785
jmp NEAR L$035enc_skip_in_place
L$034enc_in_place:
lea edi,[ecx*1+edi]
L$035enc_skip_in_place:
mov ecx,ebx
xor eax,eax
align 4
dd 2868115081
mov edi,DWORD [48+esp]
mov esi,edx
mov eax,DWORD [edi]
mov ebx,DWORD [4+edi]
mov DWORD [40+esp],16
jmp NEAR L$033slow_enc_loop_x86
align 16
L$029slow_decrypt:
bt DWORD [52+esp],25
jnc NEAR L$036slow_dec_loop_x86
align 4
L$037slow_dec_loop_sse:
movq mm0,[esi]
movq mm4,[8+esi]
mov edi,DWORD [44+esp]
call __sse_AES_decrypt_compact
mov esi,DWORD [32+esp]
lea eax,[60+esp]
mov ebx,DWORD [36+esp]
mov ecx,DWORD [40+esp]
mov edi,DWORD [48+esp]
movq mm1,[esi]
movq mm5,[8+esi]
pxor mm0,[edi]
pxor mm4,[8+edi]
movq [edi],mm1
movq [8+edi],mm5
sub ecx,16
jc NEAR L$038slow_dec_partial_sse
movq [ebx],mm0
movq [8+ebx],mm4
lea ebx,[16+ebx]
mov DWORD [36+esp],ebx
lea esi,[16+esi]
mov DWORD [32+esp],esi
mov DWORD [40+esp],ecx
jnz NEAR L$037slow_dec_loop_sse
emms
mov esp,DWORD [28+esp]
popfd
pop edi
pop esi
pop ebx
pop ebp
ret
pushfd
align 16
L$038slow_dec_partial_sse:
movq [eax],mm0
movq [8+eax],mm4
emms
add ecx,16
mov edi,ebx
mov esi,eax
align 4
dd 2767451785
mov esp,DWORD [28+esp]
popfd
pop edi
pop esi
pop ebx
pop ebp
ret
pushfd
align 16
L$036slow_dec_loop_x86:
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
lea edi,[60+esp]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov edi,DWORD [44+esp]
call __x86_AES_decrypt_compact
mov edi,DWORD [48+esp]
mov esi,DWORD [40+esp]
xor eax,DWORD [edi]
xor ebx,DWORD [4+edi]
xor ecx,DWORD [8+edi]
xor edx,DWORD [12+edi]
sub esi,16
jc NEAR L$039slow_dec_partial_x86
mov DWORD [40+esp],esi
mov esi,DWORD [36+esp]
mov DWORD [esi],eax
mov DWORD [4+esi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
lea esi,[16+esi]
mov DWORD [36+esp],esi
lea esi,[60+esp]
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov esi,DWORD [32+esp]
lea esi,[16+esi]
mov DWORD [32+esp],esi
jnz NEAR L$036slow_dec_loop_x86
mov esp,DWORD [28+esp]
popfd
pop edi
pop esi
pop ebx
pop ebp
ret
pushfd
align 16
L$039slow_dec_partial_x86:
lea esi,[60+esp]
mov DWORD [esi],eax
mov DWORD [4+esi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
mov esi,DWORD [32+esp]
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov ecx,DWORD [40+esp]
mov edi,DWORD [36+esp]
lea esi,[60+esp]
align 4
dd 2767451785
mov esp,DWORD [28+esp]
popfd
pop edi
pop esi
pop ebx
pop ebp
ret
align 16
__x86_AES_set_encrypt_key:
push ebp
push ebx
push esi
push edi
mov esi,DWORD [24+esp]
mov edi,DWORD [32+esp]
test esi,-1
jz NEAR L$040badpointer
test edi,-1
jz NEAR L$040badpointer
call L$041pic_point
L$041pic_point:
pop ebp
lea ebp,[(L$AES_Te-L$041pic_point)+ebp]
lea ebp,[2176+ebp]
mov eax,DWORD [ebp-128]
mov ebx,DWORD [ebp-96]
mov ecx,DWORD [ebp-64]
mov edx,DWORD [ebp-32]
mov eax,DWORD [ebp]
mov ebx,DWORD [32+ebp]
mov ecx,DWORD [64+ebp]
mov edx,DWORD [96+ebp]
mov ecx,DWORD [28+esp]
cmp ecx,128
je NEAR L$04210rounds
cmp ecx,192
je NEAR L$04312rounds
cmp ecx,256
je NEAR L$04414rounds
mov eax,-2
jmp NEAR L$045exit
L$04210rounds:
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
xor ecx,ecx
jmp NEAR L$04610shortcut
align 4
L$04710loop:
mov eax,DWORD [edi]
mov edx,DWORD [12+edi]
L$04610shortcut:
movzx esi,dl
movzx ebx,BYTE [esi*1+ebp-128]
movzx esi,dh
shl ebx,24
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
shr edx,16
movzx esi,dl
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
movzx esi,dh
shl ebx,8
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
shl ebx,16
xor eax,ebx
xor eax,DWORD [896+ecx*4+ebp]
mov DWORD [16+edi],eax
xor eax,DWORD [4+edi]
mov DWORD [20+edi],eax
xor eax,DWORD [8+edi]
mov DWORD [24+edi],eax
xor eax,DWORD [12+edi]
mov DWORD [28+edi],eax
inc ecx
add edi,16
cmp ecx,10
jl NEAR L$04710loop
mov DWORD [80+edi],10
xor eax,eax
jmp NEAR L$045exit
L$04312rounds:
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov ecx,DWORD [16+esi]
mov edx,DWORD [20+esi]
mov DWORD [16+edi],ecx
mov DWORD [20+edi],edx
xor ecx,ecx
jmp NEAR L$04812shortcut
align 4
L$04912loop:
mov eax,DWORD [edi]
mov edx,DWORD [20+edi]
L$04812shortcut:
movzx esi,dl
movzx ebx,BYTE [esi*1+ebp-128]
movzx esi,dh
shl ebx,24
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
shr edx,16
movzx esi,dl
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
movzx esi,dh
shl ebx,8
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
shl ebx,16
xor eax,ebx
xor eax,DWORD [896+ecx*4+ebp]
mov DWORD [24+edi],eax
xor eax,DWORD [4+edi]
mov DWORD [28+edi],eax
xor eax,DWORD [8+edi]
mov DWORD [32+edi],eax
xor eax,DWORD [12+edi]
mov DWORD [36+edi],eax
cmp ecx,7
je NEAR L$05012break
inc ecx
xor eax,DWORD [16+edi]
mov DWORD [40+edi],eax
xor eax,DWORD [20+edi]
mov DWORD [44+edi],eax
add edi,24
jmp NEAR L$04912loop
L$05012break:
mov DWORD [72+edi],12
xor eax,eax
jmp NEAR L$045exit
L$04414rounds:
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [8+esi]
mov edx,DWORD [12+esi]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [8+edi],ecx
mov DWORD [12+edi],edx
mov eax,DWORD [16+esi]
mov ebx,DWORD [20+esi]
mov ecx,DWORD [24+esi]
mov edx,DWORD [28+esi]
mov DWORD [16+edi],eax
mov DWORD [20+edi],ebx
mov DWORD [24+edi],ecx
mov DWORD [28+edi],edx
xor ecx,ecx
jmp NEAR L$05114shortcut
align 4
L$05214loop:
mov edx,DWORD [28+edi]
L$05114shortcut:
mov eax,DWORD [edi]
movzx esi,dl
movzx ebx,BYTE [esi*1+ebp-128]
movzx esi,dh
shl ebx,24
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
shr edx,16
movzx esi,dl
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
movzx esi,dh
shl ebx,8
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
shl ebx,16
xor eax,ebx
xor eax,DWORD [896+ecx*4+ebp]
mov DWORD [32+edi],eax
xor eax,DWORD [4+edi]
mov DWORD [36+edi],eax
xor eax,DWORD [8+edi]
mov DWORD [40+edi],eax
xor eax,DWORD [12+edi]
mov DWORD [44+edi],eax
cmp ecx,6
je NEAR L$05314break
inc ecx
mov edx,eax
mov eax,DWORD [16+edi]
movzx esi,dl
movzx ebx,BYTE [esi*1+ebp-128]
movzx esi,dh
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
shr edx,16
shl ebx,8
movzx esi,dl
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
movzx esi,dh
shl ebx,16
xor eax,ebx
movzx ebx,BYTE [esi*1+ebp-128]
shl ebx,24
xor eax,ebx
mov DWORD [48+edi],eax
xor eax,DWORD [20+edi]
mov DWORD [52+edi],eax
xor eax,DWORD [24+edi]
mov DWORD [56+edi],eax
xor eax,DWORD [28+edi]
mov DWORD [60+edi],eax
add edi,32
jmp NEAR L$05214loop
L$05314break:
mov DWORD [48+edi],14
xor eax,eax
jmp NEAR L$045exit
L$040badpointer:
mov eax,-1
L$045exit:
pop edi
pop esi
pop ebx
pop ebp
ret
global _AES_set_encrypt_key
align 16
_AES_set_encrypt_key:
L$_AES_set_encrypt_key_begin:
call __x86_AES_set_encrypt_key
ret
global _AES_set_decrypt_key
align 16
_AES_set_decrypt_key:
L$_AES_set_decrypt_key_begin:
call __x86_AES_set_encrypt_key
cmp eax,0
je NEAR L$054proceed
ret
L$054proceed:
push ebp
push ebx
push esi
push edi
mov esi,DWORD [28+esp]
mov ecx,DWORD [240+esi]
lea ecx,[ecx*4]
lea edi,[ecx*4+esi]
align 4
L$055invert:
mov eax,DWORD [esi]
mov ebx,DWORD [4+esi]
mov ecx,DWORD [edi]
mov edx,DWORD [4+edi]
mov DWORD [edi],eax
mov DWORD [4+edi],ebx
mov DWORD [esi],ecx
mov DWORD [4+esi],edx
mov eax,DWORD [8+esi]
mov ebx,DWORD [12+esi]
mov ecx,DWORD [8+edi]
mov edx,DWORD [12+edi]
mov DWORD [8+edi],eax
mov DWORD [12+edi],ebx
mov DWORD [8+esi],ecx
mov DWORD [12+esi],edx
add esi,16
sub edi,16
cmp esi,edi
jne NEAR L$055invert
mov edi,DWORD [28+esp]
mov esi,DWORD [240+edi]
lea esi,[esi*1+esi-2]
lea esi,[esi*8+edi]
mov DWORD [28+esp],esi
mov eax,DWORD [16+edi]
align 4
L$056permute:
add edi,16
mov ebp,2155905152
and ebp,eax
lea ebx,[eax*1+eax]
mov esi,ebp
shr ebp,7
sub esi,ebp
and ebx,4278124286
and esi,454761243
xor ebx,esi
mov ebp,2155905152
and ebp,ebx
lea ecx,[ebx*1+ebx]
mov esi,ebp
shr ebp,7
sub esi,ebp
and ecx,4278124286
and esi,454761243
xor ebx,eax
xor ecx,esi
mov ebp,2155905152
and ebp,ecx
lea edx,[ecx*1+ecx]
mov esi,ebp
shr ebp,7
xor ecx,eax
sub esi,ebp
and edx,4278124286
and esi,454761243
rol eax,8
xor edx,esi
mov ebp,DWORD [4+edi]
xor eax,ebx
xor ebx,edx
xor eax,ecx
rol ebx,24
xor ecx,edx
xor eax,edx
rol ecx,16
xor eax,ebx
rol edx,8
xor eax,ecx
mov ebx,ebp
xor eax,edx
mov DWORD [edi],eax
mov ebp,2155905152
and ebp,ebx
lea ecx,[ebx*1+ebx]
mov esi,ebp
shr ebp,7
sub esi,ebp
and ecx,4278124286
and esi,454761243
xor ecx,esi
mov ebp,2155905152
and ebp,ecx
lea edx,[ecx*1+ecx]
mov esi,ebp
shr ebp,7
sub esi,ebp
and edx,4278124286
and esi,454761243
xor ecx,ebx
xor edx,esi
mov ebp,2155905152
and ebp,edx
lea eax,[edx*1+edx]
mov esi,ebp
shr ebp,7
xor edx,ebx
sub esi,ebp
and eax,4278124286
and esi,454761243
rol ebx,8
xor eax,esi
mov ebp,DWORD [8+edi]
xor ebx,ecx
xor ecx,eax
xor ebx,edx
rol ecx,24
xor edx,eax
xor ebx,eax
rol edx,16
xor ebx,ecx
rol eax,8
xor ebx,edx
mov ecx,ebp
xor ebx,eax
mov DWORD [4+edi],ebx
mov ebp,2155905152
and ebp,ecx
lea edx,[ecx*1+ecx]
mov esi,ebp
shr ebp,7
sub esi,ebp
and edx,4278124286
and esi,454761243
xor edx,esi
mov ebp,2155905152
and ebp,edx
lea eax,[edx*1+edx]
mov esi,ebp
shr ebp,7
sub esi,ebp
and eax,4278124286
and esi,454761243
xor edx,ecx
xor eax,esi
mov ebp,2155905152
and ebp,eax
lea ebx,[eax*1+eax]
mov esi,ebp
shr ebp,7
xor eax,ecx
sub esi,ebp
and ebx,4278124286
and esi,454761243
rol ecx,8
xor ebx,esi
mov ebp,DWORD [12+edi]
xor ecx,edx
xor edx,ebx
xor ecx,eax
rol edx,24
xor eax,ebx
xor ecx,ebx
rol eax,16
xor ecx,edx
rol ebx,8
xor ecx,eax
mov edx,ebp
xor ecx,ebx
mov DWORD [8+edi],ecx
mov ebp,2155905152
and ebp,edx
lea eax,[edx*1+edx]
mov esi,ebp
shr ebp,7
sub esi,ebp
and eax,4278124286
and esi,454761243
xor eax,esi
mov ebp,2155905152
and ebp,eax
lea ebx,[eax*1+eax]
mov esi,ebp
shr ebp,7
sub esi,ebp
and ebx,4278124286
and esi,454761243
xor eax,edx
xor ebx,esi
mov ebp,2155905152
and ebp,ebx
lea ecx,[ebx*1+ebx]
mov esi,ebp
shr ebp,7
xor ebx,edx
sub esi,ebp
and ecx,4278124286
and esi,454761243
rol edx,8
xor ecx,esi
mov ebp,DWORD [16+edi]
xor edx,eax
xor eax,ecx
xor edx,ebx
rol eax,24
xor ebx,ecx
xor edx,ecx
rol ebx,16
xor edx,eax
rol ecx,8
xor edx,ebx
mov eax,ebp
xor edx,ecx
mov DWORD [12+edi],edx
cmp edi,DWORD [28+esp]
jb NEAR L$056permute
xor eax,eax
pop edi
pop esi
pop ebx
pop ebp
ret
db 65,69,83,32,102,111,114,32,120,56,54,44,32,67,82,89
db 80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114
db 111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
segment .bss
common _OPENSSL_ia32cap_P 16
| 19.853362
| 57
| 0.732801
|
754fccd97c2631aeaa4817db21a76bbac4fe6f17
| 381
|
asm
|
Assembly
|
programs/oeis/029/A029578.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/029/A029578.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/029/A029578.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A029578: The natural numbers interleaved with the even numbers.
; 0,0,1,2,2,4,3,6,4,8,5,10,6,12,7,14,8,16,9,18,10,20,11,22,12,24,13,26,14,28,15,30,16,32,17,34,18,36,19,38,20,40,21,42,22,44,23,46,24,48,25,50,26,52,27,54,28,56,29,58,30,60,31,62,32,64,33,66,34,68,35,70,36,72,37,74,38,76,39,78,40,80,41,82,42,84,43,86,44,88,45,90,46,92,47,94,48,96,49,98
sub $0,2
dif $0,2
add $0,1
| 54.428571
| 286
| 0.664042
|
4def49ab7f129e977567141d40cb2a45dad08efb
| 247
|
asm
|
Assembly
|
testcases/jsr.asm
|
Moodrammer/PDP-11
|
fe05d524581d15697c2e56b7d2da868e9d7d8729
|
[
"MIT"
] | 9
|
2021-01-22T15:08:49.000Z
|
2021-12-13T12:51:14.000Z
|
testcases/jsr.asm
|
Etshawy1/PDP-11
|
fe05d524581d15697c2e56b7d2da868e9d7d8729
|
[
"MIT"
] | null | null | null |
testcases/jsr.asm
|
Etshawy1/PDP-11
|
fe05d524581d15697c2e56b7d2da868e9d7d8729
|
[
"MIT"
] | 2
|
2021-01-23T12:39:23.000Z
|
2021-01-26T00:33:41.000Z
|
MOV #1800,R6 ;address 0 to initialize stack pointer
JSR serviceRoutine ;address 2
mov #15, R4 ;address 4
HLT ; address 6
serviceRoutine
mov #2, R1 ;address 7
loopa:
ADD #20,R0 ;address 9
dec R1 ; address 11
bne loopa ;address 12
RTS ; address 13
| 20.583333
| 51
| 0.740891
|
0ae52fec5841696063ab7852d6aa3ffc8cea1dc4
| 318
|
asm
|
Assembly
|
examples/asm/multiply_two_numbers.asm
|
nickgammon/G-Pascal
|
993005f39ff6b0334bd44b65cf35f82b36aacc8e
|
[
"MIT"
] | 7
|
2022-03-07T20:06:01.000Z
|
2022-03-24T19:08:10.000Z
|
examples/asm/multiply_two_numbers.asm
|
nickgammon/G-Pascal
|
993005f39ff6b0334bd44b65cf35f82b36aacc8e
|
[
"MIT"
] | null | null | null |
examples/asm/multiply_two_numbers.asm
|
nickgammon/G-Pascal
|
993005f39ff6b0334bd44b65cf35f82b36aacc8e
|
[
"MIT"
] | 2
|
2022-03-18T14:40:21.000Z
|
2022-03-24T15:44:31.000Z
|
;
; put 47302 into value
;
lda #<47302
sta value
lda #>47302
sta value+1
stz value+2
;
; put 55 into value2
;
lda #<55
sta value2
lda #>55
sta value2+1
stz value2+2
;
; multiply them to get the result 2601610
;
jsr exp_multiply
;
; display the result
;
jsr display_in_decimal
; done!
rts
| 11.777778
| 42
| 0.644654
|
680a8547753f9453394326ae892dbf32d95ff25b
| 5,997
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1211.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1211.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1211.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x9118, %r13
clflush (%r13)
add %rdi, %rdi
mov (%r13), %edx
nop
mfence
lea addresses_A_ht+0x3b18, %rsi
lea addresses_WC_ht+0x19e18, %rdi
nop
nop
nop
add $42394, %r9
mov $112, %rcx
rep movsq
nop
add $24137, %rdi
lea addresses_WT_ht+0x13118, %rdi
nop
nop
cmp %r8, %r8
mov (%rdi), %r13w
nop
nop
nop
nop
sub $42899, %rsi
lea addresses_UC_ht+0x3fd8, %r8
nop
nop
dec %r13
vmovups (%r8), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rcx
nop
nop
and %r9, %r9
lea addresses_A_ht+0x1de58, %rsi
lea addresses_UC_ht+0x1dd18, %rdi
nop
nop
nop
nop
cmp $10220, %r8
mov $20, %rcx
rep movsw
add $46835, %rdx
lea addresses_WC_ht+0x22d4, %rsi
lea addresses_WC_ht+0x14618, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
sub %r10, %r10
mov $108, %rcx
rep movsl
dec %r9
lea addresses_D_ht+0x10b8, %rsi
lea addresses_UC_ht+0x6518, %rdi
nop
nop
nop
xor %r10, %r10
mov $38, %rcx
rep movsq
nop
nop
nop
add %r13, %r13
lea addresses_UC_ht+0x10618, %r8
clflush (%r8)
nop
nop
xor %rcx, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
vmovups %ymm0, (%r8)
nop
nop
nop
nop
xor %r13, %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r9
push %rsi
// Faulty Load
mov $0x6d29a70000000618, %r11
nop
nop
xor $51335, %r15
mov (%r11), %r9d
lea oracles, %r15
and $0xff, %r9
shlq $12, %r9
mov (%r15,%r9,1), %r9
pop %rsi
pop %r9
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 40.795918
| 2,999
| 0.659496
|
f990b9a879977b6cab1cd708f84837565ebfc7cc
| 719
|
asm
|
Assembly
|
oeis/090/A090658.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/090/A090658.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/090/A090658.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A090658: Numbers n such that n-1 is a prime of the form 4k+3.
; Submitted by Jon Maiga
; 4,8,12,20,24,32,44,48,60,68,72,80,84,104,108,128,132,140,152,164,168,180,192,200,212,224,228,240,252,264,272,284,308,312,332,348,360,368,380,384,420,432,440,444,464,468,480,488,492,500,504,524,548,564,572,588,600,608,620,632,644,648,660,684,692,720,728,740,744,752,788,812,824,828,840,860,864,884,888,908,912,920,948,968,972,984,992,1020,1032,1040,1052,1064,1088,1092,1104,1124,1152,1164,1172,1188
mov $2,36
mul $2,$0
mov $4,2
lpb $2
mov $3,$4
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
mov $1,$0
max $1,0
cmp $1,$0
mul $2,$1
sub $2,1
add $4,4
lpe
mov $0,$4
add $0,2
| 34.238095
| 399
| 0.681502
|
c4d8b222c4f4eb82c5395c62b84ef846eca3cca7
| 295
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/zx/ulaplus/c/sccz80/ulap_write_palette_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/arch/zx/ulaplus/c/sccz80/ulap_write_palette_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/arch/zx/ulaplus/c/sccz80/ulap_write_palette_callee.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void *ulap_write_palette(void *src,unsigned char pent,unsigned char num)
SECTION code_clib
SECTION code_arch
PUBLIC _ulap_write_palette_callee
EXTERN asm_ulap_write_palette
_ulap_write_palette_callee:
pop hl
pop bc
pop de
ex (sp),hl
ld d,c
jp asm_ulap_write_palette
| 15.526316
| 74
| 0.769492
|
e216fde7ced8c56d74abe2f5513a371c70c30520
| 1,829
|
asm
|
Assembly
|
programs/oeis/048/A048490.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/048/A048490.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/048/A048490.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A048490: a(n)=T(7,n), array T given by A048483.
; 1,9,25,57,121,249,505,1017,2041,4089,8185,16377,32761,65529,131065,262137,524281,1048569,2097145,4194297,8388601,16777209,33554425,67108857,134217721,268435449,536870905,1073741817,2147483641,4294967289,8589934585,17179869177,34359738361,68719476729,137438953465,274877906937,549755813881,1099511627769,2199023255545,4398046511097,8796093022201,17592186044409,35184372088825,70368744177657,140737488355321,281474976710649,562949953421305,1125899906842617,2251799813685241,4503599627370489,9007199254740985,18014398509481977,36028797018963961,72057594037927929,144115188075855865,288230376151711737,576460752303423481,1152921504606846969,2305843009213693945,4611686018427387897,9223372036854775801,18446744073709551609,36893488147419103225,73786976294838206457,147573952589676412921,295147905179352825849,590295810358705651705,1180591620717411303417,2361183241434822606841,4722366482869645213689,9444732965739290427385,18889465931478580854777,37778931862957161709561,75557863725914323419129,151115727451828646838265,302231454903657293676537,604462909807314587353081,1208925819614629174706169,2417851639229258349412345,4835703278458516698824697,9671406556917033397649401,19342813113834066795298809,38685626227668133590597625,77371252455336267181195257,154742504910672534362390521,309485009821345068724781049,618970019642690137449562105,1237940039285380274899124217,2475880078570760549798248441,4951760157141521099596496889,9903520314283042199192993785,19807040628566084398385987577,39614081257132168796771975161,79228162514264337593543950329,158456325028528675187087900665,316912650057057350374175801337,633825300114114700748351602681,1267650600228229401496703205369,2535301200456458802993406410745,5070602400912917605986812821497
add $0,3
mov $1,2
pow $1,$0
sub $1,7
mov $0,$1
| 203.222222
| 1,730
| 0.921815
|
5a8031c8e060fa3bca5198d671b664df7768e72c
| 376
|
asm
|
Assembly
|
test/link/section-union/good/b.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | 522
|
2017-02-25T21:10:13.000Z
|
2020-09-13T14:26:18.000Z
|
test/link/section-union/good/b.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | 405
|
2017-02-25T21:32:37.000Z
|
2020-09-13T16:43:29.000Z
|
test/link/section-union/good/b.asm
|
orbea/rgbds
|
91889fc14abbf705271bb484e89e349e08f76477
|
[
"MIT"
] | 84
|
2017-02-25T21:10:26.000Z
|
2020-09-13T14:28:25.000Z
|
SECTION UNION "a", WRAM0
a1: ; This is here to check that the two `a1` don't conflict
ds 42
a2::
SECTION UNION "b", WRAMX[$DAB0]
ds 2
b2::
SECTION UNION "c", HRAM[$FFC0]
b1: ; Same but in different sections now
ds 5
c2::
SECTION UNION "d", SRAM,ALIGN[12,$BBA]
ds $1000
d2::
SECTION UNION "e", SRAM,ALIGN[8,$BE]
SECTION "output 2", ROM0
dw a1,a2
dw b1,b2
dw c1,c2
| 14.461538
| 60
| 0.656915
|
2f0f01d8f6063fd2482a39e5f5ba1bcd16845f24
| 248
|
asm
|
Assembly
|
pwnlib/shellcraft/templates/amd64/linux/time.asm
|
zaratec/pwntools
|
8793decd1c9b8c822e3db6c27b9cbf6e8cddfeba
|
[
"MIT"
] | 5
|
2018-05-15T13:00:56.000Z
|
2020-02-09T14:29:00.000Z
|
pwnlib/shellcraft/templates/amd64/linux/time.asm
|
FDlucifer/binjitsu
|
999ad632004bfc3e623eead20eb11de98fc1f4dd
|
[
"MIT"
] | null | null | null |
pwnlib/shellcraft/templates/amd64/linux/time.asm
|
FDlucifer/binjitsu
|
999ad632004bfc3e623eead20eb11de98fc1f4dd
|
[
"MIT"
] | 6
|
2017-09-07T02:31:11.000Z
|
2021-07-05T16:59:18.000Z
|
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="timer"/>
<%docstring>
Invokes the syscall time. See 'man 2 time' for more information.
Arguments:
timer(time_t): timer
</%docstring>
${syscall('SYS_time', timer)}
| 17.714286
| 65
| 0.681452
|
30a9d78a703f9c6df9589a7376c609f555ea71bf
| 340
|
asm
|
Assembly
|
programs/oeis/144/A144855.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/144/A144855.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/144/A144855.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A144855: Number of paths from (1,1) to (n,n) in an n X n grid using only the steps +(1,0), -(1,0), +(0,1) and -(0,1) which do not self-intersect and which avoid any point (p,q) satisfying "(p-1)*n + q is prime".
; 1,0,0,0,0,0,0,254,0,0,0,0,0
mul $0,2
lpb $0
mov $1,$0
dif $0,7
mov $2,10
lpe
sub $1,$2
pow $1,$1
trn $1,$0
mov $0,$1
| 24.285714
| 213
| 0.585294
|
38c421c2339ad3084ddf09ec275028f49f8f32cb
| 650
|
asm
|
Assembly
|
oeis/001/A001254.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/001/A001254.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/001/A001254.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A001254: Squares of Lucas numbers.
; Submitted by Jamie Morken(s2.)
; 4,1,9,16,49,121,324,841,2209,5776,15129,39601,103684,271441,710649,1860496,4870849,12752041,33385284,87403801,228826129,599074576,1568397609,4106118241,10749957124,28143753121,73681302249,192900153616,505019158609,1322157322201,3461452808004,9062201101801,23725150497409,62113250390416,162614600673849,425730551631121,1114577054219524,2918000611027441,7639424778862809,20000273725560976,52361396397820129,137083915467899401,358890350005878084,939587134549734841,2459871053643326449
mov $2,1
mov $4,2
lpb $0
sub $0,1
mov $3,$4
mov $4,$2
add $2,$3
lpe
pow $4,2
mov $0,$4
| 43.333333
| 483
| 0.824615
|
896ad7318966a29360d60081bfc33da55eb9b61e
| 309
|
asm
|
Assembly
|
programs/oeis/008/A008368.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/008/A008368.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/008/A008368.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A008368: Number of orbits on points that are at n steps from the origin in the f.c.c. lattice.
; 1,1,3,4,7,8,13,14,20,22,29,31,40
add $0,2
mov $2,$0
div $0,2
sub $2,1
mov $1,$2
add $1,$2
add $1,$0
mul $1,$0
add $1,1
mov $2,7776
add $2,$0
add $1,$2
add $1,1
div $1,3
sub $1,2594
div $1,2
add $1,1
mov $0,$1
| 14.045455
| 96
| 0.608414
|
8e715f61c993c73590e0d85eb7d849104e883395
| 3,832
|
asm
|
Assembly
|
iod/con2/atmono/gw_pixel.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
iod/con2/atmono/gw_pixel.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
iod/con2/atmono/gw_pixel.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
section gw
* draw in a pixel, filling a line if need be (identical to QL version)
xdef GW_PIXEL
xref bm_block,bm_xblok CS_FILL,CS_OVER
include 'dev8_Minerva_INC_GW'
include 'dev8_Minerva_INC_SD'
include 'dev8_Minerva_INC_HP'
include 'dev8_Minerva_INC_assert'
* The fill buffer is arranged to have space for up to 256 lines with each
* entry being a pair of words.
* The first word is the minimum pixel so far seen on the line and the second is
* minimum pixel never seen so far.
* One special case is the initial zero longword, indicating that no pixel has
* yet been seen for this line.
* Another special case crops up if a pixel at 32767 (or even 32766 in mode 8)
* is requested, when the pixel is effectively treated as zero width in order to
* avoid any problems.
* An improvement to the system would be to re-allocate the fill buffer whenever
* the drawing area of a window is changed, and make it have just enough lines.
* This would then allow for windows taller than 256 lines, which will crash the
* current code!
* There is another flaw in this code, in that a mode change from 4 to 8 can
* result in a bit of a mess if an existing filled area starts or finishes at an
* odd pixel, and is then extended. It is not clear exactly how to avoid this.
* Note that the CS routines require D0-D3 and A1 as parameters, but preserve
* all registers.
* D0 -ip - x coordinate (lsw)
* D1 -ip - y coordinate (lsw)
* D2 -ip - mask within word fro pixel (lsw)
* D3 -ip - colour masks (msw/lsw)
* A5 -ip - screen word address for pixel
* A6 -ip - stack frame
* D4 destroyed
reglist reg d0-d3/d5-d7/a0-a2 (not d4!!) D0-D3/A0-A1
gw_pixel
assert XSIZE,YSIZE-2
move.l XSIZE(A6),D4
cmp.w D4,D1 if y outside window then do nothing
bcc.s RTS0
swap D4
tst.b FMOD(A6)
bne.s DO_FILL if fill mode is on then go to it
dodot
cmp.w D4,D0 if x outside window then do nothing
bcc.s RTS0
move.w D3,D4 set up colour mask
and.w D2,D4
tst.b OVER(A6)
beq.s SETIT
eor.w D4,(A5) xor it in
rts0
rts
setit
move.w D2,D5 write colour on top
or.w (A5),D5 fetch old stuff, but set our bit all ones
sub.w D2,D5 then knock them out
add.w D4,D5 and put in what we want
move.w D5,(A5)
rts
first
move.w D2,-(A1)
move.w D0,-(A1) store single pixel range
single
movem.l (SP)+,REGLIST
bge.s DODOT now go back to put in this dot
rts
do_fill
movem.l REGLIST,-(SP) ... save a few registers !
move.l CHNP(A6),A0 retrieve the channel defn ptr
move.w D1,A1
add.l A1,A1
lea HP_END(A1,A1.L),A1
add.l SD_FBUF(A0),A1 256 word pairs, one pair for each line
move.w XINC(A6),D2 calculate right edge of pixel
add.w D0,D2
bvc.s NOTHUGE
move.w D0,D2
nothuge
tst.l (A1)+
beq.s FIRST
cmp.w -(A1),D0
bge.s RIGHT
cmp.w -(A1),D0
bge.s INSIDE
move.w (A1),D2 get left edge of existing area
move.w D0,(A1) replace with this pixel to extend it left
check
bge.s LOWOK if low is negative we must bring it up to zero
clr.w D0
lowok
cmp.w D2,D4 if right edge escapes window, trim it down
bge.s HIGHOK
move.w D4,D2
highok
sub.w D0,D2 now establish exactly how much we're doing
cmp.w XINC(A6),D2
ble.s SINGLE if single then do it quick
add.w XMIN(A6),D0 add x origin
add.w YMIN(A6),D1 add y origin
;***********************
swap d0 origin
move.w d1,d0
move.w d2,d1 size
swap d1
move.w #1,d1
move.l d0,d2 origin again
btst #0,d2
bne.s masks
swap d3
masks
move.w d3,d7 masks
swap d7
move.w d3,d7
move.l d3,d6
swap d3
move.w d3,d6
move.l sd_scrb(a0),a1
move.w sd_linel(a0),a2
; *********
tst.b OVER(A6)
beq.s FILL_IT
jsr bm_xblok CS_OVER(PC)
done
;*** addq.l #8,SP
inside
movem.l (SP)+,REGLIST
rts
right
move.w (A1),D0 get old right edge as start of fill area
move.w D2,(A1) extent right to new edge
tst.w D0
bra.s CHECK
fill_it
jsr bm_block CS_FILL(PC)
bra.s DONE
end
| 23.95
| 79
| 0.707203
|
5c0f8a019cdfc02b2b805c670366c04dce0f08ce
| 3,314
|
asm
|
Assembly
|
src/hvpp/ia32/context.asm
|
ExpLife0011/hvpp
|
10afdb9aa5628dff8fd8bd206e878b2358a75173
|
[
"MIT"
] | 1
|
2018-08-25T15:44:32.000Z
|
2018-08-25T15:44:32.000Z
|
src/hvpp/ia32/context.asm
|
ExpLife0011/hvpp
|
10afdb9aa5628dff8fd8bd206e878b2358a75173
|
[
"MIT"
] | null | null | null |
src/hvpp/ia32/context.asm
|
ExpLife0011/hvpp
|
10afdb9aa5628dff8fd8bd206e878b2358a75173
|
[
"MIT"
] | null | null | null |
;++
;
; Copyright (c) Petr Benes. All rights reserved.
;
; Module:
;
; context.asm
;
; Abstract:
;
; This module implements AMD64-specific code to capture and restore
; the context of the caller.
;
; Author:
;
; Petr Benes (@PetrBenes) 26-Jul-2018 - Initial version
;
; Environment:
;
; Kernel mode only.
;
;--
INCLUDE ksamd64.inc
INCLUDE ia32/common.inc
.CODE
;++
;
; public:
; int __cdecl
; ia32::context_t::capture(void)
;
; Routine description:
;
; This method captures the context of the caller.
;
; Return Value:
;
; 0 if caller captured the context, RAX otherwise.
;
;--
?capture@context_t@ia32@@QEAAHXZ PROC
pushfq
mov context_t.$rax[rcx], rax
mov context_t.$rcx[rcx], rcx
mov context_t.$rdx[rcx], rdx
mov context_t.$rbx[rcx], rbx
mov context_t.$rbp[rcx], rbp
mov context_t.$rsi[rcx], rsi
mov context_t.$rdi[rcx], rdi
mov context_t.$r8 [rcx], r8
mov context_t.$r9 [rcx], r9
mov context_t.$r10[rcx], r10
mov context_t.$r11[rcx], r11
mov context_t.$r12[rcx], r12
mov context_t.$r13[rcx], r13
mov context_t.$r14[rcx], r14
mov context_t.$r15[rcx], r15
;
; RSP, RIP and RFLAGS are captured here.
;
lea rax, qword ptr [rsp + 16]
mov context_t.$rsp[rcx], rax
mov rax, qword ptr [rsp + 8]
mov context_t.$rip[rcx], rax
mov rax, qword ptr [rsp + 0]
mov context_t.$rflags[rcx], rax
xor rax, rax
add rsp, 8
ret
?capture@context_t@ia32@@QEAAHXZ ENDP
;++
;
; public:
; void __cdecl
; ia32::context_t::restore(void)
;
; Routine description:
;
; This method restores the context of the caller to the specified
; context.
;
; Return Value:
;
; None - there is no return from this method.
;
;--
?restore@context_t@ia32@@QEAAXXZ PROC
;
; We use shadow space of the caller + additional 8 bytes
; for the IRETQ context. Note that we can use the callers
; shadow space without any worries, because this function
; never returns to the caller.
;
sub rsp, 8
;
; Build iretq context (SS, RSP, RFLAGS, CS, RIP).
;
mov word ptr [rsp + 4 * 8], ss
mov rax, context_t.$rsp[rcx]
mov qword ptr [rsp + 3 * 8], rax
mov rax, context_t.$rflags[rcx]
mov qword ptr [rsp + 2 * 8], rax
mov word ptr [rsp + 1 * 8], cs
mov rax, context_t.$rip[rcx]
mov qword ptr [rsp + 0 * 8], rax
mov rax, context_t.$rax[rcx]
mov rdx, context_t.$rdx[rcx]
mov rbx, context_t.$rbx[rcx]
mov rbp, context_t.$rbp[rcx]
mov rsi, context_t.$rsi[rcx]
mov rdi, context_t.$rdi[rcx]
mov r8 , context_t.$r8 [rcx]
mov r9 , context_t.$r9 [rcx]
mov r10, context_t.$r10[rcx]
mov r11, context_t.$r11[rcx]
mov r12, context_t.$r12[rcx]
mov r13, context_t.$r13[rcx]
mov r14, context_t.$r14[rcx]
mov r15, context_t.$r15[rcx]
;
; Restore RCX at the end.
;
mov rcx, context_t.$rcx[rcx]
iretq
?restore@context_t@ia32@@QEAAXXZ ENDP
END
| 22.855172
| 69
| 0.561859
|
d19eb772cffce48d33e76bbcf54dc654e5448f32
| 2,233
|
asm
|
Assembly
|
third_party/virtualbox/src/VBox/Runtime/common/string/strcpy.asm
|
Fimbure/icebox-1
|
0b81992a53e1b410955ca89bdb6f8169d6f2da86
|
[
"MIT"
] | 521
|
2019-03-29T15:44:08.000Z
|
2022-03-22T09:46:19.000Z
|
third_party/virtualbox/src/VBox/Runtime/common/string/strcpy.asm
|
Fimbure/icebox-1
|
0b81992a53e1b410955ca89bdb6f8169d6f2da86
|
[
"MIT"
] | 30
|
2019-06-04T17:00:49.000Z
|
2021-09-08T20:44:19.000Z
|
third_party/virtualbox/src/VBox/Runtime/common/string/strcpy.asm
|
Fimbure/icebox-1
|
0b81992a53e1b410955ca89bdb6f8169d6f2da86
|
[
"MIT"
] | 99
|
2019-03-29T16:04:13.000Z
|
2022-03-28T16:59:34.000Z
|
; $Id: strcpy.asm $
;; @file
; IPRT - No-CRT strcpy - AMD64 & X86.
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms of the GNU
; General Public License (GPL) as published by the Free Software
; Foundation, in version 2 as it comes in the "COPYING" file of the
; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
;
; The contents of this file may alternatively be used under the terms
; of the Common Development and Distribution License Version 1.0
; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
; VirtualBox OSE distribution, in which case the provisions of the
; CDDL are applicable instead of those of the GPL.
;
; You may elect to license modified versions of this file under the
; terms and conditions of either the GPL or the CDDL or both.
;
%include "iprt/asmdefs.mac"
BEGINCODE
;;
; @param pszDst gcc: rdi msc: rcx x86:[esp+4]
; @param pszSrc gcc: rsi msc: rdx x86:[esp+8]
RT_NOCRT_BEGINPROC strcpy
; input
%ifdef RT_ARCH_AMD64
%ifdef ASM_CALL64_MSC
%define pszDst rcx
%define pszSrc rdx
%else
%define pszDst rdi
%define pszSrc rsi
%endif
mov r8, pszDst
%else
mov ecx, [esp + 4]
mov edx, [esp + 8]
%define pszDst ecx
%define pszSrc edx
push pszDst
%endif
;
; The loop.
;
.next:
mov al, [pszSrc]
mov [pszDst], al
test al, al
jz .done
mov al, [pszSrc + 1]
mov [pszDst + 1], al
test al, al
jz .done
mov al, [pszSrc + 2]
mov [pszDst + 2], al
test al, al
jz .done
mov al, [pszSrc + 3]
mov [pszDst + 3], al
test al, al
jz .done
add pszDst, 4
add pszSrc, 4
jmp .next
.done:
%ifdef RT_ARCH_AMD64
mov rax, r8
%else
pop eax
%endif
ret
ENDPROC RT_NOCRT(strcpy)
| 24.811111
| 71
| 0.602777
|
fa4ae05c79b12b78a8687b9675599e99cc1faea2
| 453
|
asm
|
Assembly
|
programs/oeis/088/A088520.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/088/A088520.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/088/A088520.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A088520: Permutation of natural numbers generated by 3-rowed array shown below.
; 1,5,2,7,4,3,11,8,6,13,10,9,17,14,12,19,16,15,23,20,18,25,22,21,29,26,24,31,28,27,35,32,30,37,34,33,41,38,36,43,40,39,47,44,42,49,46,45,53,50,48,55,52,51,59,56,54,61,58,57,65,62,60,67,64,63,71,68,66,73,70,69
seq $0,116551 ; Permutation of natural numbers generated by 3-rowed array shown below.
seq $0,131717 ; Natural numbers A000027 with 6n+4 and 6n+5 terms swapped.
| 75.5
| 208
| 0.719647
|
379ca7b4068e0123478fad575b603dd7379fdb94
| 604
|
asm
|
Assembly
|
SO01/kernel.asm
|
diniremix/NaOS
|
3c63475749593418280d688930393006fc88f459
|
[
"MIT"
] | null | null | null |
SO01/kernel.asm
|
diniremix/NaOS
|
3c63475749593418280d688930393006fc88f459
|
[
"MIT"
] | null | null | null |
SO01/kernel.asm
|
diniremix/NaOS
|
3c63475749593418280d688930393006fc88f459
|
[
"MIT"
] | null | null | null |
[ORG 0x0000]
[BITS 16]
cli
mov ax,cs
mov ds,ax
mov es,ax
mov ax,0x9000
mov ss,ax
mov sp,0xFFFF
sti
mov si,info
call print
mov ax,0x0
int 16h
int 19h
print: ; funcion print
mov ah,0x0E ; funcion 0E de la BIOS que pone un caracter (int 10)
start:
lodsb ; carga en al lo que hay en ds:si e incrementa si
cmp al,0 ; compara al con 0 ( fin de cadena )
jz end ; si es cero termina
int 10h ; llama a la funcion que pone el caracter
jmp start ; vuelve a start
end:
ret ; vuelve al que lo llamo
info db 13,10,'NUCELO activado y funcionando, culaquier tecla para salir',0
| 20.133333
| 75
| 0.682119
|
f32e5f44c82874b58c2639f5edbc169ffa82458b
| 314
|
asm
|
Assembly
|
ref/src/paging.asm
|
ilya101010/asm_studies
|
8014446d021b0f3d50f091fd88cbf3ea726fc160
|
[
"WTFPL"
] | 1
|
2019-09-17T01:06:02.000Z
|
2019-09-17T01:06:02.000Z
|
ref/src/paging.asm
|
ilya101010/asm_studies
|
8014446d021b0f3d50f091fd88cbf3ea726fc160
|
[
"WTFPL"
] | null | null | null |
ref/src/paging.asm
|
ilya101010/asm_studies
|
8014446d021b0f3d50f091fd88cbf3ea726fc160
|
[
"WTFPL"
] | null | null | null |
format ELF
include 'inc/macro.inc'
include 'inc/procedures.inc'
section '.text' executable
use32
public enable_paging
enable_paging:;(void * PD) ; ret, cause low memory mapped onto itself
push ebp
cli
mov ebp, esp
mov eax, [ebp+8]
mov cr3, eax
mov eax, cr0
or eax, 0x80000000
mov cr0, eax
pop ebp
ret
| 14.952381
| 69
| 0.72293
|
a175235b39952863412161458a7a47f185be7959
| 79,760
|
asm
|
Assembly
|
target/cos_117/disasm/iop_overlay1/UCWRT.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 49
|
2020-10-09T12:29:16.000Z
|
2022-03-12T02:33:35.000Z
|
target/cos_117/disasm/iop_overlay1/UCWRT.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 1
|
2021-12-29T15:59:25.000Z
|
2021-12-29T15:59:25.000Z
|
target/cos_117/disasm/iop_overlay1/UCWRT.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 6
|
2021-04-12T06:10:32.000Z
|
2022-02-08T23:11:19.000Z
|
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291A- f:00024 d: 282 | OR[282] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x291B- f:00024 d: 283 | OR[283] = A
0x0004 (0x000008) 0x2118- f:00020 d: 280 | A = OR[280]
0x0005 (0x00000A) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x0006 (0x00000C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0007 (0x00000E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0008 (0x000010) 0x291C- f:00024 d: 284 | OR[284] = A
0x0009 (0x000012) 0x2118- f:00020 d: 280 | A = OR[280]
0x000A (0x000014) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x000B (0x000016) 0x2908- f:00024 d: 264 | OR[264] = A
0x000C (0x000018) 0x3108- f:00030 d: 264 | A = (OR[264])
0x000D (0x00001A) 0x291D- f:00024 d: 285 | OR[285] = A
0x000E (0x00001C) 0x211C- f:00020 d: 284 | A = OR[284]
0x000F (0x00001E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0011), A = 0
0x0010 (0x000020) 0x7006- f:00070 d: 6 | P = P + 6 (0x0016)
0x0011 (0x000022) 0x211D- f:00020 d: 285 | A = OR[285]
0x0012 (0x000024) 0x8402- f:00102 d: 2 | P = P + 2 (0x0014), A = 0
0x0013 (0x000026) 0x7003- f:00070 d: 3 | P = P + 3 (0x0016)
0x0014 (0x000028) 0x7C34- f:00076 d: 52 | R = OR[52]
0x0015 (0x00002A) 0x0000- f:00000 d: 0 | PASS
0x0016 (0x00002C) 0x2118- f:00020 d: 280 | A = OR[280]
0x0017 (0x00002E) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x0018 (0x000030) 0x2908- f:00024 d: 264 | OR[264] = A
0x0019 (0x000032) 0x3108- f:00030 d: 264 | A = (OR[264])
0x001A (0x000034) 0x291E- f:00024 d: 286 | OR[286] = A
0x001B (0x000036) 0x211E- f:00020 d: 286 | A = OR[286]
0x001C (0x000038) 0xB434- f:00132 d: 52 | R = OR[52], A = 0
0x001D (0x00003A) 0x0000- f:00000 d: 0 | PASS
0x001E (0x00003C) 0x211E- f:00020 d: 286 | A = OR[286]
0x001F (0x00003E) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0020 (0x000040) 0x291F- f:00024 d: 287 | OR[287] = A
0x0021 (0x000042) 0x311E- f:00030 d: 286 | A = (OR[286])
0x0022 (0x000044) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0023 (0x000046) 0x1658- f:00013 d: 88 | A = A - 88 (0x0058)
0x0024 (0x000048) 0xB634- f:00133 d: 52 | R = OR[52], A # 0
0x0025 (0x00004A) 0x0000- f:00000 d: 0 | PASS
0x0026 (0x00004C) 0x3118- f:00030 d: 280 | A = (OR[280])
0x0027 (0x00004E) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0028 (0x000050) 0x2913- f:00024 d: 275 | OR[275] = A
0x0029 (0x000052) 0x311E- f:00030 d: 286 | A = (OR[286])
0x002A (0x000054) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x002B (0x000056) 0x2713- f:00023 d: 275 | A = A - OR[275]
0x002C (0x000058) 0xB634- f:00133 d: 52 | R = OR[52], A # 0
0x002D (0x00005A) 0x0000- f:00000 d: 0 | PASS
0x002E (0x00005C) 0x7E03-0x031E f:00077 d: 3 | R = OR[3]+798 (0x031E)
0x0030 (0x000060) 0x2119- f:00020 d: 281 | A = OR[281]
0x0031 (0x000062) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0032 (0x000064) 0x2908- f:00024 d: 264 | OR[264] = A
0x0033 (0x000066) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0034 (0x000068) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0035 (0x00006A) 0x2920- f:00024 d: 288 | OR[288] = A
0x0036 (0x00006C) 0x2119- f:00020 d: 281 | A = OR[281]
0x0037 (0x00006E) 0x1410- f:00012 d: 16 | A = A + 16 (0x0010)
0x0038 (0x000070) 0x2908- f:00024 d: 264 | OR[264] = A
0x0039 (0x000072) 0x3108- f:00030 d: 264 | A = (OR[264])
0x003A (0x000074) 0x2921- f:00024 d: 289 | OR[289] = A
0x003B (0x000076) 0x2119- f:00020 d: 281 | A = OR[281]
0x003C (0x000078) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x003D (0x00007A) 0x2908- f:00024 d: 264 | OR[264] = A
0x003E (0x00007C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x003F (0x00007E) 0x2922- f:00024 d: 290 | OR[290] = A
0x0040 (0x000080) 0x2119- f:00020 d: 281 | A = OR[281]
0x0041 (0x000082) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0042 (0x000084) 0x2908- f:00024 d: 264 | OR[264] = A
0x0043 (0x000086) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0044 (0x000088) 0x2923- f:00024 d: 291 | OR[291] = A
0x0045 (0x00008A) 0x2119- f:00020 d: 281 | A = OR[281]
0x0046 (0x00008C) 0x1415- f:00012 d: 21 | A = A + 21 (0x0015)
0x0047 (0x00008E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0048 (0x000090) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0049 (0x000092) 0x2924- f:00024 d: 292 | OR[292] = A
0x004A (0x000094) 0x3118- f:00030 d: 280 | A = (OR[280])
0x004B (0x000096) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x004C (0x000098) 0x2913- f:00024 d: 275 | OR[275] = A
0x004D (0x00009A) 0x0400- f:00002 d: 0 | I = 0
0x004E (0x00009C) 0x0000- f:00000 d: 0 | PASS
0x004F (0x00009E) 0x1032- f:00010 d: 50 | A = 50 (0x0032)
0x0050 (0x0000A0) 0x29C3- f:00024 d: 451 | OR[451] = A
0x0051 (0x0000A2) 0x2113- f:00020 d: 275 | A = OR[275]
0x0052 (0x0000A4) 0x29C4- f:00024 d: 452 | OR[452] = A
0x0053 (0x0000A6) 0x2121- f:00020 d: 289 | A = OR[289]
0x0054 (0x0000A8) 0x29C5- f:00024 d: 453 | OR[453] = A
0x0055 (0x0000AA) 0x2122- f:00020 d: 290 | A = OR[290]
0x0056 (0x0000AC) 0x29C6- f:00024 d: 454 | OR[454] = A
0x0057 (0x0000AE) 0x2123- f:00020 d: 291 | A = OR[291]
0x0058 (0x0000B0) 0x29C7- f:00024 d: 455 | OR[455] = A
0x0059 (0x0000B2) 0x2124- f:00020 d: 292 | A = OR[292]
0x005A (0x0000B4) 0x29C8- f:00024 d: 456 | OR[456] = A
0x005B (0x0000B6) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x005C (0x0000B8) 0x211E- f:00020 d: 286 | A = OR[286]
0x005D (0x0000BA) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x005E (0x0000BC) 0x2908- f:00024 d: 264 | OR[264] = A
0x005F (0x0000BE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0060 (0x0000C0) 0x2925- f:00024 d: 293 | OR[293] = A
0x0061 (0x0000C2) 0x211E- f:00020 d: 286 | A = OR[286]
0x0062 (0x0000C4) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0063 (0x0000C6) 0x2908- f:00024 d: 264 | OR[264] = A
0x0064 (0x0000C8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0065 (0x0000CA) 0x2926- f:00024 d: 294 | OR[294] = A
0x0066 (0x0000CC) 0x2125- f:00020 d: 293 | A = OR[293]
0x0067 (0x0000CE) 0x1E00-0xFFFF f:00017 d: 0 | A = A - 65535 (0xFFFF)
0x0069 (0x0000D2) 0x8606- f:00103 d: 6 | P = P + 6 (0x006F), A # 0
0x006A (0x0000D4) 0x2126- f:00020 d: 294 | A = OR[294]
0x006B (0x0000D6) 0x1E00-0xFFFF f:00017 d: 0 | A = A - 65535 (0xFFFF)
0x006D (0x0000DA) 0x8602- f:00103 d: 2 | P = P + 2 (0x006F), A # 0
0x006E (0x0000DC) 0x7027- f:00070 d: 39 | P = P + 39 (0x0095)
0x006F (0x0000DE) 0x2121- f:00020 d: 289 | A = OR[289]
0x0070 (0x0000E0) 0x8604- f:00103 d: 4 | P = P + 4 (0x0074), A # 0
0x0071 (0x0000E2) 0x2122- f:00020 d: 290 | A = OR[290]
0x0072 (0x0000E4) 0x8602- f:00103 d: 2 | P = P + 2 (0x0074), A # 0
0x0073 (0x0000E6) 0x7006- f:00070 d: 6 | P = P + 6 (0x0079)
0x0074 (0x0000E8) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0075 (0x0000EA) 0x291A- f:00024 d: 282 | OR[282] = A
0x0076 (0x0000EC) 0x7E03-0x03BD f:00077 d: 3 | R = OR[3]+957 (0x03BD)
0x0078 (0x0000F0) 0x708A- f:00070 d: 138 | P = P + 138 (0x0102)
0x0079 (0x0000F2) 0x2123- f:00020 d: 291 | A = OR[291]
0x007A (0x0000F4) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x007B (0x0000F6) 0x8003- f:00100 d: 3 | P = P + 3 (0x007E), C = 0
0x007C (0x0000F8) 0x8402- f:00102 d: 2 | P = P + 2 (0x007E), A = 0
0x007D (0x0000FA) 0x7002- f:00070 d: 2 | P = P + 2 (0x007F)
0x007E (0x0000FC) 0x7007- f:00070 d: 7 | P = P + 7 (0x0085)
0x007F (0x0000FE) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0080 (0x000100) 0x291A- f:00024 d: 282 | OR[282] = A
0x0081 (0x000102) 0x7E03-0x03BD f:00077 d: 3 | R = OR[3]+957 (0x03BD)
0x0083 (0x000106) 0x707F- f:00070 d: 127 | P = P + 127 (0x0102)
0x0084 (0x000108) 0x7010- f:00070 d: 16 | P = P + 16 (0x0094)
0x0085 (0x00010A) 0x2123- f:00020 d: 291 | A = OR[291]
0x0086 (0x00010C) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x0087 (0x00010E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0089), A = 0
0x0088 (0x000110) 0x700C- f:00070 d: 12 | P = P + 12 (0x0094)
0x0089 (0x000112) 0x2124- f:00020 d: 292 | A = OR[292]
0x008A (0x000114) 0x2726- f:00023 d: 294 | A = A - OR[294]
0x008B (0x000116) 0x8003- f:00100 d: 3 | P = P + 3 (0x008E), C = 0
0x008C (0x000118) 0x8402- f:00102 d: 2 | P = P + 2 (0x008E), A = 0
0x008D (0x00011A) 0x7002- f:00070 d: 2 | P = P + 2 (0x008F)
0x008E (0x00011C) 0x7006- f:00070 d: 6 | P = P + 6 (0x0094)
0x008F (0x00011E) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0090 (0x000120) 0x291A- f:00024 d: 282 | OR[282] = A
0x0091 (0x000122) 0x7E03-0x03BD f:00077 d: 3 | R = OR[3]+957 (0x03BD)
0x0093 (0x000126) 0x706F- f:00070 d: 111 | P = P + 111 (0x0102)
0x0094 (0x000128) 0x7003- f:00070 d: 3 | P = P + 3 (0x0097)
0x0095 (0x00012A) 0x7497- f:00072 d: 151 | R = P + 151 (0x012C)
0x0096 (0x00012C) 0x74FB- f:00072 d: 251 | R = P + 251 (0x0191)
0x0097 (0x00012E) 0x7545- f:00072 d: 325 | R = P + 325 (0x01DC)
0x0098 (0x000130) 0x3118- f:00030 d: 280 | A = (OR[280])
0x0099 (0x000132) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x009A (0x000134) 0x2913- f:00024 d: 275 | OR[275] = A
0x009B (0x000136) 0x0400- f:00002 d: 0 | I = 0
0x009C (0x000138) 0x0000- f:00000 d: 0 | PASS
0x009D (0x00013A) 0x1033- f:00010 d: 51 | A = 51 (0x0033)
0x009E (0x00013C) 0x29C3- f:00024 d: 451 | OR[451] = A
0x009F (0x00013E) 0x2113- f:00020 d: 275 | A = OR[275]
0x00A0 (0x000140) 0x29C4- f:00024 d: 452 | OR[452] = A
0x00A1 (0x000142) 0x2121- f:00020 d: 289 | A = OR[289]
0x00A2 (0x000144) 0x29C5- f:00024 d: 453 | OR[453] = A
0x00A3 (0x000146) 0x2122- f:00020 d: 290 | A = OR[290]
0x00A4 (0x000148) 0x29C6- f:00024 d: 454 | OR[454] = A
0x00A5 (0x00014A) 0x2127- f:00020 d: 295 | A = OR[295]
0x00A6 (0x00014C) 0x29C7- f:00024 d: 455 | OR[455] = A
0x00A7 (0x00014E) 0x2128- f:00020 d: 296 | A = OR[296]
0x00A8 (0x000150) 0x29C8- f:00024 d: 456 | OR[456] = A
0x00A9 (0x000152) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x00AA (0x000154) 0x2119- f:00020 d: 281 | A = OR[281]
0x00AB (0x000156) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x00AC (0x000158) 0x2908- f:00024 d: 264 | OR[264] = A
0x00AD (0x00015A) 0x2127- f:00020 d: 295 | A = OR[295]
0x00AE (0x00015C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00AF (0x00015E) 0x2119- f:00020 d: 281 | A = OR[281]
0x00B0 (0x000160) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x00B1 (0x000162) 0x2908- f:00024 d: 264 | OR[264] = A
0x00B2 (0x000164) 0x2128- f:00020 d: 296 | A = OR[296]
0x00B3 (0x000166) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00B4 (0x000168) 0x2120- f:00020 d: 288 | A = OR[288]
0x00B5 (0x00016A) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x00B6 (0x00016C) 0x8404- f:00102 d: 4 | P = P + 4 (0x00BA), A = 0
0x00B7 (0x00016E) 0x211A- f:00020 d: 282 | A = OR[282]
0x00B8 (0x000170) 0x8602- f:00103 d: 2 | P = P + 2 (0x00BA), A # 0
0x00B9 (0x000172) 0x7004- f:00070 d: 4 | P = P + 4 (0x00BD)
0x00BA (0x000174) 0x7E03-0x03BD f:00077 d: 3 | R = OR[3]+957 (0x03BD)
0x00BC (0x000178) 0x7046- f:00070 d: 70 | P = P + 70 (0x0102)
0x00BD (0x00017A) 0x2119- f:00020 d: 281 | A = OR[281]
0x00BE (0x00017C) 0x1412- f:00012 d: 18 | A = A + 18 (0x0012)
0x00BF (0x00017E) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C0 (0x000180) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00C1 (0x000182) 0x2921- f:00024 d: 289 | OR[289] = A
0x00C2 (0x000184) 0x2119- f:00020 d: 281 | A = OR[281]
0x00C3 (0x000186) 0x1413- f:00012 d: 19 | A = A + 19 (0x0013)
0x00C4 (0x000188) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C5 (0x00018A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00C6 (0x00018C) 0x2922- f:00024 d: 290 | OR[290] = A
0x00C7 (0x00018E) 0x2119- f:00020 d: 281 | A = OR[281]
0x00C8 (0x000190) 0x1416- f:00012 d: 22 | A = A + 22 (0x0016)
0x00C9 (0x000192) 0x2908- f:00024 d: 264 | OR[264] = A
0x00CA (0x000194) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00CB (0x000196) 0x2923- f:00024 d: 291 | OR[291] = A
0x00CC (0x000198) 0x2119- f:00020 d: 281 | A = OR[281]
0x00CD (0x00019A) 0x1417- f:00012 d: 23 | A = A + 23 (0x0017)
0x00CE (0x00019C) 0x2908- f:00024 d: 264 | OR[264] = A
0x00CF (0x00019E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00D0 (0x0001A0) 0x2924- f:00024 d: 292 | OR[292] = A
0x00D1 (0x0001A2) 0x3118- f:00030 d: 280 | A = (OR[280])
0x00D2 (0x0001A4) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x00D3 (0x0001A6) 0x2913- f:00024 d: 275 | OR[275] = A
0x00D4 (0x0001A8) 0x0400- f:00002 d: 0 | I = 0
0x00D5 (0x0001AA) 0x0000- f:00000 d: 0 | PASS
0x00D6 (0x0001AC) 0x1032- f:00010 d: 50 | A = 50 (0x0032)
0x00D7 (0x0001AE) 0x29C3- f:00024 d: 451 | OR[451] = A
0x00D8 (0x0001B0) 0x2113- f:00020 d: 275 | A = OR[275]
0x00D9 (0x0001B2) 0x29C4- f:00024 d: 452 | OR[452] = A
0x00DA (0x0001B4) 0x2121- f:00020 d: 289 | A = OR[289]
0x00DB (0x0001B6) 0x29C5- f:00024 d: 453 | OR[453] = A
0x00DC (0x0001B8) 0x2122- f:00020 d: 290 | A = OR[290]
0x00DD (0x0001BA) 0x29C6- f:00024 d: 454 | OR[454] = A
0x00DE (0x0001BC) 0x2123- f:00020 d: 291 | A = OR[291]
0x00DF (0x0001BE) 0x29C7- f:00024 d: 455 | OR[455] = A
0x00E0 (0x0001C0) 0x2124- f:00020 d: 292 | A = OR[292]
0x00E1 (0x0001C2) 0x29C8- f:00024 d: 456 | OR[456] = A
0x00E2 (0x0001C4) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x00E3 (0x0001C6) 0x7449- f:00072 d: 73 | R = P + 73 (0x012C)
0x00E4 (0x0001C8) 0x74AD- f:00072 d: 173 | R = P + 173 (0x0191)
0x00E5 (0x0001CA) 0x2120- f:00020 d: 288 | A = OR[288]
0x00E6 (0x0001CC) 0x1609- f:00013 d: 9 | A = A - 9 (0x0009)
0x00E7 (0x0001CE) 0x8402- f:00102 d: 2 | P = P + 2 (0x00E9), A = 0
0x00E8 (0x0001D0) 0x7004- f:00070 d: 4 | P = P + 4 (0x00EC)
0x00E9 (0x0001D2) 0x7E03-0x03BD f:00077 d: 3 | R = OR[3]+957 (0x03BD)
0x00EB (0x0001D6) 0x7017- f:00070 d: 23 | P = P + 23 (0x0102)
0x00EC (0x0001D8) 0x74F0- f:00072 d: 240 | R = P + 240 (0x01DC)
0x00ED (0x0001DA) 0x2119- f:00020 d: 281 | A = OR[281]
0x00EE (0x0001DC) 0x141A- f:00012 d: 26 | A = A + 26 (0x001A)
0x00EF (0x0001DE) 0x2908- f:00024 d: 264 | OR[264] = A
0x00F0 (0x0001E0) 0x2127- f:00020 d: 295 | A = OR[295]
0x00F1 (0x0001E2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00F2 (0x0001E4) 0x2119- f:00020 d: 281 | A = OR[281]
0x00F3 (0x0001E6) 0x141B- f:00012 d: 27 | A = A + 27 (0x001B)
0x00F4 (0x0001E8) 0x2908- f:00024 d: 264 | OR[264] = A
0x00F5 (0x0001EA) 0x2128- f:00020 d: 296 | A = OR[296]
0x00F6 (0x0001EC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00F7 (0x0001EE) 0x2119- f:00020 d: 281 | A = OR[281]
0x00F8 (0x0001F0) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x00F9 (0x0001F2) 0x2908- f:00024 d: 264 | OR[264] = A
0x00FA (0x0001F4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00FB (0x0001F6) 0x0E09- f:00007 d: 9 | A = A << 9 (0x0009)
0x00FC (0x0001F8) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x00FD (0x0001FA) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00FE (0x0001FC) 0x0C0A- f:00006 d: 10 | A = A >> 10 (0x000A)
0x00FF (0x0001FE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0100 (0x000200) 0x7E03-0x03BD f:00077 d: 3 | R = OR[3]+957 (0x03BD)
0x0102 (0x000204) 0x3118- f:00030 d: 280 | A = (OR[280])
0x0103 (0x000206) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0104 (0x000208) 0x2913- f:00024 d: 275 | OR[275] = A
0x0105 (0x00020A) 0x0400- f:00002 d: 0 | I = 0
0x0106 (0x00020C) 0x0000- f:00000 d: 0 | PASS
0x0107 (0x00020E) 0x1033- f:00010 d: 51 | A = 51 (0x0033)
0x0108 (0x000210) 0x29C3- f:00024 d: 451 | OR[451] = A
0x0109 (0x000212) 0x2113- f:00020 d: 275 | A = OR[275]
0x010A (0x000214) 0x29C4- f:00024 d: 452 | OR[452] = A
0x010B (0x000216) 0x2121- f:00020 d: 289 | A = OR[289]
0x010C (0x000218) 0x29C5- f:00024 d: 453 | OR[453] = A
0x010D (0x00021A) 0x2122- f:00020 d: 290 | A = OR[290]
0x010E (0x00021C) 0x29C6- f:00024 d: 454 | OR[454] = A
0x010F (0x00021E) 0x2127- f:00020 d: 295 | A = OR[295]
0x0110 (0x000220) 0x29C7- f:00024 d: 455 | OR[455] = A
0x0111 (0x000222) 0x2128- f:00020 d: 296 | A = OR[296]
0x0112 (0x000224) 0x29C8- f:00024 d: 456 | OR[456] = A
0x0113 (0x000226) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x0114 (0x000228) 0x7E03-0x0369 f:00077 d: 3 | R = OR[3]+873 (0x0369)
0x0116 (0x00022C) 0x211A- f:00020 d: 282 | A = OR[282]
0x0117 (0x00022E) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0118 (0x000230) 0x291A- f:00024 d: 282 | OR[282] = A
0x0119 (0x000232) 0x2118- f:00020 d: 280 | A = OR[280]
0x011A (0x000234) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x011B (0x000236) 0x2908- f:00024 d: 264 | OR[264] = A
0x011C (0x000238) 0x3108- f:00030 d: 264 | A = (OR[264])
0x011D (0x00023A) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x011F (0x00023E) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x0120 (0x000240) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0121 (0x000242) 0x2005- f:00020 d: 5 | A = OR[5]
0x0122 (0x000244) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0123 (0x000246) 0x2908- f:00024 d: 264 | OR[264] = A
0x0124 (0x000248) 0x211A- f:00020 d: 282 | A = OR[282]
0x0125 (0x00024A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0126 (0x00024C) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0127 (0x00024E) 0x2933- f:00024 d: 307 | OR[307] = A
0x0128 (0x000250) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x0129 (0x000252) 0x5800- f:00054 d: 0 | B = A
0x012A (0x000254) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x012B (0x000256) 0x7C09- f:00076 d: 9 | R = OR[9]
0x012C (0x000258) 0x2123- f:00020 d: 291 | A = OR[291]
0x012D (0x00025A) 0x2913- f:00024 d: 275 | OR[275] = A
0x012E (0x00025C) 0x2124- f:00020 d: 292 | A = OR[292]
0x012F (0x00025E) 0x2929- f:00024 d: 297 | OR[297] = A
0x0130 (0x000260) 0x1800-0x0FFF f:00014 d: 0 | A = 4095 (0x0FFF)
0x0132 (0x000264) 0x2B29- f:00025 d: 297 | OR[297] = A + OR[297]
0x0133 (0x000266) 0x8002- f:00100 d: 2 | P = P + 2 (0x0135), C = 0
0x0134 (0x000268) 0x2D13- f:00026 d: 275 | OR[275] = OR[275] + 1
0x0135 (0x00026A) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0136 (0x00026C) 0x160C- f:00013 d: 12 | A = A - 12 (0x000C)
0x0137 (0x00026E) 0x5800- f:00054 d: 0 | B = A
0x0138 (0x000270) 0x2113- f:00020 d: 275 | A = OR[275]
0x0139 (0x000272) 0x4A00- f:00045 d: 0 | A = A < B
0x013A (0x000274) 0x290D- f:00024 d: 269 | OR[269] = A
0x013B (0x000276) 0x100C- f:00010 d: 12 | A = 12 (0x000C)
0x013C (0x000278) 0x5800- f:00054 d: 0 | B = A
0x013D (0x00027A) 0x2113- f:00020 d: 275 | A = OR[275]
0x013E (0x00027C) 0x4800- f:00044 d: 0 | A = A > B
0x013F (0x00027E) 0x2913- f:00024 d: 275 | OR[275] = A
0x0140 (0x000280) 0x2129- f:00020 d: 297 | A = OR[297]
0x0141 (0x000282) 0x4800- f:00044 d: 0 | A = A > B
0x0142 (0x000284) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0143 (0x000286) 0x2929- f:00024 d: 297 | OR[297] = A
0x0144 (0x000288) 0x211E- f:00020 d: 286 | A = OR[286]
0x0145 (0x00028A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0146 (0x00028C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0147 (0x00028E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0148 (0x000290) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0149 (0x000292) 0x292A- f:00024 d: 298 | OR[298] = A
0x014A (0x000294) 0x2129- f:00020 d: 297 | A = OR[297]
0x014B (0x000296) 0x272A- f:00023 d: 298 | A = A - OR[298]
0x014C (0x000298) 0x8003- f:00100 d: 3 | P = P + 3 (0x014F), C = 0
0x014D (0x00029A) 0x8402- f:00102 d: 2 | P = P + 2 (0x014F), A = 0
0x014E (0x00029C) 0x7002- f:00070 d: 2 | P = P + 2 (0x0150)
0x014F (0x00029E) 0x702E- f:00070 d: 46 | P = P + 46 (0x017D)
0x0150 (0x0002A0) 0x2129- f:00020 d: 297 | A = OR[297]
0x0151 (0x0002A2) 0x272A- f:00023 d: 298 | A = A - OR[298]
0x0152 (0x0002A4) 0x8420- f:00102 d: 32 | P = P + 32 (0x0172), A = 0
0x0153 (0x0002A6) 0x7E03-0x039A f:00077 d: 3 | R = OR[3]+922 (0x039A)
0x0155 (0x0002AA) 0x211F- f:00020 d: 287 | A = OR[287]
0x0156 (0x0002AC) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0157 (0x0002AE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0158 (0x0002B0) 0x212C- f:00020 d: 300 | A = OR[300]
0x0159 (0x0002B2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x015A (0x0002B4) 0x211F- f:00020 d: 287 | A = OR[287]
0x015B (0x0002B6) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x015C (0x0002B8) 0x2908- f:00024 d: 264 | OR[264] = A
0x015D (0x0002BA) 0x212D- f:00020 d: 301 | A = OR[301]
0x015E (0x0002BC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x015F (0x0002BE) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x0160 (0x0002C0) 0x2933- f:00024 d: 307 | OR[307] = A
0x0161 (0x0002C2) 0x211C- f:00020 d: 284 | A = OR[284]
0x0162 (0x0002C4) 0x2934- f:00024 d: 308 | OR[308] = A
0x0163 (0x0002C6) 0x211D- f:00020 d: 285 | A = OR[285]
0x0164 (0x0002C8) 0x252A- f:00022 d: 298 | A = A + OR[298]
0x0165 (0x0002CA) 0x2935- f:00024 d: 309 | OR[309] = A
0x0166 (0x0002CC) 0x211F- f:00020 d: 287 | A = OR[287]
0x0167 (0x0002CE) 0x2936- f:00024 d: 310 | OR[310] = A
0x0168 (0x0002D0) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0169 (0x0002D2) 0x2937- f:00024 d: 311 | OR[311] = A
0x016A (0x0002D4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x016B (0x0002D6) 0x2938- f:00024 d: 312 | OR[312] = A
0x016C (0x0002D8) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x016D (0x0002DA) 0x5800- f:00054 d: 0 | B = A
0x016E (0x0002DC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x016F (0x0002DE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0170 (0x0002E0) 0x2D2A- f:00026 d: 298 | OR[298] = OR[298] + 1
0x0171 (0x0002E2) 0x7221- f:00071 d: 33 | P = P - 33 (0x0150)
0x0172 (0x0002E4) 0x212A- f:00020 d: 298 | A = OR[298]
0x0173 (0x0002E6) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0174 (0x0002E8) 0x292A- f:00024 d: 298 | OR[298] = A
0x0175 (0x0002EA) 0x211E- f:00020 d: 286 | A = OR[286]
0x0176 (0x0002EC) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0177 (0x0002EE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0178 (0x0002F0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0179 (0x0002F2) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x017A (0x0002F4) 0x252A- f:00022 d: 298 | A = A + OR[298]
0x017B (0x0002F6) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x017C (0x0002F8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x017D (0x0002FA) 0x211E- f:00020 d: 286 | A = OR[286]
0x017E (0x0002FC) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x017F (0x0002FE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0180 (0x000300) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0181 (0x000302) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x0183 (0x000306) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0184 (0x000308) 0x211E- f:00020 d: 286 | A = OR[286]
0x0185 (0x00030A) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0186 (0x00030C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0187 (0x00030E) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x0189 (0x000312) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x018A (0x000314) 0x211E- f:00020 d: 286 | A = OR[286]
0x018B (0x000316) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x018C (0x000318) 0x2908- f:00024 d: 264 | OR[264] = A
0x018D (0x00031A) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x018F (0x00031E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0190 (0x000320) 0x0200- f:00001 d: 0 | EXIT
0x0191 (0x000322) 0x2123- f:00020 d: 291 | A = OR[291]
0x0192 (0x000324) 0x8604- f:00103 d: 4 | P = P + 4 (0x0196), A # 0
0x0193 (0x000326) 0x2124- f:00020 d: 292 | A = OR[292]
0x0194 (0x000328) 0x8602- f:00103 d: 2 | P = P + 2 (0x0196), A # 0
0x0195 (0x00032A) 0x7046- f:00070 d: 70 | P = P + 70 (0x01DB)
0x0196 (0x00032C) 0x2118- f:00020 d: 280 | A = OR[280]
0x0197 (0x00032E) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0198 (0x000330) 0x2908- f:00024 d: 264 | OR[264] = A
0x0199 (0x000332) 0x3108- f:00030 d: 264 | A = (OR[264])
0x019A (0x000334) 0x292E- f:00024 d: 302 | OR[302] = A
0x019B (0x000336) 0x2118- f:00020 d: 280 | A = OR[280]
0x019C (0x000338) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x019D (0x00033A) 0x2908- f:00024 d: 264 | OR[264] = A
0x019E (0x00033C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x019F (0x00033E) 0x292F- f:00024 d: 303 | OR[303] = A
0x01A0 (0x000340) 0x212E- f:00020 d: 302 | A = OR[302]
0x01A1 (0x000342) 0x8404- f:00102 d: 4 | P = P + 4 (0x01A5), A = 0
0x01A2 (0x000344) 0x212F- f:00020 d: 303 | A = OR[303]
0x01A3 (0x000346) 0x8402- f:00102 d: 2 | P = P + 2 (0x01A5), A = 0
0x01A4 (0x000348) 0x7003- f:00070 d: 3 | P = P + 3 (0x01A7)
0x01A5 (0x00034A) 0x7C34- f:00076 d: 52 | R = OR[52]
0x01A6 (0x00034C) 0x0000- f:00000 d: 0 | PASS
0x01A7 (0x00034E) 0x212F- f:00020 d: 303 | A = OR[303]
0x01A8 (0x000350) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x01A9 (0x000352) 0x2908- f:00024 d: 264 | OR[264] = A
0x01AA (0x000354) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01AB (0x000356) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01AC (0x000358) 0x212F- f:00020 d: 303 | A = OR[303]
0x01AD (0x00035A) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x01AE (0x00035C) 0x2908- f:00024 d: 264 | OR[264] = A
0x01AF (0x00035E) 0x211C- f:00020 d: 284 | A = OR[284]
0x01B0 (0x000360) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01B1 (0x000362) 0x212F- f:00020 d: 303 | A = OR[303]
0x01B2 (0x000364) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x01B3 (0x000366) 0x2908- f:00024 d: 264 | OR[264] = A
0x01B4 (0x000368) 0x211D- f:00020 d: 285 | A = OR[285]
0x01B5 (0x00036A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01B6 (0x00036C) 0x212F- f:00020 d: 303 | A = OR[303]
0x01B7 (0x00036E) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x01B8 (0x000370) 0x2908- f:00024 d: 264 | OR[264] = A
0x01B9 (0x000372) 0x2121- f:00020 d: 289 | A = OR[289]
0x01BA (0x000374) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01BB (0x000376) 0x212F- f:00020 d: 303 | A = OR[303]
0x01BC (0x000378) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x01BD (0x00037A) 0x2908- f:00024 d: 264 | OR[264] = A
0x01BE (0x00037C) 0x2122- f:00020 d: 290 | A = OR[290]
0x01BF (0x00037E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01C0 (0x000380) 0x212F- f:00020 d: 303 | A = OR[303]
0x01C1 (0x000382) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x01C2 (0x000384) 0x2908- f:00024 d: 264 | OR[264] = A
0x01C3 (0x000386) 0x2123- f:00020 d: 291 | A = OR[291]
0x01C4 (0x000388) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01C5 (0x00038A) 0x212F- f:00020 d: 303 | A = OR[303]
0x01C6 (0x00038C) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x01C7 (0x00038E) 0x2908- f:00024 d: 264 | OR[264] = A
0x01C8 (0x000390) 0x2124- f:00020 d: 292 | A = OR[292]
0x01C9 (0x000392) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01CA (0x000394) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x01CB (0x000396) 0x2933- f:00024 d: 307 | OR[307] = A
0x01CC (0x000398) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01CD (0x00039A) 0x2934- f:00024 d: 308 | OR[308] = A
0x01CE (0x00039C) 0x212E- f:00020 d: 302 | A = OR[302]
0x01CF (0x00039E) 0x2935- f:00024 d: 309 | OR[309] = A
0x01D0 (0x0003A0) 0x212F- f:00020 d: 303 | A = OR[303]
0x01D1 (0x0003A2) 0x2936- f:00024 d: 310 | OR[310] = A
0x01D2 (0x0003A4) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x01D3 (0x0003A6) 0x5800- f:00054 d: 0 | B = A
0x01D4 (0x0003A8) 0x1800-0x3718 f:00014 d: 0 | A = 14104 (0x3718)
0x01D6 (0x0003AC) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01D7 (0x0003AE) 0x2006- f:00020 d: 6 | A = OR[6]
0x01D8 (0x0003B0) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x01D9 (0x0003B2) 0x2908- f:00024 d: 264 | OR[264] = A
0x01DA (0x0003B4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01DB (0x0003B6) 0x0200- f:00001 d: 0 | EXIT
0x01DC (0x0003B8) 0x2118- f:00020 d: 280 | A = OR[280]
0x01DD (0x0003BA) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x01DE (0x0003BC) 0x2908- f:00024 d: 264 | OR[264] = A
0x01DF (0x0003BE) 0x2119- f:00020 d: 281 | A = OR[281]
0x01E0 (0x0003C0) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01E1 (0x0003C2) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x01E2 (0x0003C4) 0x2930- f:00024 d: 304 | OR[304] = A
0x01E3 (0x0003C6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01E4 (0x0003C8) 0x2931- f:00024 d: 305 | OR[305] = A
0x01E5 (0x0003CA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01E6 (0x0003CC) 0x292B- f:00024 d: 299 | OR[299] = A
0x01E7 (0x0003CE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01E8 (0x0003D0) 0x2927- f:00024 d: 295 | OR[295] = A
0x01E9 (0x0003D2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01EA (0x0003D4) 0x2928- f:00024 d: 296 | OR[296] = A
0x01EB (0x0003D6) 0x2118- f:00020 d: 280 | A = OR[280]
0x01EC (0x0003D8) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x01ED (0x0003DA) 0x2908- f:00024 d: 264 | OR[264] = A
0x01EE (0x0003DC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01EF (0x0003DE) 0x8402- f:00102 d: 2 | P = P + 2 (0x01F1), A = 0
0x01F0 (0x0003E0) 0x7008- f:00070 d: 8 | P = P + 8 (0x01F8)
0x01F1 (0x0003E2) 0x2118- f:00020 d: 280 | A = OR[280]
0x01F2 (0x0003E4) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x01F3 (0x0003E6) 0x2908- f:00024 d: 264 | OR[264] = A
0x01F4 (0x0003E8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01F5 (0x0003EA) 0x291B- f:00024 d: 283 | OR[283] = A
0x01F6 (0x0003EC) 0x7A03-0x0211 f:00075 d: 3 | P = OR[3]+529 (0x0211)
0x01F8 (0x0003F0) 0x2131- f:00020 d: 305 | A = OR[305]
0x01F9 (0x0003F2) 0x8403- f:00102 d: 3 | P = P + 3 (0x01FC), A = 0
0x01FA (0x0003F4) 0x7A03-0x020A f:00075 d: 3 | P = OR[3]+522 (0x020A)
0x01FC (0x0003F8) 0x2118- f:00020 d: 280 | A = OR[280]
0x01FD (0x0003FA) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x01FE (0x0003FC) 0x2908- f:00024 d: 264 | OR[264] = A
0x01FF (0x0003FE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0200 (0x000400) 0x291B- f:00024 d: 283 | OR[283] = A
0x0201 (0x000402) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0202 (0x000404) 0x2931- f:00024 d: 305 | OR[305] = A
0x0203 (0x000406) 0x7008- f:00070 d: 8 | P = P + 8 (0x020B)
0x0204 (0x000408) 0x2118- f:00020 d: 280 | A = OR[280]
0x0205 (0x00040A) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x0206 (0x00040C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0207 (0x00040E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0208 (0x000410) 0x291B- f:00024 d: 283 | OR[283] = A
0x0209 (0x000412) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x020A (0x000414) 0x2931- f:00024 d: 305 | OR[305] = A
0x020B (0x000416) 0x2123- f:00020 d: 291 | A = OR[291]
0x020C (0x000418) 0x8402- f:00102 d: 2 | P = P + 2 (0x020E), A = 0
0x020D (0x00041A) 0x7009- f:00070 d: 9 | P = P + 9 (0x0216)
0x020E (0x00041C) 0x2124- f:00020 d: 292 | A = OR[292]
0x020F (0x00041E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0211), A = 0
0x0210 (0x000420) 0x7006- f:00070 d: 6 | P = P + 6 (0x0216)
0x0211 (0x000422) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0212 (0x000424) 0x2930- f:00024 d: 304 | OR[304] = A
0x0213 (0x000426) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0214 (0x000428) 0x2932- f:00024 d: 306 | OR[306] = A
0x0215 (0x00042A) 0x7063- f:00070 d: 99 | P = P + 99 (0x0278)
0x0216 (0x00042C) 0x212B- f:00020 d: 299 | A = OR[299]
0x0217 (0x00042E) 0x123F- f:00011 d: 63 | A = A & 63 (0x003F)
0x0218 (0x000430) 0x2908- f:00024 d: 264 | OR[264] = A
0x0219 (0x000432) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x021A (0x000434) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x021B (0x000436) 0x8402- f:00102 d: 2 | P = P + 2 (0x021D), A = 0
0x021C (0x000438) 0x7015- f:00070 d: 21 | P = P + 21 (0x0231)
0x021D (0x00043A) 0x211E- f:00020 d: 286 | A = OR[286]
0x021E (0x00043C) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x021F (0x00043E) 0x291F- f:00024 d: 287 | OR[287] = A
0x0220 (0x000440) 0x1026- f:00010 d: 38 | A = 38 (0x0026)
0x0221 (0x000442) 0x2933- f:00024 d: 307 | OR[307] = A
0x0222 (0x000444) 0x211C- f:00020 d: 284 | A = OR[284]
0x0223 (0x000446) 0x2934- f:00024 d: 308 | OR[308] = A
0x0224 (0x000448) 0x211D- f:00020 d: 285 | A = OR[285]
0x0225 (0x00044A) 0x252B- f:00022 d: 299 | A = A + OR[299]
0x0226 (0x00044C) 0x2935- f:00024 d: 309 | OR[309] = A
0x0227 (0x00044E) 0x211F- f:00020 d: 287 | A = OR[287]
0x0228 (0x000450) 0x2936- f:00024 d: 310 | OR[310] = A
0x0229 (0x000452) 0x1040- f:00010 d: 64 | A = 64 (0x0040)
0x022A (0x000454) 0x2937- f:00024 d: 311 | OR[311] = A
0x022B (0x000456) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x022C (0x000458) 0x2938- f:00024 d: 312 | OR[312] = A
0x022D (0x00045A) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x022E (0x00045C) 0x5800- f:00054 d: 0 | B = A
0x022F (0x00045E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0230 (0x000460) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0231 (0x000462) 0x211F- f:00020 d: 287 | A = OR[287]
0x0232 (0x000464) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0233 (0x000466) 0x2908- f:00024 d: 264 | OR[264] = A
0x0234 (0x000468) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0235 (0x00046A) 0x292C- f:00024 d: 300 | OR[300] = A
0x0236 (0x00046C) 0x211F- f:00020 d: 287 | A = OR[287]
0x0237 (0x00046E) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0238 (0x000470) 0x2908- f:00024 d: 264 | OR[264] = A
0x0239 (0x000472) 0x3108- f:00030 d: 264 | A = (OR[264])
0x023A (0x000474) 0x292D- f:00024 d: 301 | OR[301] = A
0x023B (0x000476) 0x212C- f:00020 d: 300 | A = OR[300]
0x023C (0x000478) 0x8402- f:00102 d: 2 | P = P + 2 (0x023E), A = 0
0x023D (0x00047A) 0x7006- f:00070 d: 6 | P = P + 6 (0x0243)
0x023E (0x00047C) 0x212D- f:00020 d: 301 | A = OR[301]
0x023F (0x00047E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0241), A = 0
0x0240 (0x000480) 0x7003- f:00070 d: 3 | P = P + 3 (0x0243)
0x0241 (0x000482) 0x7C34- f:00076 d: 52 | R = OR[52]
0x0242 (0x000484) 0x0000- f:00000 d: 0 | PASS
0x0243 (0x000486) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0244 (0x000488) 0x2B1F- f:00025 d: 287 | OR[287] = A + OR[287]
0x0245 (0x00048A) 0x2D2B- f:00026 d: 299 | OR[299] = OR[299] + 1
0x0246 (0x00048C) 0x2123- f:00020 d: 291 | A = OR[291]
0x0247 (0x00048E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0249), A = 0
0x0248 (0x000490) 0x700D- f:00070 d: 13 | P = P + 13 (0x0255)
0x0249 (0x000492) 0x2124- f:00020 d: 292 | A = OR[292]
0x024A (0x000494) 0x1E00-0x1000 f:00017 d: 0 | A = A - 4096 (0x1000)
0x024C (0x000498) 0x8002- f:00100 d: 2 | P = P + 2 (0x024E), C = 0
0x024D (0x00049A) 0x8602- f:00103 d: 2 | P = P + 2 (0x024F), A # 0
0x024E (0x00049C) 0x7002- f:00070 d: 2 | P = P + 2 (0x0250)
0x024F (0x00049E) 0x7006- f:00070 d: 6 | P = P + 6 (0x0255)
0x0250 (0x0004A0) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0251 (0x0004A2) 0x2930- f:00024 d: 304 | OR[304] = A
0x0252 (0x0004A4) 0x2124- f:00020 d: 292 | A = OR[292]
0x0253 (0x0004A6) 0x2932- f:00024 d: 306 | OR[306] = A
0x0254 (0x0004A8) 0x7004- f:00070 d: 4 | P = P + 4 (0x0258)
0x0255 (0x0004AA) 0x1800-0x1000 f:00014 d: 0 | A = 4096 (0x1000)
0x0257 (0x0004AE) 0x2932- f:00024 d: 306 | OR[306] = A
0x0258 (0x0004B0) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0259 (0x0004B2) 0x290F- f:00024 d: 271 | OR[271] = A
0x025A (0x0004B4) 0x2124- f:00020 d: 292 | A = OR[292]
0x025B (0x0004B6) 0x2732- f:00023 d: 306 | A = A - OR[306]
0x025C (0x0004B8) 0x2924- f:00024 d: 292 | OR[292] = A
0x025D (0x0004BA) 0x8202- f:00101 d: 2 | P = P + 2 (0x025F), C = 1
0x025E (0x0004BC) 0x2F23- f:00027 d: 291 | OR[291] = OR[291] - 1
0x025F (0x0004BE) 0x0810- f:00004 d: 16 | A = A > 16 (0x0010)
0x0260 (0x0004C0) 0x230F- f:00021 d: 271 | A = A & OR[271]
0x0261 (0x0004C2) 0x2132- f:00020 d: 306 | A = OR[306]
0x0262 (0x0004C4) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0263 (0x0004C6) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0264 (0x0004C8) 0x2913- f:00024 d: 275 | OR[275] = A
0x0265 (0x0004CA) 0x2113- f:00020 d: 275 | A = OR[275]
0x0266 (0x0004CC) 0x0803- f:00004 d: 3 | A = A > 3 (0x0003)
0x0267 (0x0004CE) 0x2913- f:00024 d: 275 | OR[275] = A
0x0268 (0x0004D0) 0x1026- f:00010 d: 38 | A = 38 (0x0026)
0x0269 (0x0004D2) 0x2933- f:00024 d: 307 | OR[307] = A
0x026A (0x0004D4) 0x212C- f:00020 d: 300 | A = OR[300]
0x026B (0x0004D6) 0x2934- f:00024 d: 308 | OR[308] = A
0x026C (0x0004D8) 0x212D- f:00020 d: 301 | A = OR[301]
0x026D (0x0004DA) 0x2935- f:00024 d: 309 | OR[309] = A
0x026E (0x0004DC) 0x211B- f:00020 d: 283 | A = OR[283]
0x026F (0x0004DE) 0x2936- f:00024 d: 310 | OR[310] = A
0x0270 (0x0004E0) 0x2113- f:00020 d: 275 | A = OR[275]
0x0271 (0x0004E2) 0x2937- f:00024 d: 311 | OR[311] = A
0x0272 (0x0004E4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0273 (0x0004E6) 0x2938- f:00024 d: 312 | OR[312] = A
0x0274 (0x0004E8) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x0275 (0x0004EA) 0x5800- f:00054 d: 0 | B = A
0x0276 (0x0004EC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0277 (0x0004EE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0278 (0x0004F0) 0x3118- f:00030 d: 280 | A = (OR[280])
0x0279 (0x0004F2) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x027A (0x0004F4) 0x2913- f:00024 d: 275 | OR[275] = A
0x027B (0x0004F6) 0x0400- f:00002 d: 0 | I = 0
0x027C (0x0004F8) 0x0000- f:00000 d: 0 | PASS
0x027D (0x0004FA) 0x1034- f:00010 d: 52 | A = 52 (0x0034)
0x027E (0x0004FC) 0x29C3- f:00024 d: 451 | OR[451] = A
0x027F (0x0004FE) 0x2113- f:00020 d: 275 | A = OR[275]
0x0280 (0x000500) 0x29C4- f:00024 d: 452 | OR[452] = A
0x0281 (0x000502) 0x2118- f:00020 d: 280 | A = OR[280]
0x0282 (0x000504) 0x29C5- f:00024 d: 453 | OR[453] = A
0x0283 (0x000506) 0x2130- f:00020 d: 304 | A = OR[304]
0x0284 (0x000508) 0x29C6- f:00024 d: 454 | OR[454] = A
0x0285 (0x00050A) 0x211B- f:00020 d: 283 | A = OR[283]
0x0286 (0x00050C) 0x29C7- f:00024 d: 455 | OR[455] = A
0x0287 (0x00050E) 0x2132- f:00020 d: 306 | A = OR[306]
0x0288 (0x000510) 0x29C8- f:00024 d: 456 | OR[456] = A
0x0289 (0x000512) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x028A (0x000514) 0x2118- f:00020 d: 280 | A = OR[280]
0x028B (0x000516) 0x1417- f:00012 d: 23 | A = A + 23 (0x0017)
0x028C (0x000518) 0x2908- f:00024 d: 264 | OR[264] = A
0x028D (0x00051A) 0x211B- f:00020 d: 283 | A = OR[283]
0x028E (0x00051C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x028F (0x00051E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0290 (0x000520) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x0291 (0x000522) 0x2908- f:00024 d: 264 | OR[264] = A
0x0292 (0x000524) 0x2132- f:00020 d: 306 | A = OR[306]
0x0293 (0x000526) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0294 (0x000528) 0x2118- f:00020 d: 280 | A = OR[280]
0x0295 (0x00052A) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0296 (0x00052C) 0x290D- f:00024 d: 269 | OR[269] = A
0x0297 (0x00052E) 0x2130- f:00020 d: 304 | A = OR[304]
0x0298 (0x000530) 0x390D- f:00034 d: 269 | (OR[269]) = A
0x0299 (0x000532) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x029A (0x000534) 0x310D- f:00030 d: 269 | A = (OR[269])
0x029B (0x000536) 0x840B- f:00102 d: 11 | P = P + 11 (0x02A6), A = 0
0x029C (0x000538) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x029D (0x00053A) 0x2933- f:00024 d: 307 | OR[307] = A
0x029E (0x00053C) 0x210D- f:00020 d: 269 | A = OR[269]
0x029F (0x00053E) 0x2934- f:00024 d: 308 | OR[308] = A
0x02A0 (0x000540) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02A1 (0x000542) 0x2935- f:00024 d: 309 | OR[309] = A
0x02A2 (0x000544) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x02A3 (0x000546) 0x5800- f:00054 d: 0 | B = A
0x02A4 (0x000548) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02A5 (0x00054A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x02A6 (0x00054C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02A7 (0x00054E) 0x290D- f:00024 d: 269 | OR[269] = A
0x02A8 (0x000550) 0x2118- f:00020 d: 280 | A = OR[280]
0x02A9 (0x000552) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x02AA (0x000554) 0x2908- f:00024 d: 264 | OR[264] = A
0x02AB (0x000556) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02AC (0x000558) 0x8613- f:00103 d: 19 | P = P + 19 (0x02BF), A # 0
0x02AD (0x00055A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x02AE (0x00055C) 0x2933- f:00024 d: 307 | OR[307] = A
0x02AF (0x00055E) 0x2118- f:00020 d: 280 | A = OR[280]
0x02B0 (0x000560) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x02B1 (0x000562) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x02B2 (0x000564) 0x2934- f:00024 d: 308 | OR[308] = A
0x02B3 (0x000566) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02B4 (0x000568) 0x2935- f:00024 d: 309 | OR[309] = A
0x02B5 (0x00056A) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x02B6 (0x00056C) 0x5800- f:00054 d: 0 | B = A
0x02B7 (0x00056E) 0x1800-0x3718 f:00014 d: 0 | A = 14104 (0x3718)
0x02B9 (0x000572) 0x7C09- f:00076 d: 9 | R = OR[9]
0x02BA (0x000574) 0x2006- f:00020 d: 6 | A = OR[6]
0x02BB (0x000576) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x02BC (0x000578) 0x2908- f:00024 d: 264 | OR[264] = A
0x02BD (0x00057A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02BE (0x00057C) 0x290D- f:00024 d: 269 | OR[269] = A
0x02BF (0x00057E) 0x2118- f:00020 d: 280 | A = OR[280]
0x02C0 (0x000580) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x02C1 (0x000582) 0x2908- f:00024 d: 264 | OR[264] = A
0x02C2 (0x000584) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02C3 (0x000586) 0x291A- f:00024 d: 282 | OR[282] = A
0x02C4 (0x000588) 0x2118- f:00020 d: 280 | A = OR[280]
0x02C5 (0x00058A) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x02C6 (0x00058C) 0x2908- f:00024 d: 264 | OR[264] = A
0x02C7 (0x00058E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02C8 (0x000590) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02C9 (0x000592) 0x210D- f:00020 d: 269 | A = OR[269]
0x02CA (0x000594) 0x2118- f:00020 d: 280 | A = OR[280]
0x02CB (0x000596) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x02CC (0x000598) 0x2908- f:00024 d: 264 | OR[264] = A
0x02CD (0x00059A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02CE (0x00059C) 0x291B- f:00024 d: 283 | OR[283] = A
0x02CF (0x00059E) 0x2118- f:00020 d: 280 | A = OR[280]
0x02D0 (0x0005A0) 0x1420- f:00012 d: 32 | A = A + 32 (0x0020)
0x02D1 (0x0005A2) 0x2908- f:00024 d: 264 | OR[264] = A
0x02D2 (0x0005A4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02D3 (0x0005A6) 0x2932- f:00024 d: 306 | OR[306] = A
0x02D4 (0x0005A8) 0x2118- f:00020 d: 280 | A = OR[280]
0x02D5 (0x0005AA) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x02D6 (0x0005AC) 0x2908- f:00024 d: 264 | OR[264] = A
0x02D7 (0x0005AE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02D8 (0x0005B0) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02D9 (0x0005B2) 0x2118- f:00020 d: 280 | A = OR[280]
0x02DA (0x0005B4) 0x1420- f:00012 d: 32 | A = A + 32 (0x0020)
0x02DB (0x0005B6) 0x2908- f:00024 d: 264 | OR[264] = A
0x02DC (0x0005B8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02DD (0x0005BA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02DE (0x0005BC) 0x3118- f:00030 d: 280 | A = (OR[280])
0x02DF (0x0005BE) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x02E0 (0x0005C0) 0x2913- f:00024 d: 275 | OR[275] = A
0x02E1 (0x0005C2) 0x0400- f:00002 d: 0 | I = 0
0x02E2 (0x0005C4) 0x0000- f:00000 d: 0 | PASS
0x02E3 (0x0005C6) 0x1035- f:00010 d: 53 | A = 53 (0x0035)
0x02E4 (0x0005C8) 0x29C3- f:00024 d: 451 | OR[451] = A
0x02E5 (0x0005CA) 0x2113- f:00020 d: 275 | A = OR[275]
0x02E6 (0x0005CC) 0x29C4- f:00024 d: 452 | OR[452] = A
0x02E7 (0x0005CE) 0x2118- f:00020 d: 280 | A = OR[280]
0x02E8 (0x0005D0) 0x29C5- f:00024 d: 453 | OR[453] = A
0x02E9 (0x0005D2) 0x211A- f:00020 d: 282 | A = OR[282]
0x02EA (0x0005D4) 0x29C6- f:00024 d: 454 | OR[454] = A
0x02EB (0x0005D6) 0x211B- f:00020 d: 283 | A = OR[283]
0x02EC (0x0005D8) 0x29C7- f:00024 d: 455 | OR[455] = A
0x02ED (0x0005DA) 0x2132- f:00020 d: 306 | A = OR[306]
0x02EE (0x0005DC) 0x29C8- f:00024 d: 456 | OR[456] = A
0x02EF (0x0005DE) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x02F0 (0x0005E0) 0x211A- f:00020 d: 282 | A = OR[282]
0x02F1 (0x0005E2) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x02F2 (0x0005E4) 0x8402- f:00102 d: 2 | P = P + 2 (0x02F4), A = 0
0x02F3 (0x0005E6) 0x7003- f:00070 d: 3 | P = P + 3 (0x02F6)
0x02F4 (0x0005E8) 0x7309- f:00071 d: 265 | P = P - 265 (0x01EB)
0x02F5 (0x0005EA) 0x7022- f:00070 d: 34 | P = P + 34 (0x0317)
0x02F6 (0x0005EC) 0x211A- f:00020 d: 282 | A = OR[282]
0x02F7 (0x0005EE) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x02F8 (0x0005F0) 0x8402- f:00102 d: 2 | P = P + 2 (0x02FA), A = 0
0x02F9 (0x0005F2) 0x700D- f:00070 d: 13 | P = P + 13 (0x0306)
0x02FA (0x0005F4) 0x2132- f:00020 d: 306 | A = OR[306]
0x02FB (0x0005F6) 0x1E00-0x1000 f:00017 d: 0 | A = A - 4096 (0x1000)
0x02FD (0x0005FA) 0xB634- f:00133 d: 52 | R = OR[52], A # 0
0x02FE (0x0005FC) 0x0000- f:00000 d: 0 | PASS
0x02FF (0x0005FE) 0x2128- f:00020 d: 296 | A = OR[296]
0x0300 (0x000600) 0x2532- f:00022 d: 306 | A = A + OR[306]
0x0301 (0x000602) 0x2928- f:00024 d: 296 | OR[296] = A
0x0302 (0x000604) 0x8002- f:00100 d: 2 | P = P + 2 (0x0304), C = 0
0x0303 (0x000606) 0x2D27- f:00026 d: 295 | OR[295] = OR[295] + 1
0x0304 (0x000608) 0x7319- f:00071 d: 281 | P = P - 281 (0x01EB)
0x0305 (0x00060A) 0x7012- f:00070 d: 18 | P = P + 18 (0x0317)
0x0306 (0x00060C) 0x211A- f:00020 d: 282 | A = OR[282]
0x0307 (0x00060E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0309), A = 0
0x0308 (0x000610) 0x7007- f:00070 d: 7 | P = P + 7 (0x030F)
0x0309 (0x000612) 0x2128- f:00020 d: 296 | A = OR[296]
0x030A (0x000614) 0x2532- f:00022 d: 306 | A = A + OR[306]
0x030B (0x000616) 0x2928- f:00024 d: 296 | OR[296] = A
0x030C (0x000618) 0x8002- f:00100 d: 2 | P = P + 2 (0x030E), C = 0
0x030D (0x00061A) 0x2D27- f:00026 d: 295 | OR[295] = OR[295] + 1
0x030E (0x00061C) 0x7009- f:00070 d: 9 | P = P + 9 (0x0317)
0x030F (0x00061E) 0x211A- f:00020 d: 282 | A = OR[282]
0x0310 (0x000620) 0x1620- f:00013 d: 32 | A = A - 32 (0x0020)
0x0311 (0x000622) 0x8202- f:00101 d: 2 | P = P + 2 (0x0313), C = 1
0x0312 (0x000624) 0x7003- f:00070 d: 3 | P = P + 3 (0x0315)
0x0313 (0x000626) 0x0000- f:00000 d: 0 | PASS
0x0314 (0x000628) 0x7003- f:00070 d: 3 | P = P + 3 (0x0317)
0x0315 (0x00062A) 0x7C34- f:00076 d: 52 | R = OR[52]
0x0316 (0x00062C) 0x0000- f:00000 d: 0 | PASS
0x0317 (0x00062E) 0x0200- f:00001 d: 0 | EXIT
0x0318 (0x000630) 0x101A- f:00010 d: 26 | A = 26 (0x001A)
0x0319 (0x000632) 0x2933- f:00024 d: 307 | OR[307] = A
0x031A (0x000634) 0x111B- f:00010 d: 283 | A = 283 (0x011B)
0x031B (0x000636) 0x2934- f:00024 d: 308 | OR[308] = A
0x031C (0x000638) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x031D (0x00063A) 0x5800- f:00054 d: 0 | B = A
0x031E (0x00063C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x031F (0x00063E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0320 (0x000640) 0x8602- f:00103 d: 2 | P = P + 2 (0x0322), A # 0
0x0321 (0x000642) 0x700B- f:00070 d: 11 | P = P + 11 (0x032C)
0x0322 (0x000644) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0323 (0x000646) 0x2933- f:00024 d: 307 | OR[307] = A
0x0324 (0x000648) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0325 (0x00064A) 0x2934- f:00024 d: 308 | OR[308] = A
0x0326 (0x00064C) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x0327 (0x00064E) 0x5800- f:00054 d: 0 | B = A
0x0328 (0x000650) 0x1800-0x3718 f:00014 d: 0 | A = 14104 (0x3718)
0x032A (0x000654) 0x7C09- f:00076 d: 9 | R = OR[9]
0x032B (0x000656) 0x7213- f:00071 d: 19 | P = P - 19 (0x0318)
0x032C (0x000658) 0x2118- f:00020 d: 280 | A = OR[280]
0x032D (0x00065A) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x032E (0x00065C) 0x2908- f:00024 d: 264 | OR[264] = A
0x032F (0x00065E) 0x211B- f:00020 d: 283 | A = OR[283]
0x0330 (0x000660) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0331 (0x000662) 0x2118- f:00020 d: 280 | A = OR[280]
0x0332 (0x000664) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x0333 (0x000666) 0x2908- f:00024 d: 264 | OR[264] = A
0x0334 (0x000668) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0335 (0x00066A) 0x8602- f:00103 d: 2 | P = P + 2 (0x0337), A # 0
0x0336 (0x00066C) 0x702C- f:00070 d: 44 | P = P + 44 (0x0362)
0x0337 (0x00066E) 0x101A- f:00010 d: 26 | A = 26 (0x001A)
0x0338 (0x000670) 0x2933- f:00024 d: 307 | OR[307] = A
0x0339 (0x000672) 0x111B- f:00010 d: 283 | A = 283 (0x011B)
0x033A (0x000674) 0x2934- f:00024 d: 308 | OR[308] = A
0x033B (0x000676) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x033C (0x000678) 0x5800- f:00054 d: 0 | B = A
0x033D (0x00067A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x033E (0x00067C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x033F (0x00067E) 0x8602- f:00103 d: 2 | P = P + 2 (0x0341), A # 0
0x0340 (0x000680) 0x701D- f:00070 d: 29 | P = P + 29 (0x035D)
0x0341 (0x000682) 0x2118- f:00020 d: 280 | A = OR[280]
0x0342 (0x000684) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x0343 (0x000686) 0x2908- f:00024 d: 264 | OR[264] = A
0x0344 (0x000688) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0345 (0x00068A) 0x291B- f:00024 d: 283 | OR[283] = A
0x0346 (0x00068C) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x0347 (0x00068E) 0x2933- f:00024 d: 307 | OR[307] = A
0x0348 (0x000690) 0x211B- f:00020 d: 283 | A = OR[283]
0x0349 (0x000692) 0x2934- f:00024 d: 308 | OR[308] = A
0x034A (0x000694) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x034B (0x000696) 0x5800- f:00054 d: 0 | B = A
0x034C (0x000698) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x034D (0x00069A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x034E (0x00069C) 0x2118- f:00020 d: 280 | A = OR[280]
0x034F (0x00069E) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x0350 (0x0006A0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0351 (0x0006A2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0352 (0x0006A4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0353 (0x0006A6) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0354 (0x0006A8) 0x2933- f:00024 d: 307 | OR[307] = A
0x0355 (0x0006AA) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0356 (0x0006AC) 0x2934- f:00024 d: 308 | OR[308] = A
0x0357 (0x0006AE) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x0358 (0x0006B0) 0x5800- f:00054 d: 0 | B = A
0x0359 (0x0006B2) 0x1800-0x3718 f:00014 d: 0 | A = 14104 (0x3718)
0x035B (0x0006B6) 0x7C09- f:00076 d: 9 | R = OR[9]
0x035C (0x0006B8) 0x7244- f:00071 d: 68 | P = P - 68 (0x0318)
0x035D (0x0006BA) 0x2118- f:00020 d: 280 | A = OR[280]
0x035E (0x0006BC) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x035F (0x0006BE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0360 (0x0006C0) 0x211B- f:00020 d: 283 | A = OR[283]
0x0361 (0x0006C2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0362 (0x0006C4) 0x0200- f:00001 d: 0 | EXIT
0x0363 (0x0006C6) 0x2118- f:00020 d: 280 | A = OR[280]
0x0364 (0x0006C8) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x0365 (0x0006CA) 0x2908- f:00024 d: 264 | OR[264] = A
0x0366 (0x0006CC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0367 (0x0006CE) 0x291B- f:00024 d: 283 | OR[283] = A
0x0368 (0x0006D0) 0x211B- f:00020 d: 283 | A = OR[283]
0x0369 (0x0006D2) 0x8602- f:00103 d: 2 | P = P + 2 (0x036B), A # 0
0x036A (0x0006D4) 0x700E- f:00070 d: 14 | P = P + 14 (0x0378)
0x036B (0x0006D6) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x036C (0x0006D8) 0x2933- f:00024 d: 307 | OR[307] = A
0x036D (0x0006DA) 0x211B- f:00020 d: 283 | A = OR[283]
0x036E (0x0006DC) 0x2934- f:00024 d: 308 | OR[308] = A
0x036F (0x0006DE) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x0370 (0x0006E0) 0x5800- f:00054 d: 0 | B = A
0x0371 (0x0006E2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0372 (0x0006E4) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0373 (0x0006E6) 0x2118- f:00020 d: 280 | A = OR[280]
0x0374 (0x0006E8) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x0375 (0x0006EA) 0x2908- f:00024 d: 264 | OR[264] = A
0x0376 (0x0006EC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0377 (0x0006EE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0378 (0x0006F0) 0x2118- f:00020 d: 280 | A = OR[280]
0x0379 (0x0006F2) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x037A (0x0006F4) 0x2908- f:00024 d: 264 | OR[264] = A
0x037B (0x0006F6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x037C (0x0006F8) 0x8602- f:00103 d: 2 | P = P + 2 (0x037E), A # 0
0x037D (0x0006FA) 0x7016- f:00070 d: 22 | P = P + 22 (0x0393)
0x037E (0x0006FC) 0x2118- f:00020 d: 280 | A = OR[280]
0x037F (0x0006FE) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x0380 (0x000700) 0x2908- f:00024 d: 264 | OR[264] = A
0x0381 (0x000702) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0382 (0x000704) 0x291B- f:00024 d: 283 | OR[283] = A
0x0383 (0x000706) 0x211B- f:00020 d: 283 | A = OR[283]
0x0384 (0x000708) 0x8602- f:00103 d: 2 | P = P + 2 (0x0386), A # 0
0x0385 (0x00070A) 0x700E- f:00070 d: 14 | P = P + 14 (0x0393)
0x0386 (0x00070C) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x0387 (0x00070E) 0x2933- f:00024 d: 307 | OR[307] = A
0x0388 (0x000710) 0x211B- f:00020 d: 283 | A = OR[283]
0x0389 (0x000712) 0x2934- f:00024 d: 308 | OR[308] = A
0x038A (0x000714) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x038B (0x000716) 0x5800- f:00054 d: 0 | B = A
0x038C (0x000718) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x038D (0x00071A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x038E (0x00071C) 0x2118- f:00020 d: 280 | A = OR[280]
0x038F (0x00071E) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x0390 (0x000720) 0x2908- f:00024 d: 264 | OR[264] = A
0x0391 (0x000722) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0392 (0x000724) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0393 (0x000726) 0x0200- f:00001 d: 0 | EXIT
0x0394 (0x000728) 0x101D- f:00010 d: 29 | A = 29 (0x001D)
0x0395 (0x00072A) 0x2933- f:00024 d: 307 | OR[307] = A
0x0396 (0x00072C) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0397 (0x00072E) 0x2934- f:00024 d: 308 | OR[308] = A
0x0398 (0x000730) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x0399 (0x000732) 0x5800- f:00054 d: 0 | B = A
0x039A (0x000734) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x039B (0x000736) 0x7C09- f:00076 d: 9 | R = OR[9]
0x039C (0x000738) 0x2006- f:00020 d: 6 | A = OR[6]
0x039D (0x00073A) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x039E (0x00073C) 0x2908- f:00024 d: 264 | OR[264] = A
0x039F (0x00073E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03A0 (0x000740) 0x292C- f:00024 d: 300 | OR[300] = A
0x03A1 (0x000742) 0x2006- f:00020 d: 6 | A = OR[6]
0x03A2 (0x000744) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x03A3 (0x000746) 0x2908- f:00024 d: 264 | OR[264] = A
0x03A4 (0x000748) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03A5 (0x00074A) 0x292D- f:00024 d: 301 | OR[301] = A
0x03A6 (0x00074C) 0x2006- f:00020 d: 6 | A = OR[6]
0x03A7 (0x00074E) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x03A8 (0x000750) 0x2908- f:00024 d: 264 | OR[264] = A
0x03A9 (0x000752) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03AA (0x000754) 0x8602- f:00103 d: 2 | P = P + 2 (0x03AC), A # 0
0x03AB (0x000756) 0x700B- f:00070 d: 11 | P = P + 11 (0x03B6)
0x03AC (0x000758) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x03AD (0x00075A) 0x2933- f:00024 d: 307 | OR[307] = A
0x03AE (0x00075C) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x03AF (0x00075E) 0x2934- f:00024 d: 308 | OR[308] = A
0x03B0 (0x000760) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x03B1 (0x000762) 0x5800- f:00054 d: 0 | B = A
0x03B2 (0x000764) 0x1800-0x3718 f:00014 d: 0 | A = 14104 (0x3718)
0x03B4 (0x000768) 0x7C09- f:00076 d: 9 | R = OR[9]
0x03B5 (0x00076A) 0x7221- f:00071 d: 33 | P = P - 33 (0x0394)
0x03B6 (0x00076C) 0x0200- f:00001 d: 0 | EXIT
0x03B7 (0x00076E) 0x3118- f:00030 d: 280 | A = (OR[280])
0x03B8 (0x000770) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x03B9 (0x000772) 0x2913- f:00024 d: 275 | OR[275] = A
0x03BA (0x000774) 0x2118- f:00020 d: 280 | A = OR[280]
0x03BB (0x000776) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x03BC (0x000778) 0x2908- f:00024 d: 264 | OR[264] = A
0x03BD (0x00077A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03BE (0x00077C) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x03BF (0x00077E) 0x2914- f:00024 d: 276 | OR[276] = A
0x03C0 (0x000780) 0x0400- f:00002 d: 0 | I = 0
0x03C1 (0x000782) 0x0000- f:00000 d: 0 | PASS
0x03C2 (0x000784) 0x1031- f:00010 d: 49 | A = 49 (0x0031)
0x03C3 (0x000786) 0x29C3- f:00024 d: 451 | OR[451] = A
0x03C4 (0x000788) 0x2113- f:00020 d: 275 | A = OR[275]
0x03C5 (0x00078A) 0x29C4- f:00024 d: 452 | OR[452] = A
0x03C6 (0x00078C) 0x2118- f:00020 d: 280 | A = OR[280]
0x03C7 (0x00078E) 0x29C5- f:00024 d: 453 | OR[453] = A
0x03C8 (0x000790) 0x2114- f:00020 d: 276 | A = OR[276]
0x03C9 (0x000792) 0x29C6- f:00024 d: 454 | OR[454] = A
0x03CA (0x000794) 0x2119- f:00020 d: 281 | A = OR[281]
0x03CB (0x000796) 0x29C7- f:00024 d: 455 | OR[455] = A
0x03CC (0x000798) 0x211A- f:00020 d: 282 | A = OR[282]
0x03CD (0x00079A) 0x29C8- f:00024 d: 456 | OR[456] = A
0x03CE (0x00079C) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x03CF (0x00079E) 0x2119- f:00020 d: 281 | A = OR[281]
0x03D0 (0x0007A0) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x03D1 (0x0007A2) 0x2908- f:00024 d: 264 | OR[264] = A
0x03D2 (0x0007A4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03D3 (0x0007A6) 0x2913- f:00024 d: 275 | OR[275] = A
0x03D4 (0x0007A8) 0x2119- f:00020 d: 281 | A = OR[281]
0x03D5 (0x0007AA) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x03D6 (0x0007AC) 0x2908- f:00024 d: 264 | OR[264] = A
0x03D7 (0x0007AE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03D8 (0x0007B0) 0x2914- f:00024 d: 276 | OR[276] = A
0x03D9 (0x0007B2) 0x2119- f:00020 d: 281 | A = OR[281]
0x03DA (0x0007B4) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x03DB (0x0007B6) 0x2908- f:00024 d: 264 | OR[264] = A
0x03DC (0x0007B8) 0x2114- f:00020 d: 276 | A = OR[276]
0x03DD (0x0007BA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x03DE (0x0007BC) 0x2119- f:00020 d: 281 | A = OR[281]
0x03DF (0x0007BE) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x03E0 (0x0007C0) 0x2908- f:00024 d: 264 | OR[264] = A
0x03E1 (0x0007C2) 0x2113- f:00020 d: 275 | A = OR[275]
0x03E2 (0x0007C4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x03E3 (0x0007C6) 0x211A- f:00020 d: 282 | A = OR[282]
0x03E4 (0x0007C8) 0x127F- f:00011 d: 127 | A = A & 127 (0x007F)
0x03E5 (0x0007CA) 0x291A- f:00024 d: 282 | OR[282] = A
0x03E6 (0x0007CC) 0x2119- f:00020 d: 281 | A = OR[281]
0x03E7 (0x0007CE) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x03E8 (0x0007D0) 0x2908- f:00024 d: 264 | OR[264] = A
0x03E9 (0x0007D2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03EA (0x0007D4) 0x1A00-0xFF80 f:00015 d: 0 | A = A & 65408 (0xFF80)
0x03EC (0x0007D8) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x03ED (0x0007DA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x03EE (0x0007DC) 0x101C- f:00010 d: 28 | A = 28 (0x001C)
0x03EF (0x0007DE) 0x2933- f:00024 d: 307 | OR[307] = A
0x03F0 (0x0007E0) 0x2119- f:00020 d: 281 | A = OR[281]
0x03F1 (0x0007E2) 0x2934- f:00024 d: 308 | OR[308] = A
0x03F2 (0x0007E4) 0x1133- f:00010 d: 307 | A = 307 (0x0133)
0x03F3 (0x0007E6) 0x5800- f:00054 d: 0 | B = A
0x03F4 (0x0007E8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03F5 (0x0007EA) 0x7C09- f:00076 d: 9 | R = OR[9]
0x03F6 (0x0007EC) 0x2006- f:00020 d: 6 | A = OR[6]
0x03F7 (0x0007EE) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x03F8 (0x0007F0) 0x2908- f:00024 d: 264 | OR[264] = A
0x03F9 (0x0007F2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03FA (0x0007F4) 0x0200- f:00001 d: 0 | EXIT
0x03FB (0x0007F6) 0x0000- f:00000 d: 0 | PASS
0x03FC (0x0007F8) 0x0000- f:00000 d: 0 | PASS
0x03FD (0x0007FA) 0x0000- f:00000 d: 0 | PASS
0x03FE (0x0007FC) 0x0000- f:00000 d: 0 | PASS
0x03FF (0x0007FE) 0x0000- f:00000 d: 0 | PASS
| 79.91984
| 79
| 0.457974
|
98421291d285f1ddbb364f8dc8e4e6c380bb09eb
| 1,012
|
asm
|
Assembly
|
asm/zenith.asm
|
Zenith80/initial_emulator
|
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
|
[
"Apache-2.0"
] | 9
|
2017-11-12T23:16:14.000Z
|
2017-12-08T19:42:44.000Z
|
asm/zenith.asm
|
Zenith80/Zenith80
|
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
|
[
"Apache-2.0"
] | null | null | null |
asm/zenith.asm
|
Zenith80/Zenith80
|
2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72
|
[
"Apache-2.0"
] | null | null | null |
jp start
hello_world:
.db "Hi there! If you need help, ask on the Fantasy Consoles Discord server.\n"
.db "The link can be found from http://pleasanta.tk/zenith80\n",0
escape: .db "Escape pressed\n",0
nescape: .db "Escape not pressed\n",0
start:
ld a, 0
out (0), a
ld a, 47
inc a
inc a
inc a
out (0), a
halt
ld hl, hello_world
ld a, 0
call print_str
im 1
_:
call poll_input
cp 0xDE
jp z, .escape
ld hl, nescape
ld a, 0
call print_str
jp -_
halt
.escape:
ld hl, escape
ld a, 0
call print_str
jp -_
print16:
push af
ld a, h
out (2), a
ld a, l
out (2), a
pop af
ret
;;print_str
;;inputs:
;; hl: string address
;; a: end character
print_str:
push hl
call strlen
pop hl
_:
ld a, (hl)
out (0), a
inc l
djnz -_
ret
;;strlen
;;inputs:
;; hl: string address
;; a: end character
;;outputs:
;; b: string length
strlen:
push af
push bc
ld bc, 256
cpir
ld a, 255
sub c
pop bc
ld b, a
pop af
ret
test:
.db hello_world
poll_input:
_:
in a, (1)
cp 0
jp z, -_
ret
| 11.244444
| 80
| 0.636364
|
90f86667da8b0bd2dc8a2e4e55f46657ae817609
| 677
|
asm
|
Assembly
|
_not os code/TESTING/newExtern/Hello world.asm
|
jaredwhitney/os3
|
05e0cda4670da093cc720d0dccbfeb29e788fa0f
|
[
"MIT"
] | 5
|
2015-02-25T01:28:09.000Z
|
2021-05-22T09:03:04.000Z
|
_not os code/TESTING/newExtern/Hello world.asm
|
jaredwhitney/os3
|
05e0cda4670da093cc720d0dccbfeb29e788fa0f
|
[
"MIT"
] | 38
|
2015-02-10T18:37:11.000Z
|
2017-10-03T03:08:50.000Z
|
_not os code/TESTING/newExtern/Hello world.asm
|
jaredwhitney/os3
|
05e0cda4670da093cc720d0dccbfeb29e788fa0f
|
[
"MIT"
] | 2
|
2016-05-06T22:48:46.000Z
|
2017-01-12T19:28:49.000Z
|
; THIS FILE IS TO BE UPDATED OR DELETED BY 10-26-15
; First program written 3.5 years ago in java.
;
; class HelloWorld {
; public static void main(String[] args) {
; System.out.println("Hello World!");
; }
; }
; Time to rewrite it as the first external program in os3!
; First the file header ;
fileStart :
dd fileEnd - headerStart
db "PROGRAM", 0
db "Hello world", 0
; Then the program header ;
db 0x01
dd main
db "Hello World", 0
main :
mov ebx, hello_text
mov ah, 0xFF
mov word [System.function], Console.println
int 0x30
mov word [System.function], System.exit
int 0x30
jmp $
%include "shlib_standard.asm"
hello_text :
db "Hello World!", 0
fileEnd :
| 16.925
| 58
| 0.694239
|
3562a9b210f295e9522fbb944597362d3ab41d45
| 358
|
asm
|
Assembly
|
oeis/128/A128715.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/128/A128715.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/128/A128715.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A128715: A131830 + A103451 - A000012 as infinite lower triangular matrices.
; Submitted by Christian Krause
; 1,2,2,3,1,3,4,2,2,4,5,3,5,3,5,6,4,9,9,4,6,7,5,14,19,14,5,7,8,6,20,34,34,20,6,8,9,7,27,55,69,55,27,7,9,10,8,35,83,125,125,83,35,8,10
mov $2,1
lpb $0
add $1,1
sub $0,$1
add $2,1
lpe
bin $1,$0
div $2,$1
div $2,$1
add $2,$1
mov $0,$2
sub $0,1
| 21.058824
| 133
| 0.617318
|
de3648ae25fb4a5c1c645be88b2a3dcf1e8369d2
| 1,155
|
asm
|
Assembly
|
vp8/decoder/arm/armv5/dequantize_v5.asm
|
CM-Archive/android_external_libvpx
|
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
|
[
"BSD-3-Clause"
] | 3
|
2015-08-31T15:24:31.000Z
|
2020-04-24T20:31:29.000Z
|
vp8/decoder/arm/armv5/dequantize_v5.asm
|
CM-Archive/android_external_libvpx
|
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
|
[
"BSD-3-Clause"
] | null | null | null |
vp8/decoder/arm/armv5/dequantize_v5.asm
|
CM-Archive/android_external_libvpx
|
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
|
[
"BSD-3-Clause"
] | 4
|
2015-09-16T11:40:39.000Z
|
2019-06-10T01:08:46.000Z
|
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing project authors may
; be found in the AUTHORS file in the root of the source tree.
;
EXPORT |vp8_dequantize_b_armv5|
AREA |.text|, CODE, READONLY ; name this block of code
q RN r0
dqc RN r1
cnt RN r2
;void dequantize_b_armv5(short *Q, short *DQC)
|vp8_dequantize_b_armv5| PROC
stmdb sp!, {r4, lr}
ldr r3, [q]
ldr r4, [dqc], #8
mov cnt, #4
dequant_loop
smulbb lr, r3, r4
smultt r12, r3, r4
ldr r3, [q, #4]
ldr r4, [dqc, #-4]
strh lr, [q], #2
strh r12, [q], #2
smulbb lr, r3, r4
smultt r12, r3, r4
subs cnt, cnt, #1
ldrne r3, [q, #4]
ldrne r4, [dqc], #8
strh lr, [q], #2
strh r12, [q], #2
bne dequant_loop
ldmia sp!, {r4, pc}
ENDP ;|vp8_dequantize_b_arm|
END
| 21.792453
| 70
| 0.587013
|
b02877f28673905569a9a495a8aa73ce5c7383e8
| 6,178
|
asm
|
Assembly
|
msx/apps/muflash/slot_helpers.asm
|
zoggins/yellow-msx-series-for-rc2014
|
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
|
[
"MIT"
] | null | null | null |
msx/apps/muflash/slot_helpers.asm
|
zoggins/yellow-msx-series-for-rc2014
|
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
|
[
"MIT"
] | null | null | null |
msx/apps/muflash/slot_helpers.asm
|
zoggins/yellow-msx-series-for-rc2014
|
dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd
|
[
"MIT"
] | null | null | null |
DEFC SSL_REGS = 0xFFFF
DEFC PSL_STAT = 0xA8
DEFC MSX_MUSIC_PAGE = 0xE000
DEFC ROM_05555H = (0x5555)
DEFC ROM_02AAAH = (0x2AAA+0x4000)
SECTION CODE_COMPILER
; SWITCH MSX-MUSIC ROM PAGE TO PAGE L
; (SWITCH PAGE 3 TO SLOT 3-1 TO ENABLE MSX-MUSIC PAGING ADDRESS)
;
; MSX-MUSIC'S ROM PAGE CAN BE SELECTED BY WRITING TO THE STANDARD MEMORY MAPPED WRITE REGISTER IN PAGE 1 OR PAGE 2
; THIS FUNCTION USES PAGE 3, TO AVOID INTERFERING WITH THE SST39SF040 WRITE COMMAND SEQUENCE
;
; L -> DESIRED MSX-MUSIC ROM PAGE
;
PUBLIC _msxMusicSetPage
_msxMusicSetPage:
MSX_MUSIC_SET_PAGE:
; THIS FUNCTION CAN NOT USE THE STACK WHILE PAGE 3 IS SWITCHED OUT
IN A, (PSL_STAT)
LD D, A ; STORE CURRENT SLOTS ASSIGNMENTS IN D
OR A, 0b11000000 ; MASK PAGE 3 TO SLOT 3
OUT (PSL_STAT), A ; APPLY SLOT ASSIGNMENTS
LD A, (SSL_REGS)
CPL
LD E, A ; STORE CURRENT SUB-SLOTS ASSIGNMENTS IN E
AND A, 0b00111111 ; MASK OUT PAGE 3 SUB-SLOT
OR A, 0b01000000 ; SET PAGE 3 TO SUB-SLOT 1
LD (SSL_REGS), A ; APPLY SUB-SLOT ASSIGNMENTS
LD A, L
LD (MSX_MUSIC_PAGE), A ; SET MSX-MUSIC PAGE TO DESIRED PAGE
LD A, E ; RESTORE SUB-SLOT ASSIGNMENTS
LD (SSL_REGS), A
LD A, D ; RESTORE SLOT ASSIGNMENTS
OUT (PSL_STAT), A
RET
;
; SET PAGE 1 TO MSX-MUSIC SLOT (3-1)
;
; Output: H -> original slot, L -> original sub slot
;
MSX_MUSIC_SET_SLOT:
IN A, (PSL_STAT)
LD H, A ; STORE CURRENT SLOTS ASSIGNMENTS IN D
OR A, 0b11001100 ; MASK SLOT 3 FOR PAGE 1 AND 3
OUT (PSL_STAT), A ; APPLY SLOT ASSIGNMENTS
LD D, A
LD A, (SSL_REGS)
CPL
LD L, A ; STORE CURRENT SUB-SLOTS ASSIGNMENTS IN L
AND A, 0b11110011 ; MASK OUT PAGE 1 SUB-SLOT
OR A, 0b00000100 ; SET PAGE 1 TO SUB-SLOT 1
LD E, A
LD (SSL_REGS), A ; APPLY SUB-SLOT ASSIGNMENTS
LD A, H ; RETRIEVE ORIGINAL SLOT ASSIGNMENTS
OR A, 0b00001100 ; KEEP PAGE 2 TO SLOT 3
OUT (PSL_STAT), A ; APPLY SLOT ASSIGNMENTS
; H -> ORIGINAL SLOT, L -> ORIGINAL SUB-SLOT
RET
;
; RESTORE SLOT/SUB-SLOT ASSIGNMENTS
; H -> SLOT ASSIGNEMTNS
; L -> SUB SLOT ASSIGNMENTS
;
PUBLIC _msxMusicRestoreSlot
_msxMusicRestoreSlot:
MSX_MUSIC_RESTORE_SLOT:
IN A, (PSL_STAT)
OR A, 0b11000000 ; MASK PAGE 3 TO SLOT 3
OUT (PSL_STAT), A ; APPLY SLOT ASSIGNMENTS
LD A, L ; LOAD ORIGINAL SUB-SLOT ASSIGNMENTS
LD (SSL_REGS), A ; RESTORE ORIGINAL SUB-SLOT ASSIGNMENTS
LD A, H ; LOAD ORIGINAL SLOT ASSIGNMENTS
OUT (PSL_STAT), A ; RESTORE ORIGINAL SLOT MAPPPINGS
RET
MSX_MUSIC_BYTE_PROGRAM:
LD L, 1 ; 5555H=AAH
CALL MSX_MUSIC_SET_PAGE
LD A, 0xAA
LD (ROM_05555H), A
LD L, 0 ; 2AAAH=55H
CALL MSX_MUSIC_SET_PAGE
LD A, 0x55
LD (ROM_02AAAH), A
LD L, 1 ; 5555H=A0H
CALL MSX_MUSIC_SET_PAGE
LD A, 0xA0
LD (ROM_05555H), A
RET
PUBLIC _msx_music_erase_ROM
;
; void msx_music_erase_ROM()
;
; APPLY THE COMMAND SEQUENCE TO ERASE THE ROM
; 5555H=AAH, 2AAAH=55H, 5555H=80H, 5555H=AAH, 2AAAH=55H, 5555H=10H
_msx_music_erase_ROM:
DI
ld b,b
jr $+2
CALL MSX_MUSIC_SET_SLOT
LD (current_page_slots), HL
LD L, 1 ; 5555H=AAH
CALL MSX_MUSIC_SET_PAGE
LD A, 0xAA
LD (ROM_05555H), A
LD L, 0 ; 2AAAH=55H
CALL MSX_MUSIC_SET_PAGE
LD A, 0x55
LD (ROM_02AAAH), A
LD L, 1 ; 5555H=80H
CALL MSX_MUSIC_SET_PAGE
LD A, 0x80
LD (ROM_05555H), A
LD A, 0xAA ; 5555H=AAH
LD (ROM_05555H), A
LD L, 0 ; 2AAAH=55H
CALL MSX_MUSIC_SET_PAGE
LD A, 0x55
LD (ROM_02AAAH), A
LD L, 1 ; 5555H=10H
CALL MSX_MUSIC_SET_PAGE
LD A, 0x10
LD (ROM_05555H), A
LD L, 0 ;
CALL MSX_MUSIC_SET_PAGE
WAIT_FOR_ERASE:
LD A, (0x4000)
AND 0x80
JR Z, WAIT_FOR_ERASE
LD HL, (current_page_slots)
CALL MSX_MUSIC_RESTORE_SLOT
EI
RET
PUBLIC _msx_music_write_4K_page
;
; void msx_music_write_4K_page(uint8_t page, uint8_t buffer[4096])
;
; WRITE sequence byte program
; 5555H=AAH, 2AAAH=55H, 5555H=A0H, ADDR=Data
_msx_music_write_4K_page:
PUSH IX
LD IX, 0
ADD IX, SP
DI ; do we need this?
CALL MSX_MUSIC_SET_SLOT
LD (current_page_slots), HL
LD A, (IX+4) ; page
AND 3 ; calculate 4K address start within the MSX Slot Page 1 (0x4000-0x7FFF)
ADD 4
RLCA
RLCA
RLCA
RLCA
LD D, A
LD E, 0 ; DE will be 0x4000, 0x5000, 0x6000 or 0x7000
LD L, (IX+5) ; buffer (source addres)
LD H, (IX+6) ; into HL
LD BC, 0x1000 ; loop counter - 4K
LOOPWR:
PUSH HL
PUSH DE
PUSH BC
CALL MSX_MUSIC_BYTE_PROGRAM
LD A, (IX+4) ; page
SRL A ; divide by 4
SRL A
LD L, A
CALL MSX_MUSIC_SET_PAGE ; address the required page
POP BC ; restore counter
POP DE ; restore source and destination
POP HL
LD A, (HL) ; copy data and increment
LD (DE), A
INC HL
INC DE
DEC BC
LD A, B
OR C
JR NZ, LOOPWR
LD L, 0 ; restore page of MSX-MUSIC rom
CALL MSX_MUSIC_SET_PAGE
LD HL, (current_page_slots)
CALL MSX_MUSIC_RESTORE_SLOT
EI
POP IX
RET
; extern bool msx_music_verify_4K_page(uint8_t page, uint8_t buffer[4096]); // Page is 0 to 127 - to address a 4K block within the 512K ROM address range.
PUBLIC _msx_music_verify_4K_page
_msx_music_verify_4K_page:
PUSH IX
LD IX, 0
ADD IX, SP
DI ; do we need this?
CALL MSX_MUSIC_SET_SLOT
LD (current_page_slots), HL
LD A, (IX+4) ; page
AND 3 ; calculate 4K address start within the MSX Slot Page 1 (0x4000-0x7FFF)
ADD 4
RLCA
RLCA
RLCA
RLCA
LD D, A
LD E, 0 ; DE will be 0x4000, 0x5000, 0x6000 or 0x7000
LD L, (IX+5) ; buffer (source addres)
LD H, (IX+6) ; into HL
LD BC, 0x1000 ; loop counter - 4K
LOOPRD:
PUSH HL
PUSH DE
PUSH BC
LD A, (IX+4) ; page
SRL A ; divide by 4
SRL A
LD L, A
CALL MSX_MUSIC_SET_PAGE ; address the required page
POP BC ; restore counter
POP DE ; restore source and destination
POP HL
LD A, (DE) ; compare data and increment
CP (HL) ; same?
JR NZ, VERIFY_FAIL ; jump to abort
INC HL
INC DE
DEC BC
LD A, B
OR C
JR NZ, LOOPRD
LD L, 0 ; restore page of MSX-MUSIC rom
CALL MSX_MUSIC_SET_PAGE
LD HL, (current_page_slots)
CALL MSX_MUSIC_RESTORE_SLOT
LD HL, 1 ; return TRUE
EI
POP IX
RET
VERIFY_FAIL:
LD L, 0 ; restore page of MSX-MUSIC rom
CALL MSX_MUSIC_SET_PAGE
LD HL, (current_page_slots)
CALL MSX_MUSIC_RESTORE_SLOT
LD HL, 0 ; return FALSE
EI
POP IX
RET
SECTION bss_compiler
current_page_slots: DW 0
| 19.864952
| 159
| 0.696666
|
3d673b96fe7494cd49397c3f2efa936c21bb1796
| 5,162
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_15807_293.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_15807_293.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_15807_293.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x9db6, %rsi
lea addresses_UC_ht+0x19676, %rdi
clflush (%rsi)
nop
nop
and %r10, %r10
mov $122, %rcx
rep movsb
nop
nop
and $7450, %r8
lea addresses_UC_ht+0x9536, %rcx
nop
nop
cmp $15924, %rdx
mov $0x6162636465666768, %r10
movq %r10, %xmm1
vmovups %ymm1, (%rcx)
nop
and $58805, %r10
lea addresses_D_ht+0x6936, %rdx
nop
nop
nop
nop
sub $930, %r12
movb $0x61, (%rdx)
nop
nop
and $34629, %rdi
lea addresses_D_ht+0x7106, %r10
nop
nop
nop
sub $58770, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
movups %xmm2, (%r10)
cmp $48387, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r15
push %rax
push %rbp
push %rsi
// Store
lea addresses_WT+0x1c5f6, %r15
nop
nop
nop
nop
nop
add %rbp, %rbp
movw $0x5152, (%r15)
nop
nop
nop
add $53309, %r15
// Faulty Load
lea addresses_US+0x11136, %rax
sub $63369, %rsi
mov (%rax), %r10d
lea oracles, %r14
and $0xff, %r10
shlq $12, %r10
mov (%r14,%r10,1), %r10
pop %rsi
pop %rbp
pop %rax
pop %r15
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': True}}
{'00': 15807}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 45.280702
| 2,999
| 0.660015
|
2efebc1588895b4b553e75315a0a4f14a45761d2
| 8,309
|
asm
|
Assembly
|
decompressors/Phantasy Star decompressor.asm
|
maxim-zhao/bmp2tilecompressors
|
1d0e475820731359165deb198aa834f8b177048a
|
[
"MIT"
] | 12
|
2016-04-20T06:08:11.000Z
|
2021-10-12T10:43:39.000Z
|
decompressors/Phantasy Star decompressor.asm
|
maxim-zhao/bmp2tilecompressors
|
1d0e475820731359165deb198aa834f8b177048a
|
[
"MIT"
] | 3
|
2016-09-21T14:39:11.000Z
|
2021-04-12T16:54:40.000Z
|
decompressors/Phantasy Star decompressor.asm
|
maxim-zhao/bmp2tilecompressors
|
1d0e475820731359165deb198aa834f8b177048a
|
[
"MIT"
] | null | null | null |
; Phantasy Star tile/tilemap decompression routines
;
; WLA DX warning:
;
; Great as it is, sometimes WLA DX is buggy, and I've especially found
; this with anonymous labels. If you're gettng screwy results, a
; temporary fix is often to change the anonymous labels (-, +, __, etc)
; to named labels.
;
; Usage notes:
;
; Tile loaders:
;
; ld de,<target VRAM address ORed with $4000>
; ld hl,<data address>
; call LoadTiles4BitRLE
;
; or
;
; ld de,<target VRAM address ORed with $4000>
; ld hl,<data address>
; call LoadTiles4BitRLENoDI
;
; The NoDI one does not di/ei around the VRAM accesses, so it's a bit
; faster but will be messed up by VBlanks.
;
; Tilemap loader 1:
;
; You need to define a constant called TileMapData. This must be a RAM
; address of a copy of the tilemap which you'll have to copy into VRAM
; during the VBlank.
;
; ld hl,<data address>
; call LoadTilemapToTileMapData
;
; I haven't supplied the code to do the copying from RAM to VRAM.
;
; Tilemap loader 2:
;
; ld de,<target VRAM address ORed with $4000>
; ld hl,<data address>
; call LoadTilemapToVRAM
;
; This is one I wrote myself :) based on the tile loader. It loads the
; tilemap directly into VRAM. It does not offer a version with di/ei
; around VRAM accesses, because updating the tilemap during the active
; display is generally bad; if you really want, you can modify it to
; do that.
;
; Note:
;
; Phantasy Star locates its SetVRAMAddressToDE function at offset
; $0008, so it can do
; rst $08 (1 byte, 11 clock cycles)
; instead of
; call SetVRAMAddressToDE (3 bytes, 17 clock cycles)
; If your code is using that then either define UseRst yourself, or
; uncomment the next line.
;.define UseRst
.section "SetVRAMAddressToDE" free
SetVRAMAddressToDE:
ld a,e
out ($bf),a
ld a,d
out ($bf),a
ret
.ends
.section "Tile loader (4 bpp RLE, no di/ei)" free
; Decompresses tile data from hl to VRAM address de
LoadTiles4BitRLENoDI:
ld b,$04
-:push bc
push de
call _f ; called 4 times for 4 bitplanes
pop de
inc de
pop bc
djnz -
ret
__:
ld a,(hl) ; read count byte <----+
inc hl ; increment pointer |
or a ; return if zero |
ret z ; |
; |
ld c,a ; get low 7 bits in b |
and $7f ; |
ld b,a ; |
ld a,c ; set z flag if high |
and $80 ; bit = 0 |
; |
-: ; |
.ifdef UseRst ; SetVRAMAddressToDE<+ |
rst $08 ; | |
.else ; | |
call SetVRAMAddressToDE ; | |
.endif ; | |
ld a,(hl) ; Get data byte in a | |
out ($be),a ; Write it to VRAM | |
jp z,+ ; If z flag then -+ | |
; skip inc hl | | |
inc hl ; | | |
; | | |
+:inc de ; Add 4 to de <----+ | |
inc de ; | |
inc de ; | |
inc de ; | |
djnz - ; repeat block -----+ |
; b times |
jp nz,_b ; If not z flag -------+
inc hl ; inc hl here instead |
jp _b ; repeat forever ------+
; (zero count byte quits)
.ends
.section "Phantasy Star Tile loader (4 bpp RLE, with di/ei)" free
LoadTiles4BitRLE: ; Same as NoDI only with a di/ei around the VRAM access (because VBlanks will mess it up)
ld b,$04 ; 4 bitplanes
-:push bc
push de
call _f ; called 4 times for 4 bitplanes
pop de
inc de
pop bc
djnz -
ret
__:
ld a,(hl) ; header byte
inc hl ; data byte
or a
ret z ; exit at zero terminator
ld c,a ; c = header byte
and $7f
ld b,a ; b = count
ld a,c
and $80 ; z flag = high bit
-:di
.ifdef UseRst
rst $08
.else
call SetVRAMAddressToDE
.endif
ld a,(hl)
out ($be),a ; output data
ei
jp z,+ ; if z flag then don't move to next data byte
inc hl
+:inc de ; move target forward 4 bytes
inc de
inc de
inc de
djnz - ; repeat b times
jp nz,_b
inc hl
jp _b
.ends
.section "Decompress to TileMapData" free
; Copies data from (hl) to TileMapData
; with RLE decompression and 2-interleaving
; data format:
; Header: $fccccccc
; f = flag: 1 = not RLE, 0 = RLE
; ccccccc = count
; Then [count] bytes are copied to even bytes starting at TileMapData
; Then the process is repeated for the odd bytes
LoadTilemapToTileMapData:
ld b,$00 ; b=0
ld de,TileMapData
call _f ; Process even bytes first -------------+
inc hl ; and odd bytes second |
ld de,TileMapData+1 ; |
__:ld a,(hl) ; Get data count in a <-----------------+
or a ; \ return |
ret z ; / if zero |
jp m,+ ; if bit 8 is set then ---------------+ |
; else: | |
ld c,a ; put it in c -> bc = data count | |
inc hl ; move hl pointer to next byte (data) | |
-:ldi ; copy 1 byte from hl to de, <------+ | |
; inc hl, inc de, dec bc | | |
dec hl ; move hl pointer back (RLE) | | |
inc de ; skip dest byte | | |
jp pe,- ; if bc!=0 then repeat -------------+ | |
inc hl ; move past RLE'd byte | |
jp _b ; repeat -----------------------------|-+
+:and $7f ; (if bit 8 is set:) unset it <-------+ |
ld c,a ; put it in c -> bc = data count |
inc hl ; move hl pointer to next byte (data) |
-:ldi ; copy 1 byte from hl to de, <--------+ |
; inc hl, inc de, dec bc | |
inc de ; skip dest byte | |
jp pe,- ; if bc!=0 then repeat ---------------+ |
jp _b ; repeat -------------------------------+
.ends
.section "Decompress tilemap to VRAM" free
; Decompresses tilemap data from hl to VRAM address de
; This isn't from Phantasy Star; it's the tile routine modified for
; interleaving 2 instead of 4
LoadTilemapToVRAM:
push de
call _f
pop de
inc de
call _f
ret
__:
ld a,(hl) ; read count byte <----+
inc hl ; increment pointer |
or a ; return if zero |
ret z ; |
; |
ld c,a ; get low 7 bits in b |
and $7f ; |
ld b,a ; |
ld a,c ; set z flag if high |
and $80 ; bit = 0 |
; |
-:di ; |
.ifdef UseRst ; SetVRAMAddressToDE<+ |
rst $08 ; | |
.else ; | |
call SetVRAMAddressToDE ; | |
.endif ; | |
ld a,(hl) ; Get data byte in a | |
out ($be),a ; Write it to VRAM | |
ei
jr z,+ ; If z flag then -+ | |
; skip inc hl | | |
inc hl ; | | |
; | | |
+:inc de ; Add 2 to de <----+ | |
inc de ; | |
djnz - ; repeat block -----+ |
; b times |
jr nz,_b ; If not z flag -------+
inc hl ; inc hl here instead |
jr _b ; repeat forever ------+
; (zero count byte quits)
.ends
| 33.504032
| 110
| 0.443375
|
7d995d8351f60691fc422bb7405f923310e984b3
| 397
|
asm
|
Assembly
|
programs/oeis/120/A120437.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/120/A120437.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/120/A120437.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A120437: Differences of A037314 (sum of base-3 digits of n = sum of base-9 digits of n).
; 1,1,7,1,1,7,1,1,61,1,1,7,1,1,7,1,1,61,1,1,7,1,1,7,1,1,547,1,1,7,1,1,7,1,1,61,1,1,7,1,1,7,1,1,61,1,1,7,1,1,7,1,1,547,1,1,7,1,1,7,1,1,61,1,1,7,1,1,7,1,1,61,1,1,7,1,1,7,1,1,4921,1,1,7,1,1,7,1,1,61,1,1,7,1,1,7,1,1,61,1
add $0,1
mov $1,1
lpb $0
dif $0,3
mul $1,9
lpe
div $1,8
mul $1,6
add $1,1
mov $0,$1
| 28.357143
| 216
| 0.571788
|
459278a091453c77371ee4e61d314e769c65875b
| 410
|
asm
|
Assembly
|
programs/oeis/091/A091398.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/091/A091398.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/091/A091398.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A091398: a(n) = Product_{ p | n } (1 + Legendre(5,p) ).
; 1,0,0,0,1,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,1,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0
seq $0,75423 ; rad(n) - 1, where rad(n) is the squarefree kernel of n (A007947).
seq $0,1157 ; sigma_2(n): sum of squares of divisors of n.
mod $0,5
| 58.571429
| 201
| 0.560976
|
3401cc1a14bab3960a1a2c35924bb0688731d87f
| 14,248
|
asm
|
Assembly
|
write.asm
|
johnw004/WifiRFS
|
e040a5d9b11b84d838228dae000be5a78fcce882
|
[
"MIT"
] | null | null | null |
write.asm
|
johnw004/WifiRFS
|
e040a5d9b11b84d838228dae000be5a78fcce882
|
[
"MIT"
] | null | null | null |
write.asm
|
johnw004/WifiRFS
|
e040a5d9b11b84d838228dae000be5a78fcce882
|
[
"MIT"
] | 1
|
2021-02-27T20:56:35.000Z
|
2021-02-27T20:56:35.000Z
|
\ ROM Filing System for Electron Wifi Board
\ (C) 2021 John Wike
\ high level routines to read and write data to/from RFS
.Write_Header \ the header for the first block will be at heap+1, and the last block at heap+$21
STA rfssrc \ A indicates which one
LDA #HI(heap)
STA rfssrc+1 \ start address points to heap+1 or heap+$21
LDX hdrlen \ header length from get_filename in vectors.asm
DEX
DEX
DEX
STX wrnum \ number of bytes, subtract 1 for * and 2 for crc
LDA tubeflag \ save tubeflag
PHA
LDA #$00 \ writing header so dont read from tube
STA tubeflag
LDA #'*' \ sync byte for block header
JSR Write_Block_With_Sync
PLA
STA tubeflag \ restore tubeflag
RTS
.Write_Block_With_Sync \entry with sync byte in accumulator
JSR Update_And_Write_Byte
.Write_Block \ rfssrc points to data in memory
LDA rfsptr+1
JSR Update_Bank \ update the bank variables before starting
LDY #$00
STY crc16
STY crc16+1
.Block_Loop
BIT tubeflag \ read from memory or tube
BVC Read_Mem
LDA $FCE5
BVS Rfssrc_OK
.Read_Mem
LDY #$00
LDA (rfssrc),Y
INC rfssrc \ inc memory pointer
BNE Rfssrc_OK
INC rfssrc+1
.Rfssrc_OK
JSR Do_Crc \ update the crc
JSR Write_Byte \ write a byte
DEC wrnum
BNE Block_Loop \ until end of block
LDA crc16
JSR Write_Byte
LDA crc16+1
JMP Write_Byte \ write crc at end of block
.Do_Crc \ crc routine by JG Harston
PHA
LDX #$08
EOR crc16
.Rotlp
ASL crc16+1
ROL A
BCC Clear
STA crcsave
LDA crc16+1
EOR #$21
STA crc16+1
LDA crcsave
EOR #$10
.Clear
DEX
BNE Rotlp
STA crc16
PLA
RTS
.Update_And_Write_Byte
PHA
LDA rfsptr+1
JSR Update_Bank \ update mfa and bank
PLA
.Write_Byte
LDY rfsptr
STY zrfsptr
TAY
LDA rfsptr+1
AND #$3F
ORA #$80
STA zrfsptr+1 \ set zrfsptr to address in sideways ROM ($8000-$BFFF)
LDA #rwpage
STA pagereg \ switch paged ram to rwcode
TYA
JSR rwcode \ entry for write byte
LDA #heappage \ restore paged ram to heap
STA pagereg
INC rfsptr \ inc rfs pointer
BNE Rfsptr_OK
INC rfsptr+1
LDA rfsptr+1 \ if msb changed update mfa and bank
JSR Update_Bank
LDA #'.'
JSR osasci
.Rfsptr_OK
RTS
.Read_Byte_From_F6 \ entry to use $F6/7 as pointers
LDY ROMptr
LDA ROMptr+1
BNE Do_Byte
.Inc_And_Read_Byte \ entry to inc rfs pointer before reading
INC rfsptr
BNE Read_Byte
INC rfsptr+1
.Update_And_Read_Byte \ entry to update mfa and bank before reading
LDA rfsptr+1
JSR Update_Bank
.Read_Byte
LDY rfsptr
LDA rfsptr+1
.Do_Byte
CPY #$FF
BNE Do_Byte2
CMP #$FF
BNE Do_Byte2 \ if reading end byte &FFFF return with '+'
LDA #'+'
RTS
.Do_Byte2
STY zrfsptr
AND #$3F
ORA #$80
STA zrfsptr+1 \ set zrfsptr to address in sideways ROM ($8000-$BFFF)
LDA #rwpage
STA pagereg \ set ram page to rw code
JSR rwcode+3 \ entry for read byte
.Read_Done
LDY #heappage \ restore paged ram to heap
STY pagereg
TAY \ to set zero flag
RTS
\ The 64K EEPROM on the wifi board is split into 4 x 16K banks. Bit 14 of the address is driven by the LSB of the ROM select.
\ Bit 15 is driven by the mfa signal from the uart on the board. (See Roland's explanation)
\ In order to address the board correctly these two signals need to correspond to the bits in the high byte of the rfs pointer
\ at all times. Every time it is changed, or potentially changed, this routine must be called. They are stored in the locations
\ mfatable and banktable in the rw page of ram to be read by the low level rw routines when they are called.
.Update_Bank \ enter with msb of address in A
PHA
LDX #rwpage \ set ram to rw page
STX pagereg
LDX #$00
ROL A
BCC Update_Mfa \ if bit 15 (bit 7 of msb) = 0, mfa = 0, else 8
LDX #$08
.Update_Mfa
STX mfatable
ROL A \ if bit 14 (bit 6 of msb) was 0, bank = lower bank of pair, else higher
LDA $F4
AND #$06 \ mask out bit 0 of ROM bank
ADC #$00 \ add in bit 14 (bit 6 of msb) of address
STA banktable
LDA #heappage \ reset heap page
STA pagereg
PLA
RTS
.Check_Delete \ also does filename matching for osfile and osfind
TAY \ A has existing delete flag
LDX #$00
.Delete_Loop
LDA heap+1,X \ compare search name in heap+1 with file name in heap+$40
ORA heap+$40,X
BEQ Delete_Found \ end of both filenames reached, names match
LDA heap+1,X
EOR heap+$40,X
AND #$DF
BNE Delete_End \ filenames dont match
INX
BNE Delete_Loop
.This_Is_Osfile5FF
LDA save_a \ this is osfile or osfind
CMP #$05
BNE End_Osfile5
LDY #$02
.Copy_Attribs
LDA heap+$4E,Y \ if osfile 5 copy file attributes at heap+$50 to parameter block in (X,Y) + 2
STA (save_y),Y
INY
CPY #$0C \ copy 10 bytes, 4 byte load address, 4 byteexecution address, 2 byte length
BNE Copy_Attribs
BEQ End_Osfile5
.Delete_Found
TYA \ filenames match
BEQ Already_Deleted \ ignore if already deleted
BCS This_Is_Osfile5FF \ if C set this is osfile or osfind
LDA #$00 \ if C clear this is delete so write delete flag
JSR Write_Byte
.End_Osfile5
CLV \ clear V to indicate file found
.Already_Deleted
PLA \ pull return address to return to calling address and not new_cat
PLA
PLA \ pull entry flags
PHP \ push V for return
.New_Cat_End
PLP
.Delete_End
RTS
\ New_Cat performs 4 functions associated with finding files, depending on C and V flags
\ V clear, C clear: Display catalogue
\ V clear, C set : Display file info
\ V set, C clear: Delete file
\ V set, C set : Find file for osfile and osfind and return file attributes for osfile 5
.Bit_New_Cat
BIT AnRTS \ set V flag for delete and osf entries
.New_Cat
PHP \ save V and C flags
LDA #heappage
STA pagereg \ set ram to heap page
JSR Check_Start \ check rstart still valid
LDY #$01
.Cat_Loop1
LDA rstart,Y
STA rfsptr,Y \ set pointer to start of files
LDA #$00
STA $100,Y \ clear deleted count
STA delsp,Y \ clear dead space count
DEY
BPL Cat_Loop1
.Find_Loop1
JSR Update_And_Read_Byte
CMP #'*'
BEQ Find_Continue \ if byte is not a "*" end has been reached
PLP
RTS
.Find_Continue
JSR Inc_And_Read_Byte \ start reading filename from header into heap+$40
STA heap+$40
LDX #$01
.Find_Filename
STX zp
JSR Inc_And_Read_Byte
LDX zp
STA heap+$40,X
INX
CMP #$00
BNE Find_Filename \ 0 indicates end of filename
LDX #$00
.Find_Attribs \ read the file attributes into heap+$50
STX zp
JSR Inc_And_Read_Byte
LDX zp
STA heap+$50,X
INX
CPX #15
BNE Find_Attribs
SEC
LDA heap+$5D \ locations 13 and 14 ($D and $E) in attributes point to end of file
STA scratch \ prepare scratch to calculate size of file
SBC #$05 \ start is held 5 bytes before
STA rfsptr
LDA heap+$5E
STA scratch+1
SBC #$00
STA rfsptr+1 \ point at start pointer
JSR Update_And_Read_Byte \ read start
PHA
JSR Inc_And_Read_Byte
SEC
SBC scratch
STA scratch
PLA
SBC scratch+1 \ subtract end
STA scratch+1 \ scratch now has negative size of file in RFS
JSR Inc_And_Read_Byte \ read data length and store at locations 8 and 9 in the attributes
STA heap+$59
JSR Inc_And_Read_Byte
STA heap+$58
JSR Inc_And_Read_Byte \ if 0 file is deleted
PHA \ push deleted flag
BNE Dont_Inc_Deleted
INC $100
BNE Add_Space
INC $101 \ inc deleted count
.Add_Space
SEC
LDA delsp \ add size in scratch to deleted sum by subtracting negative value
SBC scratch
STA delsp
LDA delsp+1
SBC scratch+1
STA delsp+1
.Dont_Inc_Deleted
PLA \ pull deleted flag
PLP
PHP
BVC Not_Delete
JSR Check_Delete \ if V set, delete or osfile/osfind called
BVS Dont_Print_Attribs \ if file not found skip to end
.Not_Delete
TAX
BEQ Dont_Print_Attribs \ if file deleted skip to end
PLP
PHP
BCS Dont_Print_Spaces \ if doing INFO don't print spaces
JSR Print_String2 \ if doing catalogue print 3 spaces
EQUS " ",$EA
.Dont_Print_Spaces
LDX #$00
.Find_Loop2
LDA heap+$40,X \ print filename
JSR osasci
BEQ Print_Spaces
INX
BNE Find_Loop2
.Print_Spaces
LDA #' ' \ print spaces to next column
JSR osasci
INX
CPX #11
BCC Print_Spaces \ if doing info, column width is 12 (11 + space in attribs loop)
PLP
PHP
BCS Print_Attribs
CPX #17
BNE Print_Spaces \ if doing cat expand to column width of 20 (17+3 at beginning)
BEQ Dont_Print_Attribs
.Print_Attribs
LDY #$02
.Attribs_Loop
LDA #' '
JSR osasci
LDX Attribs_List,Y \ load end location of attribute (msb)
.Attribs_Loop2
LDA heap+$50,X \ get attrib byte and print hex
JSR printhex
DEX \ dec pointer
TXA
CMP Attribs_List+1,Y \ compare pointer with end of attrib
BNE Attribs_Loop2
DEY \ if not end loop to next attrib
BPL Attribs_Loop
JSR osnewl
.Dont_Print_Attribs
LDA heap+$5D \ load pointer with start of next file
STA rfsptr
LDA heap+$5E
STA rfsptr+1
JMP Find_Loop1
.Attribs_List
EQUB $09,$07,$03,$FF \ end and start offsets into attribute list, length at 8,9, exec at 4-7, load at 0-3
.printhex pha \ save accu
lsr a \ shift high nibble to low
lsr a
lsr a
lsr a
jsr printhex_l1 \ print nibble
pla \ restore value
.printhex_l1 and #&0F \ remove high nibble
cmp #&0A \ test for hex digit
bcc printhex_l2 \ if not then continue
adc #6 \ add 6 for hex letter
.printhex_l2 adc #&30 \ add &30 for ascii value
jsr osasci \ print the digit and return
rts
| 33.84323
| 127
| 0.465258
|
5630698f8d8ef198eb9f8cf28692eeaf97a961a5
| 1,959
|
asm
|
Assembly
|
util/misc/capture_context_win_arm64.asm
|
dark-richie/crashpad
|
d573ac113bd5fce5cc970bb5ae76a235a1431a5d
|
[
"Apache-2.0"
] | 14,668
|
2015-01-01T01:57:10.000Z
|
2022-03-31T23:33:32.000Z
|
util/misc/capture_context_win_arm64.asm
|
dark-richie/crashpad
|
d573ac113bd5fce5cc970bb5ae76a235a1431a5d
|
[
"Apache-2.0"
] | 113
|
2015-05-04T09:58:14.000Z
|
2022-01-31T19:35:03.000Z
|
util/misc/capture_context_win_arm64.asm
|
dark-richie/crashpad
|
d573ac113bd5fce5cc970bb5ae76a235a1431a5d
|
[
"Apache-2.0"
] | 5,941
|
2015-01-02T11:32:21.000Z
|
2022-03-31T16:35:46.000Z
|
; Copyright 2019 The Crashpad Authors. All rights reserved.
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
EXPORT |?CaptureContext@crashpad@@YAXPEAU_CONTEXT@@@Z|
AREA |.text|, CODE
|?CaptureContext@crashpad@@YAXPEAU_CONTEXT@@@Z| PROC
; Save general purpose registers in context.regs[i].
; The original x0 can't be recovered.
stp x0, x1, [x0, #0x008]
stp x2, x3, [x0, #0x018]
stp x4, x5, [x0, #0x028]
stp x6, x7, [x0, #0x038]
stp x8, x9, [x0, #0x048]
stp x10, x11, [x0, #0x058]
stp x12, x13, [x0, #0x068]
stp x14, x15, [x0, #0x078]
stp x16, x17, [x0, #0x088]
stp x18, x19, [x0, #0x098]
stp x20, x21, [x0, #0x0a8]
stp x22, x23, [x0, #0x0b8]
stp x24, x25, [x0, #0x0c8]
stp x26, x27, [x0, #0x0d8]
stp x28, x29, [x0, #0x0e8]
; The original LR can't be recovered.
str LR, [x0, #0x0f8]
; Use x1 as a scratch register.
mov x1, SP
str x1, [x0, #0x100] ; context.sp
; The link register holds the return address for this function.
str LR, [x0, #0x108] ; context.pc
; pstate should hold SPSR but NZCV are the only bits we know about.
mrs x1, NZCV
; Enable Control flags, such as CONTEXT_ARM64, CONTEXT_CONTROL,
; CONTEXT_INTEGER
ldr w1, =0x00400003
; Set ControlFlags /0x000/ and pstate /0x004/ at the same time.
str x1, [x0, #0x000]
; Restore x1 from the saved context.
ldr x1, [x0, #0x010]
; TODO(https://crashpad.chromium.org/bug/300): save floating-point registers
ret
ENDP
END
| 30.138462
| 78
| 0.681981
|
ed07714b1226f173fa343a56bee806ff2ff0c0f3
| 1,978
|
asm
|
Assembly
|
third_party/virtualbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-wc32-U8D.asm
|
Fimbure/icebox-1
|
0b81992a53e1b410955ca89bdb6f8169d6f2da86
|
[
"MIT"
] | 521
|
2019-03-29T15:44:08.000Z
|
2022-03-22T09:46:19.000Z
|
third_party/virtualbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-wc32-U8D.asm
|
Fimbure/icebox-1
|
0b81992a53e1b410955ca89bdb6f8169d6f2da86
|
[
"MIT"
] | 30
|
2019-06-04T17:00:49.000Z
|
2021-09-08T20:44:19.000Z
|
third_party/virtualbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-wc32-U8D.asm
|
Fimbure/icebox-1
|
0b81992a53e1b410955ca89bdb6f8169d6f2da86
|
[
"MIT"
] | 99
|
2019-03-29T16:04:13.000Z
|
2022-03-28T16:59:34.000Z
|
; $Id: bs3-wc32-U8D.asm $
;; @file
; BS3Kit - 32-bit Watcom C/C++, 64-bit unsigned integer division.
;
;
; Copyright (C) 2007-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms of the GNU
; General Public License (GPL) as published by the Free Software
; Foundation, in version 2 as it comes in the "COPYING" file of the
; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
;
; The contents of this file may alternatively be used under the terms
; of the Common Development and Distribution License Version 1.0
; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
; VirtualBox OSE distribution, in which case the provisions of the
; CDDL are applicable instead of those of the GPL.
;
; You may elect to license modified versions of this file under the
; terms and conditions of either the GPL or the CDDL or both.
;
%include "bs3kit-template-header.mac"
BS3_EXTERN_CMN Bs3UInt64Div
;;
; 64-bit unsigned integer division.
;
; @returns EDX:EAX Quotient, ECX:EBX Remainder.
; @param EDX:EAX Dividend.
; @param ECX:EBX Divisor
;
global $??U8D
$??U8D:
;
; Convert to a C __cdecl call - not doing this in assembly.
;
; Set up a frame, allocating 16 bytes for the result buffer.
push ebp
mov ebp, esp
sub esp, 10h
; Pointer to the return buffer.
push esp
; The divisor.
push ecx
push ebx
; The dividend.
push edx
push eax
call Bs3UInt64Div
; Load the result.
mov ecx, [ebp - 10h + 12]
mov ebx, [ebp - 10h + 8]
mov edx, [ebp - 10h + 4]
mov eax, [ebp - 10h]
leave
ret
| 27.472222
| 71
| 0.639535
|
adc59bb2ad742695242bedac40ec126ce12f686a
| 311
|
asm
|
Assembly
|
programs/oeis/021/A021929.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/021/A021929.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/021/A021929.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A021929: Decimal expansion of 1/925.
; 0,0,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1,0,8,1
lpb $0
pow $0,4
sub $0,1
lpe
mov $1,$0
add $1,$0
mod $1,3
pow $1,3
| 25.916667
| 199
| 0.530547
|
a1b10da31124ba7e36a60e0a330f763bc4e7dddc
| 445
|
asm
|
Assembly
|
programs/oeis/307/A307469.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/307/A307469.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/307/A307469.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A307469: a(n) = 2*a(n-1) + 6*a(n-2) for n >= 2, a(0) = 1, a(1) = 5.
; 1,5,16,62,220,812,2944,10760,39184,142928,520960,1899488,6924736,25246400,92041216,335560832,1223368960,4460102912,16260419584,59281456640,216125430784,787939601408,2872631787520,10472901183488,38181593092096,139200593285120
add $0,2
mov $4,2
lpb $0
sub $0,1
mov $2,$3
mov $3,$1
mul $3,3
add $4,$2
mul $4,2
mov $1,$4
lpe
sub $1,8
div $1,8
add $1,1
mov $0,$1
| 23.421053
| 226
| 0.67191
|
ae49c00aecbf6439ad3a2e7aae22791ca70f099b
| 510
|
asm
|
Assembly
|
non_regression/basic_x86_linux.obj.asm
|
LRGH/plasmasm
|
4cd50546c3dc895763d72dd60b7c46179c1916bc
|
[
"Apache-2.0"
] | 1
|
2021-02-28T21:31:18.000Z
|
2021-02-28T21:31:18.000Z
|
non_regression/basic_x86_linux.obj.asm
|
LRGH/plasmasm
|
4cd50546c3dc895763d72dd60b7c46179c1916bc
|
[
"Apache-2.0"
] | null | null | null |
non_regression/basic_x86_linux.obj.asm
|
LRGH/plasmasm
|
4cd50546c3dc895763d72dd60b7c46179c1916bc
|
[
"Apache-2.0"
] | null | null | null |
.file "a00.c"
.text
.def _main; .scl 2; .type 32; .endef
_main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl $0, %eax
addl $15, %eax
addl $15, %eax
shrl $4, %eax
sall $4, %eax
movl %eax, -8(%ebp)
movl -8(%ebp), %eax
call __alloca
L00000025:
call ___main
L0000002A:
movl $0, -4(%ebp)
leal -4(%ebp), %eax
addl $66, (%eax)
movl -4(%ebp), %eax
leave
ret
# ----------------------
| 18.888889
| 37
| 0.447059
|
51bb49b077b394c93e5d8528f4a91384e97ae29a
| 3,920
|
asm
|
Assembly
|
docs/asm_examples/simple_math.asm
|
schorrm/arm2riscv
|
5fa28e28d920705b660874a03b9906fae710b442
|
[
"MIT"
] | 8
|
2020-07-07T13:08:26.000Z
|
2022-03-29T23:12:37.000Z
|
docs/asm_examples/simple_math.asm
|
schorrm/arm2riscv
|
5fa28e28d920705b660874a03b9906fae710b442
|
[
"MIT"
] | 2
|
2020-04-05T07:17:22.000Z
|
2021-06-27T22:33:25.000Z
|
docs/asm_examples/simple_math.asm
|
schorrm/arm2riscv
|
5fa28e28d920705b660874a03b9906fae710b442
|
[
"MIT"
] | 1
|
2021-06-19T12:38:45.000Z
|
2021-06-19T12:38:45.000Z
|
.file "simple_math.c"
.section .tdata
REG_BANK:
.dword 0
.dword 0
.dword 0
.dword 0
.dword 0
.dword 0
.dword 0
.dword 0
.text
.section .rodata
.align 3
.LC0:
.string "Signed Ops:"
.align 3
.LC1:
.string "Addition: %d\n"
.align 3
.LC2:
.string "Subtraction: %d\n"
.align 3
.LC3:
.string "Multiplication: %d\n"
.align 3
.LC4:
.string "Division: %d\n"
.align 3
.LC5:
.string "Modulus: %d\n"
.align 3
.LC6:
.string "Unsigned Ops:"
.text
.align 2
.global main
.type main, %function
main:
la x21, REG_BANK
# stp x29, x30, [sp, -32]!
sd x8, -32(sp)
sd ra, -24(sp)
addi sp, sp, -32 # writeback
# add x29, sp, 0
addi x8, sp, 0
# mov w0, 99
li x10, 99
# str w0, [x29, 16]
sw x10, 16(x8)
# mov w0, 10
li x10, 10
# str w0, [x29, 20]
sw x10, 20(x8)
# adrp x0, .LC0
lui x10, %hi(.LC0)
# add x0, x0, :lo12:.LC0
add x10, x10, %lo(.LC0)
# bl puts
call puts
# ldr w1, [x29, 16]
lw x11, 16(x8)
# ldr w0, [x29, 20]
lw x10, 20(x8)
# add w1, w1, w0
addw x11, x11, x10
# adrp x0, .LC1
lui x10, %hi(.LC1)
# add x0, x0, :lo12:.LC1
add x10, x10, %lo(.LC1)
# bl printf
call printf
# ldr w1, [x29, 16]
lw x11, 16(x8)
# ldr w0, [x29, 20]
lw x10, 20(x8)
# sub w1, w1, w0
subw x11, x11, x10
# adrp x0, .LC2
lui x10, %hi(.LC2)
# add x0, x0, :lo12:.LC2
add x10, x10, %lo(.LC2)
# bl printf
call printf
# ldr w1, [x29, 16]
lw x11, 16(x8)
# ldr w0, [x29, 20]
lw x10, 20(x8)
# mul w1, w1, w0
mulw x11, x11, x10
# adrp x0, .LC3
lui x10, %hi(.LC3)
# add x0, x0, :lo12:.LC3
add x10, x10, %lo(.LC3)
# bl printf
call printf
# ldr w1, [x29, 16]
lw x11, 16(x8)
# ldr w0, [x29, 20]
lw x10, 20(x8)
# sdiv w1, w1, w0
divw x11, x11, x10
# adrp x0, .LC4
lui x10, %hi(.LC4)
# add x0, x0, :lo12:.LC4
add x10, x10, %lo(.LC4)
# bl printf
call printf
# ldr w0, [x29, 16]
lw x10, 16(x8)
# ldr w1, [x29, 20]
lw x11, 20(x8)
# sdiv w2, w0, w1
divw x12, x10, x11
# ldr w1, [x29, 20]
lw x11, 20(x8)
# mul w1, w2, w1
mulw x11, x12, x11
# sub w1, w0, w1
subw x11, x10, x11
# adrp x0, .LC5
lui x10, %hi(.LC5)
# add x0, x0, :lo12:.LC5
add x10, x10, %lo(.LC5)
# bl printf
call printf
# mov w0, 99
li x10, 99
# str w0, [x29, 24]
sw x10, 24(x8)
# mov w0, 10
li x10, 10
# str w0, [x29, 28]
sw x10, 28(x8)
# adrp x0, .LC6
lui x10, %hi(.LC6)
# add x0, x0, :lo12:.LC6
add x10, x10, %lo(.LC6)
# bl puts
call puts
# ldr w1, [x29, 24]
lw x11, 24(x8)
# ldr w0, [x29, 28]
lw x10, 28(x8)
# add w1, w1, w0
addw x11, x11, x10
# adrp x0, .LC1
lui x10, %hi(.LC1)
# add x0, x0, :lo12:.LC1
add x10, x10, %lo(.LC1)
# bl printf
call printf
# ldr w1, [x29, 24]
lw x11, 24(x8)
# ldr w0, [x29, 28]
lw x10, 28(x8)
# sub w1, w1, w0
subw x11, x11, x10
# adrp x0, .LC2
lui x10, %hi(.LC2)
# add x0, x0, :lo12:.LC2
add x10, x10, %lo(.LC2)
# bl printf
call printf
# ldr w1, [x29, 24]
lw x11, 24(x8)
# ldr w0, [x29, 28]
lw x10, 28(x8)
# mul w1, w1, w0
mulw x11, x11, x10
# adrp x0, .LC3
lui x10, %hi(.LC3)
# add x0, x0, :lo12:.LC3
add x10, x10, %lo(.LC3)
# bl printf
call printf
# ldr w1, [x29, 24]
lw x11, 24(x8)
# ldr w0, [x29, 28]
lw x10, 28(x8)
# udiv w1, w1, w0
divuw x11, x11, x10
# adrp x0, .LC4
lui x10, %hi(.LC4)
# add x0, x0, :lo12:.LC4
add x10, x10, %lo(.LC4)
# bl printf
call printf
# ldr w0, [x29, 24]
lw x10, 24(x8)
# ldr w1, [x29, 28]
lw x11, 28(x8)
# udiv w2, w0, w1
divuw x12, x10, x11
# ldr w1, [x29, 28]
lw x11, 28(x8)
# mul w1, w2, w1
mulw x11, x12, x11
# sub w1, w0, w1
subw x11, x10, x11
# adrp x0, .LC5
lui x10, %hi(.LC5)
# add x0, x0, :lo12:.LC5
add x10, x10, %lo(.LC5)
# bl printf
call printf
# mov w0, 0
li x10, 0
# ldp x29, x30, [sp], 32
ld x8, 0(sp)
ld ra, 8(sp)
addi sp, sp, 32 # writeback
# ret
ret
.size main, .-main
.ident "GCC: (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 7.4.0"
.section .note.GNU-stack,"",@progbits
| 17.981651
| 59
| 0.559439
|
3599101f5bc0c88a9ec0c84436f7a54e5ac78bec
| 899
|
asm
|
Assembly
|
src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm
|
lilystudent2016/cemu_graphic_packs
|
a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46
|
[
"CC0-1.0"
] | 184
|
2020-11-30T01:03:35.000Z
|
2022-03-31T14:09:33.000Z
|
src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm
|
lilystudent2016/cemu_graphic_packs
|
a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46
|
[
"CC0-1.0"
] | 69
|
2020-12-06T15:36:20.000Z
|
2022-03-29T12:35:36.000Z
|
src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm
|
lilystudent2016/cemu_graphic_packs
|
a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46
|
[
"CC0-1.0"
] | 40
|
2020-12-19T15:00:45.000Z
|
2022-02-24T16:32:40.000Z
|
[BotW_DrawDistance_V208]
moduleMatches = 0x6267BFD0
.origin = codecave
actorMultiplier:
.float $actor
_setActorDrawDistanceMultiplier:
lis r9, actorMultiplier@ha
lfs f9, actorMultiplier@l(r9)
stfs f9, 0x13BC(r28)
blr
0x03857F58 = nop ; Force the draw distance used for load balancing normally to be enabled
0x03857F5C = bla _setActorDrawDistanceMultiplier
objectMultiplier:
.float $object
objectDivider:
.float 1.0 - ($object - 1.0)
_setObjectDrawDistance:
lis r12, objectMultiplier@ha
lfs f0, objectMultiplier@l(r12)
; Doesn't catch objects that don't have their traverseRadiusXZ set, so those default to 0
blr
0x03137ECC = nop
0x03137ED0 = bla _setObjectDrawDistance
_setObjectDrawDistanceDivider:
fmuls f13, f1, f1
lis r8, objectDivider@ha
lfs f1, objectDivider@l(r8)
fmuls f13, f13, f1
blr
0x0313A60C = bla _setObjectDrawDistanceDivider
0x0313A678 = bla _setObjectDrawDistanceDivider
| 20.906977
| 89
| 0.805339
|
f20d480e4facf72ccd29a7061249e9955b18548b
| 1,234
|
asm
|
Assembly
|
programs/oeis/321/A321195.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/321/A321195.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/321/A321195.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A321195: Minimum number of monochromatic Schur triples over all 2-colorings of [n].
; 0,0,0,0,1,1,2,3,4,6,7,9,11,13,15,18,20,23,26,29,33,36,40,44,48,52,57,61,66,71,76,82,87,93,99,105,111,118,124,131,138,145,153,160,168,176,184,192,201,209,218,227,236,246,255,265,275,285,295,306,316,327,338,349,361,372,384,396,408,420,433,445,458,471,484,498,511,525,539,553,567,582,596,611,626,641,657,672,688,704,720,736,753,769,786,803,820,838,855,873,891,909,927,946,964,983,1002,1021,1041,1060,1080,1100,1120,1140,1161,1181,1202,1223,1244,1266,1287,1309,1331,1353,1375,1398,1420,1443,1466,1489,1513,1536,1560,1584,1608,1632,1657,1681,1706,1731,1756,1782,1807,1833,1859,1885,1911,1938,1964,1991,2018,2045,2073,2100,2128,2156,2184,2212,2241,2269,2298,2327,2356,2386,2415,2445,2475,2505,2535,2566,2596,2627,2658,2689,2721,2752,2784,2816,2848,2880,2913,2945,2978,3011,3044,3078,3111,3145,3179,3213,3247,3282,3316,3351,3386,3421,3457,3492,3528,3564,3600,3636,3673,3709,3746,3783,3820,3858,3895,3933,3971,4009,4047,4086,4124,4163,4202,4241,4281,4320,4360,4400,4440,4480,4521,4561,4602,4643,4684,4726,4767,4809,4851,4893,4935,4978,5020,5063,5106,5149,5193,5236,5280,5324,5368,5412,5457,5501,5546,5591
sub $0,1
mov $1,$0
mul $1,$0
add $1,2
div $1,11
| 137.111111
| 1,098
| 0.76175
|
381435be7a8efab8f461bedd705c5818a1daa8c1
| 764
|
asm
|
Assembly
|
Projects/Daat/I386/I386.asm
|
9176324/Daat
|
3f957754f4a7b262fcc7b2dc081b4a132e67ad6b
|
[
"MIT"
] | 70
|
2019-01-06T23:46:43.000Z
|
2022-02-09T13:36:59.000Z
|
Projects/Daat/I386/I386.asm
|
hackflame/Daat
|
3f957754f4a7b262fcc7b2dc081b4a132e67ad6b
|
[
"MIT"
] | null | null | null |
Projects/Daat/I386/I386.asm
|
hackflame/Daat
|
3f957754f4a7b262fcc7b2dc081b4a132e67ad6b
|
[
"MIT"
] | 42
|
2019-01-07T01:33:13.000Z
|
2022-01-30T13:33:32.000Z
|
;
;
; Copyright (c) 2015 - 2021 by blindtiger ( blindtiger@foxmail.com )
;
; The contents of this file are subject to the Mozilla Public License Version
; 2.0 (the "License") you may not use this file except in compliance with
; the License. You may obtain a copy of the License at
; http://www.mozilla.org/MPL/
;
; Software distributed under the License is distributed on an "AS IS" basis,
; WITHOUT WARRANTY OF ANY KIND, either express or implied. SEe the License
; for the specific language governing rights and limitations under the
; License.
;
; The Initial Developer of the Original Code is blindtiger.
;
;
.686p
.xlist
include ks386.inc
include callconv.inc
.list
_TEXT$00 SEGMENT PAGE 'CODE'
_TEXT$00 ends
end
| 23.151515
| 77
| 0.710733
|
19758a1f4d5d434227aed950b186ce5861d896da
| 680
|
asm
|
Assembly
|
oeis/079/A079675.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/079/A079675.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/079/A079675.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A079675: a(1)=1; a(n)=sum(u=1,n-1,sum(v=1,u,sum(w=1,v,sum(x=1, w,sum(y=1,x,a(y)))))).
; 1,1,6,26,106,431,1757,7168,29244,119305,486716,1985603,8100456,33046585,134816705,549997641,2243767969,9153665985,37343255690,152345382480,621507555626,2535499503900,10343812679475,42198572937400,172153113473000,702315088294876,2865161560519781,11688700562892401,47685171660677756,194536217612338956,793629101981876157,3237685811120702718,13208448865288347919,53885130183940804880,219829541269671335441,896815634477881805603,3658645137494664491131,14925792690831466568685,60891198538656556684505
sub $0,1
mul $0,5
max $0,0
seq $0,99559 ; a(n) = Sum_{k=0..floor(n/5)} C(n-4k,k+1).
add $0,1
| 75.555556
| 497
| 0.811765
|
148b115be47c22bd451510fe349f83a1ea764c56
| 464
|
asm
|
Assembly
|
programs/oeis/222/A222591.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/222/A222591.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/222/A222591.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A222591: Numerators of (n*(n - 3)/6) + 1, arising as the maximum possible number of triple lines for an n element set.
; 1,5,8,4,17,23,10,38,47,19,68,80,31,107,122,46,155,173,64,212,233,85,278,302,109,353,380,136,437,467,166,530,563,199,632,668,235,743,782,274,863,905,316,992,1037,361,1130,1178,409,1277,1328
mov $3,$0
sub $0,$0
gcd $0,2
mul $0,2
mov $2,2
lpb $0
mov $0,3
mov $1,6
add $2,1
add $2,$3
mul $2,$3
add $1,$2
gcd $2,$1
div $1,$2
lpe
| 24.421053
| 190
| 0.637931
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.