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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a9e95906aa3dab7414f1a2e052b8b713a36f411 | 794 | asm | Assembly | oeis/098/A098590.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/098/A098590.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/098/A098590.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A098590: a(n) = 4^n for n = 0..3; for n > 3, a(n) = 4*a(n-1) + a(n-4).
; Submitted by Christian Krause
; 1,4,16,64,257,1032,4144,16640,66817,268300,1077344,4326016,17370881,69751824,280084640,1124664576,4516029185,18133868564,72815558896,292386900160,1174063629825,4714388387864,18930369110352,76013863341568,305229516996097,1225632456372252,4921460194599360,19761854641739008,79352648083952129,318636224792180768,1279466359363322432,5137627292095028736,20629861816464067073,82838083490648449060,332631800321957118672,1335664828579923503424,5363289176136158080769,21535994788035280772136
add $0,1
lpb $0
sub $0,1
add $2,3
add $2,$1
add $4,$1
add $1,$3
add $1,$3
add $5,$2
mov $2,$3
add $2,$4
add $2,$4
mov $3,$5
sub $3,1
add $4,$5
mul $5,2
lpe
mov $0,$3
div $0,2
| 33.083333 | 484 | 0.748111 |
90d878eab3b440a0ce7b96d9b4f2d55aac8188df | 401 | asm | Assembly | oeis/346/A346388.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/346/A346388.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/346/A346388.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A346388: a(n) is the number of proper divisors of A053742(n) ending with 5.
; Submitted by Jon Maiga
; 1,3,2,3,5,3,3,5,3,3,7,3,3,7,3,3,7,5,3,7,3,3,8,3,5,7,3,5,7,3,3,11,5,3,7,3,3,7,7,3,9,3,5,7,3,7,7,5,3,11,3,3,11,3,3,7,3,5,11,7,5,7,4,3,7,3,7,11,3,3,7,7,5,11,3,3,11,5,3,7,7,3,11,3,5
mul $0,5
add $0,2
mul $0,2
seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
sub $0,1
| 40.1 | 179 | 0.603491 |
d34316f4680bb667781fe4b8e48e3a93e9afadbb | 427 | asm | Assembly | libsrc/graphics/nascom/swapgfxbk.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/graphics/nascom/swapgfxbk.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/graphics/nascom/swapgfxbk.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z | ;
; NASCOM Graphics Functions
;
; swapgfxbk () -- foo routine for fake swapping
;
; Stefano Bodrato - June 2003
;
;
; $Id: swapgfxbk.asm,v 1.4 2017-01-02 22:57:58 aralbrec Exp $
;
SECTION code_clib
PUBLIC swapgfxbk
PUBLIC _swapgfxbk
PUBLIC swapgfxbk1
PUBLIC _swapgfxbk1
.swapgfxbk
._swapgfxbk
ret
.swapgfxbk1
._swapgfxbk1
ret
| 12.558824 | 61 | 0.578454 |
899112e2b34c495eeb262e976c7a782400b6a299 | 689 | asm | Assembly | oeis/101/A101471.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/101/A101471.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/101/A101471.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A101471: Numbers n such that the number n11 is prime.
; Submitted by Jon Maiga
; 0,2,3,8,9,15,18,20,21,23,24,27,30,35,39,41,42,50,57,60,62,63,69,72,74,80,81,83,90,93,95,98,101,102,107,113,114,120,122,125,126,129,134,137,140,144,155,161,164,168,170,179,182,183,189,192,200,204,206,210,212,216,219,221,225,228,230,233,239,246,251,254,261,267,270,272,276,281,282,284,287,293,294,296,300,302,309,315,324,326,329,332,333,338,339,342,345,351,353,359
mov $2,$0
mul $2,2
pow $2,2
mov $4,10
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,100
lpe
mov $0,$4
div $0,100
| 31.318182 | 364 | 0.669086 |
bb5d4e3c1e3b6a8030ce038b78c8eea78d7c786f | 4,018 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1857.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_1857.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_1857.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 %r8
lea addresses_UC_ht+0xd38, %r15
cmp $30764, %r8
mov $0x6162636465666768, %r14
movq %r14, (%r15)
nop
nop
nop
sub $54641, %r12
pop %r8
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %r15
push %r9
// Faulty Load
lea addresses_UC+0xc938, %r14
nop
nop
xor $43725, %r15
movb (%r14), %r10b
lea oracles, %r15
and $0xff, %r10
shlq $12, %r10
mov (%r15,%r10,1), %r10
pop %r9
pop %r15
pop %r14
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8}}
{'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
*/
| 68.101695 | 2,999 | 0.663016 |
13299f897459d939cbddd49ddee1872d09de32b7 | 1,530 | asm | Assembly | programs/oeis/272/A272914.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/272/A272914.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/272/A272914.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A272914: Sixth powers ending in digit 6.
; 4096,46656,7529536,16777216,191102976,308915776,1544804416,2176782336,7256313856,9474296896,24794911296,30840979456,68719476736,82653950016,164206490176,192699928576,351298031616,404567235136,689869781056,782757789696,1265319018496,1418519112256,2194972623936,2436396322816,3635215077376,4001504141376,5789336458816,6327518887936,8916100448256,9685390482496,13339032325696,14412774445056,19456426971136,20924183895616,27752076864576,29721861554176,38806720086016,41407371740736,53310208315456,56693912375296,72074394832896,76419346977856,96046742518336,101559956668416,126324651851776,133244912166976,164170508913216,172771465793536,211027453382656,221620863468096,268535866540096,281474976710656,338550579265536,354233654641216,423158800038976,442032795979776,524698762940416,547263141046336,645779095649856,672589783760896,789298907447296,820972403643456,958468597212736,995686217814016,1156831381426176,1200343652992576,1388285542167616,1438916737499136,1657107395117056,1715760213253696,1967974977554496,2035635367776256,2325992456359936,2403734586186816,2736715256013376,2825706623205376,3206175906594816,3307682595151936,3740910611784256,3856302691946496,4347986536861696,4478743609109056,5035029816707136,5182746699759616,5810254283800576,5976646846618176,6682490916222016,6869402054004736,7661218005651456,7870623759839296,8756592045368896,8990607867641856
mov $1,$0
div $1,2
mul $1,3
mov $2,$0
add $2,2
add $1,$2
pow $1,6
mul $1,8
sub $1,512
div $1,40
mul $1,320
add $1,4096
| 95.625 | 1,366 | 0.897386 |
cb4dacc93b484a569d08dbed483197d04d4a3b35 | 889 | asm | Assembly | oeis/233/A233013.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/233/A233013.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/233/A233013.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A233013: Number of n X 3 0..3 arrays with no element x(i,j) adjacent to value 3-x(i,j) horizontally or vertically, top left element zero, and 1 appearing before 2 in row major order.
; Submitted by Christian Krause
; 5,74,1202,19643,321125,5249894,85827722,1403151863,22939385045,375023830514,6131065553042,100233536530883,1638664887623765,26789662490893934,437969972870249162,7160138624410348703,117057305971889549285,1913707764634932472154,31286192502187766668082,511481355394236623277323,8361937199537189518953605,136704872996025022512677174,2234915409540946288216441802,36537445800844357580053668743,597331308357592886659122108725,9765452513813874305202748900994,159650199922994729553853183282322
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
sub $3,$2
add $1,$3
add $1,$3
sub $3,$2
sub $2,$3
mul $2,6
lpe
mov $0,$2
sub $0,18
div $0,4
add $0,5
| 38.652174 | 485 | 0.797525 |
4f27bc5ec60b8f5f95f553259d5585d31a3a4e3a | 1,243 | asm | Assembly | programs/oeis/158/A158662.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/158/A158662.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/158/A158662.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A158662: Sum of primes <= n if 1 is counted as a prime.
; 1,3,6,6,11,11,18,18,18,18,29,29,42,42,42,42,59,59,78,78,78,78,101,101,101,101,101,101,130,130,161,161,161,161,161,161,198,198,198,198,239,239,282,282,282,282,329,329,329,329,329,329,382,382,382,382,382,382,441,441,502,502,502,502,502,502,569,569,569,569,640,640,713,713,713,713,713,713,792,792,792,792,875,875,875,875,875,875,964,964,964,964,964,964,964,964,1061,1061,1061,1061,1162,1162,1265,1265,1265,1265,1372,1372,1481,1481,1481,1481,1594,1594,1594,1594,1594,1594,1594,1594,1594,1594,1594,1594,1594,1594,1721,1721,1721,1721,1852,1852,1852,1852,1852,1852,1989,1989,2128,2128,2128,2128,2128,2128,2128,2128,2128,2128,2277,2277,2428,2428,2428,2428,2428,2428,2585,2585,2585,2585,2585,2585,2748,2748,2748,2748,2915,2915,2915,2915,2915,2915,3088,3088,3088,3088,3088,3088,3267,3267,3448,3448,3448,3448,3448,3448,3448,3448,3448,3448,3639,3639,3832,3832,3832,3832,4029,4029,4228,4228,4228,4228,4228,4228,4228,4228,4228,4228,4228,4228,4439,4439,4439,4439,4439,4439,4439,4439,4439,4439,4439,4439,4662,4662,4662,4662,4889,4889,5118,5118,5118,5118,5351,5351,5351,5351,5351,5351,5590,5590,5831,5831,5831,5831,5831,5831,5831,5831,5831,5831
cal $0,34387 ; Sum of primes <= n.
mov $1,$0
add $1,1
| 177.571429 | 1,129 | 0.762671 |
e372bc761502f41d2c05271db2fd7b3f7bcb9b7a | 1,381 | asm | Assembly | asm/print_number/print_number.asm | severinkaderli/BTI7061-CSBas | 3eab8432b98d1ad3ec3c80eb1e779710689eba9b | [
"MIT"
] | 1 | 2018-09-18T19:03:59.000Z | 2018-09-18T19:03:59.000Z | asm/print_number/print_number.asm | severinkaderli/BTI7061-CSBas | 3eab8432b98d1ad3ec3c80eb1e779710689eba9b | [
"MIT"
] | null | null | null | asm/print_number/print_number.asm | severinkaderli/BTI7061-CSBas | 3eab8432b98d1ad3ec3c80eb1e779710689eba9b | [
"MIT"
] | null | null | null | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; This program filters out the numbers from a string and
; and displays the numbers to the standard output.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
section .data
Linefeed: db 0xA
section .bss
NumberString: resb 16 ; This is the reserved memory for number strings
section .text
global _start
; Converts a number to an ascii string.
;
; Input:
; rax: The number that will be converted.
; rbx: The memory address where the string will be stored
convertNumberToString:
push rax
push rbx
push rcx
push rdx
add rbx, 15 ; TODO: Don't hardcode this!
mov ecx, 0xA
.division:
xor edx, edx
idiv ecx ; Divide the number by 10
add edx, "0" ; Convert the remainder to an ASCII character
mov [rbx], dl ; Move the character to memory
dec ebx ; Decrement rbx
cmp eax, 0 ; Check if we're finished with converting
jg .division ; If not we convert the next digit
pop rdx
pop rcx
pop rbx
pop rax
ret
; Prints a linefeed character to the console
printLinefeed:
push rax
push rbx
push rcx
push rdx
mov rax, 4
mov rbx, 1
mov rcx, Linefeed
mov rdx, 1
int 0x80
pop rax
pop rbx
pop rcx
pop rdx
ret
_start:
mov rax, 1421004232
mov rbx, NumberString
call convertNumberToString
mov rax, 4
mov rbx, 1
mov rcx, NumberString
mov rdx, 16
int 0x80
call printLinefeed
exit:
mov rax, 1
mov rbx, 0
int 0x80
| 17.705128 | 71 | 0.67777 |
c680ee12d019bc2fea6505043635e0829c26f247 | 616 | asm | Assembly | programs/oeis/061/A061066.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/061/A061066.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/061/A061066.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A061066: a(n) = (prime(n)^2 - 1)/8.
; 1,3,6,15,21,36,45,66,105,120,171,210,231,276,351,435,465,561,630,666,780,861,990,1176,1275,1326,1431,1485,1596,2016,2145,2346,2415,2775,2850,3081,3321,3486,3741,4005,4095,4560,4656,4851,4950,5565,6216,6441,6555,6786,7140,7260,7875,8256,8646,9045,9180,9591,9870,10011,10731,11781,12090,12246,12561,13695,14196,15051,15225,15576,16110,16836,17391,17955,18336,18915,19701,20100,20910,21945,22155,23220,23436,24090,24531,25200,26106,26565,26796,27261,28680,29646,30135,31125,31626,32385,33930,34191,36585,37401
seq $0,98090 ; Numbers k such that 2k-3 is prime.
sub $0,1
bin $0,2
| 88 | 508 | 0.762987 |
610a0ca063d8002ab0809ac52443406ef5a5ecc6 | 3,419 | asm | Assembly | scripts/SSAnneB1FRooms.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | scripts/SSAnneB1FRooms.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | scripts/SSAnneB1FRooms.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | SSAnneB1FRooms_Script:
call EnableAutoTextBoxDrawing
ld hl, SSAnne10TrainerHeaders
ld de, SSAnneB1FRooms_ScriptPointers
ld a, [wSSAnneB1FRoomsCurScript]
call ExecuteCurMapScriptInTable
ld [wSSAnneB1FRoomsCurScript], a
ret
SSAnneB1FRooms_ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
SSAnneB1FRooms_TextPointers:
dw SSAnne10Text1
dw SSAnne10Text2
dw SSAnne10Text3
dw SSAnne10Text4
dw SSAnne10Text5
dw SSAnne10Text6
dw SSAnne10Text7
dw SSAnne10Text8
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
SSAnne10TrainerHeaders:
def_trainers
SSAnne10TrainerHeader0:
trainer EVENT_BEAT_SS_ANNE_10_TRAINER_0, 2, SSAnne10BattleText1, SSAnne10EndBattleText1, SSAnne10AfterBattleText1
SSAnne10TrainerHeader1:
trainer EVENT_BEAT_SS_ANNE_10_TRAINER_1, 3, SSAnne10BattleText2, SSAnne10EndBattleText2, SSAnne10AfterBattleText2
SSAnne10TrainerHeader2:
trainer EVENT_BEAT_SS_ANNE_10_TRAINER_2, 2, SSAnne10BattleText3, SSAnne10EndBattleText3, SSAnne10AfterBattleText3
SSAnne10TrainerHeader3:
trainer EVENT_BEAT_SS_ANNE_10_TRAINER_3, 2, SSAnne10BattleText4, SSAnne10EndBattleText4, SSAnne10AfterBattleText4
SSAnne10TrainerHeader4:
trainer EVENT_BEAT_SS_ANNE_10_TRAINER_4, 2, SSAnne10BattleText5, SSAnne10EndBattleText5, SSAnne10AfterBattleText5
SSAnne10TrainerHeader5:
trainer EVENT_BEAT_SS_ANNE_10_TRAINER_5, 3, SSAnne10BattleText6, SSAnne10EndBattleText6, SSAnne10AfterBattleText6
db -1 ; end
SSAnne10Text1:
text_asm
ld hl, SSAnne10TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
SSAnne10Text2:
text_asm
ld hl, SSAnne10TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
SSAnne10Text3:
text_asm
ld hl, SSAnne10TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
SSAnne10Text4:
text_asm
ld hl, SSAnne10TrainerHeader3
call TalkToTrainer
jp TextScriptEnd
SSAnne10Text5:
text_asm
ld hl, SSAnne10TrainerHeader4
call TalkToTrainer
jp TextScriptEnd
SSAnne10Text6:
text_asm
ld hl, SSAnne10TrainerHeader5
call TalkToTrainer
jp TextScriptEnd
SSAnne10Text8:
text_far _SSAnne10Text8
text_asm
ld a, MACHOKE
call PlayCry
jp TextScriptEnd
SSAnne10BattleText1:
text_far _SSAnne10BattleText1
text_end
SSAnne10EndBattleText1:
text_far _SSAnne10EndBattleText1
text_end
SSAnne10AfterBattleText1:
text_far _SSAnne10AfterBattleText1
text_end
SSAnne10BattleText2:
text_far _SSAnne10BattleText2
text_end
SSAnne10EndBattleText2:
text_far _SSAnne10EndBattleText2
text_end
SSAnne10AfterBattleText2:
text_far _SSAnne10AfterBattleText2
text_end
SSAnne10BattleText3:
text_far _SSAnne10BattleText3
text_end
SSAnne10EndBattleText3:
text_far _SSAnne10EndBattleText3
text_end
SSAnne10AfterBattleText3:
text_far _SSAnne10AfterBattleText3
text_end
SSAnne10BattleText4:
text_far _SSAnne10BattleText4
text_end
SSAnne10EndBattleText4:
text_far _SSAnne10EndBattleText4
text_end
SSAnne10AfterBattleText4:
text_far _SSAnne10AfterBattleText4
text_end
SSAnne10BattleText5:
text_far _SSAnne10BattleText5
text_end
SSAnne10EndBattleText5:
text_far _SSAnne10EndBattleText5
text_end
SSAnne10AfterBattleText5:
text_far _SSAnne10AfterBattleText5
text_end
SSAnne10BattleText6:
text_far _SSAnne10BattleText6
text_end
SSAnne10EndBattleText6:
text_far _SSAnne10EndBattleText6
text_end
SSAnne10AfterBattleText6:
text_far _SSAnne10AfterBattleText6
text_end
SSAnne10Text7:
text_far _SSAnne10Text7
text_end
| 21.104938 | 114 | 0.8716 |
ad372a06bf343a1887714943c398fca5d18185d9 | 495 | asm | Assembly | libsrc/_DEVELOPMENT/arch/ts2068/display/z80/asm_tshc_pxy2aaddr.asm | UnivEngineer/z88dk | 9047beba62595b1d88991bc934da75c0e2030d07 | [
"ClArtistic"
] | 4 | 2021-12-23T15:34:05.000Z | 2021-12-23T15:36:16.000Z | libsrc/_DEVELOPMENT/arch/ts2068/display/z80/asm_tshc_pxy2aaddr.asm | UnivEngineer/z88dk | 9047beba62595b1d88991bc934da75c0e2030d07 | [
"ClArtistic"
] | 2 | 2022-03-20T22:17:35.000Z | 2022-03-24T16:10:00.000Z | libsrc/_DEVELOPMENT/arch/ts2068/display/z80/asm_tshc_pxy2aaddr.asm | jorgegv/z88dk | 127130cf11f9ff268ba53e308138b12d2b9be90a | [
"ClArtistic"
] | null | null | null | ; ===============================================================
; May 2017
; ===============================================================
;
; void *tshc_pxy2aaddr(uchar x, uchar y)
;
; Attribute address of byte containing pixel at coordinate x, y.
;
; ===============================================================
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_arch
PUBLIC asm_tshc_pxy2aaddr
EXTERN asm0_zx_pxy2saddr
asm_tshc_pxy2aaddr:
scf
jp asm0_zx_pxy2saddr
| 19.8 | 65 | 0.466667 |
1032bd2039f0878c853fadf089d0d6d4d2abcf39 | 518 | asm | Assembly | programs/oeis/276/A276854.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/276/A276854.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/276/A276854.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A276854: Beatty sequence for 1 + sqrt(5).
; 0,3,6,9,12,16,19,22,25,29,32,35,38,42,45,48,51,55,58,61,64,67,71,74,77,80,84,87,90,93,97,100,103,106,110,113,116,119,122,126,129,132,135,139,142,145,148,152,155,158,161,165,168,171,174,177,181,184,187,190,194,197,200,203,207,210,213,216,220,223,226,229,232,236,239,242,245,249,252,255,258,262,265,268,271,275,278,281,284,288,291,294,297,300,304,307,310,313,317,320
mul $0,2
mov $1,$0
seq $1,276886 ; Sums-complement of the Beatty sequence for 2 + phi.
add $0,$1
div $0,2
| 57.555556 | 366 | 0.704633 |
dcaf66e3d0bb05c592e0e2a0e3eccaa77dd778bb | 416 | asm | Assembly | oeis/276/A276190.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/276/A276190.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/276/A276190.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A276190: Sum of the squares of the digits of the base-4 representation of n.
; Submitted by Christian Krause
; 0,1,4,9,1,2,5,10,4,5,8,13,9,10,13,18,1,2,5,10,2,3,6,11,5,6,9,14,10,11,14,19,4,5,8,13,5,6,9,14,8,9,12,17,13,14,17,22,9,10,13,18,10,11,14,19,13,14,17,22,18,19,22,27,1,2,5,10,2,3,6,11,5,6,9,14,10,11,14,19,2
lpb $0
mul $0,2
mov $2,$0
div $0,8
mod $2,8
pow $2,2
add $1,$2
lpe
mov $0,$1
div $0,4
| 27.733333 | 205 | 0.615385 |
7db27a821b9a7cd9446496640a734d1aa2a2413b | 130 | asm | Assembly | test/hack_programs/bug_instructions.asm | mbalestrini/hack_soc | 157428ee6856a9e4cee5953b8b3c144b4f57f5ee | [
"Apache-2.0"
] | 1 | 2021-12-18T18:31:53.000Z | 2021-12-18T18:31:53.000Z | test/hack_programs/bug_instructions.asm | mbalestrini/hack_soc | 157428ee6856a9e4cee5953b8b3c144b4f57f5ee | [
"Apache-2.0"
] | null | null | null | test/hack_programs/bug_instructions.asm | mbalestrini/hack_soc | 157428ee6856a9e4cee5953b8b3c144b4f57f5ee | [
"Apache-2.0"
] | null | null | null | @1
M=1
AMD=M+1
@2
M=1
AD=M
M=0
@5
D=A
@3
MD=D+1
@1
D=A
A=D+A
AMD=M+1
@1000
D=-1
D+1;JNE
@5
M=0
@3
AM=M-1
AM=M+1
(LOOP)
@LOOP
0;JMP | 5 | 7 | 0.538462 |
035a33f7a8f8f44611898e49bf77d7eb4f6b808b | 373 | asm | Assembly | Read dialog box/read_dialogbox_float.asm | berkcetinsaya/MIPSLanguageExamples | e1ec7ae15a38621e09fcf211f033497c495ee06b | [
"Apache-2.0"
] | null | null | null | Read dialog box/read_dialogbox_float.asm | berkcetinsaya/MIPSLanguageExamples | e1ec7ae15a38621e09fcf211f033497c495ee06b | [
"Apache-2.0"
] | null | null | null | Read dialog box/read_dialogbox_float.asm | berkcetinsaya/MIPSLanguageExamples | e1ec7ae15a38621e09fcf211f033497c495ee06b | [
"Apache-2.0"
] | null | null | null | .data
message: .asciiz "This is a message\n"
.text
la $a0, message # general message to print will be loaded to $a0
# user input will be stored in $f0
# user selection will be stored in $a1
# $a1 = 0:OK, -1:Wrong input, -2:Cancel, -3:OK but no data.
addi $v0, $zero, 52 # service 52 to display a float dialog box to get a float input from the user
syscall
| 37.3 | 98 | 0.675603 |
9de51361256c5a9e98566c73447ebae9dd2311c5 | 857 | asm | Assembly | oeis/142/A142695.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/142/A142695.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/142/A142695.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A142695: Primes congruent to 49 mod 57.
; Submitted by Jamie Morken(s4)
; 163,277,619,733,1303,1531,1759,1873,1987,2557,2671,3469,3583,3697,4153,4723,4951,5179,5407,5521,5749,6091,6547,6661,7459,7573,7687,8599,8713,8941,9283,9397,9511,9739,9967,10651,10993,11677,12589,12703,13159,13729,14071,14869,14983,15439,15667,16693,16921,17377,17491,18061,18289,18517,18859,18973,19087,19429,19543,20113,20341,21139,21481,21937,22051,22279,22621,22963,23761,24103,25243,25357,25471,26041,26497,26839,26953,27067,27409,27751,28549,28663,29347,29803,29917,30259,30829,31513,31627
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,24
sub $2,1
mov $3,$1
add $1,3
mul $4,2
mul $3,$4
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,30
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
mul $0,2
sub $0,65
| 32.961538 | 496 | 0.718786 |
58cd3289938359f3bfa09289b122225846d7f92f | 844 | asm | Assembly | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/6_4.asm | gxw1/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/6_4.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/6_4.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z | DATA SEGMENT
M DW 12
N DW 8
RESULT DW ?
DATA ENDS
STACK SEGMENT STACK
DW 200 DUP (?)
STACK ENDS
CODE SEGMENT
ASSUME CS:CODE,SS:STACK,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AX,M
MOV BX,N
CALL FAR PTR SUBP
MOV RESULT,CX
MOV AH,4CH
INT 21H
SUBP PROC FAR
PUSH AX
PUSH BX
PUSH DX
CMP AX,BX
JZ NEXT
JA GREAT
XCHG AX,BX
GREAT: XOR DX,DX
DIV BX
AND DX,DX
JZ NEXT
MOV AX,BX
MOV BX,DX
JMP GREAT
NEXT: MOV CX,BX
POP DX
POP BX
POP AX
RET
SUBP ENDP
CODE ENDS
END START | 19.627907 | 41 | 0.402844 |
c46ff7140383a214a54b22623f2ca7e3eaecf732 | 412 | asm | Assembly | oeis/121/A121538.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/121/A121538.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/121/A121538.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A121538: Increasing sequence: "if n appears then a*n+b doesn't", case a(1)=1, a=2, b=1.
; Submitted by Jamie Morken(w3)
; 1,2,4,6,7,8,10,11,12,14,16,18,19,20,22,24,26,27,28,30,31,32,34,35,36,38,40,42,43,44,46,47,48,50,51,52,54,56,58,59,60,62,64,66,67,68,70,72,74,75,76,78,79,80,82,83,84,86,88,90,91,92,94,96,98,99,100
add $0,1
seq $0,171945 ; P-positions for game of misere version of Mark.
div $0,2
sub $0,1
| 45.777778 | 197 | 0.667476 |
3b120fa5916398a2e66b45b0a7a0a74b653df84d | 1,009 | asm | Assembly | Library/User/Proc/procUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/User/Proc/procUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/User/Proc/procUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UserInterface/Proc
FILE: procUtils.asm
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 11/89 Initial version
DESCRIPTION:
This file contains utility routines associated with GenProcessClass
$Id: procUtils.asm,v 1.1 97/04/07 11:44:12 newdeal Exp $
-------------------------------------------------------------------------------@
COMMENT @CLASS DESCRIPTION-----------------------------------------------------
Utils
Synopsis
--------
This is not actually a class description, but instead a collection
of User Interface process utility routines. They are collected here for
inclusion in ui.def.
------------------------------------------------------------------------------@
Resident segment resource
Resident ends
| 24.609756 | 81 | 0.484638 |
52121242abce82cee8d089f2064588067862e928 | 567 | asm | Assembly | samples/functions.asm | mateusragazzi/MIPS-Codes | fbdb3b753cdcb7ba4b3c0d97158ba679a2c32b92 | [
"Apache-2.0"
] | 2 | 2019-04-25T19:05:38.000Z | 2019-05-19T06:45:54.000Z | samples/functions.asm | mateusragazzi/MIPS-Codes | fbdb3b753cdcb7ba4b3c0d97158ba679a2c32b92 | [
"Apache-2.0"
] | null | null | null | samples/functions.asm | mateusragazzi/MIPS-Codes | fbdb3b753cdcb7ba4b3c0d97158ba679a2c32b92 | [
"Apache-2.0"
] | 2 | 2019-04-25T19:09:10.000Z | 2019-05-19T07:11:44.000Z | .text
function_a: addi $sp, $sp, -8 # allocate 3 word in stack
jal function_b
addi $sp, $sp, 4 # free memory, deleting function_a from stack
addi $v0, $zero, 10 # Chamada ao sistema para encerrar programa
syscall
function_c: sw $ra, 4 ($sp) # save function_b return
lw $ra, 4 ($sp) # read function_b return
jr $ra # return to B
function_b: sw $ra, 0 ($sp) # save function_a return
jal function_c
lw $ra, 0 ($sp) # get return addres
addi $sp, $sp, 4 # free memory, deleting function_b from stack
jr $ra # return to A
.data
| 25.772727 | 65 | 0.650794 |
f931c1bae652de8faef939e3844111847f7477ee | 709 | asm | Assembly | oeis/034/A034688.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/034/A034688.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/034/A034688.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A034688: Expansion of (1-25*x)^(-1/5), related to quintic factorial numbers A008548.
; 1,5,75,1375,27500,577500,12512500,277062500,6233906250,141994531250,3265874218750,75708902343750,1766541054687500,41445770898437500,976936028320312500,23120819336914062500,549119459251708984375,13081963588055419921875,312513574603546142578125,7483877707611236572265625,179613064982669677734375000,4319266562678485107421875000,104055058100890777587890625000,2510893793304103546142578125000,60679933338182502365112304687500,1468454386784016557235717773437500,35581779372074247348403930664062500
mov $2,1
mov $3,$0
mul $3,5
mov $4,1
lpb $3
sub $3,4
mul $2,$3
mul $2,5
div $2,$4
sub $3,1
add $4,1
lpe
mov $0,$2
| 41.705882 | 494 | 0.833568 |
abef40350a1eced16c71e912bc707c2735964574 | 880 | asm | Assembly | src/screen_macros.asm | Pentacour/viruslqp79_msx | 52dfe17c1d7655dcff76898fe53efc5650367372 | [
"MIT"
] | 4 | 2019-01-14T11:33:21.000Z | 2019-02-01T08:55:14.000Z | src/screen_macros.asm | Pentacour/viruslqp79_msx | 52dfe17c1d7655dcff76898fe53efc5650367372 | [
"MIT"
] | null | null | null | src/screen_macros.asm | Pentacour/viruslqp79_msx | 52dfe17c1d7655dcff76898fe53efc5650367372 | [
"MIT"
] | 1 | 2022-01-09T21:31:35.000Z | 2022-01-09T21:31:35.000Z | ;============================================
;::MRENDER_SCOREBOARD
;============================================
macro MRENDER_SCOREBOARD
LD de, MWORK.CAMERA_SCREEN
CALL RENDER_LIVES
CALL TRATE_HI_SCORE
LD de, MWORK.CAMERA_SCREEN+24
LD HL, MWORK.PLAYER_POINTS
CALL RENDER_POINTS
LD de, MWORK.CAMERA_SCREEN+15 ;19
LD HL, MWORK.HI_SCORE
CALL RENDER_POINTS
DEC DE
LD A, 218
LD [DE], A
DEC DE ;SC
LD A, 215
LD [DE], A
DEC DE
LD A, 214
LD [DE], A
LD de, MWORK.CAMERA_SCREEN+32
CALL RENDER_BULLETS
LD de, MWORK.CAMERA_SCREEN+29
CALL RENDER_SURVIVORS
endmacro
| 25.142857 | 46 | 0.413636 |
76561c9bb41b3279d5016d43f6b8297d5459f7d7 | 4,766 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_5_242.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_5_242.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_5_242.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 %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x321e, %rsi
lea addresses_D_ht+0x98ee, %rdi
nop
nop
nop
nop
and %rbp, %rbp
mov $51, %rcx
rep movsb
nop
nop
nop
nop
add $29426, %r9
lea addresses_WC_ht+0xa1ac, %rdi
nop
nop
nop
nop
nop
sub $13166, %rsi
vmovups (%rdi), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %rbp
cmp $51738, %rdi
lea addresses_UC_ht+0x1694e, %rcx
nop
nop
dec %r12
mov (%rcx), %r9w
nop
nop
inc %rcx
lea addresses_UC_ht+0x5b79, %rsi
lea addresses_WC_ht+0xf282, %rdi
nop
nop
nop
add $20902, %r8
mov $23, %rcx
rep movsl
nop
nop
and $55816, %r9
lea addresses_D_ht+0x1b94e, %r8
nop
nop
nop
nop
nop
sub %r12, %r12
mov $0x6162636465666768, %rdi
movq %rdi, %xmm7
vmovups %ymm7, (%r8)
nop
nop
and $28612, %rdi
lea addresses_WC_ht+0xa5d4, %rcx
nop
nop
inc %rbp
movups (%rcx), %xmm4
vpextrq $0, %xmm4, %r8
and $19232, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_RW+0x16b4e, %rsi
lea addresses_WT+0x1c94e, %rdi
nop
nop
nop
dec %rbx
mov $23, %rcx
rep movsq
nop
nop
nop
nop
and %r10, %r10
// Store
lea addresses_WT+0xe34e, %r11
clflush (%r11)
nop
nop
nop
nop
add %rsi, %rsi
mov $0x5152535455565758, %rbx
movq %rbx, %xmm7
movups %xmm7, (%r11)
nop
nop
add %rsi, %rsi
// Store
lea addresses_RW+0x1254e, %r10
nop
nop
nop
add $24732, %rbp
movw $0x5152, (%r10)
nop
nop
cmp $45956, %rdi
// Store
mov $0x2a, %r10
nop
nop
nop
dec %r11
mov $0x5152535455565758, %rsi
movq %rsi, %xmm5
movups %xmm5, (%r10)
nop
nop
sub $43487, %r11
// Store
mov $0x514, %rsi
nop
xor %rbp, %rbp
mov $0x5152535455565758, %rcx
movq %rcx, (%rsi)
nop
nop
nop
cmp %rsi, %rsi
// Load
lea addresses_WT+0x1b74e, %rbp
nop
nop
nop
nop
nop
and $23083, %rcx
mov (%rbp), %di
nop
nop
nop
nop
cmp %rcx, %rcx
// Load
lea addresses_RW+0x1254e, %r11
and $63084, %rcx
mov (%r11), %esi
nop
nop
nop
nop
nop
inc %rdi
// Store
lea addresses_RW+0x1254e, %rbp
nop
nop
nop
cmp %rsi, %rsi
mov $0x5152535455565758, %r10
movq %r10, %xmm2
movups %xmm2, (%rbp)
nop
nop
and %rbx, %rbx
// Store
lea addresses_WT+0x11096, %rdi
nop
nop
sub $437, %rsi
movl $0x51525354, (%rdi)
sub $19353, %rdi
// Faulty Load
lea addresses_RW+0x1254e, %rdi
nop
xor %rbx, %rbx
movb (%rdi), %cl
lea oracles, %r10
and $0xff, %rcx
shlq $12, %rcx
mov (%r10,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_RW', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_RW', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_P', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT', 'same': False, 'size': 2, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_RW', 'same': True, 'size': 4, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_RW', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'58': 5}
58 58 58 58 58
*/
| 19.217742 | 147 | 0.640579 |
a6d394b648ba16d60f3127b639fd4a46774551a6 | 1,143 | asm | Assembly | Assembly/textures/paramWindow_superSkill.asm | WildGenie/Ninokuni | 019b4b7f069b311d0146d634f0af4c3096be7dd9 | [
"Apache-2.0"
] | 14 | 2015-01-15T19:08:06.000Z | 2021-09-27T17:27:22.000Z | Assembly/textures/paramWindow_superSkill.asm | WildGenie/Ninokuni | 019b4b7f069b311d0146d634f0af4c3096be7dd9 | [
"Apache-2.0"
] | 5 | 2015-01-13T21:19:45.000Z | 2015-04-12T15:51:18.000Z | Assembly/textures/paramWindow_superSkill.asm | WildGenie/Ninokuni | 019b4b7f069b311d0146d634f0af4c3096be7dd9 | [
"Apache-2.0"
] | 7 | 2015-02-02T20:14:00.000Z | 2017-05-14T07:58:12.000Z | ;; Modify the subimages position of the texture battles images.
;
; Arguments of v3d_setSubImage function:
; + R0: Sprite struct
; + R1: Frame index
; + R2: Layer index
; + R3: X Start
; + SP+00: Y Start
; + SP+04: X End
; + SP+08: Y End
; + SP+0C: X Output
; + SP+10: Y Output
; + SP+14: Width
; + SP+18: Height
; + SP+1C: Palette index
@Ystart equ -0x38
@Xend equ -0x34
@Yend equ -0x30
@Xout equ -0x2C
@Yout equ -0x28
@Width equ -0x24
@Height equ -0x20
@Palette equ -0x1C
.thumb
; # Super Skill (0/0): [56 + 4, 104] -> [112 + 4, 128]
.org 0x02084050
MOV R0, #104
STR R0, [SP,#0x38+@Ystart]
MOV R0, #112 + 4
STR R0, [SP,#0x38+@Xend]
MOV R1, #128
STR R1, [SP,#0x38+@Yend]
SUB r1, #156
STR r1, [SP,#0x38+@Xout]
ADD r1, #16
STR R1, [SP,#0x38+@Yout]
MOV r3, #56 + 4
MOV r0, #56
STR r0, [SP,#0x38+@Width]
MOV R0, #24
STR R0, [SP,#0x38+@Height]
MOV R0, #14
STR R0, [SP,#0x38+@Palette]
MOV R0, #0x38
LDR R1, [R5,R4]
ADD R0, #0xF0
ADD R0, R1, R0
MOV R1, #0
MOV R2, #0
| 21.566038 | 64 | 0.523185 |
15982d1d351856d95f698e20f1290d5ac41d8501 | 141 | asm | Assembly | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/name.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/name.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/name.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: name.asm
Type: file
Size: 3318
Last-Modified: '1992-01-13T06:23:08Z'
SHA-1: 0BE70FB415C5E2306FD75AA7245762BC93B3A0AF
Description: null
| 20.142857 | 47 | 0.808511 |
9c92adb59ccc53898510edac2397724c9b1672ae | 161 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fabs.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fabs.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_fabs.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_math32
PUBLIC cm32_sdcc_fabs
EXTERN cm32_sdcc_fsread1, m32_fabs_fastcall
cm32_sdcc_fabs:
call cm32_sdcc_fsread1
jp m32_fabs_fastcall
| 14.636364 | 43 | 0.838509 |
f08c3c56b2069a0d2419d37bec4f6c424638fb5c | 5,454 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_625.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_625.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_625.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 %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x30a7, %rsi
lea addresses_D_ht+0x16321, %rdi
nop
nop
nop
nop
nop
add %rbp, %rbp
mov $97, %rcx
rep movsw
cmp %rdi, %rdi
lea addresses_UC_ht+0xa6eb, %rax
nop
nop
nop
nop
sub %rdx, %rdx
mov $0x6162636465666768, %r14
movq %r14, (%rax)
nop
nop
nop
nop
nop
and %rax, %rax
lea addresses_D_ht+0xb0a7, %rdx
nop
nop
nop
nop
sub %rcx, %rcx
movw $0x6162, (%rdx)
nop
nop
nop
cmp $6502, %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_PSE+0x1a64f, %r10
nop
nop
nop
nop
nop
add $25631, %rdx
movb $0x51, (%r10)
nop
nop
nop
nop
cmp $21548, %rsi
// REPMOV
lea addresses_D+0x123ff, %rsi
lea addresses_D+0xdbd9, %rdi
nop
nop
nop
and $34105, %r15
mov $32, %rcx
rep movsq
nop
nop
nop
sub $17807, %r13
// Load
lea addresses_normal+0x19417, %r10
nop
xor %rdi, %rdi
mov (%r10), %rdx
nop
nop
nop
nop
sub %rdi, %rdi
// Faulty Load
lea addresses_normal+0x148a7, %rax
nop
and $7355, %r13
movb (%rax), %r15b
lea oracles, %rdx
and $0xff, %r15
shlq $12, %r15
mov (%rdx,%r15,1), %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_PSE', 'size': 1, 'AVXalign': False}}
{'src': {'type': 'addresses_D', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D', 'congruent': 1, 'same': False}}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 2, 'NT': False, 'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 38.680851 | 2,999 | 0.659149 |
5ea19d4cc38172ba6f78e574e80fb361d34bc9ef | 1,132 | asm | Assembly | reference/game.asm | mbartling/lc3Game | 438bf401f788f22e93ff5163b5460dfea4fbfe6d | [
"MIT"
] | 1 | 2018-07-07T05:12:29.000Z | 2018-07-07T05:12:29.000Z | reference/game.asm | mbartling/lc3Game | 438bf401f788f22e93ff5163b5460dfea4fbfe6d | [
"MIT"
] | null | null | null | reference/game.asm | mbartling/lc3Game | 438bf401f788f22e93ff5163b5460dfea4fbfe6d | [
"MIT"
] | null | null | null | .ORIG x3000
; Dedicate R6 == Stack pointer
LEA R6, SP
LDR R6, R6, #0
AND R1, R1, #0
AND R2, R2, #0
ADD R1, R1, #2
ADD R2, R2, #3
;Main(){
GAME_LOOP
LEA R5, DRAW
LDR R5, R5, #0 ;Load pointer to Draw()
LEA R3, MOVE
LDR R3, R3, #0 ;Load pointer to Move()
;----------------------------------------------
; First Call to UserInput()
;----------------------------------------------
LD R4, UserInput
JSRR R4
;----------------------------------------------
; Second Call to Draw()
;----------------------------------------------
;JSRR R5 ;draw()
STR R1, R6, #0 ;Push number 5 to stack
STR R2, R6, #-1 ;Push number 5 to stack
ADD R6, R6, #-2 ;sp = sp -2 ; move stack pointer to new base
JSRR R3
ADD R6, R6, #2
LDR R1, R6, #0
LDR R2, R6, #-1
JSRR R5 ;draw()
BRnzp GAME_LOOP
HALT
;}//End of Main
UserInput .FILL x3870
DRAW .FILL x3700 ;Address of Draw() routine
UPDATE_ELEMENT .FILL x3730 ;Address of UpdateElement() routine
MOVE .FILL x3800 ;Address of Move() routine
SP .FILL xFDFF ; Stack pointer to the end of user space MEM
PLAYER_SYMBOL .FILL x70 ; 'P' for player
.END
| 20.962963 | 64 | 0.525618 |
bd3e3fbc4d1937c3d081157abaa31740abc310f9 | 808 | asm | Assembly | sound/sfxasm/55.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | 7 | 2019-12-05T00:35:57.000Z | 2022-02-27T20:00:33.000Z | sound/sfxasm/55.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | null | null | null | sound/sfxasm/55.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | null | null | null | 55_Header:
sHeaderInit ; Z80 offset is $C5D1
sHeaderPatch 55_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 55_FM5, $E4, $05
55_FM5:
sPatFM $00
dc.b nB3, $02, sHold, nC4, sHold, nCs4, sHold, nD4
dc.b $30
55_Loop1:
dc.b sHold, $01
saVolFM $01
sLoop $00, $0A, 55_Loop1
sStop
55_Patches:
; Patch $00
; $3C
; $03, $01, $12, $01, $1F, $11, $1F, $11
; $00, $0D, $00, $00, $00, $08, $00, $00
; $0F, $3F, $0F, $0F, $00, $8A, $05, $80
spAlgorithm $04
spFeedback $07
spDetune $00, $01, $00, $00
spMultiple $03, $02, $01, $01
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $11, $11
spAmpMod $00, $00, $00, $00
spSustainRt $00, $00, $0D, $00
spSustainLv $00, $00, $03, $00
spDecayRt $00, $00, $08, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $00, $05, $0A, $00
| 21.263158 | 51 | 0.589109 |
1f1d61e663c2706c96c9a70b626bab749a31a90c | 1,422 | asm | Assembly | symbolinen_konekieli/Ratol_msdos/teht52.asm | tkukka/VariousContent | f7e7ae98ff8521c6c709dabe30855104afe3fe04 | [
"MIT"
] | null | null | null | symbolinen_konekieli/Ratol_msdos/teht52.asm | tkukka/VariousContent | f7e7ae98ff8521c6c709dabe30855104afe3fe04 | [
"MIT"
] | null | null | null | symbolinen_konekieli/Ratol_msdos/teht52.asm | tkukka/VariousContent | f7e7ae98ff8521c6c709dabe30855104afe3fe04 | [
"MIT"
] | null | null | null | ;RaTol Symbolinen konekieli: Harjoitus 5, tehtävä 2
;Tero Kukka IY96A
;Tiedosto: teht52.asm
;Luotu 19.4.1998
include a:makrot.txt
;Ohjelman kuvaus:
;Ohjelma asettaa keskeytyspalvelun, joka tulostaa
;oman nimeni. Keskeytystä kutsutaan pääohjelmasta,
;kun vastataan 'n' erääseen kehotteeseen.
;Ulkoiset aliohjelmat:
extrn _aseta_kesk: far
extrn _tulosta_nimi: far ;kesk.palv.
;Vakiot:
KESKEYTYSNRO equ 0a0h
.model large ;Huom. muistimalli
.stack 100h ;pinon koko
.data ;muuttujalohko
teksti db 0ah, 0dh, "Paina n tai m tai q: ", '$'
.code
_main proc ;pääohjelma alkaa
mov ax, @data
mov ds, ax
;keskeytyspalvelijan asetus:
mov ax, offset _tulosta_nimi
push ax
mov ax, seg _tulosta_nimi
push ax
push KESKEYTYSNRO
call _aseta_kesk
add sp, 6
;Testaus:
mov cx, 4
TOISTA:
tulosta teksti
lue_ascii_AL
cmp al, 'n'
jz KESKEYTYS
cmp al, 'N'
jz KESKEYTYS
cmp al, 'm'
jz OHI
cmp al, 'M'
jz OHI
exit 0
KESKEYTYS:
int KESKEYTYSNRO
OHI:
loop TOISTA
exit 0
_main endp
end _main ;pääohjelman loppu
| 20.314286 | 59 | 0.533052 |
06daea98441f08997dea1b29f9b9677c9af2c57e | 5,627 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_21829_727.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_21829_727.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_21829_727.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rdi
push %rsi
lea addresses_UC_ht+0xa4b4, %r9
and %r13, %r13
movups (%r9), %xmm0
vpextrq $1, %xmm0, %rsi
nop
nop
add $18270, %rdi
pop %rsi
pop %rdi
pop %r9
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r15
push %r9
push %rax
push %rdi
// Store
lea addresses_A+0xd0e2, %r9
cmp %rax, %rax
mov $0x5152535455565758, %rdi
movq %rdi, %xmm7
vmovups %ymm7, (%r9)
nop
nop
nop
nop
sub %r14, %r14
// Store
lea addresses_A+0x1a514, %rax
nop
nop
inc %r9
movw $0x5152, (%rax)
nop
cmp %r14, %r14
// Store
lea addresses_US+0x4a18, %r9
nop
nop
nop
sub %r13, %r13
mov $0x5152535455565758, %rax
movq %rax, %xmm5
vmovups %ymm5, (%r9)
nop
nop
nop
nop
nop
sub %r9, %r9
// Store
lea addresses_normal+0x1c314, %r12
nop
nop
and $55099, %r15
mov $0x5152535455565758, %r9
movq %r9, %xmm7
movaps %xmm7, (%r12)
nop
nop
nop
nop
sub %r9, %r9
// Store
lea addresses_UC+0x1f714, %r9
nop
dec %r13
mov $0x5152535455565758, %r14
movq %r14, %xmm2
vmovups %ymm2, (%r9)
nop
nop
nop
xor $27397, %r12
// Store
lea addresses_normal+0x3314, %rax
clflush (%rax)
nop
nop
nop
add $45205, %rdi
movb $0x51, (%rax)
nop
xor %r14, %r14
// Faulty Load
lea addresses_US+0x4b14, %r15
nop
nop
nop
nop
nop
dec %r14
mov (%r15), %r12
lea oracles, %r9
and $0xff, %r12
shlq $12, %r12
mov (%r9,%r12,1), %r12
pop %rdi
pop %rax
pop %r9
pop %r15
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': 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
*/
| 39.34965 | 2,999 | 0.654878 |
9bcf06216129c3e64b8f18634c5b1febfdb03025 | 4,522 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca_notsx.log_36_244.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_0xca_notsx.log_36_244.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_0xca_notsx.log_36_244.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x19804, %r8
nop
nop
nop
nop
sub $34592, %r14
mov (%r8), %si
nop
nop
nop
cmp $64028, %r10
lea addresses_UC_ht+0xd7a4, %rbp
nop
nop
nop
cmp %rax, %rax
movl $0x61626364, (%rbp)
nop
dec %r10
lea addresses_D_ht+0x1d5dc, %rsi
lea addresses_A_ht+0xc6c4, %rdi
nop
nop
nop
nop
and $52474, %rax
mov $101, %rcx
rep movsq
and %r8, %r8
lea addresses_A_ht+0x7804, %rax
nop
and $3517, %rbp
mov (%rax), %rsi
nop
nop
nop
and %r8, %r8
lea addresses_A_ht+0x19d04, %r10
nop
dec %rsi
mov (%r10), %ax
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_WC_ht+0xaf8c, %rdx
nop
nop
nop
nop
nop
inc %r14
mov (%rdx), %si
nop
sub %rcx, %rcx
lea addresses_WT_ht+0x6004, %rsi
lea addresses_normal_ht+0x1344, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
xor %rdx, %rdx
mov $67, %rcx
rep movsb
nop
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_D_ht+0x11804, %rsi
nop
nop
nop
dec %rax
mov $0x6162636465666768, %r10
movq %r10, (%rsi)
dec %r10
lea addresses_A_ht+0x79bb, %rsi
lea addresses_WT_ht+0x5f4c, %rdi
nop
nop
nop
nop
nop
xor $7627, %r10
mov $114, %rcx
rep movsb
nop
nop
add $60170, %rdx
lea addresses_D_ht+0x6c5c, %rax
cmp $52348, %r8
movl $0x61626364, (%rax)
and $25951, %rbp
lea addresses_UC_ht+0x12b74, %rsi
lea addresses_A_ht+0x19c4c, %rdi
clflush (%rdi)
nop
nop
nop
sub %r8, %r8
mov $64, %rcx
rep movsw
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_A_ht+0xb804, %rdi
nop
nop
nop
nop
nop
and %rsi, %rsi
movb (%rdi), %al
add %rdx, %rdx
lea addresses_normal_ht+0x9d84, %rsi
lea addresses_UC_ht+0x73c4, %rdi
cmp %r8, %r8
mov $7, %rcx
rep movsq
nop
nop
nop
add $10286, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r8
push %rbx
push %rcx
push %rdi
// Store
mov $0x502d710000000a64, %r8
xor $12610, %rbx
mov $0x5152535455565758, %r10
movq %r10, (%r8)
nop
nop
nop
nop
nop
add %r8, %r8
// Faulty Load
lea addresses_A+0x2004, %rbx
sub $62844, %rdi
mov (%rbx), %r10w
lea oracles, %r11
and $0xff, %r10
shlq $12, %r10
mov (%r11,%r10,1), %r10
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': False, 'type': 'addresses_NC'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 3, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'00': 36}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 21.130841 | 153 | 0.648828 |
2ba474a4aae877fa9adb7eb3c215195d28d850f2 | 13,309 | asm | Assembly | experiments/hello-world-st7565/ST7565.asm | daltonmatos/avrgcc-mixed-with-avrasm2 | f28120af3089fdd150d7a609409c56f5408a1658 | [
"BSD-3-Clause"
] | 2 | 2019-01-15T16:30:19.000Z | 2019-08-15T02:31:22.000Z | experiments/hello-world-st7565/ST7565.asm | daltonmatos/avrgcc-mixed-with-avrasm2 | f28120af3089fdd150d7a609409c56f5408a1658 | [
"BSD-3-Clause"
] | null | null | null | experiments/hello-world-st7565/ST7565.asm | daltonmatos/avrgcc-mixed-with-avrasm2 | f28120af3089fdd150d7a609409c56f5408a1658 | [
"BSD-3-Clause"
] | null | null | null | .def TargetY =r17
HilightRectangle:
; PushAll
push r17
lds TargetY, Y2
Hili1: lds t, Y1
sts Y2, t
call Bresenham
lds t, Y1
inc t
sts Y1, t
cp t, TargetY
brlo Hili1
; PopAll
pop r17
ret
.undef TargetY
PrintSelector:
lpm t, z+
sts X1, t
lpm t, z+
sts Y1, t
lpm t, z+
sts X2, t
lpm t, z
sts Y2, t
lrv PixelType, 0
rcall HilightRectangle
ret
.def X1r = r17
.def Y1r = r18
.def X2r = r19
.def Y2r = r20
Rectangle:
; PushAll
push r17
push r18
push r19
push r20
lds X1r, X1
lds Y1r, Y1
lds X2r, X2
lds Y2r, Y2
sts Y2, Y1r
call Bresenham
sts X1, X2r
sts Y1, Y2r
call Bresenham
sts X2, X1r
sts Y2, Y2r
call Bresenham
sts X1, X1r
sts Y1, Y1r
call Bresenham
; PopAll
pop r20
pop r19
pop r18
pop r17
ret
.undef X1r
.undef Y1r
.undef X2r
.undef Y2r
.def flagLeadingZero =r17
.def Counter =r18
.def Digit =r19
Print16Signed:
; PushAll
push xl
push xh
push yl
push yh
push zl
push zh
push r17
push r18
push r19
mov t, xl
or t, xh
brne print14 ;is X zero?
ldi t, '0' ;yes, print a zero and exit
call PrintChar
rjmp print13
print14:clr flagLeadingZero ;no
tst xh
brpl print7 ;negative?
com xl ;yes, negate x
com xh
ldi t, 1
add xl, t
clr t
adc xh, t
ldi t, '-' ;print minus sign
rcall PrintChar
print7: my_ldz convt*2
ldi Counter, 5
print8: ldi Digit, 0xff
lpm yl, Z+
lpm yh, Z+
print9: sub xl, yl ; digit = int(X / Y) ; X = frac(X / Y)
sbc xh, yh
inc Digit
brcc print9
add xl, yl
adc xh, yh
tst Digit ;is digit zero?
brne print10
brflagfalse flagLeadingZero, print11 ;yes, skip it if no nonzero digits have been printed
rjmp print12
print10:ser flagLeadingZero ;no, set flag
print12:mov t, Digit ;Digit to ASCII
subi t, -0x30
rcall PrintChar ;print digit
print11:dec Counter ;more digits?
brne print8
;print13:PopAll ;no, exit
print13:pop r19
pop r18
pop r17
pop zh
pop zl
pop yh
pop yl
pop xh
pop xl
ret
convt: .dw 10000
.dw 1000
.dw 100
.dw 10
.dw 1
.undef flagLeadingZero
.undef Counter
.undef Digit
PrintNumberLF:
rcall Print16Signed
LineFeed: ;OBSERVE: This subroutine must follow immediately after 'PrintNumberLF'!
rvadd Y1, 9
ret
PrintHeader:
rcall PrintString
lrv FontSelector, f6x8
lrv Y1, 17
ret
PrintWarningHeader:
lrv X1, 16
my_ldz warning*2
rcall PrintHeader
ret
PrintMotto:
lrv X1, 0
my_ldz motto*2
call PrintString
ret
PrintColonAndSpace:
ldi t, ':'
rcall PrintChar
ldi t, ' '
rcall PrintChar
ret
PrintCCW:
ldi t, 'C'
rcall PrintChar
PrintCW: ;OBSERVE: This subroutine must follow immediately after 'PrintCCW'!
ldi t, 'C'
rcall PrintChar
ldi t, 'W'
rcall PrintChar
ret
PrintMenuFooter:
lrv X1, 0
lrv Y1, 57
my_ldz updown*2
rcall PrintString
ret
PrintSelectFooter:
lrv X1, 0
lrv Y1, 57
my_ldz bckprev*2
rcall PrintString
my_ldz nxtsel*2
rcall PrintString
ret
PrintStdFooter:
lrv X1, 0
lrv Y1, 57
pushz
my_ldz bckprev*2
rcall PrintString
my_ldz nxtchng*2
rcall PrintString
popz
ret
PrintBackFooter:
lrv X1, 0
lrv Y1, 57
pushz
my_ldz back*2
rcall PrintString
popz
ret
PrintChangeFooter:
lrv X1, 90
lrv Y1, 57
my_ldz change*2
rcall PrintString
ret
PrintOkFooter:
lrv X1, 114
lrv Y1, 57
pushz
my_ldz ok*2
rcall PrintString
popz
ret
PrintContinueFooter:
lrv X1, 78
lrv Y1, 57
pushz
my_ldz cont*2
rcall PrintString
popz
ret
PrintFromStringArray:
lsl t
add zl, t
clr t
adc zh, t
lpm xl, z+
lpm xh, z
movw z, x
rcall PrintString
ret
PrintStringArray:
pushy
mov yl, t ;register T = Array size (i.e. Number of strings)
clr t
psa1: push t
pushz ;register Z = Array pointer (16 bit)
clr yh
sts X1, yh
call PrintFromStringArray
rcall LineFeed
popz
pop t
inc t
cp t, yl
brlt psa1
popy
ret
PrintString:
print2: lpm t, z+
tst t
breq print1
rcall PrintChar
rjmp print2
print1: ret
.def CharWidth =r17
.def CharHeight =r18
.def CharBytes =r19
PrintChar:
; PushAll
push xl
push xh
push yl
push zl
push zh
push r17
push r18
push r19
lds xl, FontSelector ;Z = address of TabCh * 2 + FontSelector * 6
ldi xh, 6
mul xl, xh
my_ldz TabCh*2
add zl, r0
adc zh, r1
lpm xl, Z+
lpm xh, Z+
lpm CharWidth, Z+
lpm CharHeight, Z+
lpm CharBytes, Z
movw Z, X
rcall pp1
; PopAll
pop r19
pop r18
pop r17
pop zh
pop zl
pop yl
pop xh
pop xl
ret
TabCh: .db low(font4x6*2), high(font4x6*2), 4, 6, 4, 0
.db low(font6x8*2 + offset), high(font6x8*2 + offset), 6, 8, 6, 0
.db low(font8x12*2), high(font8x12*2), 8, 12, 12, 0
.db low(font12x16*2), high(font12x16*2), 12, 16, 24, 0
.db low(symbols16x16*2), high(symbols16x16*2), 16, 16, 32, 0
pp1: mov xl,t ;
mov xh,t
andi xl,0b00011111
andi xh,0b01100000
cpi xh, 0b01000000 ;ABCDEF
brne pp2
subi xl,-0x20
jmp pp3
pp2: cpi xh, 0b01100000 ;abcdef
brne pp3
subi xl,-0x40
pp3: mul xl, CharBytes ;Find address of char
add zl, r0
adc zh, r1
mov xl, CharWidth
mov yl, CharHeight
rcall Sprite ;draw char
lds t, X1 ;advance to next position
add t, CharWidth
sts X1, t
ret
.undef CharWidth
.undef CharHeight
.undef CharBytes
Sprite: ;Z = bitmap address
;xl = x size
;yl = y size
;X1, Y1 = start pos
.def BitCounter =r17
.def XCounter =r18
.def YCounter =r19
.def Bits =r20
; PushAll
push xl
push yl
push r17
push r18
push r19
push r20
ldi BitCounter, 1
mov YCounter, yl
lds t, Y1
sts YPos, t
sp1: mov XCounter, xl
lds t, X1
sts XPos, t
sp4: dec BitCounter ;more bits?
brne sp2
ldi Bitcounter, 8 ;no, get next byte
lpm Bits, Z+
sp2: lsl Bits ;yes, is next bit set?
brcc sp3
rcall SetPixel ;yes, plot it
sp3: lds t, XPos ;XPos = XPos + 1
inc t
sts Xpos, t
dec XCounter ;More X pixels?
brne sp4
lds t, YPos ;YPos = YPos + 1
inc t
sts Ypos, t
dec YCounter ;More Y pixels?
brne sp1
; PopAll
pop r20
pop r19
pop r18
pop r17
pop yl
pop xl
ret
.undef BitCounter
.undef XCounter
.undef YCounter
.undef Bits
Bresenham: ;line from (X1,Y1) to (Y2,Y2)
.def prx1 =r17
.def prx2 =r18
.def pry1 =r19
.def pry2 =r20
.def xd =r21
.def yd =r22
.def step =r23
.def errorl =r2
.def errorh =r3
PushAll
ldi prx1, 1
ldi prx2, 1
ldi pry1, 1
ldi pry2, 1
lds xd, X2 ;xd=x2-x1
lds t, X1
sub xd, t
brpl op1
neg xd
ldi prx1, -1
ldi prx2, -1
op1: lds yd, Y2
lds t, Y1
sub yd, t
brpl op2
neg yd
ldi pry1, -1
ldi pry2, -1
op2: cp xd, yd
brsh op3
ldi prx1, 0
mov t, xd
mov xd, yd
mov yd, t
rjmp op4
op3: ldi pry1, 0
op4: mov step, xd
add step, yd
mov errorl, xd
clr errorh
lds t, X1
sts Xpos, t
lds t, Y1
sts Ypos, t
lsl xd
lsl yd
op5: rcall SetPixel
tst step
breq op6
brmi op6
sub errorl, yd
clr t
sbc errorh, t
brpl op7
lds t, Xpos
add t, prx2
sts Xpos, t
lds t, Ypos
add t, pry2
sts Ypos, t
add errorl, xd
clr t
adc errorh, t
subi step, 2
rjmp op5
op7: lds t, Xpos
add t, prx1
sts Xpos, t
lds t, Ypos
add t, pry1
sts Ypos, t
subi step, 1
rjmp op5
op6: PopAll
ret
.undef prx1
.undef prx2
.undef pry1
.undef pry2
.undef xd
.undef yd
.undef step
.undef errorl
.undef errorh
SetPixel: ; Destroys: t
; PushAll
push zl
push zh
push xl
push xh
;ldi zl, low(LcdBuffer) ;Z = LcdBuffer + int(Ypos/8)*128 + Xpos
;ldi zh, high(LcdBuffer)
my_ldz LcdBuffer
lds xl, Ypos
ldi xh, 0
andi xl, 0b00111000
lsl xl
lsl xl
lsl xl
rol xh
lsl xl
rol xh
add zl, xl
adc zh, xh
lds t, Xpos
andi t, 0x7f
add zl, t
clr t
adc zh, t
lds xl, Ypos ;xl = (Ypos mod 8) + 1
andi xl, 0b00000111
inc xl
ldi xh, 0b00000000 ;xh = 2 ^ (xl - 1)
sec
qq7: rol xh
dec xl
brne qq7
ld xl, z
lds t, PixelType
tst t
breq qq8
cpi t, 2
breq qq10
or xl, xh
rjmp qq9
qq10: com xh
and xl, xh
rjmp qq9
qq8: eor xl, xh
qq9: st z, xl
; PopAll
pop xh
pop xl
pop zh
pop zl
ret
LcdUpdate:
; PushAll
push xl
push xh
push yl
push yh
push zl
push zh
;ldi zl, low(lcd_cd*2) ;refresh LCD control registers
;ldi zh, high(lcd_cd*2)
my_ldz lcd_cd*2
qq2: lpm yl, z+
cpi yl, 0xff
breq qq1
rcall LcdCommand
rjmp qq2
qq1: ldi yl, 0x81 ;set contrast
rcall LcdCommand
lds yl, LcdContrast
rcall LcdCommand
;Transfer image data
ldi xl, 0xb0
;ldi zl, low(LcdBuffer)
;ldi zh, high(LcdBuffer)
my_ldz LcdBuffer
qq3: mov yl, xl ;set page address
rcall LcdCommand
ldi yl, 0x10 ;set column address
rcall LcdCommand
ldi yl, 0x00
rcall LcdCommand
ldi xh, 128 ;transfer one page
qq4: ld yl, z+
rcall LcdData
dec xh
brne qq4
inc xl
cpi xl, 0xb8
brne qq3
; PopAll
pop zh
pop zl
pop yh
pop yl
pop xh
pop xl
ret
lcd_cd:
.db 0xaf, 0x40 ;LCD ON Display start line set
.db 0xa0, 0xa6 ;ADC nor/res
.db 0xa4, 0xa2 ;disp normal bias 1/9
.db 0xee, 0xc8 ;end COM
.db 0x2f, 0x24 ;power control Vreg int res ratio
.db 0xac, 0x00 ;static off
.db 0xf8, 0x00 ;booster ratio
.db 0xe3, 0xff ;NOP
LcdClear:
; PushAll
push xl
push xh
push zl
push zh
ldi zl, low(LcdBuffer)
ldi zh, high(LcdBuffer)
ldi xl, low(0x0400)
ldi xh, high(0x0400)
ldi t,0x00
qq5: st z+, t
sbiw xh:xl, 1
brne qq5
; PopAll
pop zh
pop zl
pop xh
pop xl
ret
LcdClear6x8:
rcall LcdClear
lrv PixelType, 1
lrv FontSelector, f6x8
lrv X1, 0
lrv Y1, 1
ret
LcdClear12x16:
rcall LcdClear
lrv PixelType, 1
lrv FontSelector, f12x16
lrv Y1, 0
ret
LcdCommand:
cbi lcd_a0
rjmp se4
LcdData:
sbi lcd_a0
se4: cbi lcd_cs1
rcall se5
push xh
ldi xh,8
se3: lsl yl ;F T
brcs se1 ;1 2
nop ;1
cbi lcd_si ;2
rjmp se2 ;2
se1: sbi lcd_si ; 2
nop ; 1
nop ; 1
se2: rcall se5
cbi lcd_scl
rcall se5
sbi lcd_scl
rcall se5
dec xh
brne se3
sbi lcd_cs1
rcall se5
pop xh
ret
se5: ldi t, 4 ;1 us delay at 20MHz
se6: dec t
brne se6
ret
;ShowConfirmationDlg:
; pushz ;input parameter (text pointer)
; rcall LcdClear12x16
;
; lrv X1, 22 ;header
; ldz confirm*2
; rcall PrintHeader
;
; lrv X1, 0 ;print input text
; lrv Y1, 26
; popz
; rcall PrintString
;
; lrv X1, 0 ;print "Are you sure?"
; lrv Y1, 35
; ldz rusure*2
; rcall PrintString
;
; ;footer
; lrv X1, 0
; lrv Y1, 57
; ldz conf*2
; rcall PrintString
;
; rcall LcdUpdate
;
;scd2: rcall GetButtonsBlocking
;
; cpi t, 0x08 ;CANCEL?
; breq scd3
;
; cpi t, 0x01 ;YES?
; brne scd2
;
;scd3: ret
;headers
confirm:.db "CONFIRM", 0
warning:.db "WARNING!", 0, 0
cerror: .db "ERROR", 0
saved: .db "SAVED", 0
;footers
tunefn: .db "BACK RATE SAVE CHANGE", 0
qtunefn:.db "BACK RATE NEXT CHANGE", 0
updown: .db "BACK UP DOWN ENTER", 0
conf: .db "CANCEL YES", 0
cont: .db "CONTINUE", 0, 0
clear: .db "CLEAR", 0
yn: .db "YES NO", 0
back: .db "BACK", 0, 0
bckprev:.db "BACK PREV", 0 ;used in combination with other footers (e.g. "NEXT CHANGE")
bckmore:.db "BACK MORE", 0 ;also used in combination with other footers (e.g. "NEXT CHANGE")
nxtchng:.db " NEXT CHANGE", 0, 0
nxtsel: .db " NEXT SELECT", 0, 0
change: .db "CHANGE", 0, 0
ok: .db "OK", 0, 0 ;also used as status text (in sensortest.asm and flightdisplay.asm)
;other texts
motto: .db "Fly safe! RC911", 0
rusure: .db "Are you sure?", 0
off: .db "Off", 0
on: .db "On", 0, 0
no: .db "No", 0, 0
yes: .db "Yes", 0
acro: .db "Acro", 0, 0
alarm: .db "Alarm", 0
normsl: .db "Normal SL", 0
slmix: .db "SL Mix", 0, 0
sltrim: .db "ACC Trim", 0, 0
slgain: .db "SL Gain", 0
selflvl:.db "SL", 0, 0
gimbal: .db "Gimbal", 0, 0
ailele: .db "Ail+Ele", 0
ail: .db "Aileron", 0
ele: .db "Elevator", 0, 0
rudd: .db "Rudder", 0, 0
thr: .db "Throttle", 0, 0
aux: .db "Aux", 0
ofs: .db "Offset", 0, 0
pgain: .db "P Gain", 0, 0
plimit: .db "P Limit", 0
igain: .db "I Gain", 0, 0
ilimit: .db "I Limit", 0
locked: .db "Locked", 0, 0
home: .db "Home", 0, 0
pos1: .db "Pos 1", 0
pos2: .db "Pos 2", 0
pos3: .db "Pos 3", 0
pos4: .db "Pos 4", 0
pos5: .db "Pos 5", 0
rate1: .db "LOW", 0
rate2: .db "MEDIUM", 0, 0
rate3: .db "HIGH", 0, 0
ss0: .db "SS +0", 0
ss20: .db "SS +20", 0, 0
ss30: .db "SS +30", 0, 0
ss50: .db "SS +50", 0, 0
;arrays
yesno: .dw no*2, yes*2
tunmode:.dw off*2, ail*2, ele*2, rudd*2, slgain*2, sltrim*2, gimbal*2
lmh: .dw null*2, rate1*2, rate2*2, rate3*2
auxtxt: .dw pos1*2, pos2*2, pos3*2, pos4*2, pos5*2
auxfn: .dw acro*2, slmix*2, normsl*2, alarm*2
auxss: .dw ss0*2, ss20*2, ss30*2, ss50*2
aux4txt:.dw locked*2, off*2, home*2
rxch: .dw ail*2, ele*2, thr*2, rudd*2, aux*2
| 13.40282 | 94 | 0.605981 |
7880b6d1c02a94066a7036402d159ab8e813d875 | 4,764 | asm | Assembly | Driver/IFS/DOS/NetWare/netwareUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/IFS/DOS/NetWare/netwareUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/IFS/DOS/NetWare/netwareUtils.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: netwareUtils.asm
AUTHOR: Adam de Boor, Mar 29, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam 3/29/92 Initial revision
DESCRIPTION:
NetWare-specific utilities
$Id: netwareUtils.asm,v 1.1 97/04/10 11:55:14 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
Resident segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NWCallPrimary
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call the primary FSD to do something for us.
CALLED BY: INTERNAL
PASS: di = DOSPrimaryFSFunction to call
etc.
RETURN: whatever
DESTROYED: bp before the call is made
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 3/29/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
NWCPFrame struct
NWCPF_ds sptr
NWCPF_vector fptr.far
NWCPFrame ends
NWCallPrimary proc far
.enter
push bx, ax, ds
mov bp, sp
segmov ds, dgroup, ax
mov bx, ds:[nwPrimaryStrat].segment
mov ax, ds:[nwPrimaryStrat].offset
xchg ax, ss:[bp].NWCPF_vector.offset
xchg bx, ss:[bp].NWCPF_vector.segment
mov ds, ss:[bp].NWCPF_ds
call ss:[bp].NWCPF_vector
mov bp, sp
lea sp, ss:[bp+size NWCPFrame]
.leave
ret
NWCallPrimary endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LoadVarSegDS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Load dgroup into DS
CALLED BY: INTERNAL
PASS: nothing
RETURN: ds = dgroup
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 11/18/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
dgroupSeg sptr dgroup
LoadVarSegDS proc near
.enter
mov ds, cs:[dgroupSeg]
.leave
ret
LoadVarSegDS endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NWChangePreferredServer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Push the old preferred server and switch to that for the
passed disk.
CALLED BY: (EXTERNAL)
PASS: es:si = DiskDesc whose server should be preferred
cwdLock grabbed
RETURN: ax = old connection ID
DESTROYED: dx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
NWChangePreferredServer proc far
uses bx, es, si, dx
.enter
;
; Fetch the current connection ID and save it for return.
;
mov ax, NFC_GET_PREFERRED_CONNECTION_ID
call FileInt21
push ax
;
; Point es:si to the connection id table, after extracting the
; drive number for the disk into bx
;
mov bx, es:[si].DD_drive
mov bl, es:[bx].DSE_number
clr bh
mov ax, NFC_GET_DRIVE_CONNECTION_ID_TABLE
call FileInt21
;
; Fetch connection ID for the drive.
;
mov dl, es:[si][bx]
EC < tst dl >
EC < ERROR_Z DRIVE_NO_LONGER_VALID >
;
; Set that as the preferred connection
;
mov ax, NFC_SET_PREFERRED_CONNECTION_ID
call FileInt21
pop ax
.leave
ret
NWChangePreferredServer endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NWRestorePreferredServer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Restore the preferred server to that whose connection ID
is passed on the stack.
CALLED BY: (EXTERNAL)
PASS: connectionID = connection ID as returned by
NWChangePreferredServer
RETURN: nothing
DESTROYED: nothing (flags preserved)
SIDE EFFECTS: connection ID popped off the stack
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
NWRestorePreferredServer proc far connectionID:word
uses ax, dx
.enter
pushf
mov dl, ss:[connectionID].low
mov ax, NFC_SET_PREFERRED_CONNECTION_ID
call FileInt21
popf
.leave
ret @ArgSize
NWRestorePreferredServer endp
Resident ends
| 22.903846 | 79 | 0.52372 |
eed9a92885375c96683cc188bfdd2cf3b313241b | 537 | asm | Assembly | oeis/065/A065222.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/065/A065222.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/065/A065222.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A065222: Fill a triangular array by rows by writing numbers 1 up to b(0), 1 up to b(1), etc., where b(n) are the hexagonal numbers. The final elements of the rows form a(n).
; Submitted by Jamie Morken(s3)
; 1,2,5,3,8,14,6,14,23,5,16,28,41,10,25,41,58,10,29,49,70,1,24,48,73,99,6,34,63,93,124,3,36,70,105,141,178,26,65,105,146,188,231,44,89,135,182,230,3,53,104,156,209,263,318,49,106,164,223,283,344,28,91,155,220
lpb $0
add $2,$0
sub $0,1
add $2,1
lpe
mov $1,1
lpb $2
add $3,$1
add $1,4
sub $2,$3
lpe
mov $0,$2
add $0,1
| 29.833333 | 208 | 0.653631 |
f2044f93d0e00485fa241d577911652ca1fa59fe | 5,770 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1350.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1350.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1350.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 %r13
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x17cc9, %rsi
lea addresses_WT_ht+0xc0f5, %rdi
nop
nop
cmp %r14, %r14
mov $71, %rcx
rep movsq
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_normal_ht+0x17ce9, %r12
nop
inc %rax
mov $0x6162636465666768, %r13
movq %r13, %xmm1
and $0xffffffffffffffc0, %r12
movntdq %xmm1, (%r12)
nop
cmp $12324, %rax
lea addresses_WT_ht+0x70e9, %rcx
nop
nop
nop
sub $31992, %r13
mov $0x6162636465666768, %r12
movq %r12, %xmm0
vmovups %ymm0, (%rcx)
nop
nop
add %r13, %r13
lea addresses_WC_ht+0x18869, %rsi
nop
nop
nop
xor %rcx, %rcx
mov (%rsi), %eax
nop
nop
nop
xor $45259, %r13
lea addresses_A_ht+0x40e9, %r14
nop
nop
nop
and $7822, %r13
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
movups %xmm3, (%r14)
nop
nop
nop
nop
and %rax, %rax
lea addresses_WT_ht+0x5675, %rsi
nop
nop
nop
nop
nop
xor $63319, %r14
mov $0x6162636465666768, %rdi
movq %rdi, %xmm6
vmovups %ymm6, (%rsi)
nop
nop
nop
nop
nop
and $25975, %r12
lea addresses_UC_ht+0x1bce9, %rcx
nop
nop
xor $3486, %r13
mov (%rcx), %r12d
nop
and %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %r8
push %r9
push %rdi
// Faulty Load
lea addresses_PSE+0x104e9, %r9
nop
nop
nop
nop
nop
xor $49264, %r11
mov (%r9), %r12
lea oracles, %r10
and $0xff, %r12
shlq $12, %r12
mov (%r10,%r12,1), %r12
pop %rdi
pop %r9
pop %r8
pop %r14
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'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
*/
| 39.520548 | 2,999 | 0.662045 |
6da104e27f82d3698e8c901cde835c5c7049c1b4 | 551 | asm | Assembly | programs/oeis/186/A186683.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/186/A186683.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/186/A186683.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A186683: Total number of n-digit numbers requiring 18 positive biquadrates in their representation as sum of biquadrates.
; 0,2,17,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mul $0,2
mov $3,$0
lpb $3
sub $0,3
mov $3,$0
mov $0,4
mov $1,2
mov $5,4
lpb $5
mov $2,1
add $4,$0
mov $0,5
trn $5,$3
lpe
lpb $4
add $2,6
mov $0,$2
trn $4,$3
mov $1,$4
trn $1,1
sub $3,4
lpe
lpe
| 20.407407 | 174 | 0.53539 |
e363401fa109ebbc6a2f064e7bed7c9a183c540c | 171 | asm | Assembly | libsrc/_DEVELOPMENT/sound/bit/c/sdcc_iy/bit_play_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/sound/bit/c/sdcc_iy/bit_play_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/sound/bit/c/sdcc_iy/bit_play_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; char *bit_play_fastcall(char *melody)
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bit_play_fastcall
EXTERN asm_bit_play
defc _bit_play_fastcall = asm_bit_play
| 14.25 | 39 | 0.842105 |
a8d53f4cc11e20e37c10fbff65259ea8be2d8282 | 110 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_fpclassify.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_fpclassify.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_fpclassify.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC asm_fpclassify
EXTERN am48_fpclassify
defc asm_fpclassify = am48_fpclassify
| 12.222222 | 37 | 0.863636 |
e3732d9ecf2df7925f28afbdfd97f5b6b08847fd | 338 | asm | Assembly | oeis/104/A104671.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/104/A104671.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/104/A104671.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A104671: C(n+3,3)*C(n+8,n+0).
; 1,36,450,3300,17325,72072,252252,772200,2123550,5348200,12514788,27511848,57316350,113954400,217443600,400096224,712671399,1232995500,2077825750,3418915500,5504453955,8687301480,13461727500,20510685000,30766027500,45484495056
mov $1,2
mov $2,$0
add $2,3
sub $1,$2
bin $1,8
bin $2,$0
mul $1,$2
mov $0,$1
| 28.166667 | 227 | 0.757396 |
6dcdb5d9d040785aa388b167db1d10a0abd45e47 | 979 | asm | Assembly | programs/oeis/039/A039650.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/039/A039650.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/039/A039650.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A039650: Prime reached by iterating f(x) = phi(x)+1 on n.
; 2,2,3,3,5,3,7,5,7,5,11,5,13,7,7,7,17,7,19,7,13,11,23,7,13,13,19,13,29,7,31,17,13,17,13,13,37,19,13,17,41,13,43,13,13,23,47,17,43,13,13,13,53,19,41,13,37,29,59,17,61,31,37,13,43,13,67,13,13,13,71,13,73,37,41,37,61,13,79,13,41,41,83,13,43,43,37,41,89,13,73,13,61,47,73,13,97,43,61,41,101,13,103,43,43,53,107,37,109,41,73,43,113,37,89,37,73,59,97,13,73,61,41,61,101,37,127,43,43,43,131,41,109,67,73,43,137,13,139,43,61,71,73,43,113,73,43,73,149,41,151,73,97,61,73,43,157,79,43,43,109,41,163,41,41,83,167,43,157,43,109,43,173,37,73,41,73,89,179,43,181,73,73,89,113,61,109,61,109,73,191,43,193,97,97,43,197,61,199,41,109,101,157,43,109,103,109,97,181,43,211,43,61,107,157,73,181,109,113,41,193,73,223,97,73,113,227,73,229,89,73,113,233,73,113,73,157,97,239,43,241,73,163,73,157,41,181,73,41,101
mov $1,138150
lpb $1
cal $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
mov $1,$0
lpe
add $1,1
| 97.9 | 791 | 0.675179 |
e344232066df3199936c6aff089a1a97644e4a30 | 732 | asm | Assembly | 4rth-Sem-Ise/Microprocessors -X86-/decimalcounter.asm | mvnsia/4th_Sem_Ise | d1e75bf16ff1ee5ded3fa2832017098f86670a18 | [
"MIT"
] | null | null | null | 4rth-Sem-Ise/Microprocessors -X86-/decimalcounter.asm | mvnsia/4th_Sem_Ise | d1e75bf16ff1ee5ded3fa2832017098f86670a18 | [
"MIT"
] | null | null | null | 4rth-Sem-Ise/Microprocessors -X86-/decimalcounter.asm | mvnsia/4th_Sem_Ise | d1e75bf16ff1ee5ded3fa2832017098f86670a18 | [
"MIT"
] | null | null | null | assume cs:code
code segment
start:
mov cx,100h
mov bx,0000h
next_digit: mov ax,bx
aaa
add ax,3030h
mov dl,ah
push ax
mov ah,02
int 21h
pop ax
mov dl,al
mov ah,02
int 21h
mov dl,0dh
mov ah,2
int 21h
call delay
inc bl
loop next_digit
mov ah,4ch
int 21h
delay proc
mov si,00001h ;adjust the delay according to your requirements
l1:mov di,000ffh ;generally 0ffffh
l2:dec di
jnz l2
dec si
jnz l1
ret
delay endp
code ends
end start | 17.853659 | 73 | 0.449454 |
9b8abaf3f22b3fe4997927de60e35d39c4387a66 | 155 | asm | Assembly | programs/oeis/172/A172100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/172/A172100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/172/A172100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A172100: Diagonal of the 26 X 26 Caesar Shift table.
; 3,5,7,9,11,13,15,17,19,21,23,25,1,3,5,7,9,11,13,15,17,19,21,23,25,1
mul $0,2
add $0,29
mod $0,26
| 22.142857 | 69 | 0.645161 |
cb1c10794ed5f23689e71d942fae3b22c0964b8c | 345 | asm | Assembly | programs/oeis/081/A081515.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/081/A081515.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/081/A081515.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A081515: Sum of terms in n-th row of A081517.
; 1,3,7,11,17,23,29,37,47,59,67,79,97,107,127,137,157,173,191,211,233,257,277,307,331,353,379,409,439,467,499,541,563,599,631,673,709,743,787,821,863,907,947,991,1039,1087,1129,1181,1229,1277,1327,1381,1433,1487
add $0,1
seq $0,65383 ; a(n) = smallest prime >= n*(n + 1)/2.
lpb $0
dif $0,2
lpe
| 38.333333 | 211 | 0.681159 |
8c1aef1df9801690850c6e0b3abd98254273829b | 354 | asm | Assembly | src/charmap.asm | Q-Bert-Reynolds/gun-hockey-gb | 360eae9adfffc9f619f891facf0c83e846f372b5 | [
"MIT"
] | 1 | 2021-06-04T15:47:25.000Z | 2021-06-04T15:47:25.000Z | src/charmap.asm | Q-Bert-Reynolds/gbedit | d74e7f3527531ae1e4f34df794ba1cd1c5fe2069 | [
"MIT"
] | null | null | null | src/charmap.asm | Q-Bert-Reynolds/gbedit | d74e7f3527531ae1e4f34df794ba1cd1c5fe2069 | [
"MIT"
] | null | null | null | NEWCHARMAP baseball
charmap "ℙ", 1 ; pitcher
charmap "ℂ", 2 ; catcher
charmap "¹", 3 ; first
charmap "²", 4 ; second
charmap "³", 5 ; third
charmap "ş", 6 ; short
charmap "ļ", 7 ; left
charmap "ç", 8 ; center
charmap "ŗ", 9 ; right
charmap "◌", 10
charmap "⚾", 11
charmap "ț", 15 ; to
charmap "ᚠ", 16 ; age
charmap "↵", 30 ; end/return
charmap "é", 127
| 20.823529 | 28 | 0.624294 |
ba53347b0b83abfd02911d13fb87670f85934eff | 75 | asm | Assembly | data/maps/headers/PokemonTower6F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/maps/headers/PokemonTower6F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/maps/headers/PokemonTower6F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null |
map_header PokemonTower6F, POKEMON_TOWER_6F, CEMETERY, 0
end_map_header
| 18.75 | 57 | 0.84 |
2e2c990dec2346a46d203c546df34fb64622d5bc | 707 | asm | Assembly | windows-x64/adler32.asm | mazoti/adler32 | a7d27786344277a6fe589ba98c0210d96c88fc8e | [
"BSD-3-Clause"
] | null | null | null | windows-x64/adler32.asm | mazoti/adler32 | a7d27786344277a6fe589ba98c0210d96c88fc8e | [
"BSD-3-Clause"
] | null | null | null | windows-x64/adler32.asm | mazoti/adler32 | a7d27786344277a6fe589ba98c0210d96c88fc8e | [
"BSD-3-Clause"
] | null | null | null | ; int adler32(char* buffer, int len);
global adler32
section .text
adler32:
test rdx,rdx ; check for empty buffer
jnz continue
mov rax,1
ret
continue:
mov rsi,rcx ; rsi == end buffer address
add rsi,rdx ; rax == adler32 final value
; rcx == start buffer address
mov r8,1 ; s1 == r8d
xor r9,r9 ; s2 == r9d
mov edi,65521 ; MOD_ADLER
process_buffer:
movzx rax,byte [rcx]
add eax,r8d
xor rdx,rdx
div edi
mov r8d,edx
add r9d,edx
mov eax,r9d
xor rdx,rdx
div edi
mov r9d,edx
inc rcx
cmp rcx,rsi
jl process_buffer
shl r9d,16
add r8d,r9d
mov rax,r8
ret
| 15.711111 | 54 | 0.564356 |
992102d75364947585785c1143e3d2546c9a9b58 | 48,938 | asm | Assembly | P6/data_P6/testpoint/testpoint51.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/testpoint/testpoint51.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6/testpoint/testpoint51.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | ori $1, $0, 0
ori $2, $0, 13
ori $3, $0, 6
ori $4, $0, 14
sw $2, 0($0)
sw $4, 4($0)
sw $1, 8($0)
sw $3, 12($0)
sw $3, 16($0)
sw $3, 20($0)
sw $1, 24($0)
sw $3, 28($0)
sw $4, 32($0)
sw $2, 36($0)
sw $4, 40($0)
sw $2, 44($0)
sw $1, 48($0)
sw $4, 52($0)
sw $2, 56($0)
sw $1, 60($0)
sw $3, 64($0)
sw $4, 68($0)
sw $4, 72($0)
sw $4, 76($0)
sw $3, 80($0)
sw $1, 84($0)
sw $4, 88($0)
sw $2, 92($0)
sw $2, 96($0)
sw $4, 100($0)
sw $2, 104($0)
sw $4, 108($0)
sw $3, 112($0)
sw $1, 116($0)
sw $3, 120($0)
sw $2, 124($0)
divu $2, $2
lui $1, 6
lb $2, 0($2)
bne $1, $2, TAG1
TAG1:
lh $1, 0($2)
sltu $2, $2, $1
srl $1, $2, 1
mult $2, $2
TAG2:
slt $2, $1, $1
lh $4, 0($2)
mtlo $2
mfhi $1
TAG3:
beq $1, $1, TAG4
mflo $2
slti $1, $1, 13
sh $2, 0($1)
TAG4:
multu $1, $1
lui $3, 7
mtlo $1
bltz $3, TAG5
TAG5:
mthi $3
or $1, $3, $3
mfhi $4
sltiu $1, $1, 3
TAG6:
sb $1, 0($1)
bgez $1, TAG7
lui $1, 12
lw $1, 0($1)
TAG7:
sll $0, $0, 0
lui $1, 10
subu $4, $1, $1
bgtz $1, TAG8
TAG8:
sh $4, 0($4)
bne $4, $4, TAG9
lui $3, 15
sll $0, $0, 0
TAG9:
mtlo $3
beq $3, $3, TAG10
sll $0, $0, 0
mfhi $2
TAG10:
mflo $4
lw $2, 0($2)
srlv $4, $2, $2
bgtz $2, TAG11
TAG11:
lui $1, 5
xor $2, $4, $1
mtlo $2
nor $3, $1, $1
TAG12:
sll $0, $0, 0
mfhi $1
bltz $1, TAG13
multu $1, $3
TAG13:
addu $2, $1, $1
lui $1, 2
mfhi $2
mthi $2
TAG14:
sll $0, $0, 0
bne $2, $2, TAG15
sll $0, $0, 0
bgtz $2, TAG15
TAG15:
sll $0, $0, 0
addiu $1, $2, 8
mthi $1
bgez $1, TAG16
TAG16:
srav $4, $1, $1
bgez $4, TAG17
lui $4, 0
xori $4, $1, 11
TAG17:
multu $4, $4
blez $4, TAG18
sw $4, 0($4)
sh $4, 0($4)
TAG18:
mtlo $4
lui $1, 7
sb $4, 0($4)
mtlo $4
TAG19:
sll $0, $0, 0
blez $1, TAG20
divu $1, $1
nor $3, $3, $1
TAG20:
mtlo $3
multu $3, $3
mthi $3
xor $4, $3, $3
TAG21:
beq $4, $4, TAG22
add $1, $4, $4
div $4, $4
lbu $3, 0($4)
TAG22:
andi $4, $3, 10
sltiu $1, $4, 13
mtlo $1
sb $1, 0($1)
TAG23:
srav $1, $1, $1
blez $1, TAG24
addu $2, $1, $1
mthi $1
TAG24:
blez $2, TAG25
mtlo $2
bne $2, $2, TAG25
lh $2, 0($2)
TAG25:
blez $2, TAG26
lui $4, 2
mtlo $4
mfhi $1
TAG26:
lui $4, 10
beq $4, $1, TAG27
sh $4, 0($1)
blez $1, TAG27
TAG27:
div $4, $4
nor $2, $4, $4
divu $4, $4
sll $0, $0, 0
TAG28:
sh $1, 0($1)
multu $1, $1
addiu $3, $1, 3
slti $4, $3, 7
TAG29:
mflo $4
blez $4, TAG30
sh $4, 0($4)
ori $4, $4, 3
TAG30:
lh $1, 0($4)
mtlo $1
lui $1, 1
bltz $1, TAG31
TAG31:
sll $0, $0, 0
bltz $1, TAG32
mthi $1
mflo $1
TAG32:
mult $1, $1
mtlo $1
slt $2, $1, $1
mthi $2
TAG33:
mthi $2
beq $2, $2, TAG34
lui $1, 0
lui $2, 5
TAG34:
xor $1, $2, $2
mflo $3
sw $2, 0($2)
sb $1, 0($3)
TAG35:
bne $3, $3, TAG36
sb $3, 0($3)
add $2, $3, $3
multu $2, $2
TAG36:
sra $3, $2, 15
blez $3, TAG37
and $1, $2, $3
sra $2, $3, 13
TAG37:
mult $2, $2
sb $2, 0($2)
blez $2, TAG38
mthi $2
TAG38:
lh $1, 0($2)
lui $2, 15
mfhi $1
mflo $4
TAG39:
lui $3, 10
nor $3, $3, $3
bne $3, $4, TAG40
sltu $3, $4, $3
TAG40:
div $3, $3
beq $3, $3, TAG41
sb $3, 0($3)
lb $2, 0($3)
TAG41:
mfhi $4
blez $4, TAG42
mthi $2
beq $2, $2, TAG42
TAG42:
lbu $1, 0($4)
sra $1, $4, 11
mtlo $1
mtlo $4
TAG43:
lh $3, 0($1)
bltz $3, TAG44
mthi $1
sw $3, -256($3)
TAG44:
beq $3, $3, TAG45
lui $4, 15
sub $1, $3, $4
srlv $3, $4, $1
TAG45:
sll $0, $0, 0
mthi $3
sw $3, -256($3)
beq $3, $3, TAG46
TAG46:
multu $3, $3
sw $3, -256($3)
bne $3, $3, TAG47
mthi $3
TAG47:
div $3, $3
mthi $3
bne $3, $3, TAG48
mfhi $3
TAG48:
div $3, $3
bne $3, $3, TAG49
sw $3, -256($3)
mtlo $3
TAG49:
sw $3, -256($3)
bne $3, $3, TAG50
lui $3, 3
sll $0, $0, 0
TAG50:
mthi $2
sll $0, $0, 0
mthi $2
lui $2, 7
TAG51:
bgez $2, TAG52
sll $0, $0, 0
addiu $1, $2, 3
addiu $1, $1, 13
TAG52:
sw $1, 0($1)
addiu $2, $1, 3
lw $1, 0($1)
beq $1, $1, TAG53
TAG53:
lui $2, 14
mult $1, $2
lh $4, 0($1)
bgez $1, TAG54
TAG54:
addu $4, $4, $4
multu $4, $4
mult $4, $4
add $2, $4, $4
TAG55:
sltu $3, $2, $2
sllv $3, $2, $2
lhu $3, 0($2)
bltz $3, TAG56
TAG56:
sb $3, 0($3)
mult $3, $3
lui $1, 5
lui $3, 4
TAG57:
sll $4, $3, 15
lui $4, 0
sh $4, 0($4)
mtlo $4
TAG58:
lui $4, 15
srl $4, $4, 9
lui $4, 10
mflo $1
TAG59:
bltz $1, TAG60
and $3, $1, $1
lw $1, 0($1)
bne $1, $1, TAG60
TAG60:
mflo $1
beq $1, $1, TAG61
sb $1, 0($1)
divu $1, $1
TAG61:
lh $4, 0($1)
multu $4, $4
sw $1, 0($1)
lbu $1, 0($4)
TAG62:
mthi $1
addi $4, $1, 13
and $4, $4, $1
bgez $4, TAG63
TAG63:
srl $4, $4, 1
mflo $3
multu $3, $4
mult $4, $4
TAG64:
blez $3, TAG65
add $2, $3, $3
bgtz $2, TAG65
multu $3, $3
TAG65:
mult $2, $2
lui $2, 10
sll $0, $0, 0
sll $0, $0, 0
TAG66:
lui $2, 0
mtlo $2
beq $2, $2, TAG67
sb $2, 0($2)
TAG67:
lb $4, 0($2)
lui $3, 3
sll $0, $0, 0
mfhi $1
TAG68:
bne $1, $1, TAG69
mthi $1
lbu $2, 0($1)
blez $2, TAG69
TAG69:
srav $2, $2, $2
lw $2, 0($2)
bgez $2, TAG70
lui $2, 0
TAG70:
mult $2, $2
lui $1, 9
bgez $1, TAG71
mtlo $2
TAG71:
bgtz $1, TAG72
addiu $4, $1, 14
sw $1, 0($1)
sll $3, $1, 6
TAG72:
srl $4, $3, 15
lhu $4, 0($4)
sll $3, $4, 2
xor $1, $3, $3
TAG73:
blez $1, TAG74
lui $3, 15
sb $3, 0($3)
sra $1, $1, 8
TAG74:
sh $1, 0($1)
bgtz $1, TAG75
sb $1, 0($1)
mtlo $1
TAG75:
xor $2, $1, $1
lui $4, 8
mflo $1
bgtz $1, TAG76
TAG76:
mflo $1
sltiu $1, $1, 11
mfhi $3
lbu $4, 0($1)
TAG77:
multu $4, $4
mult $4, $4
mfhi $4
blez $4, TAG78
TAG78:
mtlo $4
sra $3, $4, 11
lhu $3, 0($4)
sb $3, 0($4)
TAG79:
bne $3, $3, TAG80
and $1, $3, $3
lui $3, 6
srl $3, $3, 2
TAG80:
sll $2, $3, 4
mult $3, $2
sltu $1, $2, $3
divu $2, $2
TAG81:
sltu $3, $1, $1
slti $4, $1, 11
mult $1, $1
sltu $4, $3, $3
TAG82:
mtlo $4
beq $4, $4, TAG83
sb $4, 0($4)
andi $1, $4, 14
TAG83:
lui $4, 6
mult $4, $1
mthi $4
lui $1, 8
TAG84:
bne $1, $1, TAG85
lui $4, 12
lui $3, 5
mult $1, $1
TAG85:
mthi $3
lui $1, 13
bgtz $1, TAG86
andi $4, $3, 7
TAG86:
mflo $1
sw $1, 0($1)
lw $3, 0($4)
bne $3, $1, TAG87
TAG87:
or $2, $3, $3
mtlo $3
bgtz $3, TAG88
lui $4, 7
TAG88:
divu $4, $4
mult $4, $4
mfhi $2
div $4, $4
TAG89:
addiu $1, $2, 4
mtlo $2
sb $2, 0($2)
subu $2, $2, $2
TAG90:
sb $2, 0($2)
sb $2, 0($2)
lb $1, 0($2)
ori $4, $2, 5
TAG91:
bltz $4, TAG92
slt $1, $4, $4
mfhi $1
mtlo $1
TAG92:
mfhi $4
sb $4, 0($4)
lb $3, 0($1)
sll $4, $3, 3
TAG93:
lui $4, 0
srlv $3, $4, $4
bne $4, $4, TAG94
xori $4, $3, 0
TAG94:
mflo $2
or $3, $4, $2
lui $4, 14
mflo $3
TAG95:
bgtz $3, TAG96
sw $3, 0($3)
bgtz $3, TAG96
sra $2, $3, 9
TAG96:
lb $2, 0($2)
mfhi $4
bne $2, $2, TAG97
sltiu $4, $4, 9
TAG97:
beq $4, $4, TAG98
lb $4, 0($4)
sh $4, 0($4)
andi $1, $4, 8
TAG98:
addi $3, $1, 2
lh $1, 0($1)
mult $1, $1
sb $3, 0($1)
TAG99:
mtlo $1
ori $1, $1, 8
nor $2, $1, $1
bne $1, $1, TAG100
TAG100:
srav $2, $2, $2
sb $2, 1($2)
mtlo $2
lui $3, 10
TAG101:
mtlo $3
bne $3, $3, TAG102
lui $1, 10
bgez $3, TAG102
TAG102:
multu $1, $1
bgez $1, TAG103
sll $0, $0, 0
lui $4, 6
TAG103:
bltz $4, TAG104
nor $2, $4, $4
lui $3, 0
sll $1, $4, 9
TAG104:
slt $4, $1, $1
ori $1, $1, 4
div $1, $1
mult $4, $1
TAG105:
xori $2, $1, 3
srav $3, $2, $2
mthi $3
sh $2, 0($3)
TAG106:
lui $3, 2
mtlo $3
sll $0, $0, 0
mthi $3
TAG107:
sw $4, 0($4)
addiu $2, $4, 12
slt $1, $2, $4
beq $4, $4, TAG108
TAG108:
xori $3, $1, 8
slt $2, $1, $1
mult $1, $2
lui $2, 1
TAG109:
bne $2, $2, TAG110
sll $0, $0, 0
mult $2, $2
sll $0, $0, 0
TAG110:
bgtz $4, TAG111
sb $4, 0($4)
bltz $4, TAG111
addu $4, $4, $4
TAG111:
mflo $4
sltu $4, $4, $4
mtlo $4
multu $4, $4
TAG112:
mthi $4
mtlo $4
lui $4, 9
addu $2, $4, $4
TAG113:
mthi $2
beq $2, $2, TAG114
lui $2, 10
sub $2, $2, $2
TAG114:
div $2, $2
beq $2, $2, TAG115
mflo $2
sh $2, 0($2)
TAG115:
mfhi $4
nor $1, $4, $4
lhu $1, 0($4)
bne $1, $1, TAG116
TAG116:
mult $1, $1
mthi $1
lb $1, 0($1)
blez $1, TAG117
TAG117:
mult $1, $1
nor $1, $1, $1
mtlo $1
lhu $3, 1($1)
TAG118:
mflo $1
sh $3, 0($3)
lui $4, 1
mult $4, $4
TAG119:
divu $4, $4
mult $4, $4
xori $1, $4, 4
mthi $1
TAG120:
sll $0, $0, 0
ori $4, $1, 1
lui $4, 10
slt $1, $3, $1
TAG121:
div $1, $1
bne $1, $1, TAG122
xori $2, $1, 4
mtlo $2
TAG122:
mthi $2
bne $2, $2, TAG123
addiu $4, $2, 2
sra $1, $2, 9
TAG123:
mthi $1
beq $1, $1, TAG124
mflo $3
subu $2, $3, $3
TAG124:
subu $3, $2, $2
mthi $3
addu $1, $2, $2
lui $3, 13
TAG125:
divu $3, $3
sllv $1, $3, $3
bne $3, $3, TAG126
mult $1, $3
TAG126:
mflo $4
sltiu $1, $1, 14
srav $1, $4, $1
addi $2, $1, 1
TAG127:
lbu $1, 0($2)
lbu $2, 0($1)
srlv $1, $1, $2
bne $2, $1, TAG128
TAG128:
lui $3, 1
sw $3, 0($1)
mfhi $2
beq $1, $3, TAG129
TAG129:
sh $2, -169($2)
mthi $2
bne $2, $2, TAG130
lui $2, 8
TAG130:
bltz $2, TAG131
sll $0, $0, 0
xor $4, $4, $2
nor $1, $4, $2
TAG131:
mthi $1
beq $1, $1, TAG132
mtlo $1
srlv $4, $1, $1
TAG132:
mfhi $1
beq $4, $4, TAG133
sll $0, $0, 0
sllv $1, $1, $4
TAG133:
bgtz $1, TAG134
slti $3, $1, 4
bltz $1, TAG134
lui $2, 14
TAG134:
subu $3, $2, $2
mfhi $3
lui $2, 12
bgez $3, TAG135
TAG135:
or $3, $2, $2
sll $0, $0, 0
addiu $3, $3, 13
mtlo $3
TAG136:
bne $3, $3, TAG137
sll $0, $0, 0
lui $3, 4
bgtz $3, TAG137
TAG137:
lui $3, 14
sll $0, $0, 0
sll $0, $0, 0
mthi $3
TAG138:
div $3, $3
lui $1, 5
sll $0, $0, 0
mtlo $3
TAG139:
mfhi $4
divu $4, $3
srlv $3, $4, $4
nor $2, $3, $4
TAG140:
sll $0, $0, 0
nor $4, $2, $2
mflo $1
lw $3, 1($2)
TAG141:
mthi $3
addu $2, $3, $3
sll $0, $0, 0
bgtz $4, TAG142
TAG142:
lui $3, 3
lb $4, 0($4)
divu $4, $3
nor $1, $4, $4
TAG143:
lhu $4, 0($1)
div $4, $1
mthi $1
mfhi $4
TAG144:
lbu $4, 0($4)
mfhi $2
mtlo $4
multu $4, $4
TAG145:
sb $2, 0($2)
mthi $2
mtlo $2
sh $2, 0($2)
TAG146:
mtlo $2
sh $2, 0($2)
slti $3, $2, 7
sll $2, $2, 2
TAG147:
mtlo $2
or $4, $2, $2
lhu $1, -344($2)
mtlo $1
TAG148:
multu $1, $1
lw $1, -169($1)
sll $0, $0, 0
bgtz $1, TAG149
TAG149:
sll $0, $0, 0
beq $1, $1, TAG150
lui $4, 8
sltu $4, $2, $1
TAG150:
nor $4, $4, $4
slti $1, $4, 13
sb $4, 0($1)
lui $2, 1
TAG151:
mult $2, $2
sll $0, $0, 0
addiu $2, $2, 0
lui $4, 12
TAG152:
mthi $4
mtlo $4
mfhi $4
mfhi $3
TAG153:
sllv $4, $3, $3
multu $4, $4
sll $0, $0, 0
mfhi $3
TAG154:
srlv $2, $3, $3
sra $2, $3, 3
mthi $2
lui $1, 0
TAG155:
andi $1, $1, 15
multu $1, $1
lb $1, 0($1)
sb $1, 87($1)
TAG156:
sltiu $1, $1, 1
bgtz $1, TAG157
addu $3, $1, $1
xor $2, $1, $1
TAG157:
addu $2, $2, $2
mult $2, $2
sltiu $4, $2, 10
mthi $2
TAG158:
div $4, $4
mflo $4
lb $1, 0($4)
slti $1, $1, 8
TAG159:
slti $4, $1, 2
srlv $3, $1, $4
sh $1, 0($3)
beq $4, $1, TAG160
TAG160:
sb $3, 0($3)
addu $3, $3, $3
blez $3, TAG161
mtlo $3
TAG161:
mult $3, $3
bltz $3, TAG162
addu $2, $3, $3
mthi $2
TAG162:
mthi $2
beq $2, $2, TAG163
lb $4, 0($2)
sh $4, 0($2)
TAG163:
sub $2, $4, $4
mflo $4
subu $3, $2, $4
bgtz $4, TAG164
TAG164:
lui $3, 15
lui $2, 12
sll $0, $0, 0
sll $0, $0, 0
TAG165:
lui $3, 4
sll $0, $0, 0
sll $0, $0, 0
mfhi $4
TAG166:
sh $4, 0($4)
addi $4, $4, 4
mflo $1
mflo $3
TAG167:
beq $3, $3, TAG168
lui $2, 10
multu $3, $3
bgtz $3, TAG168
TAG168:
nor $2, $2, $2
beq $2, $2, TAG169
mflo $4
srav $1, $4, $4
TAG169:
sh $1, 0($1)
lui $1, 12
beq $1, $1, TAG170
sll $0, $0, 0
TAG170:
div $1, $1
mtlo $1
mtlo $1
addu $4, $1, $1
TAG171:
sll $0, $0, 0
nor $4, $4, $3
sw $3, 0($3)
mult $3, $3
TAG172:
lui $2, 4
sll $0, $0, 0
sll $0, $0, 0
lui $3, 1
TAG173:
subu $3, $3, $3
mflo $1
sw $3, 0($1)
bne $1, $3, TAG174
TAG174:
subu $4, $1, $1
beq $4, $4, TAG175
srl $4, $1, 2
lui $2, 11
TAG175:
bgtz $2, TAG176
multu $2, $2
sh $2, 0($2)
sw $2, 0($2)
TAG176:
mtlo $2
mfhi $4
lui $4, 0
mflo $3
TAG177:
divu $3, $3
mflo $2
beq $3, $2, TAG178
mtlo $2
TAG178:
sb $2, 0($2)
mfhi $3
sb $3, 0($2)
lui $4, 2
TAG179:
bgtz $4, TAG180
sll $0, $0, 0
sllv $1, $1, $4
lhu $1, 0($1)
TAG180:
beq $1, $1, TAG181
ori $1, $1, 2
lh $2, 0($1)
multu $2, $1
TAG181:
beq $2, $2, TAG182
sb $2, 0($2)
sb $2, 0($2)
beq $2, $2, TAG182
TAG182:
mtlo $2
mtlo $2
mult $2, $2
lui $4, 12
TAG183:
divu $4, $4
mflo $3
mfhi $2
bgez $4, TAG184
TAG184:
lbu $2, 0($2)
bltz $2, TAG185
slti $1, $2, 8
multu $2, $2
TAG185:
divu $1, $1
multu $1, $1
sb $1, 0($1)
mthi $1
TAG186:
mfhi $4
mthi $1
xor $3, $1, $4
lui $3, 4
TAG187:
sll $0, $0, 0
beq $3, $2, TAG188
mflo $1
mtlo $2
TAG188:
sb $1, 0($1)
lb $4, 0($1)
lb $4, 0($1)
multu $1, $4
TAG189:
mflo $4
sb $4, 0($4)
mtlo $4
div $4, $4
TAG190:
slti $1, $4, 8
beq $1, $4, TAG191
lui $3, 11
slt $3, $4, $3
TAG191:
sll $0, $0, 0
beq $4, $4, TAG192
lui $4, 9
beq $4, $4, TAG192
TAG192:
ori $3, $4, 5
sll $0, $0, 0
bne $4, $4, TAG193
sltu $1, $3, $3
TAG193:
lui $3, 3
sh $3, 0($1)
bne $3, $3, TAG194
sltiu $1, $1, 0
TAG194:
lui $2, 6
lui $3, 9
blez $1, TAG195
subu $2, $2, $1
TAG195:
lui $4, 10
bgtz $4, TAG196
lui $1, 0
mtlo $1
TAG196:
lui $2, 3
bgtz $2, TAG197
andi $1, $1, 14
sw $1, 0($1)
TAG197:
lui $4, 9
multu $1, $1
lbu $1, 0($1)
lui $1, 8
TAG198:
bne $1, $1, TAG199
div $1, $1
divu $1, $1
mult $1, $1
TAG199:
lui $2, 7
sll $0, $0, 0
blez $2, TAG200
mtlo $2
TAG200:
andi $2, $2, 1
mult $2, $2
and $2, $2, $2
addu $3, $2, $2
TAG201:
bgez $3, TAG202
mthi $3
srav $2, $3, $3
lui $4, 8
TAG202:
mthi $4
divu $4, $4
lui $1, 3
srl $3, $4, 9
TAG203:
mflo $3
lbu $3, 0($3)
addiu $1, $3, 0
bgtz $3, TAG204
TAG204:
mfhi $3
mult $3, $1
lui $1, 13
mthi $3
TAG205:
ori $3, $1, 7
bltz $1, TAG206
sll $0, $0, 0
bgez $1, TAG206
TAG206:
sll $0, $0, 0
sll $0, $0, 0
mthi $3
sll $0, $0, 0
TAG207:
srlv $4, $3, $3
mfhi $4
sll $0, $0, 0
subu $4, $2, $4
TAG208:
sll $0, $0, 0
ori $1, $4, 0
sll $0, $0, 0
blez $3, TAG209
TAG209:
mflo $4
addu $4, $3, $4
bgez $4, TAG210
sll $0, $0, 0
TAG210:
sb $2, 0($2)
mtlo $2
bltz $2, TAG211
mtlo $2
TAG211:
bne $2, $2, TAG212
lw $2, 0($2)
sb $2, 0($2)
mfhi $3
TAG212:
div $3, $3
sll $0, $0, 0
blez $3, TAG213
sll $0, $0, 0
TAG213:
sll $0, $0, 0
sll $4, $1, 14
mfhi $1
sll $0, $0, 0
TAG214:
divu $3, $3
slt $3, $3, $3
bgtz $3, TAG215
sb $3, 0($3)
TAG215:
addiu $3, $3, 4
bgez $3, TAG216
mtlo $3
sub $3, $3, $3
TAG216:
mflo $2
sh $3, 0($2)
bne $2, $2, TAG217
addiu $3, $2, 0
TAG217:
bgez $3, TAG218
lw $2, 0($3)
lui $3, 8
div $2, $3
TAG218:
sb $3, 0($3)
bgez $3, TAG219
lw $3, 0($3)
addiu $4, $3, 14
TAG219:
lui $4, 11
lui $1, 2
lui $3, 14
sll $0, $0, 0
TAG220:
ori $3, $3, 10
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
TAG221:
beq $2, $2, TAG222
lui $4, 2
addi $1, $2, 5
add $3, $1, $1
TAG222:
sltiu $1, $3, 15
xori $2, $1, 13
mflo $2
sllv $2, $2, $3
TAG223:
sll $3, $2, 14
mthi $2
mult $3, $3
addiu $4, $2, 4
TAG224:
sw $4, -4100($4)
lui $4, 13
mflo $3
mult $3, $3
TAG225:
mthi $3
multu $3, $3
multu $3, $3
mfhi $3
TAG226:
lb $2, 0($3)
sb $2, 0($3)
lui $1, 15
mthi $3
TAG227:
and $1, $1, $1
nor $3, $1, $1
mult $1, $3
mfhi $2
TAG228:
addu $2, $2, $2
mthi $2
sltiu $4, $2, 6
mthi $4
TAG229:
mthi $4
or $2, $4, $4
lw $3, 0($2)
mtlo $4
TAG230:
mtlo $3
lui $4, 6
addiu $1, $4, 14
mult $1, $4
TAG231:
mfhi $1
mthi $1
mflo $3
bgez $1, TAG232
TAG232:
sll $0, $0, 0
blez $3, TAG233
subu $2, $3, $3
sw $3, 0($2)
TAG233:
mthi $2
mflo $2
sll $0, $0, 0
mthi $2
TAG234:
beq $4, $4, TAG235
div $4, $4
lui $4, 4
mfhi $4
TAG235:
subu $1, $4, $4
lui $4, 6
sll $1, $4, 6
beq $4, $1, TAG236
TAG236:
sll $0, $0, 0
xori $1, $1, 15
mult $1, $1
mtlo $1
TAG237:
mfhi $4
srl $2, $4, 11
subu $2, $1, $2
bne $2, $2, TAG238
TAG238:
sltu $4, $2, $2
blez $4, TAG239
mflo $2
lui $3, 10
TAG239:
lui $2, 0
bgtz $3, TAG240
lui $3, 5
addiu $3, $3, 5
TAG240:
lui $3, 2
bne $3, $3, TAG241
mult $3, $3
sll $0, $0, 0
TAG241:
mfhi $4
mtlo $4
lui $4, 0
lh $1, 0($4)
TAG242:
bgez $1, TAG243
sb $1, 0($1)
addi $4, $1, 10
beq $4, $4, TAG243
TAG243:
ori $1, $4, 3
nor $1, $4, $1
mfhi $2
multu $1, $2
TAG244:
lui $4, 4
lbu $3, 0($2)
lui $3, 12
sll $0, $0, 0
TAG245:
beq $3, $3, TAG246
mthi $3
divu $3, $3
addi $4, $3, 9
TAG246:
srav $2, $4, $4
srl $4, $2, 7
mthi $2
lui $3, 2
TAG247:
mtlo $3
divu $3, $3
bne $3, $3, TAG248
divu $3, $3
TAG248:
lui $4, 6
mtlo $3
mtlo $3
lui $3, 14
TAG249:
sll $0, $0, 0
srlv $2, $3, $3
beq $3, $3, TAG250
lui $3, 12
TAG250:
nor $1, $3, $3
mfhi $4
mthi $1
blez $4, TAG251
TAG251:
mflo $3
sb $4, 0($4)
add $2, $4, $4
sll $0, $0, 0
TAG252:
lb $1, 0($2)
mflo $3
lui $2, 13
mflo $2
TAG253:
bne $2, $2, TAG254
mfhi $2
sll $0, $0, 0
mfhi $4
TAG254:
bgez $4, TAG255
multu $4, $4
and $3, $4, $4
sll $0, $0, 0
TAG255:
mult $4, $4
sll $0, $0, 0
xori $2, $4, 10
sll $4, $2, 3
TAG256:
mfhi $4
sw $4, -144($4)
mflo $2
bgez $2, TAG257
TAG257:
mfhi $4
bgtz $2, TAG258
mult $4, $4
slti $1, $2, 3
TAG258:
sll $4, $1, 7
xori $2, $4, 1
lhu $4, 0($1)
ori $3, $4, 10
TAG259:
xor $1, $3, $3
mflo $2
subu $2, $1, $1
mtlo $2
TAG260:
blez $2, TAG261
mtlo $2
lui $3, 6
divu $2, $3
TAG261:
addiu $2, $3, 8
sllv $1, $3, $3
lh $1, -154($3)
lui $4, 15
TAG262:
divu $4, $4
mthi $4
bne $4, $4, TAG263
mfhi $3
TAG263:
mthi $3
sll $0, $0, 0
blez $3, TAG264
xori $1, $2, 10
TAG264:
sltu $1, $1, $1
mthi $1
xor $2, $1, $1
lui $3, 10
TAG265:
slti $4, $3, 10
mtlo $3
mtlo $3
div $3, $3
TAG266:
multu $4, $4
bgtz $4, TAG267
addiu $1, $4, 5
mflo $3
TAG267:
sh $3, 0($3)
beq $3, $3, TAG268
srlv $3, $3, $3
addi $2, $3, 14
TAG268:
mtlo $2
mfhi $4
sw $2, 0($2)
bltz $4, TAG269
TAG269:
mtlo $4
multu $4, $4
mtlo $4
sltu $3, $4, $4
TAG270:
mflo $3
bne $3, $3, TAG271
sh $3, 0($3)
mfhi $4
TAG271:
srav $1, $4, $4
lui $1, 0
multu $4, $1
beq $1, $1, TAG272
TAG272:
sh $1, 0($1)
bne $1, $1, TAG273
sltiu $3, $1, 8
multu $1, $1
TAG273:
divu $3, $3
mflo $3
sb $3, 0($3)
ori $4, $3, 1
TAG274:
mthi $4
mfhi $1
mfhi $3
subu $1, $3, $4
TAG275:
mflo $2
bgtz $2, TAG276
ori $1, $2, 13
mfhi $2
TAG276:
mflo $2
sb $2, 0($2)
beq $2, $2, TAG277
sb $2, 0($2)
TAG277:
sb $2, 0($2)
sllv $2, $2, $2
mtlo $2
lui $2, 2
TAG278:
bltz $2, TAG279
sll $0, $0, 0
srav $3, $2, $1
ori $3, $1, 14
TAG279:
mfhi $3
lb $4, 0($3)
sll $4, $3, 6
lui $3, 0
TAG280:
mfhi $1
lbu $1, 0($1)
blez $1, TAG281
or $3, $1, $3
TAG281:
andi $3, $3, 13
xor $3, $3, $3
mult $3, $3
lui $1, 9
TAG282:
blez $1, TAG283
sll $0, $0, 0
subu $3, $1, $1
lui $1, 3
TAG283:
blez $1, TAG284
lui $2, 3
sll $0, $0, 0
blez $1, TAG284
TAG284:
addu $2, $1, $1
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
TAG285:
mflo $3
mult $2, $3
sll $0, $0, 0
addu $3, $2, $3
TAG286:
beq $3, $3, TAG287
lui $2, 13
bne $2, $2, TAG287
mflo $1
TAG287:
mflo $1
mult $1, $1
ori $2, $1, 7
andi $2, $1, 13
TAG288:
mflo $2
sra $2, $2, 4
bgez $2, TAG289
multu $2, $2
TAG289:
bne $2, $2, TAG290
addiu $3, $2, 8
srav $1, $3, $2
bgez $2, TAG290
TAG290:
sltu $4, $1, $1
bgez $4, TAG291
mult $4, $1
beq $4, $4, TAG291
TAG291:
mult $4, $4
lui $1, 8
mtlo $4
mfhi $1
TAG292:
mthi $1
mtlo $1
mult $1, $1
add $4, $1, $1
TAG293:
mtlo $4
lui $3, 11
mtlo $3
lb $4, 0($4)
TAG294:
lw $2, 0($4)
divu $2, $2
xor $1, $2, $4
sb $2, -256($2)
TAG295:
lui $4, 11
mflo $3
mfhi $2
sb $3, 0($3)
TAG296:
bne $2, $2, TAG297
sub $1, $2, $2
addiu $3, $1, 11
blez $2, TAG297
TAG297:
mult $3, $3
mflo $2
lb $2, 0($2)
srlv $2, $2, $3
TAG298:
sw $2, 0($2)
xor $3, $2, $2
mult $2, $3
multu $2, $2
TAG299:
mult $3, $3
sltiu $2, $3, 12
beq $3, $3, TAG300
lui $2, 5
TAG300:
sll $0, $0, 0
mult $2, $2
sll $0, $0, 0
sll $0, $0, 0
TAG301:
mult $2, $2
sll $0, $0, 0
divu $2, $2
sllv $3, $2, $2
TAG302:
sll $0, $0, 0
sra $3, $1, 13
bgez $3, TAG303
lbu $3, 0($1)
TAG303:
sra $3, $3, 12
lui $3, 7
addu $4, $3, $3
mflo $3
TAG304:
slt $3, $3, $3
beq $3, $3, TAG305
mflo $1
blez $1, TAG305
TAG305:
srav $1, $1, $1
sw $1, 0($1)
sll $4, $1, 2
lbu $1, 0($4)
TAG306:
bgtz $1, TAG307
sra $1, $1, 14
mult $1, $1
xor $2, $1, $1
TAG307:
bgez $2, TAG308
sw $2, 0($2)
blez $2, TAG308
lui $1, 0
TAG308:
sh $1, 0($1)
add $4, $1, $1
sltiu $2, $1, 13
srlv $1, $2, $1
TAG309:
lbu $1, 0($1)
andi $1, $1, 3
mfhi $2
lui $4, 8
TAG310:
mfhi $3
mult $3, $4
sll $0, $0, 0
blez $4, TAG311
TAG311:
sllv $2, $1, $1
multu $2, $2
mfhi $4
sll $1, $4, 11
TAG312:
bgtz $1, TAG313
lui $4, 0
srl $1, $4, 8
lui $1, 6
TAG313:
subu $3, $1, $1
mflo $1
multu $1, $3
mult $1, $1
TAG314:
bgez $1, TAG315
lh $2, 0($1)
subu $3, $1, $2
ori $1, $1, 4
TAG315:
beq $1, $1, TAG316
mflo $4
sltiu $4, $1, 11
lb $2, 0($4)
TAG316:
mthi $2
sub $2, $2, $2
beq $2, $2, TAG317
xor $2, $2, $2
TAG317:
mtlo $2
or $3, $2, $2
mflo $1
multu $3, $1
TAG318:
add $2, $1, $1
sh $1, 0($1)
mult $1, $1
mult $1, $2
TAG319:
mthi $2
bne $2, $2, TAG320
mtlo $2
sw $2, 0($2)
TAG320:
mflo $4
sll $2, $2, 3
mtlo $4
bgez $2, TAG321
TAG321:
multu $2, $2
mflo $1
beq $1, $2, TAG322
mtlo $1
TAG322:
mtlo $1
sw $1, 0($1)
ori $1, $1, 5
sb $1, 0($1)
TAG323:
lui $3, 7
lb $2, 0($1)
divu $3, $1
bgtz $3, TAG324
TAG324:
mult $2, $2
addiu $4, $2, 8
mthi $4
lb $2, 0($4)
TAG325:
multu $2, $2
mthi $2
srl $2, $2, 7
beq $2, $2, TAG326
TAG326:
mfhi $3
beq $2, $3, TAG327
lui $4, 12
sllv $1, $2, $3
TAG327:
slti $3, $1, 13
sltiu $2, $3, 1
mtlo $2
lbu $3, 0($3)
TAG328:
sb $3, 0($3)
srlv $1, $3, $3
lbu $1, 0($1)
and $1, $3, $1
TAG329:
mfhi $1
sltu $1, $1, $1
mfhi $1
bne $1, $1, TAG330
TAG330:
mtlo $1
lui $4, 13
bltz $4, TAG331
addiu $2, $1, 12
TAG331:
lui $3, 15
addu $3, $3, $2
xor $3, $3, $3
mult $3, $3
TAG332:
lui $1, 6
mthi $3
lb $2, 0($3)
lhu $4, 0($3)
TAG333:
mult $4, $4
bne $4, $4, TAG334
subu $2, $4, $4
mtlo $4
TAG334:
sb $2, 0($2)
sw $2, 0($2)
sw $2, 0($2)
bgez $2, TAG335
TAG335:
sll $2, $2, 15
lw $3, 0($2)
mult $2, $3
mthi $2
TAG336:
mthi $3
addiu $2, $3, 1
addi $4, $3, 5
lui $2, 11
TAG337:
bgtz $2, TAG338
multu $2, $2
mflo $3
xori $3, $3, 10
TAG338:
andi $4, $3, 7
lui $1, 0
mflo $2
mflo $1
TAG339:
beq $1, $1, TAG340
mtlo $1
mult $1, $1
mult $1, $1
TAG340:
and $3, $1, $1
multu $3, $1
lui $4, 12
mult $4, $4
TAG341:
div $4, $4
addiu $4, $4, 3
bgtz $4, TAG342
srl $3, $4, 5
TAG342:
sll $0, $0, 0
sb $3, -24576($3)
beq $3, $3, TAG343
sb $3, -24576($3)
TAG343:
lui $2, 2
mfhi $1
srav $4, $2, $1
multu $4, $3
TAG344:
sll $0, $0, 0
mthi $4
mthi $4
multu $4, $4
TAG345:
mfhi $4
div $4, $4
bltz $4, TAG346
nor $1, $4, $4
TAG346:
sh $1, 5($1)
and $2, $1, $1
blez $1, TAG347
mult $1, $2
TAG347:
lui $4, 2
xori $4, $4, 3
bgez $4, TAG348
addu $4, $2, $4
TAG348:
mfhi $1
slti $4, $4, 14
sltu $4, $1, $4
lw $2, 0($4)
TAG349:
sll $0, $0, 0
srlv $3, $2, $2
mfhi $3
mtlo $3
TAG350:
lbu $3, 0($3)
sllv $1, $3, $3
andi $1, $1, 12
beq $3, $3, TAG351
TAG351:
mtlo $1
lui $4, 13
divu $1, $4
mthi $1
TAG352:
mflo $3
subu $1, $4, $3
sltiu $3, $1, 1
sll $0, $0, 0
TAG353:
mthi $3
blez $3, TAG354
ori $3, $3, 10
sllv $2, $3, $3
TAG354:
lui $1, 9
beq $2, $1, TAG355
sltu $3, $2, $1
xor $3, $2, $2
TAG355:
lui $4, 1
beq $3, $3, TAG356
mthi $4
mfhi $4
TAG356:
srl $4, $4, 10
sll $1, $4, 7
lbu $1, 0($4)
mflo $1
TAG357:
lui $2, 8
lui $4, 0
slti $1, $2, 10
bne $1, $4, TAG358
TAG358:
sll $2, $1, 12
or $1, $2, $1
bltz $2, TAG359
sh $1, 0($2)
TAG359:
bne $1, $1, TAG360
mthi $1
xor $3, $1, $1
multu $3, $3
TAG360:
mflo $3
mthi $3
sh $3, 0($3)
bltz $3, TAG361
TAG361:
lbu $1, 0($3)
mult $1, $3
mfhi $4
bne $1, $3, TAG362
TAG362:
mtlo $4
mthi $4
sh $4, 0($4)
srlv $1, $4, $4
TAG363:
lui $1, 0
sltiu $4, $1, 7
mflo $1
mult $1, $1
TAG364:
andi $2, $1, 8
bne $1, $2, TAG365
xor $2, $2, $2
addi $1, $2, 9
TAG365:
lbu $1, 0($1)
lui $4, 11
bgez $1, TAG366
srlv $1, $4, $1
TAG366:
mflo $1
lui $3, 9
lb $1, 0($1)
mfhi $4
TAG367:
mflo $3
mult $3, $3
addu $1, $4, $3
mtlo $1
TAG368:
multu $1, $1
lui $1, 8
sll $0, $0, 0
bltz $1, TAG369
TAG369:
div $1, $1
addiu $3, $1, 10
div $3, $3
addiu $3, $3, 11
TAG370:
beq $3, $3, TAG371
mfhi $2
mult $3, $3
mfhi $1
TAG371:
slti $3, $1, 5
bgez $3, TAG372
srlv $1, $3, $3
bltz $3, TAG372
TAG372:
sw $1, 0($1)
lhu $4, 0($1)
beq $1, $4, TAG373
mult $4, $4
TAG373:
srav $2, $4, $4
sb $4, 0($4)
mthi $2
lbu $3, 0($4)
TAG374:
slti $1, $3, 8
mult $1, $1
lui $2, 3
sb $3, 0($1)
TAG375:
bne $2, $2, TAG376
sll $0, $0, 0
divu $2, $2
mfhi $1
TAG376:
multu $1, $1
lui $1, 3
beq $1, $1, TAG377
lui $3, 15
TAG377:
sll $0, $0, 0
sltu $3, $3, $2
lui $4, 0
ori $3, $3, 12
TAG378:
mult $3, $3
sb $3, 0($3)
lh $2, 0($3)
bgez $2, TAG379
TAG379:
ori $3, $2, 1
bltz $2, TAG380
lb $1, 0($2)
divu $3, $1
TAG380:
div $1, $1
sh $1, 0($1)
sw $1, 0($1)
mthi $1
TAG381:
lui $1, 2
sll $0, $0, 0
bne $1, $2, TAG382
sll $0, $0, 0
TAG382:
sw $2, 0($2)
sb $2, 0($2)
bne $2, $2, TAG383
sh $2, 0($2)
TAG383:
lui $4, 1
beq $4, $4, TAG384
mtlo $2
addi $2, $2, 1
TAG384:
mfhi $3
beq $3, $3, TAG385
mfhi $2
bltz $2, TAG385
TAG385:
lui $4, 0
mfhi $2
lui $2, 1
lhu $3, 0($4)
TAG386:
bgez $3, TAG387
mtlo $3
div $3, $3
bne $3, $3, TAG387
TAG387:
mflo $3
lhu $1, 0($3)
mthi $3
lh $1, 0($3)
TAG388:
lh $3, 0($1)
bne $3, $3, TAG389
mult $3, $3
bgez $1, TAG389
TAG389:
addi $4, $3, 1
mtlo $3
mthi $4
and $4, $4, $4
TAG390:
bgtz $4, TAG391
mthi $4
mthi $4
lh $4, 0($4)
TAG391:
bltz $4, TAG392
lbu $3, 0($4)
slt $4, $4, $4
mflo $1
TAG392:
bgez $1, TAG393
lui $4, 9
bgez $4, TAG393
lui $4, 1
TAG393:
mtlo $4
blez $4, TAG394
subu $2, $4, $4
bne $2, $2, TAG394
TAG394:
lui $3, 3
mult $3, $2
lui $2, 14
mfhi $1
TAG395:
sub $1, $1, $1
sltiu $3, $1, 0
mfhi $1
mflo $4
TAG396:
mtlo $4
lw $1, 0($4)
multu $1, $1
beq $4, $4, TAG397
TAG397:
sw $1, 0($1)
lhu $2, 0($1)
lui $3, 0
mtlo $2
TAG398:
lui $4, 10
beq $3, $3, TAG399
mflo $4
sra $3, $4, 9
TAG399:
sw $3, 0($3)
multu $3, $3
sb $3, 0($3)
multu $3, $3
TAG400:
mthi $3
sltiu $1, $3, 7
mult $3, $3
mflo $3
TAG401:
lw $4, 0($3)
mthi $4
mtlo $3
add $3, $3, $4
TAG402:
bgez $3, TAG403
lui $3, 4
beq $3, $3, TAG403
div $3, $3
TAG403:
sllv $1, $3, $3
beq $1, $3, TAG404
addiu $4, $1, 10
div $1, $4
TAG404:
bgez $4, TAG405
lui $2, 13
lui $3, 0
bltz $3, TAG405
TAG405:
sll $0, $0, 0
mtlo $4
sll $0, $0, 0
lui $2, 0
TAG406:
mtlo $2
lh $1, 0($2)
mthi $2
bgtz $2, TAG407
TAG407:
xor $1, $1, $1
ori $4, $1, 8
mflo $4
lbu $2, 0($4)
TAG408:
mtlo $2
slt $1, $2, $2
bne $1, $2, TAG409
mflo $2
TAG409:
bgez $2, TAG410
mthi $2
mtlo $2
multu $2, $2
TAG410:
lh $2, 0($2)
multu $2, $2
bltz $2, TAG411
lui $2, 12
TAG411:
sll $0, $0, 0
blez $2, TAG412
lui $2, 5
mflo $3
TAG412:
lw $4, 0($3)
mult $4, $3
andi $3, $3, 9
mfhi $2
TAG413:
lhu $1, 0($2)
multu $1, $2
sh $1, 0($1)
or $4, $1, $2
TAG414:
lui $4, 3
divu $4, $4
sll $0, $0, 0
srl $3, $4, 6
TAG415:
div $3, $3
mfhi $4
mthi $4
lb $1, -3072($3)
TAG416:
mthi $1
mfhi $1
beq $1, $1, TAG417
multu $1, $1
TAG417:
addiu $2, $1, 9
sw $1, 0($1)
lb $3, 0($1)
addu $1, $1, $1
TAG418:
sll $3, $1, 4
or $3, $1, $3
sh $1, 0($3)
beq $3, $3, TAG419
TAG419:
ori $4, $3, 6
mflo $1
beq $3, $3, TAG420
divu $3, $4
TAG420:
mult $1, $1
lh $1, 0($1)
mult $1, $1
mtlo $1
TAG421:
mthi $1
bgez $1, TAG422
mflo $3
lw $2, 0($3)
TAG422:
beq $2, $2, TAG423
mthi $2
lui $4, 14
mthi $4
TAG423:
addiu $4, $4, 14
bgez $4, TAG424
mthi $4
and $4, $4, $4
TAG424:
mflo $4
sb $4, 0($4)
lh $4, 0($4)
mthi $4
TAG425:
bltz $4, TAG426
mtlo $4
mthi $4
ori $2, $4, 4
TAG426:
sltiu $1, $2, 8
multu $1, $2
mult $2, $1
lb $3, 0($1)
TAG427:
bltz $3, TAG428
slt $2, $3, $3
lui $1, 6
lw $1, 0($2)
TAG428:
lui $4, 5
mfhi $2
lh $2, 0($2)
sb $1, 0($2)
TAG429:
multu $2, $2
lui $1, 1
slti $2, $1, 7
multu $2, $2
TAG430:
sltiu $4, $2, 10
sllv $1, $2, $4
beq $2, $4, TAG431
srlv $3, $2, $1
TAG431:
lui $1, 12
mthi $3
sb $1, 0($3)
lui $2, 4
TAG432:
sra $1, $2, 14
lui $4, 6
bne $4, $2, TAG433
mflo $1
TAG433:
lh $2, 0($1)
blez $2, TAG434
lui $3, 7
mthi $2
TAG434:
sll $0, $0, 0
or $1, $3, $3
lui $1, 6
mflo $2
TAG435:
mflo $3
lb $3, 0($2)
mflo $4
lui $1, 7
TAG436:
lui $1, 7
sll $0, $0, 0
sll $0, $0, 0
sltu $2, $1, $1
TAG437:
sb $2, 0($2)
blez $2, TAG438
slt $3, $2, $2
mflo $2
TAG438:
mflo $3
lbu $4, 0($3)
sub $1, $4, $2
mult $4, $3
TAG439:
sllv $2, $1, $1
multu $1, $2
mfhi $4
lui $1, 15
TAG440:
sll $0, $0, 0
sll $0, $0, 0
mthi $4
mult $4, $4
TAG441:
lbu $2, 0($4)
mult $2, $4
bltz $2, TAG442
sw $4, 0($4)
TAG442:
andi $1, $2, 15
bltz $1, TAG443
lui $4, 6
xori $1, $2, 2
TAG443:
sb $1, 0($1)
mtlo $1
blez $1, TAG444
lhu $4, 0($1)
TAG444:
sh $4, 0($4)
mtlo $4
lhu $1, 0($4)
lui $2, 1
TAG445:
lui $3, 10
lui $2, 12
mtlo $3
lui $4, 1
TAG446:
mflo $4
bne $4, $4, TAG447
srl $4, $4, 15
andi $4, $4, 8
TAG447:
sb $4, 0($4)
bgtz $4, TAG448
xor $4, $4, $4
mult $4, $4
TAG448:
bne $4, $4, TAG449
lui $2, 3
lui $3, 15
mthi $3
TAG449:
lui $2, 9
lui $3, 1
mtlo $2
sll $0, $0, 0
TAG450:
sll $0, $0, 0
sll $0, $0, 0
bltz $3, TAG451
subu $1, $3, $3
TAG451:
sra $2, $1, 8
lhu $4, 0($1)
mflo $1
sb $2, 0($2)
TAG452:
sll $0, $0, 0
addiu $1, $1, 8
lui $1, 12
addiu $1, $1, 7
TAG453:
beq $1, $1, TAG454
slt $2, $1, $1
and $3, $1, $1
mthi $1
TAG454:
sll $0, $0, 0
mtlo $2
bgez $3, TAG455
mthi $3
TAG455:
mfhi $2
sll $0, $0, 0
slti $3, $2, 13
lui $2, 8
TAG456:
lui $2, 15
multu $2, $2
addiu $4, $2, 11
sll $0, $0, 0
TAG457:
sltiu $2, $4, 8
andi $4, $2, 13
beq $4, $2, TAG458
lb $3, 0($4)
TAG458:
ori $3, $3, 7
lui $1, 7
lui $2, 11
bltz $1, TAG459
TAG459:
lui $2, 2
bne $2, $2, TAG460
ori $1, $2, 15
bgtz $2, TAG460
TAG460:
sra $2, $1, 14
divu $2, $1
addiu $1, $2, 4
mflo $1
TAG461:
bltz $1, TAG462
addu $1, $1, $1
sb $1, 0($1)
mtlo $1
TAG462:
andi $1, $1, 2
nor $3, $1, $1
mtlo $1
beq $1, $3, TAG463
TAG463:
sw $3, 1($3)
beq $3, $3, TAG464
divu $3, $3
lui $2, 8
TAG464:
sb $2, 0($2)
sb $2, 0($2)
sllv $2, $2, $2
div $2, $2
TAG465:
slti $4, $2, 7
mflo $4
mtlo $4
mtlo $4
TAG466:
mthi $4
lbu $2, 0($4)
sltu $2, $2, $4
mtlo $2
TAG467:
sw $2, 0($2)
mfhi $3
mfhi $4
and $3, $4, $3
TAG468:
lbu $1, 0($3)
beq $1, $1, TAG469
slti $3, $3, 12
mtlo $3
TAG469:
lui $4, 5
sb $4, 0($3)
mflo $4
divu $4, $3
TAG470:
sltu $2, $4, $4
bne $4, $2, TAG471
slti $3, $2, 10
sltiu $4, $2, 10
TAG471:
subu $3, $4, $4
lb $2, 0($4)
mtlo $3
mult $3, $2
TAG472:
lui $2, 4
mflo $2
srl $2, $2, 3
mflo $1
TAG473:
lhu $1, 0($1)
sllv $1, $1, $1
mtlo $1
mtlo $1
TAG474:
mtlo $1
mflo $2
lui $1, 15
sll $0, $0, 0
TAG475:
addiu $4, $1, 14
sll $0, $0, 0
mthi $4
sll $0, $0, 0
TAG476:
mult $3, $3
sll $2, $3, 8
mult $2, $2
mflo $4
TAG477:
lhu $1, 0($4)
nor $3, $1, $1
beq $3, $4, TAG478
lh $2, 0($4)
TAG478:
add $2, $2, $2
lui $4, 7
mfhi $2
mult $4, $2
TAG479:
mult $2, $2
mthi $2
mflo $2
slt $2, $2, $2
TAG480:
mflo $2
sb $2, 0($2)
lbu $1, 0($2)
sb $2, 0($2)
TAG481:
mflo $2
lh $1, 0($1)
slt $2, $1, $1
bne $2, $1, TAG482
TAG482:
xor $4, $2, $2
lui $1, 2
mflo $3
nor $1, $1, $1
TAG483:
mthi $1
addu $2, $1, $1
mtlo $1
sll $0, $0, 0
TAG484:
ori $4, $1, 7
bne $1, $4, TAG485
sra $3, $4, 1
sll $0, $0, 0
TAG485:
sll $0, $0, 0
andi $3, $3, 13
mflo $4
mfhi $2
TAG486:
sll $0, $0, 0
slti $1, $2, 10
lui $2, 4
mtlo $2
TAG487:
mtlo $2
mflo $4
lui $1, 4
addu $3, $1, $2
TAG488:
addu $2, $3, $3
sllv $1, $3, $2
sll $0, $0, 0
sll $0, $0, 0
TAG489:
sll $0, $0, 0
mflo $3
sll $0, $0, 0
sll $4, $3, 10
TAG490:
andi $3, $4, 7
mflo $2
bgtz $2, TAG491
xor $1, $4, $4
TAG491:
lui $3, 14
sll $0, $0, 0
bltz $1, TAG492
divu $3, $3
TAG492:
sll $0, $0, 0
lui $1, 0
bltz $1, TAG493
mtlo $1
TAG493:
sh $1, 0($1)
mthi $1
mthi $1
and $4, $1, $1
TAG494:
lui $3, 4
mult $3, $3
beq $4, $4, TAG495
multu $3, $4
TAG495:
blez $3, TAG496
mtlo $3
beq $3, $3, TAG496
sll $0, $0, 0
TAG496:
mflo $3
xor $3, $3, $3
xor $2, $3, $3
sb $3, 0($3)
TAG497:
bne $2, $2, TAG498
mtlo $2
bne $2, $2, TAG498
addu $2, $2, $2
TAG498:
mthi $2
beq $2, $2, TAG499
lui $2, 14
mult $2, $2
TAG499:
bgez $2, TAG500
mtlo $2
sb $2, 0($2)
lui $3, 1
TAG500:
sll $1, $3, 13
sb $3, 0($1)
andi $2, $3, 12
sllv $3, $3, $1
TAG501:
sw $3, 0($3)
bgtz $3, TAG502
mult $3, $3
bne $3, $3, TAG502
TAG502:
sb $3, 0($3)
lui $1, 10
multu $3, $3
beq $1, $1, TAG503
TAG503:
multu $1, $1
blez $1, TAG504
mult $1, $1
slti $4, $1, 10
TAG504:
sh $4, 0($4)
mtlo $4
addu $3, $4, $4
bltz $3, TAG505
TAG505:
mfhi $2
addu $2, $2, $2
sw $3, 0($3)
slt $2, $2, $3
TAG506:
mthi $2
lb $1, 0($2)
lhu $2, 0($2)
lh $2, 0($2)
TAG507:
mthi $2
sh $2, 0($2)
lui $1, 7
divu $1, $1
TAG508:
mfhi $2
sll $0, $0, 0
mtlo $2
mtlo $2
TAG509:
lw $2, 0($2)
sub $4, $2, $2
beq $2, $4, TAG510
lhu $1, 0($4)
TAG510:
sb $1, 0($1)
srlv $3, $1, $1
bne $3, $3, TAG511
mtlo $3
TAG511:
bne $3, $3, TAG512
mult $3, $3
lw $1, 0($3)
multu $1, $1
TAG512:
sw $1, 0($1)
and $3, $1, $1
subu $3, $3, $1
bltz $1, TAG513
TAG513:
multu $3, $3
xor $2, $3, $3
sh $2, 0($3)
bne $3, $3, TAG514
TAG514:
mthi $2
blez $2, TAG515
mthi $2
lui $3, 9
TAG515:
sltu $4, $3, $3
mult $3, $3
mfhi $2
mtlo $2
TAG516:
lui $4, 9
mthi $2
andi $3, $4, 8
mtlo $4
TAG517:
sw $3, 0($3)
mflo $4
lui $1, 2
xor $3, $4, $4
TAG518:
lhu $1, 0($3)
sltu $2, $1, $3
lh $1, 0($3)
lw $1, 0($1)
TAG519:
mtlo $1
mult $1, $1
or $2, $1, $1
sllv $2, $1, $1
TAG520:
slt $1, $2, $2
lb $4, 0($1)
blez $4, TAG521
multu $2, $4
TAG521:
mfhi $1
sh $4, 0($1)
srlv $4, $4, $1
lui $4, 4
TAG522:
sll $0, $0, 0
lui $2, 8
mult $4, $4
sra $3, $2, 7
TAG523:
div $3, $3
beq $3, $3, TAG524
div $3, $3
mtlo $3
TAG524:
sb $3, -4096($3)
beq $3, $3, TAG525
mtlo $3
lw $2, 0($3)
TAG525:
addu $1, $2, $2
blez $1, TAG526
mtlo $1
mflo $1
TAG526:
beq $1, $1, TAG527
divu $1, $1
mthi $1
or $3, $1, $1
TAG527:
mflo $4
bne $4, $3, TAG528
sllv $1, $3, $3
ori $1, $3, 5
TAG528:
mult $1, $1
lbu $4, -4096($1)
bgtz $4, TAG529
mflo $1
TAG529:
bne $1, $1, TAG530
mfhi $1
mtlo $1
mthi $1
TAG530:
mult $1, $1
mthi $1
lb $3, 0($1)
multu $3, $1
TAG531:
lui $1, 5
mtlo $3
multu $3, $3
beq $3, $1, TAG532
TAG532:
srlv $1, $1, $1
beq $1, $1, TAG533
mflo $3
sw $1, 0($3)
TAG533:
beq $3, $3, TAG534
lw $2, 0($3)
mtlo $2
srlv $2, $3, $2
TAG534:
mult $2, $2
addi $3, $2, 5
beq $2, $3, TAG535
slti $2, $2, 10
TAG535:
lui $2, 0
sb $2, 0($2)
bne $2, $2, TAG536
sw $2, 0($2)
TAG536:
mult $2, $2
mfhi $4
bne $2, $4, TAG537
addi $2, $2, 6
TAG537:
mtlo $2
xori $4, $2, 12
bgtz $2, TAG538
lh $1, 0($2)
TAG538:
lui $4, 0
bltz $4, TAG539
sltu $2, $4, $1
lui $1, 14
TAG539:
mfhi $4
xori $2, $1, 13
mfhi $4
lui $4, 6
TAG540:
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
bne $1, $1, TAG541
TAG541:
mtlo $1
lui $1, 5
sll $0, $0, 0
mtlo $1
TAG542:
bgtz $2, TAG543
mfhi $3
xor $4, $3, $3
lui $2, 14
TAG543:
sll $0, $0, 0
lui $4, 14
lui $1, 5
slti $2, $2, 13
TAG544:
addiu $3, $2, 13
div $3, $3
beq $2, $3, TAG545
multu $2, $2
TAG545:
mtlo $3
lbu $2, 0($3)
mult $3, $2
lbu $1, 0($3)
TAG546:
mflo $4
lui $2, 15
mfhi $4
lui $1, 11
TAG547:
lui $2, 11
bgtz $1, TAG548
xori $1, $2, 3
sw $1, 0($2)
TAG548:
bltz $1, TAG549
sll $0, $0, 0
mthi $1
mthi $1
TAG549:
sll $0, $0, 0
xori $3, $1, 1
mfhi $1
sll $0, $0, 0
TAG550:
mtlo $3
sll $0, $0, 0
bgez $2, TAG551
sll $0, $0, 0
TAG551:
lui $4, 10
mfhi $3
xor $4, $3, $3
bne $4, $3, TAG552
TAG552:
mtlo $4
mthi $4
mflo $4
mult $4, $4
TAG553:
lb $1, 0($4)
lw $1, 0($4)
sll $4, $4, 7
mflo $4
TAG554:
addu $2, $4, $4
lh $4, 0($2)
nor $3, $2, $2
mflo $2
TAG555:
mtlo $2
sh $2, 0($2)
xori $4, $2, 3
divu $4, $4
TAG556:
sb $4, 0($4)
multu $4, $4
mthi $4
mult $4, $4
TAG557:
mthi $4
sb $4, 0($4)
srl $2, $4, 2
mthi $4
TAG558:
add $4, $2, $2
mfhi $3
lui $1, 14
mtlo $2
TAG559:
sll $0, $0, 0
blez $1, TAG560
sltiu $4, $1, 13
mfhi $4
TAG560:
mthi $4
addu $1, $4, $4
bltz $4, TAG561
sb $1, 0($1)
TAG561:
bne $1, $1, TAG562
lui $3, 5
sll $0, $0, 0
bgtz $1, TAG562
TAG562:
slt $1, $3, $3
lui $3, 8
mthi $3
mfhi $2
TAG563:
sll $0, $0, 0
sll $0, $0, 0
mult $2, $2
sub $3, $3, $1
TAG564:
mtlo $3
blez $3, TAG565
sll $0, $0, 0
mtlo $1
TAG565:
sltu $3, $1, $1
lbu $4, 0($1)
xori $2, $1, 9
mfhi $1
TAG566:
beq $1, $1, TAG567
lui $2, 0
sra $1, $1, 4
beq $1, $1, TAG567
TAG567:
addiu $2, $1, 7
lui $4, 12
lui $4, 12
bne $4, $4, TAG568
TAG568:
mtlo $4
sll $0, $0, 0
lh $2, 0($1)
lui $1, 3
TAG569:
sll $0, $0, 0
sw $1, 0($3)
or $1, $1, $3
lui $3, 1
TAG570:
mtlo $3
divu $3, $3
sll $0, $0, 0
bne $3, $3, TAG571
TAG571:
addu $2, $2, $2
beq $2, $2, TAG572
ori $3, $2, 6
mfhi $4
TAG572:
andi $3, $4, 14
lui $4, 1
mfhi $3
addiu $2, $4, 5
TAG573:
mthi $2
sll $0, $0, 0
bne $2, $2, TAG574
mflo $3
TAG574:
addu $3, $3, $3
slti $1, $3, 4
lui $3, 9
beq $3, $3, TAG575
TAG575:
mthi $3
mflo $2
beq $2, $2, TAG576
addu $2, $3, $2
TAG576:
lui $4, 14
mtlo $4
sll $0, $0, 0
sll $0, $0, 0
TAG577:
mthi $3
bne $3, $3, TAG578
lui $1, 4
mflo $1
TAG578:
blez $1, TAG579
sltiu $1, $1, 6
sub $1, $1, $1
mfhi $2
TAG579:
bgtz $2, TAG580
sll $0, $0, 0
mtlo $2
mflo $4
TAG580:
mtlo $4
mtlo $4
mtlo $4
div $4, $4
TAG581:
div $4, $4
sll $0, $0, 0
addu $3, $4, $4
sll $0, $0, 0
TAG582:
mflo $3
lb $2, 0($3)
srlv $2, $3, $3
mflo $2
TAG583:
sb $2, 0($2)
bltz $2, TAG584
mtlo $2
mtlo $2
TAG584:
lbu $4, 0($2)
beq $2, $2, TAG585
lb $1, 0($2)
mfhi $3
TAG585:
mtlo $3
addiu $1, $3, 4
lb $3, 0($1)
bgtz $3, TAG586
TAG586:
sb $3, 0($3)
lui $1, 7
mthi $3
mfhi $2
TAG587:
nor $3, $2, $2
or $1, $3, $3
lui $1, 3
lui $1, 6
TAG588:
sll $0, $0, 0
multu $2, $2
bne $2, $1, TAG589
mthi $1
TAG589:
srl $1, $2, 6
lbu $3, 0($2)
lbu $2, 0($2)
sb $2, 0($2)
TAG590:
mthi $2
mthi $2
mthi $2
bgez $2, TAG591
TAG591:
sra $1, $2, 6
srav $1, $2, $1
lui $4, 2
lbu $3, 0($1)
TAG592:
xori $1, $3, 14
blez $3, TAG593
lui $3, 1
mthi $1
TAG593:
sra $1, $3, 8
ori $3, $3, 9
divu $3, $1
lbu $4, -256($1)
TAG594:
lb $4, 0($4)
lhu $1, 0($4)
bgez $1, TAG595
addu $1, $1, $4
TAG595:
sh $1, -256($1)
sw $1, -256($1)
mtlo $1
mflo $1
TAG596:
sll $0, $0, 0
bgez $2, TAG597
mtlo $1
bgtz $1, TAG597
TAG597:
subu $3, $2, $2
sltiu $3, $3, 7
mflo $1
addu $4, $3, $2
TAG598:
beq $4, $4, TAG599
sh $4, 0($4)
mtlo $4
multu $4, $4
TAG599:
bgtz $4, TAG600
lh $4, 0($4)
bgtz $4, TAG600
lbu $3, 0($4)
TAG600:
mtlo $3
sb $3, 0($3)
mflo $1
bne $3, $3, TAG601
TAG601:
mult $1, $1
sb $1, 0($1)
beq $1, $1, TAG602
sllv $1, $1, $1
TAG602:
blez $1, TAG603
mflo $1
addiu $2, $1, 2
mfhi $4
TAG603:
lui $2, 10
lui $2, 10
andi $4, $2, 6
divu $2, $2
TAG604:
mthi $4
mthi $4
mfhi $2
lui $3, 7
TAG605:
sll $0, $0, 0
bltz $3, TAG606
sll $0, $0, 0
mthi $3
TAG606:
ori $2, $3, 11
bltz $3, TAG607
mflo $4
lb $2, 0($4)
TAG607:
divu $2, $2
xori $3, $2, 15
bne $3, $2, TAG608
divu $2, $3
TAG608:
sh $3, 0($3)
sb $3, 0($3)
bltz $3, TAG609
slti $2, $3, 10
TAG609:
mflo $1
sw $2, 0($2)
mflo $3
xori $3, $2, 4
TAG610:
sll $2, $3, 15
mtlo $2
subu $4, $3, $3
multu $4, $3
TAG611:
beq $4, $4, TAG612
lb $3, 0($4)
bgtz $4, TAG612
sb $3, 0($3)
TAG612:
bne $3, $3, TAG613
mflo $3
lw $2, 0($3)
slti $1, $2, 13
TAG613:
lb $1, 0($1)
sllv $4, $1, $1
andi $2, $1, 0
bgtz $1, TAG614
TAG614:
lh $2, 0($2)
bgtz $2, TAG615
multu $2, $2
blez $2, TAG615
TAG615:
sb $2, 0($2)
sh $2, 0($2)
lui $4, 4
mfhi $3
TAG616:
lw $1, 0($3)
sb $1, 0($3)
lui $1, 11
sltu $2, $1, $1
TAG617:
mtlo $2
sll $3, $2, 1
bne $3, $3, TAG618
sll $2, $3, 2
TAG618:
blez $2, TAG619
mfhi $3
mtlo $3
bne $2, $2, TAG619
TAG619:
and $4, $3, $3
mult $4, $4
beq $3, $4, TAG620
mult $3, $3
TAG620:
sllv $3, $4, $4
beq $3, $4, TAG621
mfhi $4
beq $4, $4, TAG621
TAG621:
multu $4, $4
mflo $2
lui $4, 13
bltz $4, TAG622
TAG622:
multu $4, $4
divu $4, $4
mthi $4
blez $4, TAG623
TAG623:
xor $3, $4, $4
mflo $4
bgez $4, TAG624
lbu $2, 0($4)
TAG624:
sh $2, 0($2)
multu $2, $2
mflo $3
sh $3, 0($2)
TAG625:
sw $3, 0($3)
mtlo $3
lhu $2, 0($3)
multu $3, $2
TAG626:
lbu $1, 0($2)
mthi $2
mtlo $1
mfhi $3
TAG627:
lb $3, 0($3)
lhu $3, 0($3)
mfhi $2
addu $2, $3, $3
TAG628:
addiu $4, $2, 1
addu $1, $2, $2
bltz $1, TAG629
srlv $4, $2, $1
TAG629:
mult $4, $4
bgez $4, TAG630
mflo $3
bne $4, $3, TAG630
TAG630:
mflo $4
sb $3, 0($4)
nor $1, $3, $3
mtlo $4
TAG631:
blez $1, TAG632
sb $1, 1($1)
lhu $1, 0($1)
mfhi $2
TAG632:
bgez $2, TAG633
mflo $4
lui $1, 9
sw $2, 0($1)
TAG633:
sb $1, 1($1)
mult $1, $1
lbu $1, 1($1)
blez $1, TAG634
TAG634:
xori $1, $1, 12
lhu $4, -243($1)
beq $1, $1, TAG635
div $1, $1
TAG635:
multu $4, $4
div $4, $4
mflo $3
subu $4, $4, $4
TAG636:
sh $4, 0($4)
mtlo $4
multu $4, $4
mfhi $2
TAG637:
xor $4, $2, $2
lhu $3, 0($2)
mtlo $3
lbu $3, 0($3)
TAG638:
bne $3, $3, TAG639
lui $3, 5
mfhi $1
sll $0, $0, 0
TAG639:
sll $0, $0, 0
slt $3, $3, $3
ori $2, $3, 8
multu $3, $3
TAG640:
srl $2, $2, 6
bne $2, $2, TAG641
sub $2, $2, $2
mtlo $2
TAG641:
beq $2, $2, TAG642
mflo $1
mflo $1
beq $1, $1, TAG642
TAG642:
mtlo $1
sltiu $3, $1, 10
or $3, $3, $1
lbu $1, 0($3)
TAG643:
xor $2, $1, $1
mthi $2
sb $1, 0($1)
multu $2, $1
TAG644:
lui $1, 2
bgtz $2, TAG645
sh $1, 0($2)
multu $1, $2
TAG645:
sra $2, $1, 8
sltiu $1, $2, 1
mult $1, $1
sh $1, 0($1)
TAG646:
multu $1, $1
lb $2, 0($1)
addi $4, $2, 4
mfhi $4
TAG647:
lui $1, 1
srav $2, $4, $1
lui $1, 10
multu $4, $2
TAG648:
multu $1, $1
bgtz $1, TAG649
sll $0, $0, 0
bltz $1, TAG649
TAG649:
mflo $2
bltz $2, TAG650
lh $4, 0($2)
mthi $2
TAG650:
lw $1, 0($4)
lhu $3, 0($4)
bgtz $4, TAG651
mult $3, $3
TAG651:
mtlo $3
beq $3, $3, TAG652
sltiu $4, $3, 7
blez $4, TAG652
TAG652:
mthi $4
sb $4, 0($4)
bne $4, $4, TAG653
xor $4, $4, $4
TAG653:
mthi $4
lh $3, 0($4)
mtlo $4
lh $4, 0($4)
TAG654:
bne $4, $4, TAG655
lui $2, 14
beq $4, $4, TAG655
mthi $4
TAG655:
lui $2, 14
mthi $2
sll $0, $0, 0
mtlo $2
TAG656:
lui $2, 10
div $2, $2
sllv $3, $2, $2
bgez $2, TAG657
TAG657:
sll $0, $0, 0
sll $0, $0, 0
beq $3, $3, TAG658
srl $2, $1, 10
TAG658:
andi $3, $2, 6
sll $4, $2, 1
beq $3, $4, TAG659
xori $1, $2, 1
TAG659:
sb $1, 0($1)
slt $2, $1, $1
sb $2, 0($1)
multu $1, $2
TAG660:
sh $2, 0($2)
lui $3, 0
lhu $3, 0($3)
addiu $2, $3, 13
TAG661:
mtlo $2
bne $2, $2, TAG662
sb $2, 0($2)
mtlo $2
TAG662:
mthi $2
mthi $2
bgtz $2, TAG663
sb $2, 0($2)
TAG663:
srl $3, $2, 13
sb $2, 0($2)
sb $3, 0($2)
mult $3, $3
TAG664:
mult $3, $3
sltu $2, $3, $3
bltz $3, TAG665
and $1, $2, $2
TAG665:
beq $1, $1, TAG666
mult $1, $1
andi $1, $1, 7
bltz $1, TAG666
TAG666:
sll $1, $1, 6
sh $1, 0($1)
mflo $2
mfhi $4
TAG667:
multu $4, $4
lui $4, 15
divu $4, $4
bltz $4, TAG668
TAG668:
srav $2, $4, $4
mfhi $3
sll $0, $0, 0
bgtz $2, TAG669
TAG669:
addi $1, $3, 15
bgez $1, TAG670
addu $2, $3, $3
sw $2, 0($3)
TAG670:
sll $1, $2, 5
bgtz $2, TAG671
lhu $4, 0($1)
bgez $1, TAG671
TAG671:
mflo $4
xor $2, $4, $4
divu $2, $4
lui $1, 11
TAG672:
xori $3, $1, 0
div $3, $3
subu $1, $3, $1
mfhi $4
TAG673:
beq $4, $4, TAG674
lui $3, 0
srav $3, $3, $4
mthi $3
TAG674:
bgez $3, TAG675
lui $3, 7
lb $3, 0($3)
mthi $3
TAG675:
sll $0, $0, 0
divu $3, $3
sll $0, $0, 0
mthi $3
TAG676:
div $3, $3
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
TAG677:
beq $4, $4, TAG678
mthi $4
addu $2, $4, $4
lbu $1, 0($2)
TAG678:
mfhi $4
mult $1, $4
srl $2, $1, 5
mfhi $3
TAG679:
srlv $3, $3, $3
sllv $1, $3, $3
multu $3, $1
ori $1, $3, 6
TAG680:
or $1, $1, $1
lui $3, 1
divu $1, $1
mthi $3
TAG681:
mtlo $3
lui $1, 15
bltz $3, TAG682
mflo $2
TAG682:
sll $0, $0, 0
srl $1, $2, 11
lhu $3, 0($4)
mfhi $3
TAG683:
lui $1, 15
mult $3, $1
lui $3, 4
addiu $3, $1, 8
TAG684:
sll $0, $0, 0
bne $3, $3, TAG685
sll $0, $0, 0
mtlo $3
TAG685:
bne $3, $3, TAG686
sll $0, $0, 0
sll $0, $0, 0
bne $3, $3, TAG686
TAG686:
nor $4, $3, $3
sll $2, $4, 8
divu $2, $2
blez $4, TAG687
TAG687:
sra $3, $2, 3
sll $0, $0, 0
ori $3, $3, 10
mflo $2
TAG688:
and $3, $2, $2
lbu $3, 0($3)
mtlo $2
ori $4, $3, 0
TAG689:
bne $4, $4, TAG690
mthi $4
mfhi $1
bne $1, $1, TAG690
TAG690:
lui $3, 15
sll $0, $0, 0
bne $1, $1, TAG691
srav $4, $3, $3
TAG691:
mfhi $3
bne $3, $3, TAG692
srl $3, $4, 11
mthi $4
TAG692:
nor $3, $3, $3
lhu $4, 481($3)
mthi $3
sw $3, 481($3)
TAG693:
mtlo $4
lui $2, 15
mult $4, $4
mflo $4
TAG694:
lw $2, 0($4)
lbu $4, 0($4)
mthi $4
sb $2, 0($4)
TAG695:
xor $1, $4, $4
subu $3, $4, $4
srlv $2, $4, $1
beq $4, $3, TAG696
TAG696:
nor $4, $2, $2
bgez $4, TAG697
lui $1, 12
lbu $4, 32($4)
TAG697:
beq $4, $4, TAG698
ori $3, $4, 10
lh $2, 0($3)
mult $3, $3
TAG698:
sb $2, 0($2)
mthi $2
lbu $1, 0($2)
mult $1, $1
TAG699:
mfhi $1
bne $1, $1, TAG700
sh $1, 0($1)
sb $1, 0($1)
TAG700:
lh $4, 0($1)
subu $4, $1, $1
mflo $3
multu $4, $1
TAG701:
xori $1, $3, 1
slti $1, $3, 7
slti $1, $3, 0
bgtz $1, TAG702
TAG702:
lbu $1, 0($1)
mfhi $1
sw $1, 0($1)
addi $4, $1, 10
TAG703:
sh $4, 0($4)
sh $4, 0($4)
bgtz $4, TAG704
addiu $2, $4, 11
TAG704:
divu $2, $2
lui $3, 3
bne $3, $2, TAG705
lui $4, 0
TAG705:
sh $4, 0($4)
sw $4, 0($4)
mthi $4
bltz $4, TAG706
TAG706:
mthi $4
beq $4, $4, TAG707
mtlo $4
bgez $4, TAG707
TAG707:
srav $3, $4, $4
lb $3, 0($3)
mthi $4
lb $1, 0($3)
TAG708:
bne $1, $1, TAG709
mflo $3
beq $3, $3, TAG709
mult $3, $3
TAG709:
mthi $3
mfhi $3
mtlo $3
subu $2, $3, $3
TAG710:
multu $2, $2
xori $3, $2, 7
sh $2, 0($2)
bgtz $2, TAG711
TAG711:
div $3, $3
sb $3, 0($3)
xor $3, $3, $3
sh $3, 0($3)
TAG712:
xori $2, $3, 6
sra $3, $2, 11
multu $3, $2
beq $2, $2, TAG713
TAG713:
mflo $3
lui $1, 12
lbu $3, 0($3)
srl $4, $3, 5
TAG714:
beq $4, $4, TAG715
srlv $2, $4, $4
mtlo $4
lw $2, 0($2)
TAG715:
lui $2, 11
bne $2, $2, TAG716
sll $0, $0, 0
sll $0, $0, 0
TAG716:
bltz $2, TAG717
sll $0, $0, 0
mthi $2
beq $2, $2, TAG717
TAG717:
lui $1, 15
xori $2, $2, 1
mfhi $1
sll $0, $0, 0
TAG718:
sll $0, $0, 0
sltu $4, $2, $2
or $3, $4, $2
subu $1, $2, $3
TAG719:
lb $1, 0($1)
lui $1, 8
beq $1, $1, TAG720
lui $4, 8
TAG720:
addiu $4, $4, 7
divu $4, $4
sltiu $4, $4, 0
beq $4, $4, TAG721
TAG721:
multu $4, $4
mflo $2
addu $3, $4, $4
sb $2, 0($2)
TAG722:
lui $2, 1
sw $3, 0($3)
add $3, $3, $3
sh $3, 0($3)
TAG723:
xor $2, $3, $3
slti $2, $2, 15
lui $1, 10
mthi $3
TAG724:
xor $3, $1, $1
lui $3, 1
sll $0, $0, 0
mfhi $2
TAG725:
sw $2, 0($2)
lbu $3, 0($2)
xori $4, $2, 15
srlv $4, $2, $2
TAG726:
sw $4, 0($4)
mflo $3
beq $4, $3, TAG727
mtlo $4
TAG727:
mult $3, $3
lui $1, 5
bgez $1, TAG728
sb $1, 0($3)
TAG728:
mthi $1
beq $1, $1, TAG729
lui $1, 2
mflo $4
TAG729:
bgez $4, TAG730
mfhi $2
bgez $2, TAG730
lw $2, 0($4)
TAG730:
div $2, $2
or $3, $2, $2
bgtz $3, TAG731
mfhi $1
TAG731:
blez $1, TAG732
xor $2, $1, $1
addi $4, $1, 9
lw $1, 0($4)
TAG732:
srav $3, $1, $1
sb $1, 0($1)
sb $3, 0($3)
mflo $1
TAG733:
slti $2, $1, 5
mflo $2
lbu $1, 0($2)
lb $2, 0($1)
TAG734:
bne $2, $2, TAG735
mthi $2
mthi $2
mult $2, $2
TAG735:
mfhi $2
ori $1, $2, 11
blez $1, TAG736
or $1, $1, $2
TAG736:
blez $1, TAG737
lui $2, 11
mfhi $2
bne $2, $2, TAG737
TAG737:
sh $2, 0($2)
lhu $1, 0($2)
sw $2, 0($1)
lb $4, 0($2)
TAG738:
lhu $2, 0($4)
lw $2, 0($2)
sub $4, $4, $2
sh $2, 0($2)
TAG739:
bne $4, $4, TAG740
sb $4, 0($4)
sb $4, 0($4)
sll $4, $4, 7
TAG740:
sll $3, $4, 9
lui $1, 13
blez $3, TAG741
lb $1, 0($3)
TAG741:
mult $1, $1
mflo $1
lhu $3, 0($1)
mthi $3
TAG742:
sh $3, 0($3)
lui $1, 13
slt $4, $1, $1
lbu $2, 0($4)
TAG743:
beq $2, $2, TAG744
lb $4, 0($2)
bgtz $2, TAG744
lhu $2, 0($4)
TAG744:
mfhi $4
subu $2, $2, $2
nor $3, $4, $4
mflo $3
TAG745:
bne $3, $3, TAG746
mult $3, $3
mfhi $1
slt $3, $3, $1
TAG746:
bgez $3, TAG747
sra $4, $3, 4
sw $4, 0($4)
mult $3, $3
TAG747:
lui $3, 10
ori $1, $3, 6
sh $4, 0($4)
bltz $1, TAG748
TAG748:
divu $1, $1
beq $1, $1, TAG749
sll $0, $0, 0
div $1, $1
TAG749:
lui $4, 4
mfhi $4
multu $4, $4
beq $4, $4, TAG750
TAG750:
nop
nop
test_end:
beq $0, $0, test_end
nop | 12.908995 | 22 | 0.499203 |
3c0494257acba69efbf982b2b8ba8f2e665324cc | 6,331 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_277.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_277.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_277.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x8961, %rsi
lea addresses_WT_ht+0x12621, %rdi
clflush (%rdi)
nop
nop
nop
add %r10, %r10
mov $124, %rcx
rep movsb
nop
nop
nop
sub $38266, %r8
lea addresses_normal_ht+0x14001, %rsi
lea addresses_normal_ht+0xcd61, %rdi
nop
nop
nop
nop
nop
lfence
mov $54, %rcx
rep movsw
nop
nop
nop
nop
nop
xor $34989, %rcx
lea addresses_UC_ht+0xc1c5, %rcx
clflush (%rcx)
nop
nop
nop
and %rdx, %rdx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm6
vmovups %ymm6, (%rcx)
nop
nop
nop
nop
and %rdx, %rdx
lea addresses_normal_ht+0x1a961, %rsi
lea addresses_WT_ht+0xe161, %rdi
nop
nop
nop
sub %r14, %r14
mov $28, %rcx
rep movsl
nop
nop
nop
inc %r10
lea addresses_WT_ht+0x5161, %rsi
lea addresses_WC_ht+0x18961, %rdi
nop
nop
nop
nop
nop
add $35835, %r14
mov $80, %rcx
rep movsl
nop
nop
nop
nop
nop
xor $53912, %r10
lea addresses_normal_ht+0x1bff5, %rsi
lea addresses_D_ht+0x12be9, %rdi
clflush (%rdi)
nop
nop
nop
nop
add %r8, %r8
mov $42, %rcx
rep movsw
sub %rsi, %rsi
lea addresses_WT_ht+0xf10d, %rsi
lea addresses_A_ht+0x7111, %rdi
xor $41492, %r10
mov $51, %rcx
rep movsl
nop
nop
nop
and $30631, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r14
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r14
push %r15
push %r9
push %rax
// Store
lea addresses_RW+0x18721, %r14
and $10498, %r9
mov $0x5152535455565758, %r11
movq %r11, %xmm5
movups %xmm5, (%r14)
nop
nop
nop
nop
cmp $57897, %r9
// Faulty Load
lea addresses_PSE+0xa161, %r12
nop
xor %rax, %rax
vmovups (%r12), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %r11
lea oracles, %r13
and $0xff, %r11
shlq $12, %r11
mov (%r13,%r11,1), %r11
pop %rax
pop %r9
pop %r15
pop %r14
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}, 'dst': {'same': True, 'congruent': 3, 'type': 'addresses_D_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}}
{'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
*/
| 36.80814 | 2,999 | 0.66593 |
6b11a8585b48b33b76ff0138df4f5f1e283c4b18 | 2,217 | asm | Assembly | programs/oeis/158/A158743.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/158/A158743.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/158/A158743.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A158743: a(n) = 1369*n^2 - 37.
; 1332,5439,12284,21867,34188,49247,67044,87579,110852,136863,165612,197099,231324,268287,307988,350427,395604,443519,494172,547563,603692,662559,724164,788507,855588,925407,997964,1073259,1151292,1232063,1315572,1401819,1490804,1582527,1676988,1774187,1874124,1976799,2082212,2190363,2301252,2414879,2531244,2650347,2772188,2896767,3024084,3154139,3286932,3422463,3560732,3701739,3845484,3991967,4141188,4293147,4447844,4605279,4765452,4928363,5094012,5262399,5433524,5607387,5783988,5963327,6145404,6330219,6517772,6708063,6901092,7096859,7295364,7496607,7700588,7907307,8116764,8328959,8543892,8761563,8981972,9205119,9431004,9659627,9890988,10125087,10361924,10601499,10843812,11088863,11336652,11587179,11840444,12096447,12355188,12616667,12880884,13147839,13417532,13689963,13965132,14243039,14523684,14807067,15093188,15382047,15673644,15967979,16265052,16564863,16867412,17172699,17480724,17791487,18104988,18421227,18740204,19061919,19386372,19713563,20043492,20376159,20711564,21049707,21390588,21734207,22080564,22429659,22781492,23136063,23493372,23853419,24216204,24581727,24949988,25320987,25694724,26071199,26450412,26832363,27217052,27604479,27994644,28387547,28783188,29181567,29582684,29986539,30393132,30802463,31214532,31629339,32046884,32467167,32890188,33315947,33744444,34175679,34609652,35046363,35485812,35927999,36372924,36820587,37270988,37724127,38180004,38638619,39099972,39564063,40030892,40500459,40972764,41447807,41925588,42406107,42889364,43375359,43864092,44355563,44849772,45346719,45846404,46348827,46853988,47361887,47872524,48385899,48902012,49420863,49942452,50466779,50993844,51523647,52056188,52591467,53129484,53670239,54213732,54759963,55308932,55860639,56415084,56972267,57532188,58094847,58660244,59228379,59799252,60372863,60949212,61528299,62110124,62694687,63281988,63872027,64464804,65060319,65658572,66259563,66863292,67469759,68078964,68690907,69305588,69923007,70543164,71166059,71791692,72420063,73051172,73685019,74321604,74960927,75602988,76247787,76895324,77545599,78198612,78854363,79512852,80174079,80838044,81504747,82174188,82846367,83521284,84198939,84879332,85562463
mov $1,2
add $1,$0
mul $1,$0
mul $1,1369
add $1,1332
| 246.333333 | 2,129 | 0.868742 |
0494f99b4a0d9e9552fd180cbcdd4b4c88486044 | 887 | asm | Assembly | user/lib/setup.asm | nelsoncole/sirius-x86-64 | 741370f204a1da1fab2547e395f737cd383aee19 | [
"BSD-3-Clause"
] | 10 | 2021-08-18T22:37:50.000Z | 2022-02-07T11:12:32.000Z | user/lib/setup.asm | nelsoncole/sirius-x86-64 | 741370f204a1da1fab2547e395f737cd383aee19 | [
"BSD-3-Clause"
] | null | null | null | user/lib/setup.asm | nelsoncole/sirius-x86-64 | 741370f204a1da1fab2547e395f737cd383aee19 | [
"BSD-3-Clause"
] | null | null | null | HEADER_MAGIC equ "_ cole _"
HEADER_FLAGS equ 0x00000000
[BITS 64]
[section .text]
global _start
_start:
jmp start
extern ctr0, pipe_r, ptr_mouse2
extern _end
Align 8
header:
dq HEADER_MAGIC
dq HEADER_FLAGS
dq header
dq _start
dq 0
dq _end
dq 0
dq 0
times 0x1000 -($-$$) db 0
start:
mov r8, rbx
mov rbx, pipe_r
mov qword [rbx], r10
mov rbx, ptr_mouse2
mov [rbx], rax
mov rbx, argc
mov qword[rbx], r11
mov rbx, argv
mov qword[rbx], r12
mov rbx, pwd_ptr
mov qword[rbx], r13
call ctr0
jmp $
global call_function
call_function:
mov rax, rdi
mov rdi, rsi
mov rsi, rdx
mov rdx, rcx
mov rcx, r8
call rax
ret
[section .data]
global argc, argv, pwd_ptr
argc dq 0
argv dq 0
pwd_ptr dq 0
[section .bss]
;resb 0x2000 ; 8 KiB TODO o Lua 1.0 me obriga a fazer isto, e ao que parece o .eh_frame
| 14.079365 | 89 | 0.648253 |
121c609806deb3943bb5deaba959b9456824ef43 | 310 | asm | Assembly | programs/oeis/021/A021376.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/021/A021376.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/021/A021376.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A021376: Decimal expansion of 1/372.
; 0,0,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2
add $0,1
mov $1,10
pow $1,$0
mul $1,5
div $1,1860
mod $1,10
mov $0,$1
| 28.181818 | 199 | 0.541935 |
8c502a1b573ed21906489b2028cb7cd7784378cb | 1,780 | asm | Assembly | programs/oeis/038/A038391.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/038/A038391.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/038/A038391.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A038391: Expansion of (x^3+2*x+1) / ((x-1)^4*(x^2+x+1)^2).
; 1,4,7,13,23,33,48,69,90,118,154,190,235,290,345,411,489,567,658,763,868,988,1124,1260,1413,1584,1755,1945,2155,2365,2596,2849,3102,3378,3678,3978,4303,4654,5005,5383,5789,6195,6630,7095,7560,8056,8584,9112,9673,10268,10863,11493,12159,12825,13528,14269,15010,15790,16610,17430,18291,19194,20097,21043,22033,23023,24058,25139,26220,27348,28524,29700,30925,32200,33475,34801,36179,37557,38988,40473,41958,43498,45094,46690,48343,50054,51765,53535,55365,57195,59086,61039,62992,65008,67088,69168,71313,73524,75735,78013,80359,82705,85120,87605,90090,92646,95274,97902,100603,103378,106153,109003,111929,114855,117858,120939,124020,127180,130420,133660,136981,140384,143787,147273,150843,154413,158068,161809,165550,169378,173294,177210,181215,185310,189405,193591,197869,202147,206518,210983,215448,220008,224664,229320,234073,238924,243775,248725,253775,258825,263976,269229,274482,279838,285298,290758,296323,301994,307665,313443,319329,325215,331210,337315,343420,349636,355964,362292,368733,375288,381843,388513,395299,402085,408988,416009,423030,430170,437430,444690,452071,459574,467077,474703,482453,490203,498078,506079,514080,522208,530464,538720,547105,555620,564135,572781,581559,590337,599248,608293,617338,626518,635834,645150,654603,664194,673785,683515,693385,703255,713266,723419,733572,743868,754308,764748,775333,786064,796795,807673,818699,829725,840900,852225,863550,875026,886654,898282,910063,921998,933933,946023,958269,970515,982918,995479,1008040,1020760,1033640,1046520,1059561,1072764,1085967,1099333,1112863,1126393,1140088,1153949,1167810,1181838
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
mul $0,2
mov $3,$0
add $3,7
div $3,3
bin $3,2
add $1,$3
lpe
| 98.888889 | 1,574 | 0.798315 |
fd7b1df5b2bede63958663682ddf2765650f5ec8 | 607 | asm | Assembly | Chapter_10/Program 10.2/Program_10.2_NASM.asm | chen150182055/Assembly | e5e76bea438a3752b59775098205a77aa7087110 | [
"MIT"
] | 272 | 2016-12-28T02:24:21.000Z | 2022-03-30T21:05:37.000Z | Chapter_10/Program 10.2/Program_10.2_NASM.asm | chen150182055/Assembly | e5e76bea438a3752b59775098205a77aa7087110 | [
"MIT"
] | 1 | 2018-04-17T19:47:52.000Z | 2018-04-17T19:47:52.000Z | Chapter_10/Program 10.2/Program_10.2_NASM.asm | chen150182055/Assembly | e5e76bea438a3752b59775098205a77aa7087110 | [
"MIT"
] | 62 | 2017-02-02T14:39:37.000Z | 2022-01-04T09:02:07.000Z | ; Program 10.2
; Debug and System Write Interrupts - NASM (32-bit)
; Copyright (c) 2017 Hall & Slonka
section .data
output: DB "Computer Architecture",0Ah
len: EQU ($ - output)
section .text
global _main
_main: ; Print "Computer Architecture"
;int 3h ; Set breakpoint (remove if desired)
mov ebx, 1 ; File descriptor STDOUT (1)
mov ecx, output ; String address
mov edx, len ; String length
mov eax, 4 ; Use SYSCALL 4 (WRITE), prints to screen
int 80h ; system call interrupt
mov eax, 1 ; call number for exit
mov ebx, 0 ; return value
int 80h ; system call interrupt
| 26.391304 | 57 | 0.682043 |
7eabd94c354e8d211962f1ca2b21f61d092b554f | 9,960 | asm | Assembly | Miscellaneous/Text Edit CE/src/routines/editing.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | 1 | 2019-03-31T11:49:12.000Z | 2019-03-31T11:49:12.000Z | Miscellaneous/Text Edit CE/src/routines/editing.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | null | null | null | Miscellaneous/Text Edit CE/src/routines/editing.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | 1 | 2020-03-09T13:21:19.000Z | 2020-03-09T13:21:19.000Z | LoopAndGet:
res deleting,(iy+txtFlgs)
call _GetCSC
ld hl,LoopAndGet
push hl
cp a,sk2nd
jp z,Press2ND
pop hl
cp a,skGraph
jp z,ExitFile
cp a,skYEqu
jp z,SaveFile
cp a,skDown
jp z,down
cp a,skUp
jp z,up
cp a,skLeft
jp z,left
cp a,skRight
jp z,right
cp a,skDel
jp z,deleteChar
cp a,skAlpha
jp z,alphaPressed
cp a,skEnter
jp z,insertEnter
sub a,skAdd
jp c,LoopAndGet
cp skMath-skAdd+1
jp nc,LoopAndGet
jp InsertCharacter
ExitFile:
bit saved,(iy+txtFlgs)
jp nz,AlreadySaved
set deleteFileFlg,(iy+txtFlgs)
call drawLowerBar
print(SaveStr2,2,214)
ld a,'?'
call drawChar
ld a,' '
call drawChar
ld bc,(posX)
ld a,(posY)
ld (tmpX),bc
ld (tmpY),a
call getFileLoc ; Got the current file
ld a,0FFh
ld (BackColor),a
ld hl,NoStr
call DrawLine
ld a,016h
ld (BackColor),a
ld hl,(posX)
inc hl
inc hl
ld (posX),hl
ld hl,YesStr
call DrawLine
call FullBufCpy
_:
call _GetCSC
cp skLeft
call z,changeDeleteFlag
cp skRight
call z,changeDeleteFlag
cp skEnter
jr nz,-_
bit deleteFileFlg,(iy+txtFlgs)
jr z,AlreadySaved
ld hl,AlreadySaved
ld (Jump_SMC),hl
res saved,(iy+txtFlgs)
jp SaveFile
AlreadySaved:
ld hl,ReturnHere
ld (Jump_SMC),hl
call makeFileArchived
jp Redraw
insertEnter:
call GetOffset
ex de,hl
ld hl,1
call InsertMem
call GetOffset
ld (hl),newlineByte
call ClearScreenPartial
res saved,(iy+txtFlgs)
call RedrawText
jp right
deleteChar:
ld hl,(cursorOffset)
call _ChkHLIs0
jp z,ReturnHere
res saved,(iy+txtFlgs)
set deleting,(iy+txtFlgs)
jp left
ReturnHereToDelete: ; Play some crazy shenanigans -- Seems to work pretty well.
res deleting,(iy+txtFlgs)
call GetOffset
ld de,1
call DelMem
bit smallInput,(iy+txtFlgs)
jr z,+_
jp ReturnToSmallEdit
_: call ClearScreenPartial
call RedrawText
jp ReturnHere
InsertCharacter:
ld c,a
bit smallInput,(iy+txtFlgs)
jr z,+_
ld a,(linelengths)
cp a,20
jp z,ReturnToSmallEdit
_: ld a,c
push af
call GetOffset
pop af
push hl
or a,a
sbc hl,hl
ld l,a
ld de,(TblPtr)
add hl,de
ld a,(hl)
pop hl
or a,a
jp z,ReturnHere
res saved,(iy+txtFlgs)
push hl
call GetOffset
ex de,hl
ld hl,1
call InsertMem
pop hl
ld (hl),a
bit smallInput,(iy+txtFlgs)
jp z,++_
ld a,(linelengths)
cp a,20
jr z,+_
inc a
ld (linelengths),a
_: jp right
_: call ClearScreenPartial
call RedrawText
jp right
ReturnHere:
bit pressed2ND,(iy+txtFlgs)
call nz,getTable
bit deleting,(iy+txtFlgs)
jp nz,ReturnHereToDelete
bit smallInput,(iy+txtFlgs)
jp nz,ReturnToSmallEdit
call DrawCursor
call drawSaveSavedStr
call FullBufCpy
jp LoopAndGet
GetOffset:
ld hl,(cursorOffset)
GetOffset_Short:
ld de,safeMem
bit smallInput,(iy+txtFlgs)
jr z,+_
ld de,filename
_: add hl,de
ret
IncrementOffset:
ld hl,cursorOffset
ld de,(hl)
inc de
_: ld (hl),de
ret
DecrementOffset:
ld hl,cursorOffset
ld de,(hl)
dec de
jr -_
; move the cursor right
right:
call EraseCursor ; clear the current cursor location
call GetCurrentLineLength ; get the length of the line
ld a,(cursorX)
cp a,c ; check and see if we've reached the end of the line
jp z,CheckIfNextLine
inc a
ld (cursorX),a ; increment x line posistion
call GetOffset
ld a,(hl)
_: call getPixelWidth ; get width of character
ld hl,(cursorXReal)
call _AddHLAndA
ld (cursorXReal),hl ; store new x value
call IncrementOffset
jp ReturnHere
CheckIfNextLine:
bit smallInput,(iy+txtFlgs)
jp nz,ReturnToSmallEdit
call CursorYRealToCol
ld a,c
cp a,14 ; Check if at bottom
push af
call z,scrolldown
pop af
jr z,SkipThis
call CursorYRealToCol
inc c
ld hl,lineLengths
add hl,bc
ld a,(hl)
or a,a ; if 0, this means we can't go to it. -- Or it's a blank line with an enter. :P
jp nz,+_
call GetOffset
ld a,(hl)
cp a,newlineByte
jp nz,ReturnHere
_: call IncrementRow
SkipThis:
ld hl,1
ld (cursorXReal),hl
xor a,a
ld (cursorX),a
call GetOffset
ld a,(hl)
cp newlineByte
jp nz,+_
call IncrementOffset
jp ReturnHere
_: call getPixelWidth ; get width of character
ld hl,(cursorXReal)
call _AddHLAndA
ld (cursorXReal),hl ; store new x value
ld a,1
ld (cursorX),a
call IncrementOffset
jp ReturnHere
left:
call EraseCursor ; clear the current cursor location
ld a,(cursorX)
or a,a ; check and see if we've reached the end of the line
jp z,CheckIfPrevLine
dec a
ld (cursorX),a ; increment x line posistion
call GetOffset
dec hl
ld a,(hl)
call getPixelWidth ; get width of character
ld hl,(cursorXReal)
ld bc,0
ld c,a
or a,a
sbc hl,bc
ld (cursorXReal),hl ; store new x value
call DecrementOffset
jp ReturnHere
CheckIfPrevLine:
ld hl,(cursorOffset)
call _ChkHLIs0 ; Return if on line 0
jp z,ReturnHere
call CursorYRealToCol
ld a,c
or a,a ; Check if at bottom
push af
call z,scrollup
pop af
jr z,+_
call DecrementRow
_:
call GetOffset
dec hl
ld a,(hl)
cp newlineByte
jr nz,+_
call DecrementOffset
_:
call GetCurrentLineLength ; get the length of the previous line
ld a,c
ld (cursorX),a ; store it into the cursor x posistion
ld hl,(cursorOffset)
ld de,0
or a,a
jr z,+_ ; is the previous line's length 0?
ld e,a
or a,a
sbc hl,de
call GetOffset_Short
call getPixelWidthStr ; now get the width of the line in pixels -> de
_: inc de
ld (cursorXReal),de
jp ReturnHere
; stores value into c
GetCurrentLineLength:
bit smallinput,(iy+txtFlgs)
jr nz,+_
call CursorYRealToCol ; Get the offset in the lines
ld hl,lineLengths
add hl,bc
ld c,(hl)
ret
_:
ld a,(lineLengths)
ld c,a
ret
; stores the value into c
CursorYRealToCol:
ld a,(cursorYReal)
ld bc,0
_: sub a,13
cp a,27-13
ret z
inc c
jr -_
ret
Redrawtext:
ld hl,lineLengths
ld bc,16
xor a,a
res more,(iy+txtFlgs)
res onFirstLine,(iy+txtFlgs)
call _MemSet ; set each line length to 0.
ld hl,linelengths
ld (LLOffset_SMC),hl ; um, okay.
ld a,28
ld bc,2
ld (posY),a
ld (posX),bc ; start posiiton
ld de,linePtrs
ld hl,(currLine)
add hl,hl
add hl,de
ex de,hl
ld hl,(textPtr)
ex de,hl
ld (hl),de
ex de,hl
DrawLoop:
ld a,(hl)
cp a,newlineByte
jr z,NextLineSkip
or a,a
jr z,CheckWhatToDo
call drawChar
push hl
LLOffset_SMC: =$+1
ld hl,lineLengths
inc (hl)
ld de,(posX)
ld hl,310
call _cphlde
pop hl
call c,NextLine
Skipped:
inc hl
jr DrawLoop
NextLineSkip:
call NextLine
jr Skipped
NextLine:
push hl
ld hl,(LLOffset_SMC)
inc hl
ld (LLOffset_SMC),hl
pop hl
bit onFirstLine,(iy+txtFlgs)
jr nz,+_
set onFirstLine,(iy+txtFlgs)
ld (currPtr),hl ; save next line
_: ld a,(posY)
cp a,200
jr nc,CheckWhatToDo2
add a,13
ld (posY),a ; move down a row
ld bc,2
ld (posX),bc
ret
CheckWhatToDo2:
set more,(iy+txtFlgs)
pop hl
CheckWhatToDo:
ret
down: ; okay; to move down, we need to check things: 1) Is there anything there if we move down 2) The new location to set us at
call EraseCursor
call CursorYRealToCol
ld a,c
cp a,14 ; Check if at bottom
push af
call z,scrolldown ; That's right, scroll the screen
pop af ; Did we scroll?
jr nz,+_
call DecrementRow
_: call CursorYRealToCol
inc c
ld hl,lineLengths
add hl,bc
ld a,(hl) ; check if 0?
or a,a
jp nz,+_
call GetCurrentLineLength
ld a,(cursorX)
ld b,a
ld a,c
sub a,b
call GetOffset
call _AddHLAndA
ld a,(hl)
cp a,newlineByte
jp nz,ReturnHere ; jump if no available place
_: call CursorYRealToCol
inc c
ld hl,lineLengths
add hl,bc
ld c,(hl)
ld a,(cursorX)
push af
cp a,c ; if next line is shorter, store the end.
jr c,+_
ld a,c
ld (cursorX),a
_: call GetCurrentLineLength ; get length of line we are on
pop af ; a=cursorX
ld b,a
ld a,c
sub a,b ; tells us how much to increment the offset by
ld hl,(cursorOffset)
call _AddHLAndA ; now we are pointing to the start of the next line... Almost
ld (cursorOffset),hl
call GetOffset_Short
ld a,(hl)
cp a,newlineByte ; check and see if we need to add the newline character
jr nz,+_
call IncrementOffset
_: call GetOffset
ld a,(cursorX)
ld de,0
or a,a
jr z,+_
call getPixelWidthStr ; get the width of the next line
_: inc de
ld (cursorXReal),de
call IncrementRow
ld a,(cursorX)
ld hl,(cursorOffset)
call _AddHLAndA ; now we are pointing to the start of the next line... Almost
ld (cursorOffset),hl
jp ReturnHere
ChkCursorOnFirstLine:
ld hl,(cursorOffset)
ld a,(cursorX)
ld bc,0
ld c,a
or a,a
sbc hl,bc
call _ChkHLIs0
ret
; last one! let's see if we can move the cursor up :)
up:
call ChkCursorOnFirstLine
jp z,ReturnHere
call EraseCursor ; return if at the top line
ld a,(cursorX) ; this is how many are left, I guess
ld hl,(cursorOffset)
ld bc,0
ld c,a
or a,a
sbc hl,bc
ld (cursorOffset),hl ; Now we are pointing to the start of the line
call GetOffset_Short
dec hl
ld a,(hl)
cp newlineByte
jr nz,+_
call DecrementOffset
_: call CursorYRealToCol
ld a,c
or a,a ; Check if at bottom
push af
call z,scrollup
pop af
jr nz,+_
call IncrementRow
_: call CursorYRealToCol
dec c
ld hl,lineLengths
add hl,bc
ld c,(hl) ; c=num chars in prev line ;6
ld a,(cursorX) ;0
cp a,c ; prevline < current ;a<6
jr c,+_
ld a,c
_: ld (cursorX),a ; found new cursorX posistion
ld b,a ;0
ld a,c ;6
sub a,b ;6
ld hl,(cursorOffset)
ld bc,0
ld c,a
or a,a
sbc hl,bc
ld (cursorOffset),hl
ld a,(cursorX) ; offset
ld c,a
or a,a
sbc hl,bc
call GetOffset_Short
ld a,(cursorX)
ld de,0
or a,a
jr z,+_
call getPixelWidthStr
_: inc de
ld (cursorXReal),de
call DecrementRow
jp ReturnHere
DecrementRow:
ld a,(cursorYReal)
sub a,13
jr +_
IncrementRow:
ld a,(cursorYReal)
add a,13
_: ld (cursorYReal),a
ret
scrolldown:
bit more,(iy+txtFlgs)
jr nz,+_
pop hl
pop af
jp ReturnHere
_: ld hl,(currLine)
inc hl
ld (currLine),hl
ld hl,(currPtr)
inc hl
ld (textPtr),hl
jr +_
scrollup:
ld de,linePtrs
ld hl,(currLine)
dec hl
add hl,hl
add hl,de
ld hl,(hl)
ld (textPtr),hl
ld hl,(currLine)
dec hl
ld (currLine),hl
_: call ClearScreenPartial
jp Redrawtext | 17.382199 | 133 | 0.703614 |
7d2b11abd3f1f82b203ae2a6274b15b3b36b251c | 445 | asm | Assembly | libsrc/stdio/m5/getk_rom.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/stdio/m5/getk_rom.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/stdio/m5/getk_rom.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
; SORD M5 Stdio
;
; getk() Read key status
;
; Stefano Bodrato - 18/5/2001
;
;
; $Id: getk.asm,v 1.8+ (GIT imported) $
;
SECTION code_clib
PUBLIC getk_rom
PUBLIC _getk_rom
EXTERN msxbios
INCLUDE "target/m5/def/m5bios.def"
.getk_rom
._getk_rom
; ld ix,ACECH0
; call msxbios
call $966
call $8da
ld hl,0
and a
ret z
IF STANDARDESCAPECHARS
cp 13
jr nz,not_return
ld a,10
.not_return
ENDIF
ld l,a
ret
| 12.027027 | 39 | 0.647191 |
9965681b1c2f0c172f7af35381c0ef41ba1cbbde | 1,130 | asm | Assembly | programs/oeis/304/A304810.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/304/A304810.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/304/A304810.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A304810: Solution (b(n)) of the complementary equation a(n) = b(2n) + b(4n) ; see Comments.
; 1,3,4,5,6,7,8,9,11,12,13,14,15,16,18,19,20,21,22,24,25,26,27,28,29,30,32,33,34,35,36,37,39,40,41,42,43,45,46,47,48,49,50,51,53,54,55,56,57,58,60,61,62,63,64,66,67,68,69,70,71,72,74,75,76,77,78,79,81,82,83,84,85,87,88,89,90,91,92,93,95,96,97,98,99,100,102,103,104,105,106,108,109,110,111,112,113,114,116,117,118,119,120,121,123,124,125,126,127,129,130,131,132,133,134,135,137,138,139,140,141,142,144,145,146,147,148,150,151,152,153,154,155,156,158,159,160,161,162,163,165,166,167,168,169,171,172,173,174,175,176,177,179,180,181,182,183,184,186,187,188,189,190,192,193,194,195,196,197,198,200,201,202,203,204,205,207,208,209,210,211,213,214,215,216,217,218,219,221,222,223,224,225,226,228,229,230,231,232,234,235,236,237,238,239,240,242,243,244,245,246,247,249,250,251,252,253,255,256,257,258,259,260,261,263,264,265,266,267,268,270,271,272,273,274,276,277,278,279,280,281,282,284,285,286,287,288,289,291,292
add $0,5
mov $1,2
add $1,$0
mov $2,$0
sub $2,3
mov $4,-2
lpb $2,13
sub $2,6
sub $4,$1
add $1,1
gcd $4,$2
lpe
sub $1,6
| 66.470588 | 908 | 0.69292 |
6e5a58b8e511c6411b2e5295fd98b093ea5c8858 | 1,968 | asm | Assembly | uw2/eop-moreBindings.asm | JohnGlassmyer/UltimaHacks | f9a114e00c4a1edf1ac7792b465feff2c9b88ced | [
"MIT"
] | 68 | 2018-03-04T22:34:22.000Z | 2022-03-10T15:18:32.000Z | uw2/eop-moreBindings.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 19 | 2018-11-20T04:06:49.000Z | 2021-11-08T16:37:10.000Z | uw2/eop-moreBindings.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 4 | 2020-09-01T17:57:36.000Z | 2022-01-04T20:51:11.000Z | %include "../UltimaPatcher.asm"
%include "include/uw2.asm"
%include "include/uw2-eop.asm"
%include "include/bindKeyOrMouse.asm"
[bits 16]
; UW2-specific bindings
startPatch EXE_LENGTH, \
expanded overlay procedure: moreBindings
startBlockAt addr_eop_moreBindings
push bp
mov bp, sp
; bp-based stack frame:
%assign ____callerIp 0x02
%assign ____callerBp 0x00
push si
push di
mov di, offsetInCodeSegment(keyBindings)
forKeyBinding:
cmp di, offsetInCodeSegment(keyBindings_end)
jae keyBindings_end
push cs
pop es
bindDKeyAt es:di
add di, dKey_SIZE
jmp forKeyBinding
keyBindings:
dKey 1, 0x81, setInteractionMode, 0 ; F2
dKey 1, 0x80, setInteractionMode, 1 ; F1
dKey 1, 0x84, setInteractionMode, 2 ; F5
dKey 1, 0x82, setInteractionMode, 3 ; F3
dKey 1, 0x83, setInteractionMode, 4 ; F4
dKey 1, 0x85, setInteractionMode, 5 ; F6
dKey 2, 'd', byteArgEopDispatcher, byteArgEopArg(mapControl, MapControl_REALM_UP)
dKey 2, 'a', byteArgEopDispatcher, byteArgEopArg(mapControl, MapControl_REALM_DOWN)
dKey 27, A|'h', toggleBool, dseg_mouseHand ; Alt+h
keyBindings_end:
mov di, offsetInCodeSegment(mouseBindings)
forMouseBinding:
cmp di, offsetInCodeSegment(mouseBindings_end)
jae mouseBindings_end
push cs
pop es
bindDMouseAt es:di
add di, dMouse_SIZE
jmp forMouseBinding
mouseBindings:
; click areas adjacent to compass to turn (broken in original game)
dMouse 1, 66, 33, 84, 49, easyMove, -1 ; Easy-left
dMouse 1, 156, 33, 174, 49, easyMove, 1 ; Easy-right
; in conversation
dMouse 4, 70, 135, 116, 188, clickOtherTrade, 4
dMouse 4, 119, 135, 163, 188, clickAvatarTrade, 4
dMouse 4, 16, 1, 223, 30, selectConversationOption, 0
mouseBindings_end:
pop di
pop si
mov sp, bp
pop bp
retn
endBlockAt off_eop_moreBindings_end
endPatch
| 24.296296 | 86 | 0.6875 |
fa8a69cd7e6d0bdf6b6d6decfcbcdbb589101cb3 | 1,212 | asm | Assembly | programs/oeis/188/A188599.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/188/A188599.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/188/A188599.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A188599: Expansion of x/(1-6*x+25*x^2).
; 0,1,6,11,-84,-779,-2574,4031,88536,430441,369246,-8545549,-60504444,-149387939,616283466,7432399271,29187308976,-10686127919,-793799491914,-4495643753509,-7128875223204,69617842498501,595928935571106,1835127550964111,-3887458083492984,-69202937275060679,-318031171563039474,-178113597501719869,6882097704065667636,45745426161937002541,102420114369980324346,-529114967828543117449,-5735192666220766813344,-21183281801611022943839,16280125845853032670566,627262800115393769619371,3356573654546036800952076,4457871924391376565228181,-57167109817302660632432814,-454449457013600377925301409,-1297518996649035751740988104,3576122445445794937686606601,53894709588900663419644342206,233965196397259107075700888211,56423438661038056963096774116,-5510589277965249335113941560579,-34474121634317447434761068716374,-69079997856773451230717873283769,447373053717295478484719478206736,4411238268723109151676263701334641,15283103269406267947939595252839446,-18582337101640121104269021016329349,-493571604344997425324104007418962244
lpb $0
trn $0,1
mov $1,$0
mov $0,0
seq $1,66770 ; a(n) = 5^n*sin(2n*arctan(1/2)) or numerator of tan(2n*arctan(1/2)).
lpe
div $1,4
mov $0,$1
| 101 | 1,019 | 0.866337 |
13f1fad1b15e8d2e7c14e6d61199e434895522f6 | 189 | asm | Assembly | tests/sorts.asm | Idorobots/asm | 37ebdef318ef7fc01b8e55a50baac57f74ddbe38 | [
"MIT"
] | 2 | 2017-03-02T20:24:31.000Z | 2020-03-26T03:20:12.000Z | tests/sorts.asm | Idorobots/asm | 37ebdef318ef7fc01b8e55a50baac57f74ddbe38 | [
"MIT"
] | null | null | null | tests/sorts.asm | Idorobots/asm | 37ebdef318ef7fc01b8e55a50baac57f74ddbe38 | [
"MIT"
] | null | null | null | (import 'imports.sort)
(var max 300)
# (isort <= (range 0 max)) (isort > (range 0 max))
(msort <= (range 0 max)) (msort > (range 0 max))
# (qsort <= (range 0 max)) (qsort > (range 0 max))
| 31.5 | 50 | 0.582011 |
8caac1076f1d966bbf3c2dc221113340ae4aa7de | 1,226 | asm | Assembly | i.asm | traidna/MUMPS-TI99-4A | b19c5819999a6f204a20f0496a153ba23ee8edf4 | [
"CC0-1.0"
] | null | null | null | i.asm | traidna/MUMPS-TI99-4A | b19c5819999a6f204a20f0496a153ba23ee8edf4 | [
"CC0-1.0"
] | null | null | null | i.asm | traidna/MUMPS-TI99-4A | b19c5819999a6f204a20f0496a153ba23ee8edf4 | [
"CC0-1.0"
] | null | null | null | ; if routines
If:
push r11
clr r3 ; zero out r3
movb *r9+,r3 ; read char after I and advance past
ci r3,Space ; is it space should be
jeq if2 ; if good jump down
li r1,1 ; missing space syntax error
mov r1,@ErrNum ; set error num
jmp ifend ; exit out bottom
if2:
movb *r9,r3 ; read char after space
ci r3,Space ; the i sp sp only check $T
jne if3
mov @DolT,r3 ; get DolT
ci r3,MFALSE ;
jeq ifeol ; if false do not execute line
jmp ifend ; if true continue on
if3:
bl @getmstr ; get mumps string
mov @ErrNum,r1 ; check for any errors
ci r1,0 ; see if any errors
jne ifend ; if errors get out
popss r6 ; pull result
bl @strtonum ; turn into value in R7
ci r7,0 ; if true execute line so jump down
jne iftrue
li r7,MFALSE
li r6,Dolt
mov r7,*r6 ; set $T to FALSE
li r0,0h
ifeol: movb *r9,r3 ; skip to eol, get next char
cb r3,r0 ; is it NULL (end of line)
jeq ifend
inc r9
jmp ifeol ; if not get next one
iftrue: li r7,MTRUE ;
li r6,DolT
movb r7,*r6 ; set $T to True
ifend:
pop r11
b *r11
| 24.52 | 57 | 0.570147 |
66e9f305a3592342906a518881f374c0a9177291 | 286 | asm | Assembly | libsrc/osca/create_file.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/osca/create_file.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/osca/create_file.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | ;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
;
; $Id: create_file.asm,v 1.2 2015/01/19 01:33:00 pauloscustodio Exp $
;
INCLUDE "flos.def"
PUBLIC create_file
EXTERN flos_err
create_file:
; __FASTCALL__
call kjt_create_file
jp flos_err
| 15.888889 | 69 | 0.730769 |
2e11759d2b5e48b95871c60aa74219c3ee735819 | 979 | asm | Assembly | programs/oeis/109/A109606.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/109/A109606.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/109/A109606.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A109606: Number of numbers k with 1 < k < n which are relatively prime to n.
; 0,0,1,1,3,1,5,3,5,3,9,3,11,5,7,7,15,5,17,7,11,9,21,7,19,11,17,11,27,7,29,15,19,15,23,11,35,17,23,15,39,11,41,19,23,21,45,15,41,19,31,23,51,17,39,23,35,27,57,15,59,29,35,31,47,19,65,31,43,23,69,23,71,35,39,35,59,23,77,31,53,39,81,23,63,41,55,39,87,23,71,43,59,45,71,31,95,41,59,39,99,31,101,47,47,51,105,35,107,39,71,47,111,35,87,55,71,57,95,31,109,59,79,59,99,35,125,63,83,47,129,39,107,65,71,63,135,43,137,47,91,69,119,47,111,71,83,71,147,39,149,71,95,59,119,47,155,77,103,63,131,53,161,79,79,81,165,47,155,63,107,83,171,55,119,79,115,87,177,47,179,71,119,87,143,59,159,91,107,71,189,63,191,95,95,83,195,59,197,79,131,99,167,63,159,101,131,95,179,47,209,103,139,105,167,71,179,107,143,79,191,71,221,95,119,111,225,71,227,87,119,111,231,71,183,115,155,95,237,63,239,109,161,119,167,79,215,119,163,99
cal $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
mov $1,$0
sub $1,1
| 139.857143 | 801 | 0.684372 |
96c04384e8af70cb71558dc85a32db0e2e7194f6 | 22,539 | asm | Assembly | Appl/Perf/init.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/Perf/init.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/Perf/init.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: Perf (Performance Meter)
FILE: init.asm (init code)
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 5/91 Initial version
DESCRIPTION:
This file source code for the Perf application. This code will
be assembled by ESP, and then linked by the GLUE linker to produce
a runnable .geo application file.
RCS STAMP:
$Id: init.asm,v 1.1 97/04/04 16:27:03 newdeal Exp $
------------------------------------------------------------------------------@
PerfInitCode segment resource ;OBSCURE INIT/EXIT CODE
COMMENT @----------------------------------------------------------------------
FUNCTION: PerfGenProcessOpenApplication --
MSG_GEN_PROCESS_OPEN_APPLICATION
SYNOPSIS: This is the method handler for the method that is sent out
when the application is started up or restarted from
state. After calling our superclass, we do any initialization
that is necessary.
CALLED BY:
PASS: AX = Method
CX = AppAttachFlags
DX = Handle to AppLaunchBlock
BP = Block handle
DS, ES = DGroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam/Tony 1990 Initial version
Eric 4/27/91 improvements, doc update
------------------------------------------------------------------------------@
PerfGenProcessOpenApplication method PerfProcessClass,
MSG_GEN_PROCESS_OPEN_APPLICATION
tst bp
jz 10$
;Restore the data (if any)
push cx, es ; save the method #, segment
mov bx, bp ; block handle to BX
call MemLock
mov ds, ax ; set up the segment
mov cx, (EndStateData - StartStateData)
clr si
mov di, offset StartStateData
rep movsb ; copy the bytes
call MemUnlock
pop cx, es ; restore the method #, segment
10$: ;Now call the superclass
mov ax, MSG_GEN_PROCESS_OPEN_APPLICATION
segmov ds, es ; DGroup => DS
mov di, offset PerfProcessClass ; class of SuperClass we call
call ObjCallSuperNoLock ; method already in AX
initUIComponents:
ForceRef initUIComponents
;initialize our UI components according to current state
push ax, cx, dx, bp
;init LMemBlock for use by code which draws our icon on the fly.
call PerfInitLMemBlockForMoniker
;Calculate TonyIndex
call CalcTonyIndex
;Initialize Memory Stats
call InitMemoryStats
;Load the PPP driver
call LoadPPPDriver
;Initialize Handle Stats
call InitHandleStats
;determine which colors would be cool
call PerfDetermineColors
;set up the user interface state
call PerfInitUIComponents
;Start a timer
call PerfSetTimerInterval ;in FixedCommonCode resource
pop ax, cx, dx, bp
ret
PerfGenProcessOpenApplication endm
COMMENT @----------------------------------------------------------------------
FUNCTION: PerfInitLMemBlockForMoniker
DESCRIPTION: Init LMemBlock for use by code which draws our icon on the fly.
(This may be wasted memory if we are never iconified,
but it yields predictable results whether we are iconified
or not.)
CALLED BY: PerfGenProcessOpenApplication
PASS: ds = dgroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 5/91 Initial version
------------------------------------------------------------------------------@
PerfInitLMemBlockForMoniker proc near
EC < tst ds:[lmemChunkForGString].handle >
EC < ERROR_NZ PERF_ERROR >
EC < tst ds:[lmemChunkForGString].chunk >
EC < ERROR_NZ PERF_ERROR >
mov ax, MONIKER_GSTRING_BLOCK_SIZE
mov cx, (mask HAF_LOCK shl 8) ;allocate as LOCKED (not swapable,
;not discardable)
call MemAlloc ;returns ^hbx = new block
;and ax = segment of block
jc done ;skip if error (no memory!)...
;create an LMem heap within this block, making sure that we don't
;grow the block size
segmov es, ds ;es = DGroup
mov ds, ax ;ds = block
;pass ^hbx = handle of block
mov dx, size LMemBlockHeader ;no other data to save
mov cl, (MONIKER_GSTRING_BLOCK_SIZE-(size LMemBlockHeader)-8)/8
mov ch, 1 ;we will only need one chunk handle
mov ax, LMEM_TYPE_GENERAL
call LMemInitHeap ;will update DS if block moves
;allocate one block on this LMem heap (ds = block)
clr al ;no ObjectChunkFlags to set
clr cx ;allocate to 0-size
call LMemAlloc
mov si, ax
segmov ds, es ;restore ds = DGroup
;save segment and chunk handle of this chunk.
mov ds:[lmemChunkForGString].handle, bx
mov ds:[lmemChunkForGString].chunk, si
done:
ret
PerfInitLMemBlockForMoniker endp
COMMENT @----------------------------------------------------------------------
FUNCTION: CalcTonyIndex
DESCRIPTION: This routine calculates the "Tony Index" for this machine.
A 1.0 on the Tony Index means that the machine has the
same performance as a base XT-class machine (4.77MHZ 8088),
in terms of CPU speed.
CALLED BY: PerfAttach
PASS: ds = dgroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam/Tony 1990 Initial version
Eric 4/27/91 improvements, doc update
------------------------------------------------------------------------------@
CalcTonyIndex proc near
;determine what the CPU idle count would be if the system
;were completely idle.
mov ax, SGIT_TOTAL_COUNT
call SysGetInfo
mov bx, 1000
div bx ;ax = dx:ax / 1000
mov ds:[totalCountDivBy1000], ax
;calculate the TonyIndex
mov ax, SGIT_CPU_SPEED
call SysGetInfo ;returns Tony Index * 10
mov ds:[tonyIndexTimes10], ax
ret
CalcTonyIndex endp
COMMENT @----------------------------------------------------------------------
FUNCTION: InitMemoryStats
DESCRIPTION: Perform some initialization work so that memory statistics
are easier to come by later on.
CALLED BY: PerfAttach
PASS: ds = dgroup
es = dgroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 5/91 Initial version
------------------------------------------------------------------------------@
InitMemoryStats proc near
mov ax, SGIT_HANDLE_TABLE_SEGMENT
call SysGetInfo
mov es:[handleStart].segment, ax
mov bx, ax
mov ax, SGIT_HANDLE_TABLE_START
call SysGetInfo
mov es:[handleStart].offset, ax
mov ax, SGIT_LAST_HANDLE
call SysGetInfo
mov es:[handleEnd], ax
; ;find the start and end of the handle table
;
; push ds
; call MemInfoHandles ;returns ds:bx = first handle
; ;and ds:ax = last handle + 1
; mov es:[handleStart].offset, bx
; mov es:[handleStart].segment, ds
; mov es:[handleEnd], ax
;
; ;now use a hack to get the offset of the Heap semaphore
;
; push ax
; call SysPrepareForSwitch
; mov es:[heapSemOffset], si
; pop ax
;
;no longer necessary: the fixed portions of the kernel,
;and the handle table, are technically in the heap.
;
; ;find the size of the kernel
; ; (offset from kdata to end of kdata)
;
; shr ax, 1 ;convert to # paragraphs
; shr ax, 1
; shr ax, 1
; shr ax, 1
;
; ;find the size of kcode in paragraphs
;
; mov bx, ds
; pop ds
;
; sub bx, segment MemInfoHandles
;
; add ax, bx ;ax = total size of kernel
; mov ds:[kernelSize], ax
;locate all swap drivers and their swap maps
clr bx ;process all geodes
mov di, cs
mov si, offset LocateSwapDriver
mov dx, ds
mov bp, offset dgroup:swapMaps
mov ds:[maxMemSwap], bx ;initialize maximum counters
mov ds:[maxDiskSwap], bx
call GeodeForEach
ret
InitMemoryStats endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LocateSwapDriver
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: See if the passed geode is a swap driver. If so, fetch
its swap map and initialize a entry in the swapMaps array
for it.
CALLED BY: InitMemoryStats via GeodeForEach
PASS: bx = handle of geode
es = segment of core block
dx:bp = first free entry in swapMaps
(PerfSwapDriver structure)
RETURN: carry set to stop processing (only if swapMaps fills up)
DESTROYED: di, si, es, ds, if I want
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/16/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
diskName char 'disk ' ; name of disk-based swap driver
LocateSwapDriver proc far
.enter
;
; See if the geode's a swap driver by examining its token characters
; and attributes. A swap driver's token is always 'MEMD', and it must
; at least have GA_DRIVER set in its attributes.
;
cmp {word}es:[GH_geodeToken].GT_chars,
'M' or ('E' shl 8)
jne continue
cmp {word}es:[GH_geodeToken].GT_chars+2,
'M' or ('D' shl 8)
jne continue
test es:[GH_geodeAttr], mask GA_DRIVER
jz continue
;
; Yup. See if its name is "disk" and mark it as disk-based if so.
; XXX: do this based on the speed or something.
;
segmov ds, cs
mov si, offset diskName
mov di, offset GH_geodeName
mov cx, length diskName
repe cmpsb
mov ax, TRUE
je fetchMap
not ax
fetchMap:
;
; Save the SD_disk flag and go fetch the swap map.
;
push ax
call GeodeInfoDriver ; ds:si <- DriverInfoStruct
mov di, DR_SWAP_GET_MAP
call ds:[si].DIS_strategy
pop cx
tst ax
jz continue ; no swap map => we can't
; find out anything about it
mov ds, dx ; ds:bp <- entry in table.
mov ds:[bp].PSD_map, ax
mov ds:[bp].PSD_disk, cx
mov di, offset maxMemSwap
jcxz figureKb
mov di, offset maxDiskSwap
figureKb:
mov es, ax ; es <- swap map
mov ax, es:[SM_total]
mul es:[SM_page] ; dx:ax <- # bytes of swap
mov cx, 1024
div cx ; ax <- # Kb of swap
add ds:[di], ax ; add to total
mov dx, ds ; restore dx for next round
;
; Another map entry consumed. If we've used them all, stop processing.
;
add bp, size PerfSwapDriver
cmp bp, offset dgroup:swapMaps + size swapMaps
jb continue
stc
jmp done
continue:
clc
done:
.leave
ret
LocateSwapDriver endp
COMMENT @----------------------------------------------------------------------
FUNCTION: PerfDetermineColors
DESCRIPTION:
CALLED BY:
PASS: ds = dgroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 5/91 Initial version
------------------------------------------------------------------------------@
PerfDetermineColors proc near
;first ask our GenApplication object if we are running in black&white
GetResourceHandleNS PerfApp, bx
mov si, offset PerfApp
mov ax, MSG_GEN_APPLICATION_GET_DISPLAY_SCHEME
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ;returns ah = DisplayType
;by default, things are set up for color. If is color, skip to end.
ANDNF ah, mask DT_DISP_CLASS
cmp ah, DC_GRAY_1 shl offset DT_DISP_CLASS
jne setForColor
setForBW:
ForceRef setForBW
;set up for B&W operation
mov ds:[bwMode], TRUE
;disable color usage
GetResourceHandleNS GraphColorsGenInteraction, bx
mov si, offset GraphColorsGenInteraction
mov ax, MSG_GEN_SET_NOT_USABLE
mov dl, VUM_NOW
clr di
call ObjMessage
;change colors for all charts
segmov es, ds
mov di, offset graphColors
mov cx, NUM_STAT_TYPES
mov ax, BW_GRAPH_BACKGROUND_COLOR
rep stosw ;es:[di] = ax, di++
;set color for line, value text, and caption text
mov ax, BW_GRAPH_FOREGROUND_COLOR
mov ds:[lineColor], ax
mov ds:[valueColor], ax
mov ds:[captionColor], ax
jmp short done
setForColor:
;set up for color operation
mov ds:[bwMode], FALSE
;enable color usage
GetResourceHandleNS GraphColorsGenInteraction, bx
mov si, offset GraphColorsGenInteraction
mov ax, MSG_GEN_SET_USABLE
mov dl, VUM_NOW
clr di
call ObjMessage
;change colors for all charts
segmov es, ds
mov si, offset InitialGraphColors
mov di, offset graphColors
mov cx, NUM_STAT_TYPES
rep movsw
;set color for line, value text, and caption text
mov ds:[lineColor], C_BLACK
mov ds:[valueColor], C_BLUE
mov ds:[captionColor], C_BLACK
done:
ret
PerfDetermineColors endp
COMMENT @----------------------------------------------------------------------
FUNCTION: PerfGenProcessCloseApplication -- MSG_GEN_PROCESS_CLOSE_APPLICATION
DESCRIPTION:
CALLED BY:
PASS: DS, ES = DGroup
AX = MSG_UI_CLOSE_APPLICATION
RETURN: CX = Block handle holding state data
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 4/27/91 Initial version
------------------------------------------------------------------------------@
PerfGenProcessCloseApplication method PerfProcessClass,
MSG_GEN_PROCESS_CLOSE_APPLICATION
;nuke LMemBlock which was used by code which draws our icon on the fly.
call PerfNukeLMemBlockForMoniker
; Allocate the block
mov ax, (EndStateData - StartStateData)
mov cx, ALLOC_DYNAMIC_NO_ERR or mask HF_SHARABLE or (mask HAF_LOCK shl 8)
call MemAlloc
mov es, ax
; Store the state
mov cx, (EndStateData - StartStateData)
clr di
mov si, offset StartStateData
rep movsb ; copy the bytes
;Clean up
call MemUnlock
mov cx, bx
ret
PerfGenProcessCloseApplication endm
COMMENT @----------------------------------------------------------------------
FUNCTION: PerfNukeLMemBlockForMoniker
DESCRIPTION: Nuke LMemBlock.
CALLED BY: PerfGenProcessCloseApplication
PASS: ds = dgroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 5/91 Initial version
------------------------------------------------------------------------------@
PerfNukeLMemBlockForMoniker proc near
mov bx, ds:[lmemChunkForGString].handle
tst bx
jz done
call MemFree
clr ds:[lmemChunkForGString].handle
done:
ret
PerfNukeLMemBlockForMoniker endp
COMMENT @----------------------------------------------------------------------
FUNCTION: PerfInitUIComponents
DESCRIPTION: This routine will initialize all of our UI components
according to the current state of our variables.
CALLED BY: PerfAttach
PASS: ds = dgroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 4/28/91 Initial version
------------------------------------------------------------------------------@
PerfInitUIComponents proc near
;set the on/off state
mov cx, ds:[onOffState] ;cx = TRUE or FALSE
GetResourceHandleNS PerfOnOffGenItemGroup, bx
mov si, offset PerfOnOffGenItemGroup
clr dx ;not indeterminant
mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION
clr di
call ObjMessage
;calculate the new number of graphs
call PerfCalcNumGraphs ;in FixedCommonCode resource
;resize the view accordingly
CallMod PerfSizeViewAccordingToGraphs ;in PerfUIHandlingCode resource
;update the state of the PerfMeter checkboxes
call PerfUpdatePerfMeterBooleans
;update the state of the Display options checkboxes
mov cl, ds:[displayOptions] ;cx = state for flags
clr ch
clr dx ;nothing is indeterminant
GetResourceHandleNS DisplayOptionsCheckboxes, bx
mov si, offset DisplayOptionsCheckboxes
mov ax, MSG_GEN_BOOLEAN_GROUP_SET_GROUP_STATE
clr di
call ObjMessage
;might want to add this list back in for V2.0
; ;set the current color of the CPU meter in the Color dialog box
; ;(do this by telling the scrolling list to update us again)
;
; GetResourceHandleNS MeterList, bx
; mov si, offset MeterList
; mov ax, MSG_GEN_LIST_SEND_AD
; mov bp, mask LF_REFERENCE_USER_EXCL
; clr di
; call ObjMessage
;see which graph was the "current" graph, and update the color bar
;accordingly.
;2.0BUSTED - COLORS
; mov cx, ds:[currentGraph]
; call PerfSetGraphColorsChooseMeter ;in FixedCommonCode resource
;Now, set the PerfPrimary usable
GetResourceHandleNS PerfPrimary, bx
mov si, offset PerfPrimary
mov ax, MSG_GEN_SET_USABLE
mov dl, VUM_NOW
clr di
call ObjMessage
;done
ret
PerfInitUIComponents endp
;update the state of the PerfMeter checkboxes
PerfUpdatePerfMeterBooleans proc near
;convert our table of BooleanWords into a word-length bitfield.
mov di, ST_AFTER_LAST_STAT_TYPE-2
clr cx
10$: ;check this BooleanWord
cmp word ptr ds:[graphModes][di], 0
jz 20$ ;skip if is off (cy=0)...
stc ;set carry
20$:
rcr cx, 1
sub di, 2
jns 10$
;now send this bitfield record off to the list
GetResourceHandleNS PerfMeterCheckboxes, bx
mov si, offset PerfMeterCheckboxes
mov ax, MSG_GEN_BOOLEAN_GROUP_SET_GROUP_STATE
clr dx ;nothing is indeterminant
clr di
call ObjMessage
ret
PerfUpdatePerfMeterBooleans endp
COMMENT @----------------------------------------------------------------------
FUNCTION: PerfDetach
DESCRIPTION:
CALLED BY:
PASS: ds = dgroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam/Tony 1990 Initial version
Eric 4/27/91 improvements, doc update
------------------------------------------------------------------------------@
PerfDetach method PerfProcessClass, MSG_META_DETACH
;Remove the timer
mov bx,ds:[timerHandle]
mov ax,ds:[timerID]
call TimerStop
;Unload the PPP driver
call UnloadPPPDriver
;Call our superclass (the UI) to finish
mov ax, MSG_META_DETACH
mov di,offset PerfProcessClass
call ObjCallSuperNoLock
ret
PerfDetach endp
COMMENT @----------------------------------------------------------------------
FUNCTION: PerfViewWinClosed -- MSG_META_CONTENT_VIEW_WIN_CLOSED
DESCRIPTION: This method is sent by the window inside the GenView,
as it is closing. This indicates that the application
is exiting, or is being iconified.
PASS: ds = dgroup
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Adam/Tony 1990 Initial version
Eric 4/27/91 improvements, doc update
------------------------------------------------------------------------------@
PerfViewWinClosed method PerfProcessClass,
MSG_META_CONTENT_VIEW_WIN_CLOSED
cmp bp, ds:[viewWindow] ;is it our window?
jnz TWDN_other ;skip if not...
;nuke our window and GState handles
mov ds:[viewWindow], 0 ;indicate that we don't have a window
mov di, ds:[viewWinGState] ;do we still have a GState?
tst di
jz TWDN_other ;skip if not...
call GrDestroyState ;nuke the GState
mov ds:[viewWinGState],0 ;indicate that we did
;in case the window is iconifying, ensure that we force the caption
;to "draw" (i.e. be copied to the icon) at least once.
mov ds:[redrawCaptions], 1
TWDN_other:
mov di, offset PerfProcessClass ; class of SuperClass we call
call ObjCallSuperNoLock
ret
PerfViewWinClosed endp
LocalDefNLString socketString, <"socket", 0>
EC <LocalDefNLString pppName, <"pppec.geo", 0> >
NEC<LocalDefNLString pppName, <"ppp.geo", 0> >
COMMENT @----------------------------------------------------------------
FUNCTION: LoadPPPDriver
DESCRIPTION: Load the PPP driver to obtain PPP xmit statistics.
PASS: ds = dgroup
RETURN: nothing
DESTROYED: nothing
STRATEGY:
SIDE EFFECTS: Clears the PPP statistics.
REVISION HISTORY:
Name Date Description
---- ---- -----------
mzhu 11/30/98 initial version
dhunter 1/30/2000 adapted for Perf
-------------------------------------------------------------------------@
LoadPPPDriver proc far
uses bx, si, dx, ax, ds, es, bp, di
.enter
;
; Clear the PPP statistics here as a convenient place.
;
clrdw ds:[pppBytesSent]
clrdw ds:[pppBytesReceived]
;
; Locate and load the PPP driver.
;
segmov es, ds, si
segmov ds, cs, si
call FilePushDir
mov bx, SP_SYSTEM
mov dx, offset socketString
call FileSetCurrentPath
jc done
mov ax, 0
mov bx, 0
mov si, offset pppName ; ds:si = driver name
call GeodeUseDriver
jc done
mov es:[pppDr], bx
;
; Get the strategy routine.
;
call GeodeInfoDriver
movdw es:[pppStrategy], ds:[si].DIS_strategy, ax
done:
call FilePopDir
.leave
ret
LoadPPPDriver endp
COMMENT @----------------------------------------------------------------
FUNCTION: UnloadPPPDriver
DESCRIPTION: Unload the PPP driver
PASS: ds = dgroup
RETURN: nothing
STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
dhunter 1/30/2000 Initial Revision
-------------------------------------------------------------------------@
UnloadPPPDriver proc far
uses bx
.enter
mov bx, ds:[pppDr]
tst bx
jz done
call GeodeFreeDriver
clr ds:[pppDr]
done:
.leave
ret
UnloadPPPDriver endp
COMMENT @----------------------------------------------------------------------
FUNCTION: InitHandleStats
DESCRIPTION: Do any initialization work to maintain handle statistics
PASS: ds = dgroup
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 10/21/00 Initial version
------------------------------------------------------------------------------@
InitHandleStats proc near
uses ax, cx, dx
.enter
; calculate # of handles/pixel for graphing purposes. Rounding
; won't matter here since the system will always be using a decent
; number of handles, so just use the integer result.
mov ax, SGIT_TOTAL_HANDLES
call SysGetInfo
mov cx, GRAPH_HEIGHT
div cx
mov ds:[handlesPerPixel], ax
.leave
ret
InitHandleStats endp
PerfInitCode ends
| 22.382324 | 80 | 0.620436 |
311edef2a6f8207c0c04babaf415850ebb79855f | 2,236 | asm | Assembly | asm/masm32/aimload/aim.asm | dindoliboon/archive | a5b54367dbb57260f9230375ac81e86c5fce0d7d | [
"MIT"
] | 4 | 2020-10-02T15:24:20.000Z | 2021-11-02T04:20:38.000Z | asm/masm32/aimload/aim.asm | dindoliboon/archive | a5b54367dbb57260f9230375ac81e86c5fce0d7d | [
"MIT"
] | null | null | null | asm/masm32/aimload/aim.asm | dindoliboon/archive | a5b54367dbb57260f9230375ac81e86c5fce0d7d | [
"MIT"
] | 2 | 2019-10-28T01:20:07.000Z | 2020-10-02T15:25:13.000Z | ; #########################################################################
.386
.model flat, stdcall
option casemap :none
; #########################################################################
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
include oscore.inc
includelib oscore.lib
; #########################################################################
szText MACRO Name, Text:VARARG
LOCAL lbl
jmp lbl
Name db Text,0
lbl:
ENDM
m2m MACRO M1, M2
push M2
pop M1
ENDM
return MACRO arg
mov eax, arg
ret
ENDM
; #########################################################################
WinMain PROTO :DWORD,:DWORD,:DWORD,:DWORD
; #########################################################################
.data
szOSCoreDLL db "oscore.dll", 0
szError db "Error Occured", 0
szLoad db "Error: loading oscore.dll!", 0
szSigned db "Error: you can't be signed on!", 0
szBuddyList db "_Oscar_BuddyListWin", 0
CommandLine dd 0
hInstance dd 0
hModule dd 0
hMute dd 0
.data
szModuleName db 1025 dup(?)
.code
start:
; #########################################################################
invoke GetModuleHandle, NULL
mov hInstance, eax
invoke FindWindow, addr szBuddyList, NULL
.if eax
invoke MessageBox, 0, addr szSigned, addr szError, MB_OK
jmp cleanup
.endif
invoke GetCommandLine
mov CommandLine, eax
invoke LoadLibrary, addr szOSCoreDLL
.if eax != NULL
mov hModule, eax
invoke OscoreRun, hModule, addr CommandLine, SW_SHOWNORMAL
.else
invoke MessageBox, 0, addr szLoad, addr szError, MB_OK
.endif
cleanup:
.if hModule
invoke FreeLibrary, hModule
.endif
invoke ExitProcess, 0
; #########################################################################
end start
| 23.536842 | 75 | 0.443649 |
5c961a9b2cba3214e339093c593e41262dd7b06c | 1,769 | asm | Assembly | programs/oeis/020/A020873.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/020/A020873.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/020/A020873.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A020873: a(n) = number of cycles in Moebius ladder M_n.
; 2,3,7,15,29,53,95,171,313,585,1115,2159,4229,8349,16567,32979,65777,131345,262451,524631,1048957,2097573,4194767,8389115,16777769,33555033,67109515,134218431,268436213,536871725,1073742695,2147484579,4294968289,8589935649,17179870307,34359739559,68719477997,137438954805,274877908351,549755815371,1099511629337,2199023257193,4398046512827,8796093024015,17592186046309,35184372090813,70368744179735,140737488357491,281474976712913,562949953423665,1125899906845075,2251799813687799,4503599627373149,9007199254743749,18014398509484847,36028797018966939,72057594037931017,144115188075859065,288230376151715051,576460752303426911,1152921504606850517,2305843009213697613,4611686018427391687,9223372036854779715,18446744073709555649,36893488147419107393,73786976294838210755,147573952589676417351,295147905179352830413,590295810358705656405,1180591620717411308255,2361183241434822611819,4722366482869645218809,9444732965739290432649,18889465931478580860187,37778931862957161715119,75557863725914323424837,151115727451828646844125,302231454903657293682551,604462909807314587359251,1208925819614629174712497,2417851639229258349418833,4835703278458516698831347,9671406556917033397656215,19342813113834066795305789,38685626227668133590604773,77371252455336267181202575,154742504910672534362398011,309485009821345068724788713,618970019642690137449569945,1237940039285380274899132235,2475880078570760549798256639,4951760157141521099596505269,9903520314283042199193002349,19807040628566084398385996327,39614081257132168796771984099,79228162514264337593543959457,158456325028528675187087909985,316912650057057350374175810851,633825300114114700748351612391
mov $1,$0
pow $0,2
sub $0,$1
mov $2,2
pow $2,$1
add $0,$2
add $0,1
| 160.818182 | 1,642 | 0.914076 |
a9e767166a66fa207c0dae9d42dd0cafad03ddfd | 265 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/misc/c/sdcc_iy/zx_scroll_up_attr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/zx/misc/c/sdcc_iy/zx_scroll_up_attr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/zx/misc/c/sdcc_iy/zx_scroll_up_attr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; void zx_scroll_up_attr(uchar rows, uchar attr)
SECTION code_clib
SECTION code_arch
PUBLIC _zx_scroll_up_attr
EXTERN asm0_zx_scroll_up_attr
_zx_scroll_up_attr:
pop af
pop de
push de
push af
ld l,d
ld d,0
jp asm0_zx_scroll_up_attr
| 12.619048 | 48 | 0.735849 |
4e20f891e4fc5fc5c1d9ddb0eef221f9f0987970 | 460 | asm | Assembly | programs/oeis/073/A073551.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/073/A073551.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/073/A073551.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A073551: Number of Fibonacci numbers F(k), k <= 10^n, which end in 3.
; 2,12,132,1332,13332,133332,1333332,13333332,133333332,1333333332,13333333332,133333333332,1333333333332,13333333333332,133333333333332,1333333333333332,13333333333333332,133333333333333332,1333333333333333332,13333333333333333332,133333333333333333332,1333333333333333333332,13333333333333333333332
mov $1,10
pow $1,$0
mul $1,6
div $1,9
mul $1,9
div $1,45
mul $1,10
add $1,2
mov $0,$1
| 35.384615 | 300 | 0.808696 |
2ce523b2e3b2c40702a61b8074a709ddb9829a36 | 147 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_endt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_endt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_endt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: zel_endt.asm
Type: file
Size: 217052
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: 87452C4715A94DB9A5C9EA6E0F77EE9A5E2657D9
Description: null
| 21 | 47 | 0.816327 |
501767c76c86addedfe08be3948f453a3b79ac08 | 1,037 | asm | Assembly | _build/dispatcher/jmp_ippsHMAC_GetTag_53911a47.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:21:54.000Z | 2021-10-04T10:21:54.000Z | _build/dispatcher/jmp_ippsHMAC_GetTag_53911a47.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | _build/dispatcher/jmp_ippsHMAC_GetTag_53911a47.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | extern m7_ippsHMAC_GetTag:function
extern n8_ippsHMAC_GetTag:function
extern y8_ippsHMAC_GetTag:function
extern e9_ippsHMAC_GetTag:function
extern l9_ippsHMAC_GetTag:function
extern n0_ippsHMAC_GetTag:function
extern k0_ippsHMAC_GetTag:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsHMAC_GetTag
.Larraddr_ippsHMAC_GetTag:
dq m7_ippsHMAC_GetTag
dq n8_ippsHMAC_GetTag
dq y8_ippsHMAC_GetTag
dq e9_ippsHMAC_GetTag
dq l9_ippsHMAC_GetTag
dq n0_ippsHMAC_GetTag
dq k0_ippsHMAC_GetTag
segment .text
global ippsHMAC_GetTag:function (ippsHMAC_GetTag.LEndippsHMAC_GetTag - ippsHMAC_GetTag)
.Lin_ippsHMAC_GetTag:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsHMAC_GetTag:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsHMAC_GetTag]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsHMAC_GetTag:
| 26.589744 | 87 | 0.78785 |
40f0bf2a8e24602c6a391ab3a5941493df85ebb9 | 283 | asm | Assembly | src/graphics/assets.asm | jonasbantunes/tictactoe-gb | 21838bf92219a923cc1c1be8bc078b8adeab144a | [
"MIT"
] | null | null | null | src/graphics/assets.asm | jonasbantunes/tictactoe-gb | 21838bf92219a923cc1c1be8bc078b8adeab144a | [
"MIT"
] | null | null | null | src/graphics/assets.asm | jonasbantunes/tictactoe-gb | 21838bf92219a923cc1c1be8bc078b8adeab144a | [
"MIT"
] | null | null | null | ; Load font.chr asset to _VRAM -> _VRAM + $7F.
;
; Destroys registers `af`, `bc`, `de`, `hl`
LoadFont:
ld hl, _VRAM
ld de, FontTiles
ld bc, FontTilesEnd - FontTiles
.while
ld a, b
or c
and a
jp z, .end
.do
ld a, [de]
inc de
ld [hl], a
inc hl
dec bc
jp .while
.end
ret | 13.47619 | 46 | 0.607774 |
06bf0aac569068c4645c1fd1080d3b29cf70d7eb | 264 | asm | Assembly | programs/oeis/147/A147587.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/147/A147587.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/147/A147587.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A147587: a(n) = 14*n + 7.
; 7,21,35,49,63,77,91,105,119,133,147,161,175,189,203,217,231,245,259,273,287,301,315,329,343,357,371,385,399,413,427,441,455,469,483,497,511,525,539,553,567,581,595,609,623,637,651,665,679,693,707,721,735
mov $1,$0
mul $1,14
add $1,7
| 37.714286 | 205 | 0.681818 |
bee3c4a98205de39f2707b62e697b427f256995b | 633 | asm | Assembly | oeis/342/A342802.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/342/A342802.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/342/A342802.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A342802: Replace 2^k with (-3)^k in binary expansion of n.
; Submitted by Simon Strandgaard
; 0,1,-3,-2,9,10,6,7,-27,-26,-30,-29,-18,-17,-21,-20,81,82,78,79,90,91,87,88,54,55,51,52,63,64,60,61,-243,-242,-246,-245,-234,-233,-237,-236,-270,-269,-273,-272,-261,-260,-264,-263,-162,-161,-165,-164,-153,-152,-156,-155,-189,-188,-192,-191,-180,-179,-183,-182,729,730,726,727,738,739,735,736,702,703,699,700,711,712,708,709,810,811,807,808,819,820,816,817,783,784,780,781,792,793,789,790,486,487,483,484
mov $2,4
lpb $0
mul $2,3
mov $3,$0
div $0,2
add $3,$0
mod $3,3
mul $3,$2
add $1,$3
mul $2,-1
lpe
mov $0,$1
div $0,12
| 35.166667 | 404 | 0.620853 |
88a9ac046cc9b14a2d3cdaeb6c96683081876aa3 | 2,729 | asm | Assembly | kernel/input/lineinput.asm | paulscottrobson/eris | cf102530334ed86360deb20f0e41af1e10f5d584 | [
"MIT"
] | 13 | 2020-03-31T08:21:22.000Z | 2021-07-28T20:03:29.000Z | kernel/input/lineinput.asm | paulscottrobson/eris | cf102530334ed86360deb20f0e41af1e10f5d584 | [
"MIT"
] | 37 | 2020-03-31T06:35:37.000Z | 2020-09-17T08:56:48.000Z | kernel/input/lineinput.asm | paulscottrobson/eris | cf102530334ed86360deb20f0e41af1e10f5d584 | [
"MIT"
] | 5 | 2020-05-10T10:23:06.000Z | 2022-01-14T02:21:02.000Z | ; *****************************************************************************
; *****************************************************************************
;
; Name: lineinput.asm
; Purpose: Line Input code
; Created: 9th March 2020
; Reviewed: 16th March 2020
; Author: Paul Robson (paul@robsons.org.uk)
;
; *****************************************************************************
; *****************************************************************************
; *****************************************************************************
;
; Input a line from the screen, return text as ASCIIZ @ R0
;
; (note the text is coloured)
; (Note, the text is in screen memory, so it may change if you print to it,
; if you wish to do this copy it to a buffer)
; *****************************************************************************
.OSXLineInput
push r1,link
clr r0 ; don't print anything first time.
._OSXLIEdit
jsr #OSPrintCharacter ; print char (normally last typed)
jsr #OSCursorGet ; get next character flashing cursor
mov r1,r0,#0 ; is it CR ?
sub r1,#13
skz r1
jmp #_OSXLIEdit ; if not, echo it and keep going.
;
mov r0,#14 ; print a non-destructive CR
jsr #OSXPrintCharacter ; which doesn't erase to EOL.
jsr #_OSCurrentTextR1 ; get address into R1
mov r0,r1,#0 ; put into R0
;
; Keep going back until you hit a $xx00 at the end of the previous line. Note
; that there is a $0000 word before the top left character in the text buffer
; as a stop
;
; IMPORTANT: The word immediately before the text buffer screen must have
; $0000 in it.
;
._OSXLIFindStart:
sub r0,#charWidth ; up one line.
mov r1,r0,#0 ; read the word before, e.g. last char of prev line.
dec r1
ldm r1,r1,#0
and r1,#$00FF ; the text is coloured so strip that off.
skz r1 ; if zero, R0 points to the line start.
jmp #_OSXLIFindStart
push r0 ; save start
mov r0,#3 ; up one so the non destructive CR is this line
jsr #OSXPrintCharacter
;
; Now find the end so the cursor is properly positioned.
;
._OSXLIFindEnd
jsr #_OSCurrentTextR1 ; address of current line
add r1,#charWidth-1 ; last character of current line
ldm r1,r1,#0 ; check if NULL
and r1,#$00FF
sknz r1
jmp #_OSXLIExit
mov r0,#14 ; print a non-destructive CR
jsr #OSXPrintCharacter ; which doesn't erase to EOL.
jmp #_OSXLIFindEnd
._OSXLIExit
mov r0,#14 ; print a non-destructive CR
jsr #OSXPrintCharacter ; move to following line.
pop r0 ; restore start
pop r1,link
ret
| 36.386667 | 80 | 0.523269 |
c85c5628b6357779df84a48f9751acda7d538c0a | 2,065 | asm | Assembly | ee/wman/drbdr.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ee/wman/drbdr.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ee/wman/drbdr.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | * Draw border round object hit area V1.05 1986 Tony Tebby QJUMP
*
* 2002-13-11 1.05 Adapted for high colour use (MK)
*
section wman
*
xdef wm_drbdr
xdef wm_drins
xdef wm_clrci
*
xref wmc_trap3
*
include dev8_keys_qdos_io
include dev8_keys_wstatus
*
* d0 r error return
* a0 c p channel ID of window
* a1 c p pointer to window status area
*
* all other registers preserved
*
xsize equ $00
ysize equ $02
xorg equ $04
yorg equ $06
*
reglist reg d1-d4/a1
stk_wstt equ $18 ; pointer to status on stack
wdef.blk equ $08 ; 8 bytes for define block
*
* clear current item
*
wm_clrci
tst.w ws_citem(a1) ; is there a current loose item?
bmi.s wci_rts ; ... no, can't get rid of it
st ws_citem(a1) , ... there is not now
move.l ws_ciact(a1),d0 ; current item action routine
beq.s wmc_drbdr ; ... none
clr.l ws_ciact(a1) ; ... none now
move.l d0,-(sp) ; ... go for it!!
wci_rts
rts
*
wm_drins
moveq #0,d0 ; no border offset
bra.s wdr_do
wm_drbdr
wmc_drbdr
moveq #-1,d0 ; add border to outside
wdr_do
movem.l reglist,-(sp) ; save registers
lea ws_cibrw(a1),a1
move.w (a1)+,d2 ; border width
move.w (a1),d1 ; border colour
add.w #ws_cihit-ws_cipap+wdef.blk,a1 ; end of definition block
*
move.w d2,d4 ; border width
and.w d0,d4 ; (or not)
move.w -(a1),d0 ; y origin
sub.w d4,d0 ; less border
move.w d0,-(sp)
add.w d4,d4
move.w -(a1),d0 ; x origin
sub.w d4,d0 ; less border
move.w d0,-(sp)
move.w -(a1),d0 ; height
add.w d4,d0 ; + twice border
move.w d0,-(sp)
add.w d4,d4
add.w -(a1),d4 ; width + four times border
move.w d4,-(sp)
move.l sp,a1
bsr.s wdb_wdef ; redefine window and border
bne.s wdb_exit
*
move.l stk_wstt(sp),a1 ; reset pointer to window status
lea ws_subdf(a1),a1 ; genuine window area
moveq #0,d2 ; no border
bsr.s wdb_wdef
*
wdb_exit
addq.l #wdef.blk,sp ; restore stack
movem.l (sp)+,reglist ; and registers
wdb_rts
rts
*
* redefine window
*
wdb_wdef
moveq #iow.defw,d0
moveq #forever,d3
jsr wmc_trap3
tst.l d0
rts
end
| 21.071429 | 72 | 0.661017 |
1ba7ea56b681b933ffc1736d85f5396a67567d6e | 4,811 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1264.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1264.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1264.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 %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1905, %r10
nop
nop
sub $42137, %rdx
mov (%r10), %eax
and %rdi, %rdi
lea addresses_UC_ht+0x1d845, %rbx
nop
nop
nop
nop
nop
inc %r10
movb $0x61, (%rbx)
nop
nop
nop
sub $51016, %rsi
lea addresses_WC_ht+0x45a5, %rsi
lea addresses_normal_ht+0x1ba5, %rdi
nop
nop
nop
add %rdx, %rdx
mov $65, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp %rdx, %rdx
lea addresses_A_ht+0x3e85, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
and %rsi, %rsi
movb (%rdi), %bl
nop
nop
nop
nop
add $44750, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r8
push %rdx
// Faulty Load
lea addresses_RW+0x1f845, %rdx
nop
nop
nop
nop
nop
cmp $6121, %r8
mov (%rdx), %r10
lea oracles, %rdx
and $0xff, %r10
shlq $12, %r10
mov (%rdx,%r10,1), %r10
pop %rdx
pop %r8
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_RW', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 6}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 6}}
{'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
*/
| 45.819048 | 2,999 | 0.660362 |
789c274d1c546a3fe02a4e9c5c31e8213d566843 | 3,312 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_63_823.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_63_823.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_63_823.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xb148, %r13
nop
nop
nop
xor $7696, %r15
vmovups (%r13), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %r8
nop
nop
nop
sub $37077, %r11
lea addresses_WC_ht+0x8458, %r15
nop
nop
nop
and $1833, %rbx
movups (%r15), %xmm6
vpextrq $1, %xmm6, %r9
cmp %r13, %r13
lea addresses_normal_ht+0x66a8, %rbx
nop
nop
nop
nop
and %rcx, %rcx
movups (%rbx), %xmm1
vpextrq $1, %xmm1, %r15
nop
nop
sub %r13, %r13
lea addresses_UC_ht+0x12d48, %rbx
nop
nop
nop
nop
and $12248, %r9
mov (%rbx), %r13w
nop
nop
xor %r15, %r15
lea addresses_A_ht+0x18948, %rsi
lea addresses_WT_ht+0xb308, %rdi
nop
nop
add %r13, %r13
mov $96, %rcx
rep movsb
nop
dec %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r15
push %r8
push %r9
push %rcx
// Store
lea addresses_A+0x965c, %r11
nop
nop
sub $12824, %r9
movw $0x5152, (%r11)
nop
nop
nop
cmp %r11, %r11
// Store
mov $0x3cc, %r9
and %r8, %r8
movb $0x51, (%r9)
nop
xor %r14, %r14
// Store
mov $0x26e9030000000a80, %r8
add %r11, %r11
mov $0x5152535455565758, %r14
movq %r14, %xmm4
vmovups %ymm4, (%r8)
nop
nop
nop
and $21326, %r14
// Store
lea addresses_PSE+0x4148, %r10
nop
nop
nop
nop
nop
inc %r9
movl $0x51525354, (%r10)
nop
nop
xor %r15, %r15
// Faulty Load
mov $0x739d140000000548, %r8
nop
nop
nop
sub $2028, %r14
movb (%r8), %r15b
lea oracles, %r11
and $0xff, %r15
shlq $12, %r15
mov (%r11,%r15,1), %r15
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': True}}
{'00': 63}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 20.195122 | 188 | 0.639795 |
4f96d81bf8110b30d05025df51ba20e942b33963 | 3,908 | asm | Assembly | Library/Pref/Prefvid/prefvid.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Pref/Prefvid/prefvid.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Pref/Prefvid/prefvid.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: prefvid.asm
AUTHOR: Gene Anderson, Aug 25, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Gene 8/25/92 Initial revision
DESCRIPTION:
Code for keyboard module of Preferences
$Id: prefvid.asm,v 1.1 97/04/05 01:37:33 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
;------------------------------------------------------------------------------
; Common GEODE stuff
;------------------------------------------------------------------------------
include geos.def
include heap.def
include geode.def
include resource.def
include ec.def
include assert.def
include library.def
include object.def
include graphics.def
include gstring.def
include win.def
include char.def
include initfile.def
include driver.def
;-----------------------------------------------------------------------------
; Libraries used
;-----------------------------------------------------------------------------
UseLib ui.def
include Objects/vTextC.def
UseLib config.def
UseDriver Internal/videoDr.def
;-----------------------------------------------------------------------------
; DEF FILES
;-----------------------------------------------------------------------------
include prefvidDialog.def
include prefvidDeviceList.def
include prefvidGadgets.def
include prefvid.def
include prefvid.rdef
;-----------------------------------------------------------------------------
; CODE
;-----------------------------------------------------------------------------
PrefVidCode segment resource
include prefvidDeviceList.asm
include prefvidDialog.asm
include prefvidGadgets.asm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrefVidGetPrefUITree
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Return the root of the UI tree for "Preferences"
CALLED BY: PrefMgr
PASS: none
RETURN: dx:ax - OD of root of tree
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 8/25/92 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrefVidGetPrefUITree proc far
mov dx, handle PrefVidRoot
mov ax, offset PrefVidRoot
ret
PrefVidGetPrefUITree endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrefVidGetModuleInfo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Fill in the PrefModuleInfo buffer so that PrefMgr
can decide whether to show this button
CALLED BY: PrefMgr
PASS: ds:si - PrefModuleInfo structure to be filled in
RETURN: ds:si - buffer filled in
DESTROYED: ax,bx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECSnd/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 10/26/92 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrefVidGetModuleInfo proc far
.enter
clr ax
mov ds:[si].PMI_requiredFeatures, mask PMF_HARDWARE
mov ds:[si].PMI_prohibitedFeatures, ax
mov ds:[si].PMI_minLevel, ax
mov ds:[si].PMI_maxLevel, UIInterfaceLevel-1
mov ds:[si].PMI_monikerList.handle, handle PrefVidMonikerList
mov ds:[si].PMI_monikerList.offset, offset PrefVidMonikerList
mov {word} ds:[si].PMI_monikerToken, 'P' or ('F' shl 8)
mov {word} ds:[si].PMI_monikerToken+2, 'V' or ('D' shl 8)
mov {word} ds:[si].PMI_monikerToken+4, MANUFACTURER_ID_APP_LOCAL
.leave
ret
PrefVidGetModuleInfo endp
PrefVidCode ends
| 24.425 | 80 | 0.484647 |
9399277cc2baf4c9d913aade3f48d080bf9ccf2e | 413 | asm | Assembly | oeis/198/A198786.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/198/A198786.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/198/A198786.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A198786: G.f. satisfies: A(x) = 1 + 2*x*sqrt(A(x)/A(-x)).
; Submitted by Christian Krause
; 1,2,4,4,0,-4,0,8,0,-20,0,56,0,-168,0,528,0,-1716,0,5720,0,-19448,0,67184,0,-235144,0,832048,0,-2971600,0,10697760,0,-38779380,0,141430680,0,-518579160,0,1910554800,0,-7069052760,0,26256481680,0,-97865068080,0,365930254560,0
seq $0,135863 ; G.f. A(x) = 1 + 4x*A(x)^(1/2) ; A(x) = 1 + 8x^2 + 4x*sqrt(1 + 4x^2).
dif $0,2
| 59 | 225 | 0.636804 |
73521d16d49d77222e4b69bca1b5f524adc5a8dd | 5,137 | asm | Assembly | demos/SicDemos/stdinout/Morse/MorseEncoder.asm | roycrippen/sicxe | fdca37f56c95f2a76a78455f86a90e4b89329a54 | [
"MIT"
] | null | null | null | demos/SicDemos/stdinout/Morse/MorseEncoder.asm | roycrippen/sicxe | fdca37f56c95f2a76a78455f86a90e4b89329a54 | [
"MIT"
] | null | null | null | demos/SicDemos/stdinout/Morse/MorseEncoder.asm | roycrippen/sicxe | fdca37f56c95f2a76a78455f86a90e4b89329a54 | [
"MIT"
] | null | null | null | MRSNCD START 0
JSUB stackinit
CHECK TD STDIN
JEQ CHECK
CLEAR A
RD STDIN
. Shrani znak, ki si ga uporabli za primerjavo
STCH PRBZNK
COMP NEWLN
JEQ BHALT
. Decoding
JSUB BERI
JSUB ENCODECHR
LDA TEXTTODECODE
JSUB CODETOMORSE
JSUB OUTPUTMORSE
JSUB echoln
J CHECK
BHALT JSUB echoln
HALT J HALT
END MRSNCD
STDIN BYTE X'AA'
STDOUT BYTE X'BA'
STDERR BYTE 2
TEXT RESB 4096
LENTXT RESW 1
MAXLEN WORD 4096
USTZNK WORD X'000030'
PRBZNK RESW 1
REZ RESW 1
NEWLN WORD 10
PREVX RESW 1
PREVA RESW 1
PREVS RESW 1
. Function OUTPUTMORSE
. Input: MORSEOUT -> Morse signs to output
. Output: STD OUT -> Morse signs
. Registers used: A, X
OUTPUTMORSE STL @stackptr
JSUB stackpush
STA @stackptr
JSUB stackpush
STX @stackptr
JSUB stackpush
.Set X reg to MORSELEN - 1
LDX MORSELEN
READN LDA #1
SUBR A, X
WAITOUTM TD STDOUT
JEQ WAITOUTM
LDCH MORSEOUT,X
WD STDOUT
. Check if we are at the end
CLEAR A
ADDR X,A
COMP #0
JEQ KONECR
J READN
. Retrive previus stuff and return addres
KONECR JSUB stackpop
LDX @stackptr
JSUB stackpop
LDA @stackptr
JSUB stackpop
LDL @stackptr
RSUB
. Function CODETOMORSE
. Input: Reg A -> value in Ternari to convert into Morse characters
. Output: STD OUT -> Morse character
. Registers used: A, X
CODETOMORSE STL @stackptr
JSUB stackpush
STA @stackptr
JSUB stackpush
STX @stackptr
JSUB stackpush
STT @stackptr
JSUB stackpush
. Preparing for converting from ternary
CLEAR T
CLEAR X
STA TERNNUM
. Evklidov algoritem z bazo 10
CONV DIV base
. Save kvocient for later
STA KVOCI
. Geting modulo
MUL base
STA CURR
LDA TERNNUM
SUB CURR
. Add index of right character to X
CLEAR X
ADDR A,X
. Loading right character for morse sign
LDCH MORSESIGN,X
. Save to right position
CLEAR X
ADDR T, X
STCH MORSEOUT,X
. increse Counter
LDA #1
ADDR A, T
. Load values for new itteration
LDA KVOCI
STA TERNNUM
. Check for end of evklid
COMP #0
JGT CONV
STT MORSELEN
JSUB stackpop
LDT @stackptr
JSUB stackpop
LDX @stackptr
JSUB stackpop
LDA @stackptr
JSUB stackpop
LDL @stackptr
RSUB
base WORD 3
KVOCI RESW 1
TERNNUM RESW 1
CURR WORD 0
MORSESIGN BYTE C' '
BYTE C'.'
BYTE C'-'
MORSEOUT RESB 5
MORSELEN RESW 1
. Function BERI
. Input: Input from device specified in STDIN
. Output: None
. Registers used: A, X
. Desritption: Read text and save it to TEXT
BERI STA PREVA
STX PREVX
CLEAR X
. Doda tist znak ki se je pojedel pri preverjanju za konec vrstice
LDCH PRBZNK
STCH TEXT,X
TIX MAXLEN
WAITIN TD STDIN
JEQ WAITIN
CLEAR A
RD STDIN
COMP NEWLN
JEQ KONECB
STCH TEXT,X
TIX MAXLEN
JLT WAITIN
KONECB STX LENTXT
LDA PREVA
LDX PREVX
RSUB
. Function echoln
. Input: None
. Output: STD OUT -> new line
. Registers used: A
echoln STA PREVA
WAITOU TD STDOUT
JEQ WAITOU
LDA NEWLN
WD STDOUT
. Restore register
LDA PREVA
RSUB
. Function ENCODECHR
. Input: TEXT -> value in HEX to convert into DECIMAL
. Output: STD OUT -> DECIMAL NUMBER
. Registers used: A, X
. Desritption: Read TEXT and save it to DECNUM
ENCODECHR STL @stackptr
JSUB stackpush
STA @stackptr
JSUB stackpush
STX @stackptr
JSUB stackpush
CLEAR X
. Get position in array
LDCH TEXT,X
SUB ASCICHR
ADDR A,X
. Get correct offset
LDA #3
MULR A, X
. Load binary value for output
LDA TEXTTOMORSE,X
STA TEXTTODECODE
JSUB stackpop
LDX @stackptr
JSUB stackpop
LDA @stackptr
JSUB stackpop
LDL @stackptr
RSUB
ASCICHR WORD 65 . Start of A in ascii table
TEXTTODECODE RESW 1
.Ternary morse encoding
TEXTTOMORSE WORD 5 .A -> .-
WORD 67 .B -> -...
WORD 70 .C -> -.-.
WORD 22 .D -> -..
WORD 1 .E -> .
WORD 43 .F -> ..-.
WORD 25 .G -> --.
WORD 40 .H -> ....
WORD 4 .I -> ..
WORD 53 .J -> .---
WORD 23 .K -> -.-
WORD 49 .L -> .-..
WORD 8 .M -> --
WORD 7 .N -> -.
WORD 26 .O -> ---
WORD 52 .P -> .--.
WORD 77 .Q -> --.-
WORD 16 .R -> .-.
WORD 13 .S -> ...
WORD 2 .T -> -
WORD 14 .U -> ..-
WORD 41 .V -> ...-
WORD 17 .W -> .--
WORD 68 .X -> -..-
WORD 71 .Y -> -.--
WORD 76 .Z -> --..
. Function stackinit
. Input: None
. Output: None
. Registers used: A
. Desritption: Initializes stackpointer to the top of the stack
stackinit STA RESTOR
LDA #STACK
STA stackptr
LDA RESTOR
RSUB
. Function stackpush
. Input: None
. Output: None
. Registers used: A
. Desritption: Moves stack pointer for one word down
stackpush STA RESTOR
LDA stackptr
ADD #3
STA stackptr
LDA RESTOR
RSUB
. Function stackpop
. Input: None
. Output: None
. Registers used: A
. Desritption: Moves stack pointer for one word dup
stackpop STA RESTOR
LDA stackptr
SUB #3
STA stackptr
LDA RESTOR
RSUB
RESTOR RESW 1
stackptr RESW 1
. THIS IS 2^17 words which is 1/10 of whole addresable memory
STACK RESW 131072 | 14.93314 | 68 | 0.64162 |
c0adf87ec76f3b6163a097e220b77224e26f97f2 | 12,543 | asm | Assembly | P6/data_P6_2/ALUTest138.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/ALUTest138.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6_2/ALUTest138.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | sllv $3,$3,$3
xori $5,$4,2202
sra $4,$4,25
lw $4,8($0)
lbu $1,9($0)
lhu $1,6($0)
lbu $0,9($0)
addiu $4,$4,23990
subu $5,$1,$3
lhu $3,4($0)
subu $5,$1,$3
addu $1,$6,$3
subu $3,$3,$3
sllv $3,$3,$3
lw $4,4($0)
srlv $3,$3,$3
srl $3,$5,26
subu $4,$3,$3
lbu $3,9($0)
sll $6,$1,19
or $0,$3,$3
addu $0,$3,$3
lhu $4,14($0)
lb $0,11($0)
slti $4,$4,-15483
sra $3,$4,19
addiu $6,$2,-6635
and $3,$1,$3
slti $5,$5,-22068
addu $4,$3,$3
srav $3,$4,$3
addu $4,$0,$3
sw $3,16($0)
xori $5,$1,45549
srlv $5,$5,$3
andi $3,$3,65087
slti $1,$3,17107
sltiu $4,$3,4201
lb $0,7($0)
ori $4,$3,46159
addiu $3,$1,-30227
sll $3,$3,31
nor $5,$5,$3
slt $0,$0,$3
addu $5,$3,$3
addu $3,$3,$3
ori $1,$5,23128
addiu $5,$3,20261
nor $4,$4,$3
srav $1,$3,$3
sh $6,2($0)
ori $4,$4,13885
sltiu $5,$5,-11350
srlv $4,$3,$3
sllv $4,$4,$3
ori $1,$1,53234
lh $5,6($0)
lhu $3,2($0)
sra $4,$1,29
and $5,$5,$3
subu $3,$3,$3
lh $4,10($0)
or $6,$6,$3
addiu $3,$0,-28690
lw $0,16($0)
subu $3,$4,$3
and $1,$1,$3
lhu $4,14($0)
addiu $3,$3,22326
srlv $1,$4,$3
and $3,$4,$3
nor $4,$3,$3
addiu $1,$1,19746
lb $4,6($0)
lbu $3,9($0)
andi $6,$3,18896
or $3,$4,$3
addu $4,$4,$3
ori $1,$4,39457
sb $3,12($0)
srav $3,$3,$3
lhu $6,2($0)
addiu $1,$3,5918
sb $3,0($0)
subu $3,$3,$3
addu $0,$1,$3
sllv $1,$3,$3
lbu $3,2($0)
addiu $3,$6,-13625
sh $3,16($0)
xor $6,$0,$3
lbu $3,9($0)
addu $4,$4,$3
sltiu $6,$5,-2184
addu $0,$3,$3
lb $5,5($0)
sh $1,2($0)
addu $0,$3,$3
sh $3,0($0)
addu $5,$5,$3
sra $4,$3,27
addu $2,$2,$3
lbu $3,3($0)
sltu $4,$0,$3
slt $5,$5,$3
lw $3,0($0)
srav $4,$3,$3
sltu $3,$0,$3
addu $1,$1,$3
xor $3,$0,$3
addiu $3,$2,-23835
ori $4,$5,47812
sh $0,6($0)
slti $1,$0,4044
srlv $3,$3,$3
sltu $3,$4,$3
sltu $5,$5,$3
addu $3,$1,$3
sllv $6,$5,$3
lhu $0,8($0)
srav $4,$4,$3
sh $5,14($0)
sra $4,$3,24
sltiu $4,$1,-20145
sra $6,$6,22
sw $1,4($0)
sw $3,12($0)
addu $5,$0,$3
sb $3,7($0)
addu $3,$3,$3
lb $4,8($0)
sllv $0,$3,$3
addiu $3,$3,-6855
subu $1,$1,$3
lbu $6,5($0)
sra $3,$6,9
addiu $4,$4,13951
addu $3,$4,$3
ori $4,$5,32576
sll $1,$6,6
srl $4,$1,15
addu $1,$5,$3
srl $3,$4,30
lbu $3,15($0)
andi $4,$4,38350
addu $3,$1,$3
sw $4,12($0)
sll $4,$6,19
and $1,$2,$3
lw $4,12($0)
sw $1,4($0)
lbu $4,6($0)
or $4,$3,$3
slti $1,$6,29372
xori $6,$1,57549
sw $4,0($0)
lh $3,2($0)
lb $1,10($0)
sltiu $4,$5,-27057
xor $3,$3,$3
lhu $5,2($0)
and $3,$3,$3
addiu $3,$1,22063
slti $5,$5,31003
sltu $4,$3,$3
lbu $5,11($0)
srav $1,$4,$3
nor $5,$1,$3
andi $5,$3,11047
subu $5,$6,$3
sltiu $3,$3,12989
srl $4,$6,7
sltiu $3,$1,-3604
subu $3,$2,$3
sltu $4,$3,$3
xori $4,$4,36517
slti $4,$4,20334
nor $5,$5,$3
srav $3,$3,$3
nor $3,$0,$3
subu $4,$4,$3
lh $6,8($0)
sw $5,12($0)
lbu $4,0($0)
ori $4,$3,32605
lbu $1,5($0)
sra $3,$0,20
sra $3,$4,29
or $1,$5,$3
addu $5,$3,$3
andi $0,$0,13951
lbu $1,3($0)
lh $4,16($0)
lbu $3,11($0)
and $4,$5,$3
sb $0,11($0)
sll $5,$5,28
ori $4,$1,35158
andi $3,$3,27781
sltiu $4,$4,-12317
lb $3,13($0)
lbu $5,4($0)
addu $6,$3,$3
sltu $4,$5,$3
lh $5,4($0)
xor $4,$0,$3
sra $1,$1,5
lhu $5,6($0)
sh $4,6($0)
sltu $4,$6,$3
ori $5,$5,40711
slt $3,$2,$3
addu $5,$3,$3
or $4,$4,$3
addu $4,$3,$3
addu $5,$5,$3
lhu $3,0($0)
srav $3,$5,$3
lh $3,6($0)
xor $1,$3,$3
nor $1,$1,$3
addu $3,$4,$3
sw $1,12($0)
srav $4,$3,$3
ori $3,$3,34580
lb $1,1($0)
srlv $1,$6,$3
lw $1,4($0)
or $4,$3,$3
srlv $5,$3,$3
andi $4,$6,56208
lh $4,12($0)
slti $5,$5,9093
slt $3,$3,$3
srav $4,$4,$3
lbu $3,16($0)
xori $6,$3,42347
xori $4,$5,11599
addu $3,$3,$3
addu $1,$3,$3
sltiu $4,$3,-19917
lw $3,8($0)
sltiu $1,$1,4229
srav $0,$0,$3
lb $0,13($0)
srlv $1,$3,$3
ori $3,$6,60760
slti $4,$4,10643
slti $4,$5,-19590
srl $3,$3,20
addu $1,$0,$3
nor $0,$3,$3
sltiu $1,$1,13537
nor $5,$3,$3
srav $3,$3,$3
xor $5,$3,$3
sll $1,$1,9
and $4,$4,$3
addiu $4,$4,-6501
subu $0,$3,$3
subu $4,$6,$3
slt $1,$4,$3
lw $3,16($0)
ori $5,$6,52751
xor $1,$1,$3
sllv $5,$0,$3
andi $6,$3,64462
andi $1,$1,24027
andi $4,$3,51008
lh $0,6($0)
and $6,$0,$3
sltiu $0,$1,26676
sb $4,0($0)
sra $3,$4,29
lb $3,10($0)
sltu $0,$5,$3
slt $4,$5,$3
ori $4,$3,48366
subu $0,$1,$3
sb $3,1($0)
xori $4,$1,40554
sllv $5,$5,$3
xori $6,$0,8880
ori $3,$6,23715
sh $3,12($0)
nor $4,$1,$3
sll $1,$3,1
addu $3,$3,$3
sra $0,$3,16
srl $5,$5,31
addu $6,$6,$3
sll $4,$3,9
sll $3,$5,10
nor $6,$6,$3
lbu $4,14($0)
addu $4,$3,$3
sb $4,14($0)
lhu $4,10($0)
lw $6,0($0)
srlv $5,$5,$3
xori $3,$0,12283
sh $4,10($0)
addu $1,$5,$3
andi $4,$5,18572
lw $3,4($0)
sb $3,6($0)
xor $5,$1,$3
xori $5,$4,47377
sltu $5,$4,$3
ori $4,$6,45964
andi $4,$0,39637
subu $1,$3,$3
srlv $4,$4,$3
lbu $4,7($0)
addiu $6,$4,24554
sll $3,$6,24
or $3,$3,$3
ori $5,$5,38307
sh $1,8($0)
lbu $3,13($0)
srav $1,$3,$3
xor $4,$4,$3
xor $4,$3,$3
lhu $3,16($0)
subu $5,$0,$3
and $3,$3,$3
sltiu $1,$1,-28286
sb $3,15($0)
sltiu $3,$3,-19211
srav $5,$6,$3
addu $5,$3,$3
sltu $4,$3,$3
and $5,$4,$3
andi $3,$5,43918
addiu $5,$1,11223
srl $1,$3,30
srav $6,$3,$3
lb $4,2($0)
lbu $1,4($0)
lw $5,12($0)
subu $6,$0,$3
addu $3,$1,$3
addu $1,$6,$3
sll $4,$4,0
xor $3,$1,$3
sra $1,$0,4
xori $4,$3,1803
lw $2,12($0)
nor $5,$4,$3
addu $3,$4,$3
lh $0,10($0)
sw $4,0($0)
sra $3,$3,6
and $3,$4,$3
xor $5,$3,$3
slt $3,$3,$3
ori $3,$3,60401
addiu $3,$5,21578
lb $6,0($0)
nor $3,$3,$3
sltu $3,$3,$3
sw $6,16($0)
addiu $1,$5,2014
slti $3,$0,-14795
subu $3,$3,$3
srav $5,$3,$3
lbu $3,0($0)
lbu $3,11($0)
addiu $6,$4,12128
nor $1,$1,$3
lhu $3,12($0)
subu $0,$3,$3
sra $4,$3,22
addu $4,$1,$3
and $4,$1,$3
sw $3,4($0)
addu $5,$3,$3
sh $4,16($0)
srlv $5,$5,$3
sb $1,3($0)
addiu $0,$0,15925
addu $4,$3,$3
and $4,$3,$3
slt $3,$4,$3
lbu $5,2($0)
nor $3,$3,$3
srlv $3,$3,$3
xor $1,$4,$3
sllv $4,$2,$3
nor $3,$3,$3
lbu $3,15($0)
or $0,$3,$3
xori $4,$1,6846
subu $4,$4,$3
lb $3,1($0)
subu $6,$3,$3
andi $4,$4,31127
sra $4,$4,7
lw $3,8($0)
lh $6,14($0)
xori $3,$3,34202
and $6,$5,$3
lbu $4,3($0)
ori $3,$3,59577
sltiu $3,$5,-21720
xor $0,$4,$3
sltiu $4,$1,-13181
slt $1,$1,$3
xori $1,$3,15828
addiu $5,$6,2429
sb $3,1($0)
or $5,$1,$3
sltiu $6,$6,11794
srlv $4,$2,$3
lbu $3,16($0)
lw $4,16($0)
srav $3,$4,$3
srlv $5,$0,$3
subu $4,$3,$3
sb $1,5($0)
slt $3,$3,$3
subu $4,$0,$3
srav $3,$1,$3
sh $0,6($0)
andi $4,$3,63109
sh $3,8($0)
srl $3,$5,31
sw $5,0($0)
subu $1,$1,$3
xor $6,$6,$3
lh $4,2($0)
subu $4,$4,$3
lb $3,0($0)
lh $0,8($0)
slt $0,$6,$3
lh $5,12($0)
lbu $4,7($0)
subu $6,$3,$3
sh $5,10($0)
or $6,$3,$3
lhu $3,10($0)
subu $5,$1,$3
subu $3,$3,$3
lhu $5,0($0)
ori $3,$4,55236
subu $3,$5,$3
sb $0,9($0)
lhu $1,16($0)
xori $3,$3,43579
andi $3,$3,63541
andi $0,$4,13605
sh $4,12($0)
sltu $3,$3,$3
nor $4,$3,$3
sb $3,10($0)
sw $5,16($0)
lbu $1,8($0)
lh $3,4($0)
sw $5,0($0)
sltu $6,$3,$3
or $5,$6,$3
slti $1,$1,15040
addu $1,$6,$3
srl $5,$2,31
addiu $6,$1,-3085
lw $0,4($0)
slti $3,$1,-32037
slt $3,$3,$3
and $1,$1,$3
lhu $0,10($0)
sll $4,$5,23
lbu $5,10($0)
addiu $5,$3,20830
subu $5,$5,$3
srlv $4,$1,$3
lw $3,16($0)
lb $4,9($0)
addu $4,$3,$3
nor $3,$3,$3
sllv $3,$5,$3
addiu $0,$0,27046
addiu $6,$3,28289
sllv $3,$4,$3
lb $4,1($0)
sw $5,4($0)
and $5,$5,$3
sb $3,0($0)
lw $1,8($0)
addu $5,$5,$3
lbu $1,5($0)
nor $3,$3,$3
nor $0,$6,$3
subu $4,$3,$3
lb $5,14($0)
addiu $3,$1,-18641
slt $4,$4,$3
addiu $3,$3,7476
nor $4,$3,$3
lw $3,12($0)
addu $4,$5,$3
srlv $6,$0,$3
sltu $4,$4,$3
sllv $1,$5,$3
nor $3,$0,$3
and $1,$4,$3
slti $3,$3,-21269
addiu $3,$5,737
addu $6,$3,$3
addiu $3,$4,1987
addu $5,$5,$3
sltiu $4,$0,4086
xori $5,$5,22209
lh $3,0($0)
lw $3,16($0)
sllv $3,$5,$3
lw $4,8($0)
or $3,$4,$3
sltiu $3,$0,12500
and $4,$5,$3
sll $0,$3,17
addu $4,$3,$3
addu $4,$4,$3
sll $3,$5,31
sra $6,$3,23
sltu $4,$3,$3
sb $1,8($0)
srlv $4,$1,$3
sllv $0,$6,$3
and $0,$6,$3
sw $3,4($0)
slt $5,$4,$3
lh $6,12($0)
sb $3,7($0)
lhu $0,8($0)
sh $4,10($0)
srlv $5,$4,$3
sllv $3,$6,$3
xori $1,$4,25675
addu $3,$3,$3
nor $5,$5,$3
slti $1,$1,-19513
lh $5,0($0)
andi $4,$4,7677
sltu $5,$5,$3
addu $3,$0,$3
sw $0,0($0)
and $5,$4,$3
sltu $0,$1,$3
lhu $3,8($0)
slt $3,$3,$3
subu $3,$3,$3
sra $4,$0,28
sw $6,4($0)
slt $1,$1,$3
sb $1,13($0)
and $3,$5,$3
nor $1,$4,$3
subu $1,$1,$3
lhu $4,2($0)
lb $4,3($0)
addiu $3,$3,-7775
srav $1,$3,$3
subu $3,$0,$3
sw $3,12($0)
subu $4,$1,$3
srav $1,$0,$3
lw $4,4($0)
subu $4,$6,$3
sltu $0,$2,$3
lhu $5,14($0)
addiu $3,$5,20474
addu $1,$5,$3
sllv $1,$4,$3
addiu $0,$0,-26906
sw $1,16($0)
addiu $5,$3,-9713
xori $3,$5,63555
xori $5,$4,5598
addu $1,$1,$3
sra $4,$4,3
or $3,$3,$3
ori $4,$3,53059
sll $4,$4,20
lw $5,4($0)
sra $2,$2,31
or $5,$5,$3
slti $3,$3,10804
slti $5,$3,-19943
ori $3,$5,17428
addu $3,$3,$3
slt $3,$6,$3
addiu $5,$6,17047
addiu $3,$3,-11349
addu $4,$6,$3
srav $3,$5,$3
sra $3,$4,25
sltu $4,$5,$3
subu $1,$2,$3
sra $6,$1,7
xor $3,$4,$3
subu $3,$1,$3
lb $6,13($0)
sltu $4,$6,$3
sb $3,6($0)
addiu $3,$4,-7150
srav $3,$5,$3
srl $5,$3,5
addiu $4,$4,3671
srlv $1,$2,$3
sltiu $4,$4,31123
addu $6,$0,$3
addu $3,$1,$3
sltu $3,$3,$3
sll $0,$4,4
sllv $1,$4,$3
lb $6,13($0)
sra $0,$1,12
nor $4,$4,$3
subu $0,$4,$3
addiu $3,$3,-22889
lb $4,14($0)
sltu $3,$3,$3
subu $5,$5,$3
addu $3,$1,$3
sll $4,$3,20
sltiu $3,$5,-4187
sh $3,14($0)
sb $3,2($0)
sw $0,12($0)
sb $4,12($0)
or $3,$5,$3
srav $4,$1,$3
slti $3,$3,-5332
sra $5,$1,31
subu $5,$2,$3
addu $4,$0,$3
subu $3,$3,$3
lb $4,13($0)
sb $4,12($0)
sra $4,$3,10
slti $4,$6,-20995
sltiu $0,$4,-29037
lb $1,2($0)
xor $4,$1,$3
sllv $3,$6,$3
srl $5,$1,16
andi $3,$5,10882
ori $5,$3,316
subu $1,$0,$3
and $5,$5,$3
sra $3,$4,8
lhu $4,16($0)
slti $1,$1,-29832
xor $4,$5,$3
addiu $1,$4,-28251
lw $3,4($0)
or $1,$4,$3
slti $4,$1,-6014
lw $1,8($0)
or $3,$3,$3
and $4,$3,$3
lw $3,12($0)
srlv $3,$4,$3
addu $3,$3,$3
addu $1,$4,$3
xori $5,$5,44606
sb $2,12($0)
ori $5,$5,25950
lhu $4,10($0)
addiu $6,$3,-9533
addiu $4,$5,-1043
slt $6,$6,$3
sll $6,$6,9
subu $0,$5,$3
sh $6,0($0)
nor $5,$5,$3
sltu $4,$3,$3
sltiu $3,$3,-31480
andi $1,$5,40594
sb $1,11($0)
lhu $3,2($0)
sltiu $5,$5,6149
addu $5,$4,$3
slt $4,$4,$3
sw $4,4($0)
nor $3,$3,$3
sb $3,5($0)
srav $6,$4,$3
addu $1,$1,$3
lhu $3,10($0)
srl $0,$4,2
or $5,$1,$3
lbu $0,4($0)
sltiu $0,$1,-23497
addu $6,$1,$3
andi $4,$4,33671
sltiu $3,$4,22905
sltu $6,$4,$3
addu $0,$5,$3
nor $6,$0,$3
lbu $4,6($0)
andi $4,$3,59532
addiu $5,$5,14116
lbu $4,7($0)
nor $3,$3,$3
addu $3,$1,$3
sb $4,16($0)
srl $4,$3,17
sb $4,0($0)
lb $1,2($0)
lbu $1,13($0)
slti $1,$3,2485
ori $3,$5,23996
sltu $5,$5,$3
addiu $3,$3,-4163
xori $3,$1,32456
lb $0,6($0)
subu $3,$1,$3
sll $6,$6,27
sltiu $4,$1,-31868
slt $4,$4,$3
sra $6,$5,18
xori $4,$4,2851
nor $0,$1,$3
sltiu $0,$3,726
lw $3,4($0)
lw $3,16($0)
addu $4,$3,$3
subu $5,$3,$3
xori $1,$4,44085
sllv $1,$0,$3
sra $5,$5,30
sltiu $5,$5,31199
addiu $6,$1,-12223
lh $3,16($0)
lhu $1,0($0)
nor $5,$5,$3
lhu $3,14($0)
andi $1,$1,22262
sllv $6,$4,$3
addu $1,$3,$3
addu $3,$4,$3
slt $1,$6,$3
lb $4,4($0)
addu $5,$5,$3
lhu $1,2($0)
sll $4,$0,12
addu $3,$4,$3
sra $3,$3,24
sllv $4,$1,$3
lh $3,6($0)
lb $3,5($0)
lb $4,5($0)
srl $5,$4,0
lw $5,4($0)
subu $3,$4,$3
addiu $3,$1,-23294
lh $5,14($0)
andi $4,$0,63796
sltu $4,$6,$3
sltu $4,$5,$3
lbu $6,13($0)
lhu $3,16($0)
xori $4,$4,26034
sltiu $5,$5,14955
subu $4,$3,$3
ori $4,$4,50917
ori $3,$1,11829
addiu $1,$4,-27228
xori $5,$3,31521
srav $0,$0,$3
lb $4,6($0)
slt $4,$0,$3
sb $4,10($0)
lhu $5,6($0)
ori $5,$3,107
lh $3,14($0)
sh $6,4($0)
srl $4,$4,21
or $4,$5,$3
addu $4,$3,$3
xori $0,$4,18351
nor $1,$1,$3
addu $4,$1,$3
or $3,$2,$3
srlv $3,$4,$3
sh $3,10($0)
sh $4,2($0)
sw $3,8($0)
srav $5,$5,$3
slt $5,$4,$3
lh $4,16($0)
sra $4,$3,20
xori $6,$3,12970
subu $1,$0,$3
addiu $5,$4,-19539
sh $4,16($0)
subu $4,$3,$3
slti $5,$3,-8351
ori $4,$5,47145
lhu $1,6($0)
ori $4,$5,48040
lw $5,12($0)
or $4,$5,$3
subu $1,$1,$3
nor $4,$3,$3
nor $4,$1,$3
sll $4,$2,15
slti $6,$5,26623
sw $0,8($0)
srl $4,$4,25
andi $3,$3,24879
sh $3,0($0)
xori $1,$4,13050
xor $3,$3,$3
addu $5,$4,$3
slti $1,$1,8163
sw $3,16($0)
lh $4,10($0)
sllv $3,$1,$3
sb $1,7($0)
srlv $6,$4,$3
xori $6,$3,48963
andi $5,$3,49172
sltiu $0,$3,-3374
sh $4,14($0)
addiu $4,$3,10389
lbu $3,1($0)
sltu $4,$4,$3
xori $3,$3,24305
sllv $4,$1,$3
xor $5,$3,$3
addiu $3,$5,-21073
sra $0,$5,25
and $3,$6,$3
sw $4,16($0)
sltiu $4,$4,9914
nor $3,$1,$3
sltiu $4,$4,-14722
xori $4,$5,43825
subu $4,$1,$3
sltu $4,$3,$3
lhu $2,0($0)
sltiu $1,$0,13070
sw $3,12($0)
xor $3,$3,$3
subu $3,$3,$3
lw $1,16($0)
lw $1,12($0)
sb $1,5($0)
sh $3,10($0)
addu $4,$1,$3
lw $3,0($0)
sb $3,8($0)
addu $3,$4,$3
subu $3,$5,$3
addu $0,$5,$3
slt $6,$0,$3
and $1,$4,$3
addu $4,$0,$3
sltiu $6,$1,9313
sllv $5,$5,$3
srlv $3,$3,$3
and $0,$3,$3
sllv $1,$1,$3
and $1,$5,$3
sw $3,0($0)
sra $4,$4,31
srlv $3,$3,$3
lbu $5,16($0)
sb $3,13($0)
addu $3,$2,$3
sw $3,16($0)
addiu $5,$5,-21539
or $4,$3,$3
subu $0,$4,$3
sll $1,$6,4
subu $6,$4,$3
srlv $3,$3,$3
sllv $0,$5,$3
sltiu $3,$3,-5645
addiu $3,$3,9510
slt $3,$1,$3
xori $0,$0,14865
srl $5,$1,12
nor $5,$4,$3
addiu $6,$6,32055
lw $3,12($0)
| 14.109111 | 18 | 0.521566 |
5c4265326b7b827621ca7005e1cf6eb907f72f0c | 707 | asm | Assembly | oeis/076/A076560.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/076/A076560.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/076/A076560.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A076560: a(1)=1; a(n>1)= greatest prime divisor of (a(n-1) + n).
; Submitted by Christian Krause
; 1,3,3,7,3,3,5,13,11,7,3,5,3,17,2,3,5,23,7,3,3,5,7,31,7,11,19,47,19,7,19,17,5,13,3,13,5,43,41,3,11,53,3,47,23,23,7,11,5,11,31,83,17,71,7,7,2,5,2,31,23,17,5,23,11,11,13,3,3,73,3,5,13,29,13,89,83,23,17,97,89,19,17,101,31,13,5,31,5,19,11,103,7,101,7,103,5,103,101,67
mov $6,$0
add $6,1
mov $7,$0
lpb $6
mov $0,$7
sub $6,1
sub $0,$6
add $0,$2
add $0,1
mov $2,1
lpb $0
mov $3,$0
lpb $3
mov $4,$0
mod $4,$2
cmp $4,0
cmp $4,0
mov $5,$2
add $2,1
cmp $5,1
max $4,$5
sub $3,$4
lpe
lpb $0
dif $0,$2
lpe
lpe
lpe
mov $0,$2
| 20.794118 | 264 | 0.510608 |
8b88579bc732e2b9121810600f22eefcaa0ccd9d | 323 | asm | Assembly | oeis/224/A224733.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/224/A224733.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/224/A224733.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A224733: a(n) = binomial(2*n,n)^n.
; Submitted by Christian Krause
; 1,2,36,8000,24010000,1016255020032,622345892187672576,5608296349498479967469568,752711194884611945703392100000000,1518219588672387021538193329290752000000000,46343145866349732399475841723454160331675252923826176
mov $1,$0
mul $0,2
bin $0,$1
pow $0,$1
| 35.888889 | 213 | 0.829721 |
d2dd02d7bf33dd48254cc75c91eaf081a7bd407e | 5,518 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_1_1074.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_1_1074.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_1_1074.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x133e6, %r11
nop
nop
nop
nop
inc %r8
mov $0x6162636465666768, %rax
movq %rax, %xmm7
movups %xmm7, (%r11)
xor %r12, %r12
lea addresses_normal_ht+0x12f46, %rsi
lea addresses_UC_ht+0xe746, %rdi
nop
sub %rbx, %rbx
mov $2, %rcx
rep movsw
nop
nop
sub $5473, %r11
lea addresses_A_ht+0xa48a, %rcx
nop
nop
nop
nop
cmp $23154, %rbx
movb (%rcx), %r12b
nop
nop
dec %rsi
lea addresses_A_ht+0x17546, %r11
inc %r8
movb $0x61, (%r11)
xor %r12, %r12
lea addresses_UC_ht+0x9036, %rax
clflush (%rax)
nop
add %rsi, %rsi
mov (%rax), %edi
nop
nop
nop
nop
add $61224, %r8
lea addresses_WT_ht+0x1e301, %rcx
nop
nop
nop
add $45497, %rbx
mov $0x6162636465666768, %rax
movq %rax, (%rcx)
sub $10328, %r8
lea addresses_D_ht+0x1b42f, %rax
nop
nop
nop
nop
sub $7071, %r8
movb $0x61, (%rax)
inc %rcx
lea addresses_UC_ht+0x12bc6, %r8
add %rdi, %rdi
movb (%r8), %r12b
nop
nop
nop
dec %r11
lea addresses_WC_ht+0x12116, %rsi
lea addresses_WC_ht+0xcb46, %rdi
nop
nop
nop
nop
add $45305, %r11
mov $108, %rcx
rep movsw
nop
and %r12, %r12
lea addresses_WT_ht+0x2146, %rax
sub $40127, %rsi
movl $0x61626364, (%rax)
nop
nop
nop
nop
nop
and $7480, %rcx
lea addresses_WC_ht+0x2746, %rdi
clflush (%rdi)
nop
nop
nop
nop
inc %rcx
vmovups (%rdi), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r11
nop
nop
nop
nop
nop
add %r11, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %r9
push %rax
push %rcx
// Store
lea addresses_WT+0x1ff46, %r10
clflush (%r10)
nop
dec %rax
movw $0x5152, (%r10)
nop
nop
add $36993, %rcx
// Store
lea addresses_PSE+0xffb6, %r14
nop
cmp $18466, %r11
mov $0x5152535455565758, %rcx
movq %rcx, %xmm5
movups %xmm5, (%r14)
nop
nop
cmp $56790, %r10
// Load
lea addresses_PSE+0x14d06, %r14
nop
nop
nop
nop
nop
dec %r13
vmovntdqa (%r14), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rax
nop
nop
nop
xor %rax, %rax
// Load
mov $0x7d227a0000000fc6, %rax
clflush (%rax)
nop
nop
cmp %r10, %r10
movups (%rax), %xmm2
vpextrq $0, %xmm2, %r14
nop
and $40563, %r11
// Store
lea addresses_WC+0x1ed36, %r13
nop
nop
nop
nop
nop
xor $21939, %r14
mov $0x5152535455565758, %r11
movq %r11, (%r13)
dec %r13
// Load
lea addresses_normal+0x6f46, %rax
nop
nop
nop
nop
nop
sub $23347, %r10
vmovaps (%rax), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %r13
nop
nop
nop
nop
and %r13, %r13
// Store
mov $0x6a6, %rcx
nop
nop
nop
nop
nop
inc %r11
movb $0x51, (%rcx)
nop
nop
xor $8058, %rax
// Faulty Load
lea addresses_normal+0x7f46, %r13
nop
nop
nop
nop
nop
cmp %r11, %r11
movups (%r13), %xmm5
vpextrq $0, %xmm5, %rax
lea oracles, %r11
and $0xff, %rax
shlq $12, %rax
mov (%r11,%rax,1), %rax
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_PSE', 'size': 16, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 4, 'NT': True, 'type': 'addresses_PSE', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_NC', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_WC', 'size': 8, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_normal', 'size': 32, 'AVXalign': True}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_P', 'size': 1, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_normal', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': True}}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 9, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True}}
{'src': {'same': True, 'congruent': 5, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 9, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'34': 1}
34
*/
| 20.138686 | 151 | 0.643349 |
0d34c06c2ffefd2fbebad68c446e9a35b625a8fa | 455 | asm | Assembly | oeis/129/A129949.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/129/A129949.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/129/A129949.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A129949: a(n) = n! - binomial(n,3).
; Submitted by Jamie Morken(s3.)
; 1,1,2,5,20,110,700,5005,40264,362796,3628680,39916635,479001380,6227020514,87178290836,1307674367545,20922789887440,355687428095320,6402373705727184,121645100408831031,2432902008176638860,51090942171709438670,1124000727777607678460
mov $1,$0
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
bin $1,3
sub $0,$1
| 50.555556 | 233 | 0.771429 |
42ca34dda08729257cf49e19569e6b8b00efa579 | 490 | asm | Assembly | programs/oeis/008/A008438.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/008/A008438.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/008/A008438.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A008438: Sum of divisors of 2*n + 1.
; 1,4,6,8,13,12,14,24,18,20,32,24,31,40,30,32,48,48,38,56,42,44,78,48,57,72,54,72,80,60,62,104,84,68,96,72,74,124,96,80,121,84,108,120,90,112,128,120,98,156,102,104,192,108,110,152,114,144,182,144,133,168,156,128,176,132,160,240,138,140,192,168,180,228,150,152,234,192,158,216,192,164,288,168,183,260,174,248,240,180,182,248,228,216,320,192,194,336,198,200
mul $0,2
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
| 81.666667 | 356 | 0.693878 |
fb13c585fb0b5a869513a385ac0a234fabc386cc | 1,857 | asm | Assembly | Source/Levels/L0312.asm | AbePralle/FGB | 52f004b8d9d4091a2a242a012dc8c1f90d4c160d | [
"MIT"
] | null | null | null | Source/Levels/L0312.asm | AbePralle/FGB | 52f004b8d9d4091a2a242a012dc8c1f90d4c160d | [
"MIT"
] | null | null | null | Source/Levels/L0312.asm | AbePralle/FGB | 52f004b8d9d4091a2a242a012dc8c1f90d4c160d | [
"MIT"
] | null | null | null | ; L0312.asm sunset bee house
; Generated 08.31.2000 by mlevel
; Modified 08.31.2000 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
HIVE_INDEX EQU 15
STATE_HIVE_DESTROYED EQU 2
;---------------------------------------------------------------------
SECTION "Level0312Section",ROMX
;---------------------------------------------------------------------
L0312_Contents::
DW L0312_Load
DW L0312_Init
DW L0312_Check
DW L0312_Map
;---------------------------------------------------------------------
; Load
;---------------------------------------------------------------------
L0312_Load:
DW ((L0312_LoadFinished - L0312_Load2)) ;size
L0312_Load2:
call ParseMap
ret
L0312_LoadFinished:
;---------------------------------------------------------------------
; Map
;---------------------------------------------------------------------
L0312_Map:
INCBIN "Data/Levels/L0312_sunsethousedown.lvl"
;---------------------------------------------------------------------
; Init
;---------------------------------------------------------------------
L0312_Init:
DW ((L0312_InitFinished - L0312_Init2)) ;size
L0312_Init2:
ret
L0312_InitFinished:
;---------------------------------------------------------------------
; Check
;---------------------------------------------------------------------
L0312_Check:
DW ((L0312_CheckFinished - L0312_Check2)) ;size
L0312_Check2:
ld c,15
call GetFirst
or a
ret nz
ld a,STATE_HIVE_DESTROYED
ldio [mapState],a
ret
L0312_CheckFinished:
PRINT "0312 Script Sizes (Load/Init/Check) (of $500): "
PRINT (L0312_LoadFinished - L0312_Load2)
PRINT " / "
PRINT (L0312_InitFinished - L0312_Init2)
PRINT " / "
PRINT (L0312_CheckFinished - L0312_Check2)
PRINT "\n"
| 26.15493 | 70 | 0.417878 |
31ceaa16b2a93be488380f3f1e75d5ddefc06744 | 270 | asm | Assembly | src/basic/conditionals.asm | FoxNeo/MyAssemblyProjects | 0e84c3d443b02a688c7db581a5aa63b91d25de5f | [
"MIT"
] | null | null | null | src/basic/conditionals.asm | FoxNeo/MyAssemblyProjects | 0e84c3d443b02a688c7db581a5aa63b91d25de5f | [
"MIT"
] | null | null | null | src/basic/conditionals.asm | FoxNeo/MyAssemblyProjects | 0e84c3d443b02a688c7db581a5aa63b91d25de5f | [
"MIT"
] | null | null | null | .data
message: .asciiz "The numbers are equal."
message2: .asciiz "Nothing happened."
.text
main:
addi $t0, $zero, 20
addi $t1, $zero, 20
beq $t0, $t1, numbersEqual
# Syscall
li $v0, 10
syscall
numbersEqual:
li $v0, 4
la $a0, message
syscall | 15 | 42 | 0.62963 |
e7b4102ef011c15a3edb962e7f212561b48b4fc1 | 5,189 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_307.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_307.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_307.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 %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xa3d7, %rbp
nop
nop
nop
nop
nop
sub %r11, %r11
movw $0x6162, (%rbp)
nop
nop
nop
nop
nop
xor $41405, %r14
lea addresses_WC_ht+0xda10, %r8
nop
nop
nop
nop
nop
cmp %rbp, %rbp
vmovups (%r8), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %rax
nop
nop
nop
nop
inc %rbp
lea addresses_WC_ht+0x14c50, %r10
nop
and %r9, %r9
mov (%r10), %r14
nop
nop
sub %r11, %r11
lea addresses_WT_ht+0x7e70, %rax
nop
nop
nop
nop
add $55758, %rbp
mov $0x6162636465666768, %r8
movq %r8, %xmm7
vmovups %ymm7, (%rax)
nop
nop
cmp $62674, %r10
lea addresses_normal_ht+0xfc50, %rsi
lea addresses_WC_ht+0x4300, %rdi
inc %rbp
mov $76, %rcx
rep movsb
nop
nop
nop
add $39562, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r8
push %rax
// Faulty Load
lea addresses_normal+0x9450, %rax
xor %r10, %r10
mov (%rax), %r11
lea oracles, %r10
and $0xff, %r11
shlq $12, %r11
mov (%r10,%r11,1), %r11
pop %rax
pop %r8
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 0}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 10}}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 43.241667 | 2,999 | 0.661206 |
60b9ba801abe6006c6d101e9cf17c13a86bc2c0e | 721 | asm | Assembly | programs/oeis/107/A107992.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/107/A107992.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/107/A107992.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A107992: Numbers n such that 11*n - 3 is prime.
; 2,4,10,14,16,22,26,32,46,50,52,56,64,74,80,92,94,100,106,112,124,130,134,136,142,152,164,166,170,172,176,182,190,194,196,214,220,232,236,242,254,260,262,274,284,290,292,296,302,310,320,322,326,334,346,350,364,374,376,380,386,400,404,406,410,422,436,446,452,464,470,472,476,490,494,502,506,514,520,526,530,532,544,550,554,556,574,584,596,602,626,632,634,646,656,674,676,680,682,704
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,7
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,4
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
div $1,2
sub $1,22
mul $1,2
add $1,22
div $1,11
add $1,2
mov $0,$1
| 27.730769 | 382 | 0.658807 |
7c0468a61ccfa74027d2d5b949f604e68d652a84 | 27,970 | asm | Assembly | Project32_VS2019/Hangman.asm | b4k3s/hangman | 95e667123e9c5a960721789a57d40b2582cc3a84 | [
"MIT"
] | null | null | null | Project32_VS2019/Hangman.asm | b4k3s/hangman | 95e667123e9c5a960721789a57d40b2582cc3a84 | [
"MIT"
] | null | null | null | Project32_VS2019/Hangman.asm | b4k3s/hangman | 95e667123e9c5a960721789a57d40b2582cc3a84 | [
"MIT"
] | null | null | null | TITLE Hangman (Hangman.asm)
; ______
; _ _ |/ |
; | | | | __ _ _ __ __ _ _ __ ___ __ _ _ __ | ()
; | |_| |/ _` | '_ \ / _` | '_ ` _ \ / _` | '_ \ | /||\
; | _ | (_| | | | | (_| | | | | | | (_| | | | | | /\
; |_| |_|\__,_|_| |_|\__, |_| |_| |_|\__,_|_| |_| |\
; |___/ ``````````
; Final Project
;
; Version: 1.0
; Group: Team C (MASM)
; Authors: Christian Baker (Lead)
; Anthony Cardona
; Luke Shoff
; Brendon Stutzman
;
; Class: CIS 121 - Assembly Language & Computer Architecture
; Instructor: Professor Manuel Hidalgo
; Date: 5 May 2021
;
; Description:
; Allows the user to play an ASCII art version of the classic game,
; Hangman. Shows a main menu where the user can choose to play the
; game, quit the program, or see the credits for the game. The game
; gives the user 7 wrong letter guesses to find the random word from
; the hardcoded word bank. If the user guesses the word before reaching
; 7 wrong guesses, they win the game. If the user guesses 7 wrong
; letters and has not found the word, they lose. All input is entered
; from the keyboard; any invalid input is ignored.
;
; * BA in comments stands for base address
;
; Note: The length of our program is 416 lines of code in total
; without whitespace and comments, but about 1/4 of that is taken up
; by our string initializations due to the long, hardcoded list of
; words required for the game.
;
;--------------------------------------------------------------------------
INCLUDE Irvine32.inc
; We made use of the following procedures from Kip Irvine's x86 library:
; Crlf - Prints a newline
; Gotoxy - Moves the cursor to position; DH,DL = row,col
; Randomize - Seeds the random number generator for RandomRange
; RandomRange - Generates a random # between 0 and value in EAX reg
; ReadChar - Gets char from keyboard and stores in EAX reg
; Str_copy - Copies one string variable to another string variable
; Str_length - Loads the length of a given string into the EAX reg
; WriteChar - Prints char in the EAX register
; WriteString - Prints string starting with base address in EDX reg
;--------------------------------------------------------------------------
.data
theWord byte 15 DUP(0) ; The word to be guessed
numOfWrong byte 0 ; # of wrong guesses
numOfRight byte 0 ; # of right guesses
wrongGuesses byte 7 DUP(0) ; Array of user's wrong guesses
rightGuesses byte 26 DUP(0) ; Array of user's right guesses
gameDone byte 0 ; Bool to tell program if game is done
; Words to Guess (List curated by Brendon Stutzman)
numOfWords byte 60
word00 byte "DINOSAUR",0
word01 byte "BANJO",0
word02 byte "BIKINI",0
word03 byte "BLIZZARD",0
word04 byte "DIZZY",0
word05 byte "FLAPJACK",0
word06 byte "GALAXY",0
word07 byte "ICEBOX",0
word08 byte "JUMBO",0
word09 byte "GOSSIP",0
word10 byte "JUKEBOX",0
word11 byte "KAYAK",0
word12 byte "LUCKY",0
word13 byte "RHYTHM",0
word14 byte "SUBWAY",0
word15 byte "WITCHCRAFT",0
word16 byte "VORTEX",0
word17 byte "WRISTWATCH",0
word18 byte "SWIVEL",0
word19 byte "KNAPSACK",0
word20 byte "QUARTZ",0
word21 byte "PAJAMAS",0
word22 byte "JACKPOT",0
word23 byte "BOOKWORM",0
word24 byte "ZODIAC",0
word25 byte "AVENUE",0
word26 byte "TRANSCRIPT",0
word27 byte "DAIQUIRI",0
word28 byte "BEEKEEPER",0
word29 byte "AWKWARD",0
word30 byte "FISHHOOK",0
word31 byte "BAGPIPES",0
word32 byte "JELLY",0
word33 byte "JAWBREAKER",0
word34 byte "JUICY",0
word35 byte "JACKPOT",0
word36 byte "PEEKABOO",0
word37 byte "UNKNOWN",0
word38 byte "KLUTZ",0
word39 byte "OXYGEN",0
word40 byte "PIXEL",0
word41 byte "VAPORIZE",0
word42 byte "COBWEB",0
word43 byte "YUMMY",0
word44 byte "ZOMBIE",0
word45 byte "ZIGZAG",0
word46 byte "ZIPPER",0
word47 byte "SPHINX",0
word48 byte "QUIZ",0
word49 byte "PUPPY",0
word50 byte "MICROWAVE",0
word51 byte "FLUFFY",0
word52 byte "CROQUET",0
word53 byte "AVENUE",0
word54 byte "PNEUMONIA",0
word55 byte "GNARLY",0
word56 byte "KEYHOLE",0
word57 byte "LUXURY",0
word58 byte "MEGAHERTZ",0
word59 byte "YOUTH",0
; Array of the strings above
wordBank dword word00,word01,word02,word03,word04,word05
dword word06,word07,word08,word09,word10,word11
dword word12,word13,word14,word15,word16,word17
dword word18,word19,word20,word21,word22,word23
dword word24,word25,word26,word27,word28,word29
dword word30,word31,word32,word33,word34,word35
dword word36,word37,word38,word39,word40,word41
dword word42,word43,word44,word45,word46,word47
dword word48,word49,word50,word51,word52,word53
dword word54,word55,word56,word57,word58,word59
; String of spaces used to clear screen
clearStr byte " ",0dh,0ah,0
; Prompts and Messages
makeSelect byte " Make a Selection: ",0
pressKey byte " Press Any Key: ",0
triedLetters byte " Already Tried: ",0
chooseLetter byte " Choose a Letter: ",0
; Main Menu Strings
titleScr byte " Hangman",0dh,0ah,0dh,0ah,0dh,0ah
byte " [s]tart",0dh,0ah
byte " [q]uit",0dh,0ah
byte " [c]redits",0dh,0ah,0
; Credits String
madeBy byte " Made by:",0dh,0ah,0dh,0ah
byte " Christian Baker",0dh,0ah
byte " Anthony Cardona",0dh,0ah
byte " Luke Shoff",0dh,0ah
byte " Brendon Stutzman",0dh,0ah,0
; Gallows Strings
gallowsTop byte 0dh,0ah," ______",0dh,0ah
byte " |/ |",0dh,0ah
byte " | |",0dh,0ah,0
gallowsNoose byte " | O",0dh,0ah,0
gallowsMid byte " |",0dh,0ah,0
gallowsBase byte " |\",0dh,0ah
byte " `````````",0dh,0ah,0
; Man Strings
manHead byte " | ()",0dh,0ah,0
manTorso byte " | ||",0dh,0ah,0
manArm byte " | /||",0dh,0ah,0
manArms byte " | /||\",0dh,0ah,0
manLeg byte " | /",0dh,0ah,0
manLegs byte " | /\",0dh,0ah,0
; End of Game Strings
winnerMsg byte " You Win! :)",0dh,0ah,0
loserMsg byte " Game Over :(",0dh,0ah,0
wordWas byte " The word was",0dh,0ah," ",0
.code
main PROC
MainMenu:
call PrintMenu ; Print the menu screen
call ReadChar ; Get input char from user
cmp al,'q' ; If user input is 'q'...
je QuitGame ; Then quit game
cmp al,'s' ; If user input is 's'...
je PlayGame ; Then start game
cmp al,'c' ; If user input is 'c'...
je CreditScreen ; Then show credits
jmp MainMenu ; Else jump back to MainMenu
PlayGame:
call ClearScreen ; Clear the screen
mov eax,0 ; Initialize input for game
mov gameDone,al ; Set gameDone to false (0)
mov numOfRight,al ; Set # of right guesses to 0
mov numOfWrong,al ; Set # of wrong guesses to 0
call GetWord ; Get random word from word bank
ContGame:
call PrintHangman ; Print ASCII art hangman
call PrintWord ; Print letters or underscores
call PrintGuesses ; Print wrong letters tried
mov edx,OFFSET chooseLetter ; EDX <-- BA of chooseLetter
call WriteString ; Print user prompt for letter
mov al,gameDone ; AL <-- gameDone
cmp al,0 ; If gameDone is true...
jg EndGame ; Then go to EndGame
call ReadChar ; Get guessed letter from user
call CheckChar ; Store char if eligible
mov al,gameDone ; AL <-- gameDone
cmp al,1 ; If gameDone is false...
jl ContGame ; Then go to ContGame
EndGame:
call PrintEnd ; Print Win/Lose Screen
call ReadChar ; Wait for input (Pause)
jmp MainMenu ; Jump back to MainMenu
CreditScreen:
call PrintCredits ; Print credits
call ReadChar ; Wait for input (Pause)
jmp MainMenu ; Jump back to MainMenu
QuitGame:
call ClearScreen ; Clear the screen
exit
main ENDP
;--------------------------------------------------------------------------
PrintMenu PROC USES ecx edx
; Author: Luke Shoff
;
; Prints the menu screen with prompt.
;--------------------------------------------------------------------------
call ClearScreen ; Clear the screen
mov ecx,5 ; Newlines to print = 5
call PrintNewLines ; Print newlines
mov edx,OFFSET titleScr ; EDX <-- BA of titleScr
call WriteString ; Print Hangman title and options
mov ecx,3 ; Newlines to print = 3
call PrintNewLines ; Print newlines
mov edx,OFFSET makeSelect ; EDX <-- BA of makeSelect
call WriteString ; Print prompt for user selection
ret
PrintMenu ENDP
;--------------------------------------------------------------------------
PrintCredits PROC USES ecx edx
; Author: Brendon Stutzman
;
; Prints the team credits screen with prompt.
;--------------------------------------------------------------------------
call ClearScreen ; Clears the screen
mov ecx,5 ; Newlines to print = 5
call PrintNewLines ; Print newlines
mov edx,OFFSET madeBy ; EDX <-- BA of madeBy
call WriteString ; Print our names
mov ecx,3 ; Newlines to print = 3
call PrintNewLines ; Print newlines
mov edx,OFFSET pressKey ; EDX <-- pressKey
call WriteString ; Print prompt for key press
ret
PrintCredits ENDP
;--------------------------------------------------------------------------
GetWord PROC USES eax ebx esi edi
; Author: Christian Baker & Anthony Cardona
;
; Gets a random number between 0 and numOfWords - 1. Selects the
; corresponding word element from the wordBank string array. Then, copies
; that random word to theWord to be used for that round of the game.
;--------------------------------------------------------------------------
mov al,numOfWords ; AL <-- numOfWords
call Randomize ; Get randomizer seed
call RandomRange ; Get random # btwn 0 and EAX - 1
mov ebx,4 ; Elements are dwords, so 4 bytes
mul ebx ; EAX *= EBX, Gets correct offset
mov esi,OFFSET wordBank ; ESI <-- BA of wordBank
add esi,eax ; ESI += EAX, Go to BA for chosen word
mov edi,[esi] ; EDI <-- Dereferenced BA
invoke Str_copy, ; Copy chosen word to theWord
addr [edi],addr theWord
ret
GetWord ENDP
;--------------------------------------------------------------------------
PrintHangman PROC USES edx eax
; Author: Anthony Cardona
;
; Prints the ASCII art Hangman character. Checks to see which parts to
; print based on how many wrong letter guesses that the user has made.
;--------------------------------------------------------------------------
mov dx,0 ; Set cursor position to (0,0)
call Gotoxy ; (Faster than clearing screen)
mov al,numOfWrong ; AL <-- numOfWrong
mov edx,OFFSET gallowsTop ; EDX <-- BA of gallowsTop
call WriteString ; Print top part of gallows
TheHead:
cmp al,1 ; If wrong guesses < 1...
jl TheNoose ; Then jump to TheNoose
mov edx,OFFSET manHead ; EDX <-- BA of manHead
jmp Write1 ; Jump to Write1
TheNoose:
mov edx,OFFSET gallowsNoose ; EDX <-- BA of gallowsNoose
Write1:
call WriteString ; Print line 1 option from EDX
TwoArms:
cmp al,4 ; If wrong guesses < 4...
jl OneArm ; Then jump to OneArm
mov edx,OFFSET manArms ; EDX <-- BA manArms
jmp Write2 ; Jump to Write2
OneArm:
cmp al,3 ; If wrong guesses < 3...
jl TheTorso ; Then jump to TheTorso
mov edx,OFFSET manArm ; EDX <-- BA of manArm
jmp Write2 ; Jump to Write2
TheTorso:
cmp al,2 ; If wrong guesses < 2...
jl NoTorso ; Then jump to NoTorso
mov edx,OFFSET manTorso ; EDX <-- BA of manTorso
jmp Write2 ; Jump to Write2
NoTorso:
mov edx,OFFSET gallowsMid ; EDX <-- gallowsMid
Write2:
call WriteString ; Print line 2 option from EDX
TwoLegs:
cmp al,6 ; If wrong guesses < 6...
jl OneLeg ; Then jump to OneLeg
mov edx,OFFSET manLegs ; EDX <-- BA of manLegs
jmp Write3 ; Jump to Write3
OneLeg:
cmp al,5 ; If wrong guesses < 5...
jl NoLegs ; Then jump to NoLegs
mov edx,OFFSET manLeg ; EDX <-- BA of manLeg
jmp Write3 ; Jump to Write3
NoLegs:
mov edx,OFFSET gallowsMid ; EDX <-- BA of gallowsMid
Write3:
call WriteString ; Print line 3 option from EDX
mov edx,OFFSET gallowsBase ; EDX <-- BA of gallowsBase
call WriteString ; Print bottom part of gallows
ret
PrintHangman ENDP
;--------------------------------------------------------------------------
PrintWord PROC USES eax ecx edx esi edi
; Author: Christian Baker
;
; Uses a nested loop to iterate through each character in theWord and
; compares it to the correct characters guessed by the user. If it the
; letter in the word is found in the correct guesses list, it will print
; it out to the screen. If it is not found, it will instead print an
; underscore, meaning it still needs to be guessed. If all characters
; have been guessed, gameDone is set to true.
;--------------------------------------------------------------------------
mov al,1 ; Assume gameDone is true (1)...
mov gameDone,al ; until proven otherwise
mov esi,OFFSET theWord ; ESI <-- BA of theWord
mov dh,[esi] ; DH <-- first letter of theWord
invoke Str_length,addr theWord ; EAX <-- # of chars in theWord
mov ecx,eax ; ECX <-- EAX (outer counter)
OuterLoop:
push ecx ; Push ECX to stack to save outer counter
mov edi,OFFSET rightGuesses ; EDI <-- BA of rightGuesses array
mov dl,[esi] ; DL <-- current letter of theWord
mov al,' ' ; AL <-- space char
call WriteChar ; Print space (for between characters)
mov cl,numOfRight ; CL <-- # of right guesses (inner counter)
cmp cl,0 ; If no correct guesses yet...
jle UnderScore ; Then jump to UnderScore
InnerLoop:
mov dh,[edi] ; DH <-- current letter from rightGuesses
cmp dl,dh ; If theWord[outer] != rightGuesses[inner]...
jne NextCmp ; Then jump to NextCmp
mov al,dl ; AL <-- theWord[outer]
call WriteChar ; Print the current letter of theWord
jmp NextLetter ; Jump to NextLetter
NextCmp:
inc edi ; Inc EDI to next elem in rightGuesses
loop InnerLoop ; Dec ECX and Jump to InnerLoop
UnderScore:
mov al,'_' ; AL <-- underscore char
call WriteChar ; Print underscore (letter not guessed yet)
mov al,0 ; Set gameDone to false (0)...
mov gameDone,al ; b/c not all letters have been guessed
NextLetter:
inc esi ; Inc ESI to next letter of theWord
pop ecx ; Pop from stack to ECX to get outer counter
loop OuterLoop ; Dec ECX and Jump to OuterLoop
mov ecx,3 ; Newlines to print = 3
call PrintNewlines ; Print newlines
ret
PrintWord ENDP
;--------------------------------------------------------------------------
PrintGuesses PROC USES eax ecx edx esi
; Author: Luke Shoff
;
; Prints a list of the characters the user has already guessed. Each
; character is separated by a comma and a space, unless it is the last
; character in the list.
;--------------------------------------------------------------------------
mov edx,OFFSET triedLetters ; EDX <-- triedLetters
call WriteString ; Prints already tried message
mov esi,OFFSET wrongGuesses ; ESI <-- BA of wrongGuesse array
mov cl,numOfWrong ; CL <-- numOfWrong
cmp cl,0 ; If there are no wrong guesses yet...
jle Finish ; Jump to Finish
PrintLetter:
mov al,[esi] ; AL <-- current char of wrongGuesses
call WriteChar ; Print current char of wrongGuesses
cmp cl,1 ; If last iteration...
je Finish ; Jump to Finish (skip printing comma)
mov al,',' ; AL <-- comma char
call WriteChar ; Print comma
mov al,' ' ; AL <-- space char
call WriteChar ; Print space
inc esi ; Inc ESI to next guess in wrongGuesses
loop PrintLetter ; Dec ECX and jump to PrintLetter
Finish:
mov ecx,2 ; Newlines to print = 2
call PrintNewLines ; Print newlines
ret
PrintGuesses ENDP
;--------------------------------------------------------------------------
CheckChar PROC
; Author Christian Baker
;
; Checks whether input is lowercase alphabet character. If it is,
; character is converted to uppercase. Checks to make sure input is an
; uppercase alphabet character. Checks if the user has already guessed
; the character. Then, checks if the character is in the word. If it is,
; it is added to the list of right guesses, and if it is not, it is added
; to the list of wrong guesses. Finally, if the number of wrong guesses is
; now, more than 7, then sets gameDone to true. If input is not an
; alphabet character or it is a duplicate, it is ignored.
;
; Receives: EAX = user input
;--------------------------------------------------------------------------
mov bl,al ; BL <-- user input (to free up EAX)
cmp bl,'z' ; If user input is greater than 'z'...
jg EndCheck ; Then invalid char, jump to EndCheck
cmp bl,'a' ; If user input is less than 'a'...
jl UpperCheck ; then jump to UpperCheck
sub bl,32 ; Else, bl -= 32 to convert to upper
UpperCheck:
cmp bl,'Z' ; If user input is greater than 'Z'...
jg EndCheck ; Then invalid char, jump to EndCheck
cmp bl,'A' ; If user input is less than 'A'...
jl EndCheck ; Then invalid char, jump to EndCheck
mov esi,OFFSET rightGuesses ; ESI <-- BA of rightGuesses
mov cl,numOfRight ; CL <-- numOfRightGuesses
cmp cl,0 ; If there are no right guesses yet...
jle SetupNext ; Then Jump to SetupNext
DupRight:
mov dl,[esi] ; DL <-- curr char of rightGuesses
cmp bl,dl ; If input is already in right array...
je EndCheck ; Then duplicate char, jump to EndCheck
inc esi ; Inc ESI to next char in rightGuesses
loop DupRight ; Dec ECX and jump to DupRight
SetupNext:
mov esi,OFFSET rightGuesses ; ESI <-- BA of rightGuesses
mov edi,OFFSET theWord ; EDI <-- BA of theWord
invoke Str_length,addr theWord ; EAX <-- # of chars in theWord
mov ecx,eax ; ECX <-- EAX (for counter)
RightCheck:
mov dl,[edi] ; DL <-- curr char of theWord
cmp bl,dl ; If the input char != theWord char...
jne NextChar ; Then jump to NextChar
movzx edx,numOfRight ; EDX <-- numOfRight (zero extended)
add esi,edx ; ESI += EDX, goto next open rightGuesses spot
mov [esi],bl ; Write input to rightGuesses array
inc dl ; Inc DL (increment num of right guesses)
mov numOfRight,dl ; Write incremented value to numOfRight
jmp EndCheck ; Input valid and recorded, jump to EndCheck
NextChar:
inc edi ; Inc EDI to move to next char in theWord
loop RightCheck ; Dec ECX and jump to RightCheck
mov esi,OFFSET wrongGuesses ; ESI <-- BA of wrongGuesses
mov cl,numOfWrong ; CL <-- numOfWrong
cmp cl,0 ; If there are no wrong guesses yet...
jle AddWrong ; Then jump to AddWrong
DupWrong:
mov dl,[esi] ; DL <-- curr char of wrongGuesses
cmp bl,dl ; If input is already in wrong array...
je EndCheck ; Then duplicate char, jump to EndCheck
inc esi ; Inc ESI to next char in wrongGuesses
loop DupWrong ; Dec ECX and jump to DupWrong
AddWrong:
mov esi,OFFSET wrongGuesses ; ESI <-- BA of wrongGuesses
movzx edx,numOfWrong ; EDX <-- numOfWrong (zero extended)
add esi,edx ; ESI += EDX, goto next open wrongGuesses spot
mov [esi],bl ; Write input to wrongGuesses array
inc dl ; Inc DL (increment num of wrong guesses)
mov numOfWrong,dl ; Write incremented value to numOfWrong
cmp dl,6 ; If numOfWrong < 6 (Less than 7 guesses)...
jle EndCheck ; Then, jump to EndCheck
mov al,1 ; Else, set gameDone to true (1)
mov gameDone,al ; b/c user is out of guesses
EndCheck:
ret
CheckChar ENDP
;--------------------------------------------------------------------------
PrintEnd PROC USES eax ecx edx
; Author: Brendon Stutzman
;
; Prints a winner or loser screen based on the outcome of the game, then
; reveals what the word to be guessed was with key press prompt.
;--------------------------------------------------------------------------
call ClearScreen ; Clear the screen
mov ecx,5 ; Newlines to print = 5
call PrintNewLines ; Print newlines
mov al,numOfWrong ; AL <-- numOfWrong
UserLost:
cmp al,6 ; If numOfWrong < 6...
jle UserWon ; Then jump to UserWon
mov edx,OFFSET loserMsg ; EDX <-- BA of loserMsg
call WriteString ; Print the loser message
jmp RevealWord ; jump to RevealWord
UserWon:
mov edx,OFFSET winnerMsg ; EDX <-- BA of winnerMsg
call WriteString ; Print the winner message
RevealWord:
mov ecx,2 ; Newlines to print = 2
call PrintNewLines ; Print newlines
mov edx,OFFSET wordWas ; EDX <-- BA of wordWas
call WriteString ; Print word was string
mov edx,OFFSET theWord ; EDX <-- BA of theWord
call WriteString ; Print the word of the game
mov ecx,5 ; Newlines to print = 5
call PrintNewLines ; Print newlines
mov edx,OFFSET pressKey ; EDX <-- BA of pressKey
call WriteString ; Prints press key prompt
ret
PrintEnd ENDP
;-- EXTRA UTILITY PROCEDURES ----------------------------------------------
;--------------------------------------------------------------------------
ClearScreen PROC USES ecx edx
; Author: Christian Baker
;
; Clears only the lines that are used in the program. This was needed
; because the Clrscr procedure in the Irvine Library that clears the
; entire window was lagging badly.
;--------------------------------------------------------------------------
mov ecx,15 ; # of lines to print (Game screen height)
mov dx,0 ; Set cursor position to (0,0)
call Gotoxy
mov edx,OFFSET clearStr ; EDX <-- clearString
ClearLines:
call WriteString ; Print spaces over previous screen
loop ClearLines ; Dec ECX and jump to ClearLines
mov dx,0 ; Set cursor postion to (0,0)
call Gotoxy ; to set up for next screen
ret
ClearScreen ENDP
;--------------------------------------------------------------------------
PrintNewLines PROC
; Author: Christian Baker
;
; Prints the newlines as many times as the number that is in ECX register.
;
; Receives: ECX = # of newlines to print
;--------------------------------------------------------------------------
PrintLines:
call Crlf ; Print newline
loop PrintLines ; Dec ECX and jump to PrintLines
ret
PrintNewLines ENDP
END main
| 46.461794 | 83 | 0.495567 |
2cb92a82d3b340f6a9fb91affb6132976ba751aa | 12,610 | asm | Assembly | P6/data_P6_2/ALUTest104.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/ALUTest104.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6_2/ALUTest104.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | sll $3,$3,0
srav $1,$4,$3
srl $0,$1,8
slt $2,$2,$3
lw $4,4($0)
lb $1,3($0)
xori $0,$0,41446
xori $1,$1,40928
srav $5,$4,$3
xori $4,$4,62477
slt $4,$4,$3
ori $6,$4,31892
lhu $3,10($0)
srlv $5,$4,$3
slti $1,$4,24661
andi $6,$3,5053
sw $5,12($0)
and $6,$3,$3
lw $5,8($0)
nor $1,$1,$3
sltu $1,$4,$3
lw $3,12($0)
ori $4,$5,25146
addu $1,$3,$3
slt $3,$4,$3
sllv $5,$6,$3
lhu $4,12($0)
ori $3,$5,965
addiu $0,$4,-16903
srlv $3,$3,$3
subu $5,$5,$3
lbu $3,7($0)
slt $5,$3,$3
addu $5,$5,$3
slt $4,$1,$3
or $3,$1,$3
lw $2,12($0)
nor $5,$5,$3
lw $4,4($0)
srav $4,$0,$3
sltiu $5,$5,-23586
lw $3,0($0)
ori $1,$1,8596
slti $0,$1,-14717
slt $3,$3,$3
and $6,$0,$3
srlv $0,$5,$3
sra $4,$4,10
subu $4,$2,$3
addiu $4,$3,-5650
sw $0,16($0)
lh $4,10($0)
nor $1,$3,$3
srl $4,$3,28
sw $5,8($0)
slt $3,$1,$3
lw $5,12($0)
srl $4,$4,31
sh $4,14($0)
and $4,$4,$3
sra $6,$3,22
andi $6,$1,11076
sw $4,16($0)
sltiu $4,$4,7978
sltiu $1,$4,18203
subu $3,$3,$3
slti $4,$3,-28964
xor $0,$0,$3
xori $5,$2,32847
slti $5,$5,18958
sll $5,$3,29
andi $1,$1,55248
sb $4,2($0)
sw $0,8($0)
srav $4,$4,$3
lw $3,8($0)
and $3,$3,$3
sra $1,$1,11
andi $3,$6,31198
slti $3,$3,18696
srlv $5,$4,$3
srav $4,$4,$3
lb $1,8($0)
xor $5,$1,$3
addu $3,$4,$3
subu $4,$3,$3
addiu $0,$4,-24042
slt $1,$5,$3
addu $3,$5,$3
lhu $5,2($0)
addu $3,$3,$3
srav $5,$0,$3
addu $4,$3,$3
subu $0,$0,$3
srav $4,$5,$3
srav $5,$4,$3
addu $6,$5,$3
addiu $4,$1,-21625
sb $3,12($0)
or $5,$4,$3
or $0,$4,$3
xori $4,$3,39836
sh $3,10($0)
andi $6,$1,47510
subu $1,$5,$3
andi $4,$4,2254
sltu $3,$4,$3
or $3,$1,$3
srlv $4,$5,$3
subu $1,$0,$3
lw $4,12($0)
slti $3,$3,-9428
xor $0,$5,$3
sltiu $6,$0,30174
sltu $0,$0,$3
subu $4,$4,$3
xor $6,$6,$3
lbu $3,5($0)
sltiu $4,$5,-25724
andi $1,$1,38601
and $1,$3,$3
slti $1,$3,-23171
addu $4,$1,$3
sw $3,12($0)
slti $0,$3,-31255
sra $4,$0,29
srl $3,$4,28
srlv $6,$4,$3
xori $3,$3,33650
ori $5,$3,16399
srlv $4,$1,$3
sllv $4,$2,$3
lb $3,3($0)
sra $4,$0,29
lhu $3,8($0)
lh $2,8($0)
addu $3,$0,$3
sltiu $1,$3,-15083
srlv $6,$4,$3
sllv $5,$0,$3
lw $4,8($0)
nor $6,$4,$3
lhu $5,16($0)
addu $0,$3,$3
sll $3,$6,14
sltu $0,$0,$3
subu $4,$1,$3
ori $5,$4,56887
ori $0,$6,8148
srlv $4,$1,$3
sltiu $5,$5,5199
slt $4,$3,$3
nor $3,$5,$3
lw $0,8($0)
sltiu $1,$6,-27465
lhu $3,2($0)
srlv $4,$5,$3
sh $6,14($0)
and $3,$2,$3
srl $4,$0,8
lhu $6,8($0)
andi $1,$1,42830
lw $1,12($0)
sltiu $4,$3,-13552
sra $1,$1,4
sb $3,8($0)
srlv $4,$1,$3
srlv $4,$5,$3
lb $1,6($0)
addiu $3,$3,8084
subu $4,$1,$3
sw $4,0($0)
lw $5,16($0)
addiu $0,$0,23704
sltiu $3,$3,-4951
xori $1,$5,27953
sltiu $4,$1,27243
srav $3,$4,$3
ori $3,$4,45632
subu $4,$1,$3
subu $3,$6,$3
nor $4,$4,$3
sltiu $6,$6,-30464
srl $3,$3,2
sltu $4,$4,$3
sw $3,4($0)
srl $3,$4,7
lbu $3,6($0)
srlv $4,$4,$3
srav $5,$2,$3
or $6,$6,$3
subu $6,$6,$3
lh $3,10($0)
addu $4,$4,$3
or $4,$3,$3
sllv $1,$1,$3
lhu $0,0($0)
slti $3,$5,5988
or $3,$3,$3
lhu $4,14($0)
slti $5,$6,-27139
xor $3,$3,$3
srl $3,$5,14
xor $5,$0,$3
slti $1,$5,-18198
addu $3,$3,$3
addiu $6,$6,-12751
sll $3,$2,4
or $6,$4,$3
sh $0,14($0)
sb $3,6($0)
slti $3,$3,-21290
or $3,$1,$3
and $3,$4,$3
addu $3,$3,$3
lh $3,2($0)
subu $6,$6,$3
sltu $6,$5,$3
sltu $6,$1,$3
addu $4,$3,$3
xor $4,$1,$3
andi $3,$3,51635
srav $5,$6,$3
lh $4,4($0)
xori $5,$1,21159
slti $3,$3,-17077
lw $3,16($0)
srl $3,$3,28
sltu $1,$4,$3
sra $4,$4,24
addiu $1,$6,13359
sllv $3,$2,$3
andi $5,$6,26206
sllv $1,$1,$3
addiu $4,$5,7304
addiu $1,$1,15883
xor $1,$4,$3
subu $1,$1,$3
lb $5,10($0)
srav $4,$4,$3
sb $4,0($0)
sra $3,$3,21
sb $3,16($0)
sh $3,4($0)
andi $0,$3,1650
subu $3,$3,$3
sra $4,$4,31
sllv $5,$5,$3
addiu $3,$4,47
srl $6,$4,14
srlv $3,$5,$3
sltiu $1,$1,32345
lw $4,0($0)
subu $4,$1,$3
slt $0,$0,$3
sll $0,$4,10
lbu $3,14($0)
sb $0,6($0)
subu $6,$4,$3
sh $0,12($0)
subu $6,$3,$3
sllv $4,$3,$3
sllv $4,$5,$3
andi $4,$4,63445
subu $3,$3,$3
sllv $4,$4,$3
sll $4,$1,30
nor $0,$0,$3
subu $6,$1,$3
nor $4,$4,$3
andi $0,$1,17647
sra $3,$3,16
sh $5,0($0)
sh $3,2($0)
slt $4,$3,$3
sllv $3,$3,$3
sh $5,14($0)
sll $3,$1,4
sh $3,4($0)
srav $3,$6,$3
addiu $3,$5,9363
lhu $4,16($0)
slt $3,$5,$3
sltiu $4,$6,-30650
sb $4,2($0)
sra $3,$1,15
lb $5,2($0)
sllv $3,$3,$3
slti $3,$3,-7663
xor $5,$4,$3
sh $4,4($0)
addiu $4,$4,-16891
sll $6,$3,20
lw $3,12($0)
subu $3,$3,$3
lhu $3,8($0)
subu $6,$3,$3
nor $3,$3,$3
lbu $3,8($0)
srav $3,$1,$3
lbu $3,6($0)
ori $4,$4,53050
lh $3,2($0)
sra $3,$4,14
subu $3,$6,$3
xor $4,$5,$3
lb $4,4($0)
andi $0,$0,21473
srlv $1,$4,$3
ori $4,$1,3150
addiu $5,$3,19671
sll $3,$3,13
lw $6,4($0)
xori $4,$4,59401
slt $1,$3,$3
and $4,$5,$3
addiu $1,$1,-26103
or $3,$4,$3
srlv $5,$4,$3
sllv $1,$1,$3
lw $1,8($0)
xori $3,$3,10617
sltiu $5,$6,5475
srlv $5,$3,$3
srav $5,$5,$3
lw $1,16($0)
srav $3,$6,$3
addu $3,$5,$3
xor $1,$4,$3
addu $3,$6,$3
slti $0,$3,-4731
xori $0,$0,59365
nor $5,$3,$3
sll $1,$2,4
andi $3,$3,36867
sllv $4,$1,$3
addiu $5,$4,8193
sll $3,$4,4
ori $5,$4,60583
subu $4,$4,$3
xori $5,$5,50766
srl $4,$4,27
slt $1,$6,$3
addiu $3,$3,18934
xor $0,$4,$3
lbu $3,8($0)
xori $1,$1,17060
lhu $1,14($0)
subu $3,$3,$3
or $1,$1,$3
sll $6,$3,29
andi $3,$3,29716
lbu $4,13($0)
nor $4,$0,$3
addu $3,$4,$3
addiu $3,$0,-15974
or $2,$2,$3
slti $4,$5,-31824
srlv $1,$5,$3
sra $4,$1,6
xori $3,$3,31743
addiu $4,$5,-21135
nor $5,$1,$3
sw $1,0($0)
or $3,$3,$3
srav $1,$4,$3
sw $6,16($0)
sll $0,$5,20
lb $1,14($0)
addu $3,$5,$3
sllv $3,$6,$3
lhu $3,8($0)
sltiu $5,$4,22077
lb $3,11($0)
and $1,$4,$3
lb $4,7($0)
sb $3,11($0)
lh $4,8($0)
xori $0,$5,41138
addiu $3,$1,18921
addu $4,$4,$3
sh $3,0($0)
andi $4,$3,49659
sb $6,8($0)
lb $3,16($0)
sw $1,16($0)
sltu $5,$0,$3
or $3,$5,$3
sb $4,7($0)
lhu $6,4($0)
xori $4,$4,59951
and $1,$4,$3
srlv $3,$0,$3
subu $1,$3,$3
sra $3,$3,11
slti $3,$4,14019
addiu $4,$4,3001
andi $3,$4,14633
srlv $4,$4,$3
subu $4,$4,$3
srlv $6,$3,$3
addiu $0,$0,-26806
subu $4,$5,$3
xori $3,$3,22521
addiu $5,$3,-5126
sllv $4,$4,$3
andi $0,$5,54093
sltiu $1,$3,10723
lh $4,0($0)
sra $4,$6,24
sh $6,0($0)
sh $5,0($0)
sb $6,10($0)
sb $3,3($0)
slt $4,$4,$3
addiu $1,$1,-24538
sw $3,12($0)
sw $6,0($0)
addiu $4,$1,-11282
srl $1,$2,21
addu $0,$0,$3
sltu $3,$3,$3
addiu $0,$1,-11936
addu $6,$0,$3
srav $6,$1,$3
sw $4,4($0)
or $6,$4,$3
srlv $1,$1,$3
sh $3,12($0)
slt $0,$0,$3
addiu $1,$0,21448
sh $4,0($0)
sb $4,4($0)
sltiu $3,$4,20377
sllv $5,$4,$3
sllv $4,$4,$3
sra $4,$0,26
sra $5,$5,0
subu $3,$4,$3
nor $5,$1,$3
xori $4,$6,25386
ori $5,$5,29112
addiu $5,$3,-28189
or $0,$3,$3
slti $1,$4,-2195
sllv $3,$3,$3
addiu $1,$1,18823
sltu $4,$3,$3
sra $1,$1,11
srl $5,$5,0
sra $1,$4,9
addu $0,$5,$3
subu $4,$4,$3
addiu $4,$4,10665
xor $6,$4,$3
ori $4,$4,28681
srlv $4,$1,$3
addiu $3,$5,5716
srl $1,$4,5
sltiu $4,$2,11509
addu $3,$4,$3
lh $3,14($0)
lh $3,4($0)
sra $4,$4,23
addu $3,$3,$3
lbu $5,12($0)
ori $5,$5,20118
subu $1,$1,$3
sllv $3,$6,$3
lhu $5,16($0)
addu $4,$5,$3
slti $5,$5,-31638
andi $4,$4,15490
sltiu $5,$3,-12995
sltu $0,$1,$3
slti $5,$5,16338
srav $4,$4,$3
and $2,$2,$3
addu $1,$6,$3
slti $1,$5,-21211
xori $3,$3,33932
sh $4,4($0)
lbu $4,11($0)
xori $3,$5,41468
lw $3,0($0)
addiu $1,$4,21287
ori $4,$4,19237
sltiu $5,$5,-13583
sb $1,3($0)
addiu $4,$6,-1239
slti $4,$0,32721
sllv $6,$6,$3
sw $4,12($0)
addiu $1,$1,-26699
andi $3,$4,33098
slt $0,$0,$3
srav $3,$0,$3
lh $5,2($0)
subu $1,$4,$3
subu $3,$3,$3
sll $4,$4,19
slt $6,$5,$3
andi $1,$1,47605
srl $0,$0,7
sb $3,14($0)
addiu $3,$3,18419
xor $4,$4,$3
xor $1,$4,$3
sllv $1,$4,$3
sllv $5,$0,$3
sltiu $6,$1,6161
subu $5,$3,$3
slt $1,$6,$3
srl $1,$1,24
slt $5,$4,$3
sb $1,3($0)
sll $0,$6,30
and $6,$6,$3
subu $4,$3,$3
ori $0,$5,30295
sltiu $3,$3,-12833
srlv $4,$5,$3
lbu $3,10($0)
srl $4,$6,10
ori $6,$0,49052
addu $3,$4,$3
srl $4,$4,13
ori $4,$3,5684
ori $1,$4,35343
sll $6,$6,21
slti $3,$3,-26124
addu $1,$3,$3
sw $1,16($0)
andi $3,$6,54706
slt $4,$3,$3
sll $3,$6,1
sltu $1,$1,$3
andi $3,$1,50558
xor $4,$5,$3
lh $4,12($0)
lbu $3,13($0)
slti $3,$5,-8400
lhu $1,14($0)
lh $3,14($0)
sra $3,$2,13
xor $4,$4,$3
slti $1,$4,-27586
sb $1,13($0)
nor $3,$1,$3
sw $5,16($0)
sb $4,11($0)
sll $3,$3,11
sllv $0,$1,$3
and $0,$3,$3
addiu $4,$4,-26872
addu $1,$1,$3
ori $1,$6,60063
lh $1,12($0)
srlv $3,$1,$3
sltu $5,$0,$3
addiu $6,$5,-10844
subu $1,$4,$3
sb $3,1($0)
ori $4,$5,42798
srlv $3,$3,$3
sh $3,0($0)
addu $0,$4,$3
sw $4,8($0)
lbu $5,2($0)
srl $5,$3,7
srl $1,$1,2
lbu $5,7($0)
and $6,$5,$3
sra $3,$0,13
srlv $6,$6,$3
nor $5,$6,$3
srlv $3,$3,$3
lhu $6,6($0)
sll $1,$3,7
addiu $1,$5,20342
andi $3,$4,6081
slt $0,$3,$3
srl $2,$2,23
sllv $3,$4,$3
andi $0,$6,53884
addu $3,$3,$3
and $3,$1,$3
srav $0,$3,$3
srlv $1,$5,$3
slti $6,$6,2333
sb $3,1($0)
srlv $6,$1,$3
addiu $1,$4,21664
slti $5,$3,22685
slti $3,$4,30936
lhu $4,16($0)
slt $5,$4,$3
sw $3,0($0)
slt $3,$3,$3
srl $1,$4,16
lbu $0,13($0)
srl $4,$3,30
nor $3,$1,$3
and $0,$3,$3
sra $1,$1,23
addiu $4,$4,11333
or $5,$2,$3
sh $4,10($0)
slt $6,$3,$3
lhu $1,0($0)
nor $1,$3,$3
addiu $4,$6,2777
slt $3,$3,$3
sllv $4,$1,$3
subu $3,$4,$3
and $6,$4,$3
sltiu $6,$6,-22576
lhu $4,14($0)
addiu $4,$6,8381
sllv $3,$3,$3
lhu $0,14($0)
lw $3,0($0)
lh $3,4($0)
addiu $0,$4,-10881
addu $5,$5,$3
addu $1,$5,$3
lw $3,4($0)
xori $4,$4,6899
lbu $5,3($0)
sra $3,$1,1
lb $4,2($0)
xori $5,$5,52377
sb $4,16($0)
sll $3,$3,10
lb $3,15($0)
lbu $1,10($0)
ori $1,$1,45410
xor $3,$3,$3
sw $1,0($0)
sltu $5,$4,$3
srav $1,$2,$3
addiu $1,$6,-30078
srav $6,$6,$3
addu $2,$2,$3
lh $1,2($0)
sb $6,0($0)
lh $4,0($0)
lbu $6,5($0)
xori $4,$5,53473
subu $3,$4,$3
xor $3,$4,$3
sltiu $4,$6,-5273
subu $1,$1,$3
addu $3,$3,$3
sllv $5,$3,$3
sltu $4,$4,$3
lbu $3,4($0)
slti $5,$0,13387
sltu $4,$0,$3
sltu $5,$5,$3
xori $0,$3,45196
sltiu $3,$0,-10205
slt $5,$5,$3
slt $3,$1,$3
xor $1,$4,$3
lbu $5,2($0)
xori $3,$0,59652
sll $3,$0,30
xori $4,$4,45089
sll $3,$5,14
sb $1,1($0)
srav $6,$1,$3
srl $0,$5,6
xori $3,$1,61693
addu $0,$3,$3
ori $3,$5,62746
sra $3,$5,31
lhu $4,8($0)
lh $0,10($0)
andi $4,$4,19444
slt $5,$3,$3
srl $6,$4,29
addu $4,$2,$3
sra $3,$4,8
sra $6,$6,14
addu $4,$3,$3
addu $3,$3,$3
lb $4,13($0)
sb $0,15($0)
subu $5,$4,$3
sh $4,16($0)
subu $1,$1,$3
subu $3,$3,$3
nor $5,$5,$3
slt $5,$1,$3
subu $3,$4,$3
addu $4,$3,$3
nor $4,$3,$3
nor $3,$3,$3
lbu $1,6($0)
sll $4,$3,19
srlv $4,$0,$3
lbu $1,3($0)
sra $4,$5,16
srav $3,$4,$3
sll $1,$1,28
sb $4,10($0)
sllv $4,$4,$3
addiu $1,$5,20597
andi $4,$4,37134
andi $3,$1,26412
andi $6,$4,58055
sra $3,$4,5
slt $3,$1,$3
subu $1,$1,$3
sllv $3,$3,$3
nor $4,$4,$3
sltiu $0,$4,-3951
srav $3,$3,$3
srav $3,$1,$3
lw $4,12($0)
slt $3,$3,$3
sll $6,$5,3
xori $4,$1,49516
sb $6,13($0)
ori $1,$1,44047
subu $3,$3,$3
slti $5,$5,-7539
sb $3,13($0)
lbu $5,8($0)
lhu $3,2($0)
sll $3,$1,19
xori $5,$5,10621
addu $3,$3,$3
srlv $6,$6,$3
lbu $6,4($0)
or $4,$6,$3
addiu $1,$1,21095
srlv $3,$1,$3
sltiu $4,$6,31108
srlv $1,$3,$3
or $6,$5,$3
or $3,$3,$3
addiu $4,$1,27518
lbu $1,3($0)
andi $1,$3,50198
nor $1,$1,$3
sllv $1,$4,$3
slti $3,$3,3403
addiu $3,$3,6398
lhu $5,6($0)
srl $1,$6,1
or $1,$3,$3
and $3,$4,$3
lhu $3,8($0)
srl $4,$4,23
nor $0,$0,$3
sh $1,16($0)
addiu $0,$6,29894
srlv $4,$1,$3
sb $5,9($0)
and $4,$3,$3
subu $6,$3,$3
sw $6,8($0)
or $3,$4,$3
slt $3,$3,$3
sltu $4,$4,$3
lb $4,16($0)
nor $5,$0,$3
srlv $4,$0,$3
ori $4,$4,34943
nor $3,$3,$3
sltiu $4,$4,25983
sw $6,8($0)
sb $0,13($0)
sw $4,0($0)
sltiu $4,$3,3217
lb $4,16($0)
slti $3,$3,-16715
srav $0,$5,$3
lhu $3,6($0)
xor $5,$5,$3
addiu $1,$4,3319
slti $3,$1,3405
srlv $4,$3,$3
sh $3,12($0)
sra $1,$0,1
lhu $5,8($0)
addu $5,$5,$3
ori $4,$3,2166
sllv $4,$3,$3
sb $1,13($0)
andi $2,$2,34333
srlv $3,$3,$3
sb $3,12($0)
srlv $6,$1,$3
sra $3,$5,3
xori $4,$4,18464
andi $3,$6,25885
and $5,$3,$3
srlv $0,$1,$3
ori $1,$3,8994
srlv $3,$3,$3
sh $3,14($0)
sltu $4,$4,$3
sltiu $3,$3,-17721
subu $3,$5,$3
and $4,$1,$3
lw $0,12($0)
addiu $3,$3,31995
sll $3,$4,31
lbu $3,3($0)
sh $3,2($0)
sltu $3,$3,$3
xori $3,$3,25570
sllv $4,$3,$3
sltu $4,$5,$3
sll $1,$1,26
lh $5,10($0)
and $4,$3,$3
nor $0,$6,$3
and $1,$1,$3
xor $5,$3,$3
sllv $3,$1,$3
sll $1,$0,28
lh $3,6($0)
addu $4,$0,$3
nor $4,$1,$3
sb $3,15($0)
addiu $0,$0,-29505
lbu $3,14($0)
ori $5,$4,50411
ori $3,$3,41552
lw $1,8($0)
sra $6,$3,21
srav $0,$3,$3
xor $5,$4,$3
sb $3,5($0)
addu $3,$3,$3
lhu $1,6($0)
slt $5,$2,$3
lbu $4,3($0)
srlv $4,$6,$3
andi $3,$1,53345
sllv $3,$1,$3
srav $3,$1,$3
nor $4,$3,$3
andi $4,$4,14137
sll $1,$3,22
ori $1,$3,6498
sltiu $4,$3,6022
xor $0,$3,$3
and $0,$4,$3
slt $5,$3,$3
lb $5,3($0)
srlv $3,$3,$3
xori $5,$1,64684
sltu $3,$4,$3
subu $4,$3,$3
srl $4,$3,9
subu $6,$4,$3
lbu $3,1($0)
xor $4,$1,$3
lbu $1,1($0)
sll $3,$5,13
slt $5,$5,$3
srav $1,$3,$3
or $5,$1,$3
lbu $4,7($0)
addiu $5,$5,-5513
srlv $3,$5,$3
lw $3,0($0)
lh $4,14($0)
sltu $3,$5,$3
addiu $3,$4,-32001
subu $1,$3,$3
sb $3,8($0)
slt $3,$1,$3
srl $4,$5,29
sll $3,$3,20
addiu $5,$5,-6987
srlv $3,$3,$3
sltiu $1,$3,-12071
or $5,$3,$3
addiu $5,$4,20226
lbu $3,8($0)
slti $1,$1,29188
sw $3,4($0)
| 14.184477 | 18 | 0.526963 |
c89134bcc90df1ed157c5a9dd25452d0b5903e69 | 497 | asm | Assembly | oeis/167/A167666.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/167/A167666.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/167/A167666.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A167666: Triangle read by rows given by [1,1,-4,2,0,0,0,0,0,0,0,...] DELTA [1,0,0,1,0,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938.
; Submitted by Christian Krause
; 1,1,1,2,3,1,0,4,5,1,0,0,6,7,1,0,0,0,8,9,1,0,0,0,0,10,11,1,0,0,0,0,0,12,13,1,0,0,0,0,0,0,14,15,1,0,0,0,0,0,0,0,16,17,1,0,0,0,0,0,0,0,0,18,19,1,0,0,0,0,0,0,0,0,0,20,21,1,0,0,0,0,0,0,0,0,0,0,22,23,1,0,0,0,0,0,0,0,0
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
add $0,$1
dif $2,2
pow $2,16
bin $0,$2
| 33.133333 | 213 | 0.573441 |
504521caa911ba2e713f7ce327b0fc7a09118b7d | 130 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/cbrt_fastcall.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/cbrt_fastcall.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/cbrt_fastcall.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_fp_math48
PUBLIC _cbrt_fastcall
EXTERN cm48_sdcciy_cbrt_fastcall
defc _cbrt_fastcall = cm48_sdcciy_cbrt_fastcall
| 14.444444 | 47 | 0.884615 |
b46f8ee6e9a79899ba9d857e12b2c80db5a02185 | 144 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w11.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w11.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w11.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: ys_w11.asm
Type: file
Size: 12029
Last-Modified: '2016-05-13T04:51:45Z'
SHA-1: 7945493E9E56AC4E48FEB7DE0275DA6CFBAFF165
Description: null
| 20.571429 | 47 | 0.8125 |
ea0cff5146928a95bc68621c3ed7381c88f9da5d | 544 | asm | Assembly | programs/oeis/211/A211958.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/211/A211958.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/211/A211958.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A211958: Number of lower triangular n X n arrays colored with integers 0 upwards introduced in row major order, with no element equal to any diagonal or antidiagonal neighbor, and containing the value n(n+1)/2-2.
; 0,3,12,37,90,186,343,582,927,1405,2046,2883,3952,5292,6945,8956,11373,14247,17632,21585,26166,31438,37467,44322,52075,60801,70578,81487,93612,107040,121861,138168,156057,175627,196980,220221,245458,272802,302367
mov $4,$0
lpb $0
mov $1,$0
add $2,2
add $4,$0
sub $0,1
add $3,$2
add $1,$3
add $4,1
add $2,$4
lpe
| 36.266667 | 214 | 0.726103 |
ba8252269317013f5ffa9925f53d298ad282da41 | 79 | asm | Assembly | src/tools/attilaASM/input/test.asm | Lycheus/GLSL-ATTILA | ff401192b9fce46ca08d6de8990dd57763a1c711 | [
"BSD-3-Clause"
] | null | null | null | src/tools/attilaASM/input/test.asm | Lycheus/GLSL-ATTILA | ff401192b9fce46ca08d6de8990dd57763a1c711 | [
"BSD-3-Clause"
] | null | null | null | src/tools/attilaASM/input/test.asm | Lycheus/GLSL-ATTILA | ff401192b9fce46ca08d6de8990dd57763a1c711 | [
"BSD-3-Clause"
] | null | null | null | mad t0, o1, r2, r3
tex t0, t1, s0
txp t0, t1, s2
txb t0, t1, s3
lda t0, t1, s4
| 13.166667 | 18 | 0.594937 |
408e981946fc751226e2d76b93e0810440b512af | 292 | asm | Assembly | StrRev.asm | suriya-1403/Assemble-language | 2e389341ff4c95a5c43b1653d1bf8071a52e7da7 | [
"MIT"
] | null | null | null | StrRev.asm | suriya-1403/Assemble-language | 2e389341ff4c95a5c43b1653d1bf8071a52e7da7 | [
"MIT"
] | null | null | null | StrRev.asm | suriya-1403/Assemble-language | 2e389341ff4c95a5c43b1653d1bf8071a52e7da7 | [
"MIT"
] | null | null | null | DATA SEGMENT
STRING DB 'SURIYA'
NUM EQU 06H
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
MOV AX,DATA
MOV DS,AX
LEA SI,STRING
MOV CX,NUM
L1:
MOV BX,[SI]
PUSH BX
INC SI
LOOP L1
MOV CX,NUM
L2:
POP DX
MOV AH,2
INT 21h
LOOP L2
MOV AH,4CH
INT 21h
CODE ENDS
END | 9.733333 | 22 | 0.650685 |
609626e72c7a1d60357fecfabba1fb4354cabaf4 | 1,178 | asm | Assembly | programs/oeis/244/A244864.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/244/A244864.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/244/A244864.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A244864: a(n) = binomial(n+5,5) + 4*binomial(n+4,5) + 4*binomial(n+3,5) + binomial(n+2,5).
; 1,10,49,165,440,1001,2030,3774,6555,10780,16951,25675,37674,53795,75020,102476,137445,181374,235885,302785,384076,481965,598874,737450,900575,1091376,1313235,1569799,1864990,2203015,2588376,3025880,3520649,4078130,4704105,5404701,6186400,7056049,8020870,9088470,10266851,11564420,12989999,14552835,16262610,18129451,20163940,22377124,24780525,27386150,30206501,33254585,36543924,40088565,43903090,48002626,52402855,57120024,62170955,67573055,73344326,79503375,86069424,93062320,100502545,108411226,116810145,125721749,135169160,145176185,155767326,166967790,178803499,191301100,204487975,218392251,233042810,248469299,264702140,281772540,299712501,318554830,338333149,359081905,380836380,403632701,427507850,452499674,478646895,505989120,534566851,564421495,595595374,628131735,662074760,697469576,734362265,772799874,812830425,854502925
lpb $0
mov $2,$0
sub $0,1
add $2,1
seq $2,139594 ; Number of different n X n symmetric matrices with nonnegative entries summing to 4. Also number of symmetric oriented graphs with 4 arcs on n points.
add $1,$2
lpe
add $1,1
mov $0,$1
| 90.615385 | 839 | 0.816638 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.