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
75e19eb5c24e66dd634c729a13406056bba0e8a0
433
asm
Assembly
oeis/047/A047903.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/047/A047903.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/047/A047903.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A047903: a(1) = 13; for n > 0, a(n+1) = a(n) * sum of digits of a(n). ; Submitted by Jon Maiga ; 13,52,364,4732,75712,1665664,56632576,2265303040,56632576000,2265303040000,56632576000000,2265303040000000,56632576000000000,2265303040000000000,56632576000000000000,2265303040000000000000 mov $2,$0 mov $3,$0 cmp $3,0 add $0,$3 mov $1,13 div $2,$0 lpb $0 sub $0,$2 seq $1,57147 ; a(n) = n times sum of digits of n. lpe mov $0,$1
27.0625
190
0.709007
d9a840309d7dc14e4620dc9fff45e8ba4b26809b
359
asm
Assembly
programs/oeis/016/A016243.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016243.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016243.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016243: Expansion of 1/((1-x)(1-6x)(1-8x)). ; 1,15,163,1563,14059,121803,1030411,8579211,70649227,577287051,4690855819,37962203019,306309762955,2466150936459,19823244488587,159150177890187,1276586755010443,10233006031417227,81985920199339915 lpb $0 mov $2,$0 sub $0,1 seq $2,16170 ; Expansion of 1/((1-6x)(1-8x)). add $1,$2 lpe add $1,1 mov $0,$1
29.916667
197
0.732591
3e118a50ef8dc073010106efa731a98dedacb719
144
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/maped3.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/maped3.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/maped3.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: maped3.asm Type: file Size: 51893 Last-Modified: '1992-06-02T15:00:00Z' SHA-1: B6D4CC9210ED78E8F85EE89F4A105470D245A1BD Description: null
20.571429
47
0.8125
8559e4b5a374a51c1171a79f2f60d61504b22a12
322
asm
Assembly
libsrc/math/cpcmath/atan.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/math/cpcmath/atan.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/math/cpcmath/atan.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; ; CPC Maths Routines ; ; August 2003 **_|warp6|_** <kbaccam /at/ free.fr> ; ; $Id: atan.asm,v 1.2 2009/06/22 21:44:17 dom Exp $ ; INCLUDE "cpcfirm.def" INCLUDE "cpcfp.def" XLIB atan XDEF atanc LIB get_para .atan call get_para call firmware .atanc defw CPCFP_FLO_ATAN ret
14.636364
51
0.602484
845f6d6d69210994223b93669976e6ba91a2949e
4,918
asm
Assembly
libtool/src/gmp-6.1.2/mpn/sparc64/ultrasparct3/aormul_4.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
libtool/src/gmp-6.1.2/mpn/sparc64/ultrasparct3/aormul_4.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
libtool/src/gmp-6.1.2/mpn/sparc64/ultrasparct3/aormul_4.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
dnl SPARC v9 mpn_mul_4 and mpn_addmul_4 for T3/T4/T5. dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2013 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb cycles/limb C mul_4 addmul_4 C UltraSPARC T3: 21.5 22.0 C UltraSPARC T4: 2.625 2.75 C The code is well-scheduled and relies on OoO very little. There is hope that C this will run at around 2.5 and 2.75 c/l respectively, on T4. define(`rp', `%i0') define(`up', `%i1') define(`n', `%i2') define(`vp', `%i3') define(`v0', `%g1') define(`v1', `%o7') define(`v2', `%g2') define(`v3', `%i3') define(`w0', `%o0') define(`w1', `%o1') define(`w2', `%o2') define(`w3', `%o3') define(`w4', `%o4') define(`r0', `%o5') define(`u0', `%i4') define(`u1', `%i5') define(`rp0', `rp') define(`rp1', `%g3') define(`rp2', `%g4') define(`up0', `up') define(`up1', `%g5') ifdef(`OPERATION_mul_4',` define(`AM4', `') define(`ADDX', `addcc`'$1') define(`func', `mpn_mul_4') ') ifdef(`OPERATION_addmul_4',` define(`AM4', `$1') define(`ADDX', `addxccc($1,$2,$3)') define(`func', `mpn_addmul_4') ') MULFUNC_PROLOGUE(mpn_mul_4 mpn_addmul_4) ASM_START() REGISTER(%g2,#scratch) REGISTER(%g3,#scratch) PROLOGUE(func) save %sp, -176, %sp ldx [up + 0], u1 C load up[0] early andcc n, 1, %g0 C is n odd? ldx [vp + 0], v0 sllx n, 3, n ldx [vp + 8], v1 add n, -28, n ldx [vp + 16], v2 add rp, -16, rp ldx [vp + 24], v3 add up, n, up0 add rp, n, rp0 add up0, 8, up1 add rp0, 8, rp1 add rp0, 16, rp2 mulx u1, v0, %l0 mov 0, w0 mulx u1, v1, %l1 mov 0, w1 mulx u1, v2, %l2 mov 0, w2 mulx u1, v3, %l3 mov 0, w3 be L(evn) neg n, n L(odd): mov u1, u0 ldx [up1 + n], u1 AM4(` ldx [rp2 + n], r0') umulxhi(u0, v0, %l4) umulxhi(u0, v1, %l5) umulxhi(u0, v2, %l6) umulxhi(u0, v3, %l7) b L(mid) add n, 8, n L(evn): ldx [up1 + n], u0 AM4(` ldx [rp2 + n], r0') umulxhi(u1, v0, %l4) umulxhi(u1, v1, %l5) umulxhi(u1, v2, %l6) umulxhi(u1, v3, %l7) add n, 16, n ALIGN(16) L(top): addcc %l0, w0, w0 mulx u0, v0, %l0 C w 0 addxccc(%l1, w1, w1) mulx u0, v1, %l1 C w 1 addxccc(%l2, w2, w2) mulx u0, v2, %l2 C w 2 addxccc(%l3, w3, w3) mulx u0, v3, %l3 C w 3 ldx [up0 + n], u1 addxc( %g0, %g0, w4) AM4(` addcc r0, w0, w0') stx w0, [rp0 + n] ADDX(` %l4, w1, w0') umulxhi(u0, v0, %l4) C w 1 AM4(` ldx [rp1 + n], r0') addxccc(%l5, w2, w1) umulxhi(u0, v1, %l5) C w 2 addxccc(%l6, w3, w2) umulxhi(u0, v2, %l6) C w 3 addxc( %l7, w4, w3) umulxhi(u0, v3, %l7) C w 4 L(mid): addcc %l0, w0, w0 mulx u1, v0, %l0 C w 1 addxccc(%l1, w1, w1) mulx u1, v1, %l1 C w 2 addxccc(%l2, w2, w2) mulx u1, v2, %l2 C w 3 addxccc(%l3, w3, w3) mulx u1, v3, %l3 C w 4 ldx [up1 + n], u0 addxc( %g0, %g0, w4) AM4(` addcc r0, w0, w0') stx w0, [rp1 + n] ADDX(` %l4, w1, w0') umulxhi(u1, v0, %l4) C w 2 AM4(` ldx [rp2 + n], r0') addxccc(%l5, w2, w1) umulxhi(u1, v1, %l5) C w 3 addxccc(%l6, w3, w2) umulxhi(u1, v2, %l6) C w 4 addxc( %l7, w4, w3) umulxhi(u1, v3, %l7) C w 5 brlz n, L(top) add n, 16, n L(end): addcc %l0, w0, w0 mulx u0, v0, %l0 addxccc(%l1, w1, w1) mulx u0, v1, %l1 addxccc(%l2, w2, w2) mulx u0, v2, %l2 addxccc(%l3, w3, w3) mulx u0, v3, %l3 addxc( %g0, %g0, w4) AM4(` addcc r0, w0, w0') stx w0, [rp0 + n] ADDX(` %l4, w1, w0') umulxhi(u0, v0, %l4) AM4(` ldx [rp1 + n], r0') addxccc(%l5, w2, w1) umulxhi(u0, v1, %l5) addxccc(%l6, w3, w2) umulxhi(u0, v2, %l6) addxc( %l7, w4, w3) umulxhi(u0, v3, %l7) addcc %l0, w0, w0 addxccc(%l1, w1, w1) addxccc(%l2, w2, w2) addxccc(%l3, w3, w3) addxc( %g0, %g0, w4) AM4(` addcc r0, w0, w0') stx w0, [rp1 + n] ADDX(` %l4, w1, w0') addxccc(%l5, w2, w1) addxccc(%l6, w3, w2) stx w0, [rp2 + n] add n, 16, n stx w1, [rp1 + n] stx w2, [rp2 + n] addxc( %l7, w4, %i0) ret restore EPILOGUE()
22.354545
79
0.603091
19671ee4924691c3791597aa1a785204c8efbf25
24
asm
Assembly
examples/crt0.asm
shockkolate/shk-asm
8db629519929eb03e852de0e85b98d879610a133
[ "Apache-2.0" ]
null
null
null
examples/crt0.asm
shockkolate/shk-asm
8db629519929eb03e852de0e85b98d879610a133
[ "Apache-2.0" ]
null
null
null
examples/crt0.asm
shockkolate/shk-asm
8db629519929eb03e852de0e85b98d879610a133
[ "Apache-2.0" ]
null
null
null
start: CAL main DIE
6
10
0.625
576dad870e44d0a06b31acdb5994cbe993a3ac77
34
asm
Assembly
Lab Assessment Submission/Lab 2/task-3,-1712666642 .asm
samiurprapon/CSE331L-Section-10-Fall20-NSU
f26c020bfefff58647e51fe619df9bf4a9a48b5e
[ "MIT" ]
null
null
null
Lab Assessment Submission/Lab 2/task-3,-1712666642 .asm
samiurprapon/CSE331L-Section-10-Fall20-NSU
f26c020bfefff58647e51fe619df9bf4a9a48b5e
[ "MIT" ]
null
null
null
Lab Assessment Submission/Lab 2/task-3,-1712666642 .asm
samiurprapon/CSE331L-Section-10-Fall20-NSU
f26c020bfefff58647e51fe619df9bf4a9a48b5e
[ "MIT" ]
null
null
null
org 100h A DB 5 DUP(7) ret
5.666667
14
0.529412
56d260c93bc669a132b7339386506b3f7f6ff5b0
753
asm
Assembly
oeis/308/A308436.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/308/A308436.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/308/A308436.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A308436: Expansion of 1/((1-2*x)*(1-4*x)*(1-8*x)*(1-16*x)*(1-32*x)). ; Submitted by Christian Krause ; 1,62,2604,94488,3212592,105911904,3439615168,110880192896,3561210901248,114167821886976,3656718330350592,117068577948801024,3747052139621330944,119919392257919049728,3837640144621580107776,122807998199604136476672,3929912160285340883681280,125758088621503809684111360,4024273227814126590978949120,128776973561252432427171184640,4120866838302358397069590265856,131867797775176553306597539971072,4219770471997863824651986900353024,135032670195008642412337649814601728 mov $2,$0 add $2,1 mov $3,$0 add $3,1 lpb $2 mov $0,$3 seq $0,28258 ; Expansion of 1/((1-2*x)*(1-4*x)(1-8*x)(1-16*x)). mul $1,2 add $1,$0 sub $2,1 lpe mov $0,$1 div $0,30
41.833333
467
0.791501
56edc8d2f2b872bf485a5db50d74b9678bd62ff7
191
asm
Assembly
libsrc/stdio_new/file/putchar.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/stdio_new/file/putchar.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/stdio_new/file/putchar.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; int __FASTCALL__ putchar(int c) ; 06.2008 aralbrec XLIB putchar LIB fputc_callee XREF ASMDISP_FPUTC_CALLEE, _stdout .putchar ld ix,(_stdout) jp fputc_callee + ASMDISP_FPUTC_CALLEE
15.916667
41
0.780105
679a1b0883acd100330396d854d788a99410a298
644
asm
Assembly
oeis/004/A004546.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/004/A004546.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/004/A004546.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A004546: Expansion of sqrt(2) in base 9. ; Submitted by Jon Maiga ; 1,3,6,4,8,5,8,0,5,5,7,8,6,1,5,3,0,3,6,0,8,1,7,4,6,6,8,1,6,7,3,8,3,3,0,8,4,7,1,5,7,2,2,5,3,2,2,0,7,6,5,1,1,8,5,5,5,5,5,6,6,7,8,2,2,3,1,5,4,7,7,0,3,7,5,0,5,3,7,6,3,8,2,8,5,5,4,2,0,0,3,2,5,2,8,7,2,4,8,2 mov $1,1 mov $2,1 mov $3,$0 add $3,2 mov $4,$0 add $4,2 mul $4,2 mov $7,10 pow $7,$4 mov $9,10 lpb $3 mov $4,$2 pow $4,2 mul $4,2 mov $5,$1 pow $5,2 add $4,$5 mov $6,$1 mov $1,$4 mul $6,$2 mul $6,2 mov $2,$6 mov $8,$4 div $8,$7 max $8,1 div $1,$8 div $2,$8 sub $3,1 lpe sub $9,1 mov $3,$9 pow $3,$0 div $2,$3 div $1,$2 mod $1,$9 mov $0,$1
15.707317
201
0.509317
59eeee1c921307633080b5fd118f7ec76bf08cbe
492
asm
Assembly
oeis/044/A044748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/044/A044748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/044/A044748.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A044748: Numbers n such that string 3,5 occurs in the base 10 representation of n but not of n+1. ; Submitted by Christian Krause ; 35,135,235,335,359,435,535,635,735,835,935,1035,1135,1235,1335,1359,1435,1535,1635,1735,1835,1935,2035,2135,2235,2335,2359,2435,2535,2635,2735,2835,2935,3035,3135,3235,3335,3359,3435 add $0,3 mul $0,10 mov $1,$0 add $0,7 div $0,11 mul $0,22 add $0,34 sub $1,5 div $1,11 sub $1,1 mul $1,26 add $0,$1 add $0,$1 add $0,$1 div $0,4 sub $0,44 mul $0,4 add $0,35
21.391304
184
0.697154
87c2a141842fc2aa48c12438f179de79e72758be
49,549
asm
Assembly
echo.asm
UyChooTran/CS153Lab3
f722060b73ff9f575a7cafd10b0bee5dc72b9272
[ "MIT-0" ]
null
null
null
echo.asm
UyChooTran/CS153Lab3
f722060b73ff9f575a7cafd10b0bee5dc72b9272
[ "MIT-0" ]
1
2017-12-02T20:32:03.000Z
2017-12-02T20:32:03.000Z
echo.asm
UyChooTran/CS153Lab3
f722060b73ff9f575a7cafd10b0bee5dc72b9272
[ "MIT-0" ]
null
null
null
_echo: file format elf32-i386 Disassembly of section .text: 00001000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 1000: 8d 4c 24 04 lea 0x4(%esp),%ecx 1004: 83 e4 f0 and $0xfffffff0,%esp 1007: ff 71 fc pushl -0x4(%ecx) 100a: 55 push %ebp 100b: 89 e5 mov %esp,%ebp 100d: 57 push %edi 100e: 56 push %esi 100f: 53 push %ebx 1010: 51 push %ecx 1011: 83 ec 08 sub $0x8,%esp 1014: 8b 31 mov (%ecx),%esi 1016: 8b 79 04 mov 0x4(%ecx),%edi int i; for(i = 1; i < argc; i++) 1019: 83 fe 01 cmp $0x1,%esi 101c: 7e 41 jle 105f <main+0x5f> 101e: bb 01 00 00 00 mov $0x1,%ebx 1023: eb 1b jmp 1040 <main+0x40> 1025: 8d 76 00 lea 0x0(%esi),%esi printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n"); 1028: 68 64 17 00 00 push $0x1764 102d: ff 74 9f fc pushl -0x4(%edi,%ebx,4) 1031: 68 66 17 00 00 push $0x1766 1036: 6a 01 push $0x1 1038: e8 d3 03 00 00 call 1410 <printf> 103d: 83 c4 10 add $0x10,%esp 1040: 83 c3 01 add $0x1,%ebx 1043: 39 de cmp %ebx,%esi 1045: 75 e1 jne 1028 <main+0x28> 1047: 68 6b 17 00 00 push $0x176b 104c: ff 74 b7 fc pushl -0x4(%edi,%esi,4) 1050: 68 66 17 00 00 push $0x1766 1055: 6a 01 push $0x1 1057: e8 b4 03 00 00 call 1410 <printf> 105c: 83 c4 10 add $0x10,%esp exit(); 105f: e8 4e 02 00 00 call 12b2 <exit> 1064: 66 90 xchg %ax,%ax 1066: 66 90 xchg %ax,%ax 1068: 66 90 xchg %ax,%ax 106a: 66 90 xchg %ax,%ax 106c: 66 90 xchg %ax,%ax 106e: 66 90 xchg %ax,%ax 00001070 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1070: 55 push %ebp 1071: 89 e5 mov %esp,%ebp 1073: 53 push %ebx 1074: 8b 45 08 mov 0x8(%ebp),%eax 1077: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 107a: 89 c2 mov %eax,%edx 107c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1080: 83 c1 01 add $0x1,%ecx 1083: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 1087: 83 c2 01 add $0x1,%edx 108a: 84 db test %bl,%bl 108c: 88 5a ff mov %bl,-0x1(%edx) 108f: 75 ef jne 1080 <strcpy+0x10> ; return os; } 1091: 5b pop %ebx 1092: 5d pop %ebp 1093: c3 ret 1094: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 109a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000010a0 <strcmp>: int strcmp(const char *p, const char *q) { 10a0: 55 push %ebp 10a1: 89 e5 mov %esp,%ebp 10a3: 56 push %esi 10a4: 53 push %ebx 10a5: 8b 55 08 mov 0x8(%ebp),%edx 10a8: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 10ab: 0f b6 02 movzbl (%edx),%eax 10ae: 0f b6 19 movzbl (%ecx),%ebx 10b1: 84 c0 test %al,%al 10b3: 75 1e jne 10d3 <strcmp+0x33> 10b5: eb 29 jmp 10e0 <strcmp+0x40> 10b7: 89 f6 mov %esi,%esi 10b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 10c0: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 10c3: 0f b6 02 movzbl (%edx),%eax p++, q++; 10c6: 8d 71 01 lea 0x1(%ecx),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 10c9: 0f b6 59 01 movzbl 0x1(%ecx),%ebx 10cd: 84 c0 test %al,%al 10cf: 74 0f je 10e0 <strcmp+0x40> 10d1: 89 f1 mov %esi,%ecx 10d3: 38 d8 cmp %bl,%al 10d5: 74 e9 je 10c0 <strcmp+0x20> p++, q++; return (uchar)*p - (uchar)*q; 10d7: 29 d8 sub %ebx,%eax } 10d9: 5b pop %ebx 10da: 5e pop %esi 10db: 5d pop %ebp 10dc: c3 ret 10dd: 8d 76 00 lea 0x0(%esi),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 10e0: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; 10e2: 29 d8 sub %ebx,%eax } 10e4: 5b pop %ebx 10e5: 5e pop %esi 10e6: 5d pop %ebp 10e7: c3 ret 10e8: 90 nop 10e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000010f0 <strlen>: uint strlen(char *s) { 10f0: 55 push %ebp 10f1: 89 e5 mov %esp,%ebp 10f3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 10f6: 80 39 00 cmpb $0x0,(%ecx) 10f9: 74 12 je 110d <strlen+0x1d> 10fb: 31 d2 xor %edx,%edx 10fd: 8d 76 00 lea 0x0(%esi),%esi 1100: 83 c2 01 add $0x1,%edx 1103: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 1107: 89 d0 mov %edx,%eax 1109: 75 f5 jne 1100 <strlen+0x10> ; return n; } 110b: 5d pop %ebp 110c: c3 ret uint strlen(char *s) { int n; for(n = 0; s[n]; n++) 110d: 31 c0 xor %eax,%eax ; return n; } 110f: 5d pop %ebp 1110: c3 ret 1111: eb 0d jmp 1120 <memset> 1113: 90 nop 1114: 90 nop 1115: 90 nop 1116: 90 nop 1117: 90 nop 1118: 90 nop 1119: 90 nop 111a: 90 nop 111b: 90 nop 111c: 90 nop 111d: 90 nop 111e: 90 nop 111f: 90 nop 00001120 <memset>: void* memset(void *dst, int c, uint n) { 1120: 55 push %ebp 1121: 89 e5 mov %esp,%ebp 1123: 57 push %edi 1124: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 1127: 8b 4d 10 mov 0x10(%ebp),%ecx 112a: 8b 45 0c mov 0xc(%ebp),%eax 112d: 89 d7 mov %edx,%edi 112f: fc cld 1130: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 1132: 89 d0 mov %edx,%eax 1134: 5f pop %edi 1135: 5d pop %ebp 1136: c3 ret 1137: 89 f6 mov %esi,%esi 1139: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00001140 <strchr>: char* strchr(const char *s, char c) { 1140: 55 push %ebp 1141: 89 e5 mov %esp,%ebp 1143: 53 push %ebx 1144: 8b 45 08 mov 0x8(%ebp),%eax 1147: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 114a: 0f b6 10 movzbl (%eax),%edx 114d: 84 d2 test %dl,%dl 114f: 74 1d je 116e <strchr+0x2e> if(*s == c) 1151: 38 d3 cmp %dl,%bl 1153: 89 d9 mov %ebx,%ecx 1155: 75 0d jne 1164 <strchr+0x24> 1157: eb 17 jmp 1170 <strchr+0x30> 1159: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1160: 38 ca cmp %cl,%dl 1162: 74 0c je 1170 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 1164: 83 c0 01 add $0x1,%eax 1167: 0f b6 10 movzbl (%eax),%edx 116a: 84 d2 test %dl,%dl 116c: 75 f2 jne 1160 <strchr+0x20> if(*s == c) return (char*)s; return 0; 116e: 31 c0 xor %eax,%eax } 1170: 5b pop %ebx 1171: 5d pop %ebp 1172: c3 ret 1173: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 1179: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00001180 <gets>: char* gets(char *buf, int max) { 1180: 55 push %ebp 1181: 89 e5 mov %esp,%ebp 1183: 57 push %edi 1184: 56 push %esi 1185: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 1186: 31 f6 xor %esi,%esi cc = read(0, &c, 1); 1188: 8d 7d e7 lea -0x19(%ebp),%edi return 0; } char* gets(char *buf, int max) { 118b: 83 ec 1c sub $0x1c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 118e: eb 29 jmp 11b9 <gets+0x39> cc = read(0, &c, 1); 1190: 83 ec 04 sub $0x4,%esp 1193: 6a 01 push $0x1 1195: 57 push %edi 1196: 6a 00 push $0x0 1198: e8 2d 01 00 00 call 12ca <read> if(cc < 1) 119d: 83 c4 10 add $0x10,%esp 11a0: 85 c0 test %eax,%eax 11a2: 7e 1d jle 11c1 <gets+0x41> break; buf[i++] = c; 11a4: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 11a8: 8b 55 08 mov 0x8(%ebp),%edx 11ab: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') 11ad: 3c 0a cmp $0xa,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 11af: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 11b3: 74 1b je 11d0 <gets+0x50> 11b5: 3c 0d cmp $0xd,%al 11b7: 74 17 je 11d0 <gets+0x50> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 11b9: 8d 5e 01 lea 0x1(%esi),%ebx 11bc: 3b 5d 0c cmp 0xc(%ebp),%ebx 11bf: 7c cf jl 1190 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 11c1: 8b 45 08 mov 0x8(%ebp),%eax 11c4: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 11c8: 8d 65 f4 lea -0xc(%ebp),%esp 11cb: 5b pop %ebx 11cc: 5e pop %esi 11cd: 5f pop %edi 11ce: 5d pop %ebp 11cf: c3 ret break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 11d0: 8b 45 08 mov 0x8(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 11d3: 89 de mov %ebx,%esi break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 11d5: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 11d9: 8d 65 f4 lea -0xc(%ebp),%esp 11dc: 5b pop %ebx 11dd: 5e pop %esi 11de: 5f pop %edi 11df: 5d pop %ebp 11e0: c3 ret 11e1: eb 0d jmp 11f0 <stat> 11e3: 90 nop 11e4: 90 nop 11e5: 90 nop 11e6: 90 nop 11e7: 90 nop 11e8: 90 nop 11e9: 90 nop 11ea: 90 nop 11eb: 90 nop 11ec: 90 nop 11ed: 90 nop 11ee: 90 nop 11ef: 90 nop 000011f0 <stat>: int stat(char *n, struct stat *st) { 11f0: 55 push %ebp 11f1: 89 e5 mov %esp,%ebp 11f3: 56 push %esi 11f4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 11f5: 83 ec 08 sub $0x8,%esp 11f8: 6a 00 push $0x0 11fa: ff 75 08 pushl 0x8(%ebp) 11fd: e8 f0 00 00 00 call 12f2 <open> if(fd < 0) 1202: 83 c4 10 add $0x10,%esp 1205: 85 c0 test %eax,%eax 1207: 78 27 js 1230 <stat+0x40> return -1; r = fstat(fd, st); 1209: 83 ec 08 sub $0x8,%esp 120c: ff 75 0c pushl 0xc(%ebp) 120f: 89 c3 mov %eax,%ebx 1211: 50 push %eax 1212: e8 f3 00 00 00 call 130a <fstat> 1217: 89 c6 mov %eax,%esi close(fd); 1219: 89 1c 24 mov %ebx,(%esp) 121c: e8 b9 00 00 00 call 12da <close> return r; 1221: 83 c4 10 add $0x10,%esp 1224: 89 f0 mov %esi,%eax } 1226: 8d 65 f8 lea -0x8(%ebp),%esp 1229: 5b pop %ebx 122a: 5e pop %esi 122b: 5d pop %ebp 122c: c3 ret 122d: 8d 76 00 lea 0x0(%esi),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 1230: b8 ff ff ff ff mov $0xffffffff,%eax 1235: eb ef jmp 1226 <stat+0x36> 1237: 89 f6 mov %esi,%esi 1239: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00001240 <atoi>: return r; } int atoi(const char *s) { 1240: 55 push %ebp 1241: 89 e5 mov %esp,%ebp 1243: 53 push %ebx 1244: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 1247: 0f be 11 movsbl (%ecx),%edx 124a: 8d 42 d0 lea -0x30(%edx),%eax 124d: 3c 09 cmp $0x9,%al 124f: b8 00 00 00 00 mov $0x0,%eax 1254: 77 1f ja 1275 <atoi+0x35> 1256: 8d 76 00 lea 0x0(%esi),%esi 1259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 1260: 8d 04 80 lea (%eax,%eax,4),%eax 1263: 83 c1 01 add $0x1,%ecx 1266: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 126a: 0f be 11 movsbl (%ecx),%edx 126d: 8d 5a d0 lea -0x30(%edx),%ebx 1270: 80 fb 09 cmp $0x9,%bl 1273: 76 eb jbe 1260 <atoi+0x20> n = n*10 + *s++ - '0'; return n; } 1275: 5b pop %ebx 1276: 5d pop %ebp 1277: c3 ret 1278: 90 nop 1279: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00001280 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 1280: 55 push %ebp 1281: 89 e5 mov %esp,%ebp 1283: 56 push %esi 1284: 53 push %ebx 1285: 8b 5d 10 mov 0x10(%ebp),%ebx 1288: 8b 45 08 mov 0x8(%ebp),%eax 128b: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 128e: 85 db test %ebx,%ebx 1290: 7e 14 jle 12a6 <memmove+0x26> 1292: 31 d2 xor %edx,%edx 1294: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 1298: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 129c: 88 0c 10 mov %cl,(%eax,%edx,1) 129f: 83 c2 01 add $0x1,%edx { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 12a2: 39 da cmp %ebx,%edx 12a4: 75 f2 jne 1298 <memmove+0x18> *dst++ = *src++; return vdst; } 12a6: 5b pop %ebx 12a7: 5e pop %esi 12a8: 5d pop %ebp 12a9: c3 ret 000012aa <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 12aa: b8 01 00 00 00 mov $0x1,%eax 12af: cd 40 int $0x40 12b1: c3 ret 000012b2 <exit>: SYSCALL(exit) 12b2: b8 02 00 00 00 mov $0x2,%eax 12b7: cd 40 int $0x40 12b9: c3 ret 000012ba <wait>: SYSCALL(wait) 12ba: b8 03 00 00 00 mov $0x3,%eax 12bf: cd 40 int $0x40 12c1: c3 ret 000012c2 <pipe>: SYSCALL(pipe) 12c2: b8 04 00 00 00 mov $0x4,%eax 12c7: cd 40 int $0x40 12c9: c3 ret 000012ca <read>: SYSCALL(read) 12ca: b8 05 00 00 00 mov $0x5,%eax 12cf: cd 40 int $0x40 12d1: c3 ret 000012d2 <write>: SYSCALL(write) 12d2: b8 10 00 00 00 mov $0x10,%eax 12d7: cd 40 int $0x40 12d9: c3 ret 000012da <close>: SYSCALL(close) 12da: b8 15 00 00 00 mov $0x15,%eax 12df: cd 40 int $0x40 12e1: c3 ret 000012e2 <kill>: SYSCALL(kill) 12e2: b8 06 00 00 00 mov $0x6,%eax 12e7: cd 40 int $0x40 12e9: c3 ret 000012ea <exec>: SYSCALL(exec) 12ea: b8 07 00 00 00 mov $0x7,%eax 12ef: cd 40 int $0x40 12f1: c3 ret 000012f2 <open>: SYSCALL(open) 12f2: b8 0f 00 00 00 mov $0xf,%eax 12f7: cd 40 int $0x40 12f9: c3 ret 000012fa <mknod>: SYSCALL(mknod) 12fa: b8 11 00 00 00 mov $0x11,%eax 12ff: cd 40 int $0x40 1301: c3 ret 00001302 <unlink>: SYSCALL(unlink) 1302: b8 12 00 00 00 mov $0x12,%eax 1307: cd 40 int $0x40 1309: c3 ret 0000130a <fstat>: SYSCALL(fstat) 130a: b8 08 00 00 00 mov $0x8,%eax 130f: cd 40 int $0x40 1311: c3 ret 00001312 <link>: SYSCALL(link) 1312: b8 13 00 00 00 mov $0x13,%eax 1317: cd 40 int $0x40 1319: c3 ret 0000131a <mkdir>: SYSCALL(mkdir) 131a: b8 14 00 00 00 mov $0x14,%eax 131f: cd 40 int $0x40 1321: c3 ret 00001322 <chdir>: SYSCALL(chdir) 1322: b8 09 00 00 00 mov $0x9,%eax 1327: cd 40 int $0x40 1329: c3 ret 0000132a <dup>: SYSCALL(dup) 132a: b8 0a 00 00 00 mov $0xa,%eax 132f: cd 40 int $0x40 1331: c3 ret 00001332 <getpid>: SYSCALL(getpid) 1332: b8 0b 00 00 00 mov $0xb,%eax 1337: cd 40 int $0x40 1339: c3 ret 0000133a <sbrk>: SYSCALL(sbrk) 133a: b8 0c 00 00 00 mov $0xc,%eax 133f: cd 40 int $0x40 1341: c3 ret 00001342 <sleep>: SYSCALL(sleep) 1342: b8 0d 00 00 00 mov $0xd,%eax 1347: cd 40 int $0x40 1349: c3 ret 0000134a <uptime>: SYSCALL(uptime) 134a: b8 0e 00 00 00 mov $0xe,%eax 134f: cd 40 int $0x40 1351: c3 ret 00001352 <shm_open>: SYSCALL(shm_open) 1352: b8 16 00 00 00 mov $0x16,%eax 1357: cd 40 int $0x40 1359: c3 ret 0000135a <shm_close>: SYSCALL(shm_close) 135a: b8 17 00 00 00 mov $0x17,%eax 135f: cd 40 int $0x40 1361: c3 ret 1362: 66 90 xchg %ax,%ax 1364: 66 90 xchg %ax,%ax 1366: 66 90 xchg %ax,%ax 1368: 66 90 xchg %ax,%ax 136a: 66 90 xchg %ax,%ax 136c: 66 90 xchg %ax,%ax 136e: 66 90 xchg %ax,%ax 00001370 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 1370: 55 push %ebp 1371: 89 e5 mov %esp,%ebp 1373: 57 push %edi 1374: 56 push %esi 1375: 53 push %ebx 1376: 89 c6 mov %eax,%esi 1378: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 137b: 8b 5d 08 mov 0x8(%ebp),%ebx 137e: 85 db test %ebx,%ebx 1380: 74 7e je 1400 <printint+0x90> 1382: 89 d0 mov %edx,%eax 1384: c1 e8 1f shr $0x1f,%eax 1387: 84 c0 test %al,%al 1389: 74 75 je 1400 <printint+0x90> neg = 1; x = -xx; 138b: 89 d0 mov %edx,%eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 138d: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) x = -xx; 1394: f7 d8 neg %eax 1396: 89 75 c0 mov %esi,-0x40(%ebp) } else { x = xx; } i = 0; 1399: 31 ff xor %edi,%edi 139b: 8d 5d d7 lea -0x29(%ebp),%ebx 139e: 89 ce mov %ecx,%esi 13a0: eb 08 jmp 13aa <printint+0x3a> 13a2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 13a8: 89 cf mov %ecx,%edi 13aa: 31 d2 xor %edx,%edx 13ac: 8d 4f 01 lea 0x1(%edi),%ecx 13af: f7 f6 div %esi 13b1: 0f b6 92 74 17 00 00 movzbl 0x1774(%edx),%edx }while((x /= base) != 0); 13b8: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 13ba: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 13bd: 75 e9 jne 13a8 <printint+0x38> if(neg) 13bf: 8b 45 c4 mov -0x3c(%ebp),%eax 13c2: 8b 75 c0 mov -0x40(%ebp),%esi 13c5: 85 c0 test %eax,%eax 13c7: 74 08 je 13d1 <printint+0x61> buf[i++] = '-'; 13c9: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) 13ce: 8d 4f 02 lea 0x2(%edi),%ecx 13d1: 8d 7c 0d d7 lea -0x29(%ebp,%ecx,1),%edi 13d5: 8d 76 00 lea 0x0(%esi),%esi 13d8: 0f b6 07 movzbl (%edi),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 13db: 83 ec 04 sub $0x4,%esp 13de: 83 ef 01 sub $0x1,%edi 13e1: 6a 01 push $0x1 13e3: 53 push %ebx 13e4: 56 push %esi 13e5: 88 45 d7 mov %al,-0x29(%ebp) 13e8: e8 e5 fe ff ff call 12d2 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 13ed: 83 c4 10 add $0x10,%esp 13f0: 39 df cmp %ebx,%edi 13f2: 75 e4 jne 13d8 <printint+0x68> putc(fd, buf[i]); } 13f4: 8d 65 f4 lea -0xc(%ebp),%esp 13f7: 5b pop %ebx 13f8: 5e pop %esi 13f9: 5f pop %edi 13fa: 5d pop %ebp 13fb: c3 ret 13fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; } else { x = xx; 1400: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 1402: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 1409: eb 8b jmp 1396 <printint+0x26> 140b: 90 nop 140c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00001410 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 1410: 55 push %ebp 1411: 89 e5 mov %esp,%ebp 1413: 57 push %edi 1414: 56 push %esi 1415: 53 push %ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 1416: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 1419: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 141c: 8b 75 0c mov 0xc(%ebp),%esi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 141f: 8b 7d 08 mov 0x8(%ebp),%edi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 1422: 89 45 d0 mov %eax,-0x30(%ebp) 1425: 0f b6 1e movzbl (%esi),%ebx 1428: 83 c6 01 add $0x1,%esi 142b: 84 db test %bl,%bl 142d: 0f 84 b0 00 00 00 je 14e3 <printf+0xd3> 1433: 31 d2 xor %edx,%edx 1435: eb 39 jmp 1470 <printf+0x60> 1437: 89 f6 mov %esi,%esi 1439: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 1440: 83 f8 25 cmp $0x25,%eax 1443: 89 55 d4 mov %edx,-0x2c(%ebp) state = '%'; 1446: ba 25 00 00 00 mov $0x25,%edx state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 144b: 74 18 je 1465 <printf+0x55> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 144d: 8d 45 e2 lea -0x1e(%ebp),%eax 1450: 83 ec 04 sub $0x4,%esp 1453: 88 5d e2 mov %bl,-0x1e(%ebp) 1456: 6a 01 push $0x1 1458: 50 push %eax 1459: 57 push %edi 145a: e8 73 fe ff ff call 12d2 <write> 145f: 8b 55 d4 mov -0x2c(%ebp),%edx 1462: 83 c4 10 add $0x10,%esp 1465: 83 c6 01 add $0x1,%esi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 1468: 0f b6 5e ff movzbl -0x1(%esi),%ebx 146c: 84 db test %bl,%bl 146e: 74 73 je 14e3 <printf+0xd3> c = fmt[i] & 0xff; if(state == 0){ 1470: 85 d2 test %edx,%edx uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 1472: 0f be cb movsbl %bl,%ecx 1475: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 1478: 74 c6 je 1440 <printf+0x30> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 147a: 83 fa 25 cmp $0x25,%edx 147d: 75 e6 jne 1465 <printf+0x55> if(c == 'd'){ 147f: 83 f8 64 cmp $0x64,%eax 1482: 0f 84 f8 00 00 00 je 1580 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 1488: 81 e1 f7 00 00 00 and $0xf7,%ecx 148e: 83 f9 70 cmp $0x70,%ecx 1491: 74 5d je 14f0 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 1493: 83 f8 73 cmp $0x73,%eax 1496: 0f 84 84 00 00 00 je 1520 <printf+0x110> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 149c: 83 f8 63 cmp $0x63,%eax 149f: 0f 84 ea 00 00 00 je 158f <printf+0x17f> putc(fd, *ap); ap++; } else if(c == '%'){ 14a5: 83 f8 25 cmp $0x25,%eax 14a8: 0f 84 c2 00 00 00 je 1570 <printf+0x160> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 14ae: 8d 45 e7 lea -0x19(%ebp),%eax 14b1: 83 ec 04 sub $0x4,%esp 14b4: c6 45 e7 25 movb $0x25,-0x19(%ebp) 14b8: 6a 01 push $0x1 14ba: 50 push %eax 14bb: 57 push %edi 14bc: e8 11 fe ff ff call 12d2 <write> 14c1: 83 c4 0c add $0xc,%esp 14c4: 8d 45 e6 lea -0x1a(%ebp),%eax 14c7: 88 5d e6 mov %bl,-0x1a(%ebp) 14ca: 6a 01 push $0x1 14cc: 50 push %eax 14cd: 57 push %edi 14ce: 83 c6 01 add $0x1,%esi 14d1: e8 fc fd ff ff call 12d2 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 14d6: 0f b6 5e ff movzbl -0x1(%esi),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 14da: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 14dd: 31 d2 xor %edx,%edx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 14df: 84 db test %bl,%bl 14e1: 75 8d jne 1470 <printf+0x60> putc(fd, c); } state = 0; } } } 14e3: 8d 65 f4 lea -0xc(%ebp),%esp 14e6: 5b pop %ebx 14e7: 5e pop %esi 14e8: 5f pop %edi 14e9: 5d pop %ebp 14ea: c3 ret 14eb: 90 nop 14ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 14f0: 83 ec 0c sub $0xc,%esp 14f3: b9 10 00 00 00 mov $0x10,%ecx 14f8: 6a 00 push $0x0 14fa: 8b 5d d0 mov -0x30(%ebp),%ebx 14fd: 89 f8 mov %edi,%eax 14ff: 8b 13 mov (%ebx),%edx 1501: e8 6a fe ff ff call 1370 <printint> ap++; 1506: 89 d8 mov %ebx,%eax 1508: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 150b: 31 d2 xor %edx,%edx if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; 150d: 83 c0 04 add $0x4,%eax 1510: 89 45 d0 mov %eax,-0x30(%ebp) 1513: e9 4d ff ff ff jmp 1465 <printf+0x55> 1518: 90 nop 1519: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; 1520: 8b 45 d0 mov -0x30(%ebp),%eax 1523: 8b 18 mov (%eax),%ebx ap++; 1525: 83 c0 04 add $0x4,%eax 1528: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) s = "(null)"; 152b: b8 6d 17 00 00 mov $0x176d,%eax 1530: 85 db test %ebx,%ebx 1532: 0f 44 d8 cmove %eax,%ebx while(*s != 0){ 1535: 0f b6 03 movzbl (%ebx),%eax 1538: 84 c0 test %al,%al 153a: 74 23 je 155f <printf+0x14f> 153c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1540: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1543: 8d 45 e3 lea -0x1d(%ebp),%eax 1546: 83 ec 04 sub $0x4,%esp 1549: 6a 01 push $0x1 ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; 154b: 83 c3 01 add $0x1,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 154e: 50 push %eax 154f: 57 push %edi 1550: e8 7d fd ff ff call 12d2 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 1555: 0f b6 03 movzbl (%ebx),%eax 1558: 83 c4 10 add $0x10,%esp 155b: 84 c0 test %al,%al 155d: 75 e1 jne 1540 <printf+0x130> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 155f: 31 d2 xor %edx,%edx 1561: e9 ff fe ff ff jmp 1465 <printf+0x55> 1566: 8d 76 00 lea 0x0(%esi),%esi 1569: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1570: 83 ec 04 sub $0x4,%esp 1573: 88 5d e5 mov %bl,-0x1b(%ebp) 1576: 8d 45 e5 lea -0x1b(%ebp),%eax 1579: 6a 01 push $0x1 157b: e9 4c ff ff ff jmp 14cc <printf+0xbc> } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 1580: 83 ec 0c sub $0xc,%esp 1583: b9 0a 00 00 00 mov $0xa,%ecx 1588: 6a 01 push $0x1 158a: e9 6b ff ff ff jmp 14fa <printf+0xea> 158f: 8b 5d d0 mov -0x30(%ebp),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 1592: 83 ec 04 sub $0x4,%esp 1595: 8b 03 mov (%ebx),%eax 1597: 6a 01 push $0x1 1599: 88 45 e4 mov %al,-0x1c(%ebp) 159c: 8d 45 e4 lea -0x1c(%ebp),%eax 159f: 50 push %eax 15a0: 57 push %edi 15a1: e8 2c fd ff ff call 12d2 <write> 15a6: e9 5b ff ff ff jmp 1506 <printf+0xf6> 15ab: 66 90 xchg %ax,%ax 15ad: 66 90 xchg %ax,%ax 15af: 90 nop 000015b0 <free>: static Header base; static Header *freep; void free(void *ap) { 15b0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15b1: a1 58 1a 00 00 mov 0x1a58,%eax static Header base; static Header *freep; void free(void *ap) { 15b6: 89 e5 mov %esp,%ebp 15b8: 57 push %edi 15b9: 56 push %esi 15ba: 53 push %ebx 15bb: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15be: 8b 10 mov (%eax),%edx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 15c0: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15c3: 39 c8 cmp %ecx,%eax 15c5: 73 19 jae 15e0 <free+0x30> 15c7: 89 f6 mov %esi,%esi 15c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 15d0: 39 d1 cmp %edx,%ecx 15d2: 72 1c jb 15f0 <free+0x40> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15d4: 39 d0 cmp %edx,%eax 15d6: 73 18 jae 15f0 <free+0x40> static Header base; static Header *freep; void free(void *ap) { 15d8: 89 d0 mov %edx,%eax Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15da: 39 c8 cmp %ecx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15dc: 8b 10 mov (%eax),%edx free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15de: 72 f0 jb 15d0 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15e0: 39 d0 cmp %edx,%eax 15e2: 72 f4 jb 15d8 <free+0x28> 15e4: 39 d1 cmp %edx,%ecx 15e6: 73 f0 jae 15d8 <free+0x28> 15e8: 90 nop 15e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(bp + bp->s.size == p->s.ptr){ 15f0: 8b 73 fc mov -0x4(%ebx),%esi 15f3: 8d 3c f1 lea (%ecx,%esi,8),%edi 15f6: 39 d7 cmp %edx,%edi 15f8: 74 19 je 1613 <free+0x63> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 15fa: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 15fd: 8b 50 04 mov 0x4(%eax),%edx 1600: 8d 34 d0 lea (%eax,%edx,8),%esi 1603: 39 f1 cmp %esi,%ecx 1605: 74 23 je 162a <free+0x7a> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 1607: 89 08 mov %ecx,(%eax) freep = p; 1609: a3 58 1a 00 00 mov %eax,0x1a58 } 160e: 5b pop %ebx 160f: 5e pop %esi 1610: 5f pop %edi 1611: 5d pop %ebp 1612: c3 ret bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 1613: 03 72 04 add 0x4(%edx),%esi 1616: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 1619: 8b 10 mov (%eax),%edx 161b: 8b 12 mov (%edx),%edx 161d: 89 53 f8 mov %edx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 1620: 8b 50 04 mov 0x4(%eax),%edx 1623: 8d 34 d0 lea (%eax,%edx,8),%esi 1626: 39 f1 cmp %esi,%ecx 1628: 75 dd jne 1607 <free+0x57> p->s.size += bp->s.size; 162a: 03 53 fc add -0x4(%ebx),%edx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; 162d: a3 58 1a 00 00 mov %eax,0x1a58 bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 1632: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 1635: 8b 53 f8 mov -0x8(%ebx),%edx 1638: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } 163a: 5b pop %ebx 163b: 5e pop %esi 163c: 5f pop %edi 163d: 5d pop %ebp 163e: c3 ret 163f: 90 nop 00001640 <malloc>: return freep; } void* malloc(uint nbytes) { 1640: 55 push %ebp 1641: 89 e5 mov %esp,%ebp 1643: 57 push %edi 1644: 56 push %esi 1645: 53 push %ebx 1646: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1649: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 164c: 8b 15 58 1a 00 00 mov 0x1a58,%edx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1652: 8d 78 07 lea 0x7(%eax),%edi 1655: c1 ef 03 shr $0x3,%edi 1658: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 165b: 85 d2 test %edx,%edx 165d: 0f 84 a3 00 00 00 je 1706 <malloc+0xc6> 1663: 8b 02 mov (%edx),%eax 1665: 8b 48 04 mov 0x4(%eax),%ecx base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 1668: 39 cf cmp %ecx,%edi 166a: 76 74 jbe 16e0 <malloc+0xa0> 166c: 81 ff 00 10 00 00 cmp $0x1000,%edi 1672: be 00 10 00 00 mov $0x1000,%esi 1677: 8d 1c fd 00 00 00 00 lea 0x0(,%edi,8),%ebx 167e: 0f 43 f7 cmovae %edi,%esi 1681: ba 00 80 00 00 mov $0x8000,%edx 1686: 81 ff ff 0f 00 00 cmp $0xfff,%edi 168c: 0f 46 da cmovbe %edx,%ebx 168f: eb 10 jmp 16a1 <malloc+0x61> 1691: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1698: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 169a: 8b 48 04 mov 0x4(%eax),%ecx 169d: 39 cf cmp %ecx,%edi 169f: 76 3f jbe 16e0 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 16a1: 39 05 58 1a 00 00 cmp %eax,0x1a58 16a7: 89 c2 mov %eax,%edx 16a9: 75 ed jne 1698 <malloc+0x58> char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); 16ab: 83 ec 0c sub $0xc,%esp 16ae: 53 push %ebx 16af: e8 86 fc ff ff call 133a <sbrk> if(p == (char*)-1) 16b4: 83 c4 10 add $0x10,%esp 16b7: 83 f8 ff cmp $0xffffffff,%eax 16ba: 74 1c je 16d8 <malloc+0x98> return 0; hp = (Header*)p; hp->s.size = nu; 16bc: 89 70 04 mov %esi,0x4(%eax) free((void*)(hp + 1)); 16bf: 83 ec 0c sub $0xc,%esp 16c2: 83 c0 08 add $0x8,%eax 16c5: 50 push %eax 16c6: e8 e5 fe ff ff call 15b0 <free> return freep; 16cb: 8b 15 58 1a 00 00 mov 0x1a58,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 16d1: 83 c4 10 add $0x10,%esp 16d4: 85 d2 test %edx,%edx 16d6: 75 c0 jne 1698 <malloc+0x58> return 0; 16d8: 31 c0 xor %eax,%eax 16da: eb 1c jmp 16f8 <malloc+0xb8> 16dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) 16e0: 39 cf cmp %ecx,%edi 16e2: 74 1c je 1700 <malloc+0xc0> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 16e4: 29 f9 sub %edi,%ecx 16e6: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 16e9: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 16ec: 89 78 04 mov %edi,0x4(%eax) } freep = prevp; 16ef: 89 15 58 1a 00 00 mov %edx,0x1a58 return (void*)(p + 1); 16f5: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 16f8: 8d 65 f4 lea -0xc(%ebp),%esp 16fb: 5b pop %ebx 16fc: 5e pop %esi 16fd: 5f pop %edi 16fe: 5d pop %ebp 16ff: c3 ret base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; 1700: 8b 08 mov (%eax),%ecx 1702: 89 0a mov %ecx,(%edx) 1704: eb e9 jmp 16ef <malloc+0xaf> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 1706: c7 05 58 1a 00 00 5c movl $0x1a5c,0x1a58 170d: 1a 00 00 1710: c7 05 5c 1a 00 00 5c movl $0x1a5c,0x1a5c 1717: 1a 00 00 base.s.size = 0; 171a: b8 5c 1a 00 00 mov $0x1a5c,%eax 171f: c7 05 60 1a 00 00 00 movl $0x0,0x1a60 1726: 00 00 00 1729: e9 3e ff ff ff jmp 166c <malloc+0x2c> 172e: 66 90 xchg %ax,%ax 00001730 <uacquire>: #include "uspinlock.h" #include "x86.h" void uacquire(struct uspinlock *lk) { 1730: 55 push %ebp xchg(volatile uint *addr, uint newval) { uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 1731: b9 01 00 00 00 mov $0x1,%ecx 1736: 89 e5 mov %esp,%ebp 1738: 8b 55 08 mov 0x8(%ebp),%edx 173b: 90 nop 173c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1740: 89 c8 mov %ecx,%eax 1742: f0 87 02 lock xchg %eax,(%edx) // The xchg is atomic. while(xchg(&lk->locked, 1) != 0) 1745: 85 c0 test %eax,%eax 1747: 75 f7 jne 1740 <uacquire+0x10> ; // Tell the C compiler and the processor to not move loads or stores // past this point, to ensure that the critical section's memory // references happen after the lock is acquired. __sync_synchronize(); 1749: f0 83 0c 24 00 lock orl $0x0,(%esp) } 174e: 5d pop %ebp 174f: c3 ret 00001750 <urelease>: void urelease (struct uspinlock *lk) { 1750: 55 push %ebp 1751: 89 e5 mov %esp,%ebp 1753: 8b 45 08 mov 0x8(%ebp),%eax __sync_synchronize(); 1756: f0 83 0c 24 00 lock orl $0x0,(%esp) // Release the lock, equivalent to lk->locked = 0. // This code can't use a C assignment, since it might // not be atomic. A real OS would use C atomics here. asm volatile("movl $0, %0" : "+m" (lk->locked) : ); 175b: c7 00 00 00 00 00 movl $0x0,(%eax) } 1761: 5d pop %ebp 1762: c3 ret
32.112119
70
0.408545
c2c83f6da4c31a3e61966ef38c6c3c56a50c7787
363
asm
Assembly
oeis/019/A019756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/019/A019756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/019/A019756.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A019756: Decimal expansion of e/19. ; Submitted by Jamie Morken(s4) ; 1,4,3,0,6,7,4,6,4,6,5,5,7,3,9,2,2,2,9,1,3,6,9,9,3,4,0,5,9,7,5,0,8,5,5,2,5,1,3,5,3,9,3,2,0,7,2,1,0,5,0,5,0,3,9,4,5,6,2,9,8,7,5,1,4,3,3,7,2,4,5,4,2,2,9,1,3,4,0,8,3,9,2,4,8,0,9,5,8,8,3,4,3,4,2,9,8,1,1,9 add $0,1 seq $0,11543 ; Decimal expansion of e truncated to n places. div $0,19 mod $0,10
40.333333
201
0.592287
e0c34519e0ef205bf71aeda41f348ed2117dcf67
4,160
asm
Assembly
tests/vice-tests/VIC20/split-tests/lightpen/lightpen.asm
PhylumChordata/chips-test
4f80ede2da9952efeb25d3887c768654d2374167
[ "MIT" ]
330
2017-12-11T21:20:28.000Z
2022-03-26T08:56:51.000Z
tests/vice-tests/VIC20/split-tests/lightpen/lightpen.asm
PhylumChordata/chips-test
4f80ede2da9952efeb25d3887c768654d2374167
[ "MIT" ]
14
2019-01-07T23:50:35.000Z
2022-01-09T13:43:16.000Z
tests/vice-tests/VIC20/split-tests/lightpen/lightpen.asm
PhylumChordata/chips-test
4f80ede2da9952efeb25d3887c768654d2374167
[ "MIT" ]
31
2018-07-02T06:13:31.000Z
2022-02-18T16:50:56.000Z
;************************************************************************** ;* ;* FILE lightpen.asm ;* Copyright (c) 2010 Daniel Kahlin <daniel@kahlin.net> ;* Written by Daniel Kahlin <daniel@kahlin.net> ;* ;* DESCRIPTION ;* ;****** processor 6502 TEST_NAME eqm "LIGHTPEN" ifconst HARD_NTSC TEST_REVISION eqm "R01N" else TEST_REVISION eqm "R01" endif seg.u zp ;************************************************************************** ;* ;* SECTION zero page ;* ;****** org $00 enable_zp: ds.b 1 guard_zp: ds.b 1 cycle_zp: ds.b 1 test_num_zp: ds.b 1 ;************************************************************************** ;* ;* common startup and raster code ;* ;****** HAVE_TEST_RESULT equ 1 HAVE_STABILITY_GUARD equ 1 ;HAVE_TEST_CONTROLLER equ 1 include "../common/startup.asm" include "../common/scandump.asm" ;************************************************************************** ;* ;* NAME test_present ;* ;****** test_present: jsr show_info lda #<measure_msg ldy #>measure_msg jsr $cb1e rts measure_msg: dc.b 13,"R=$----,C=$--...",0 show_params: lda $d3 sec sbc #13 tay lda reg_under_test+1 jsr update_hex lda reg_under_test jsr update_hex lda $d3 sec sbc #5 tay lda cycle_zp jmp update_hex ; rts ;************************************************************************** ;* ;* NAME test_result ;* ;****** test_result: lda #<done_msg ldy #>done_msg jsr $cb1e lda #<stability_msg ldy #>stability_msg jsr $cb1e ldx #0 jsr check_guard sta BUFFER+40 ; stability cmp #1 beq tr_skp1 tax lda #0 jsr $ddcd lda #<failed_msg ldy #>failed_msg jsr $cb1e jmp tr_skp2 tr_skp1: lda #<passed_msg ldy #>passed_msg jsr $cb1e tr_skp2: lda #<result_msg ldy #>result_msg jsr $cb1e ldx #<filename ldy #>filename lda #FILENAME_LEN jsr $ffbd jsr save_file rts done_msg: dc.b "DONE",13,0 stability_msg: dc.b 13,"STABILITY: ",0 passed_msg: dc.b "PASSED",13,0 failed_msg: dc.b ", FAILED!",13,0 result_msg: dc.b 13,13,"(RESULT: $17C0-$1C00)",0 filename: dc.b "LPDUMP" FILENAME_LEN equ .-filename ;************************************************************************** ;* ;* NAME test_prepare ;* ;****** test_prepare: ; setup info area ldx #HEADER_LEN lda #0 tpr_lp1: sta BUFFER-1,x dex bne tpr_lp1 ldx #IDENT_LEN tpr_lp2: lda ident-1,x sta BUFFER-1,x dex bne tpr_lp2 lda cycles_per_line sta BUFFER+32 lda num_lines sta BUFFER+33 lda #1 sta BUFFER+34 ; prepare the actual test lda #0 sta enable_zp sta cycle_zp sta test_num_zp jsr setup_test ; calculate raster line lda num_lines sec sbc #4 ; C=1, not less that 0, C=0, less than 1 ror sta raster_line ; C = lsb ror sta raster_lsb lda #%00100000 sta $9111 lda #%10100000 sta $9113 rts ident: dc.b TEST_NAME," ",TEST_REVISION IDENT_LEN equ .-ident ;************************************************************************** ;* ;* NAME test_perform ;* ;****** test_perform: lda $9114 sta guard_zp lda enable_zp beq tp_ex1 lda cycle_zp jsr delay tax lda $900f eor #$f7 sta $900f eor #$f7 sta $900f txa ldx cycle_zp target_buf equ .+1 sta BUFFER,x ldx #0 ldy guard_zp jsr update_guard ; cosmetic print out jsr show_params ; increase cycle inc cycle_zp bne tp_skp1 inc test_num_zp lda test_num_zp cmp #NUM_TESTS bne tp_skp1 lda #$60 ;RTS sta test_perform inc test_done bne tp_ex1 tp_skp1: jsr setup_test tp_ex1: lda #1 eor enable_zp sta enable_zp rts setup_test: lda test_num_zp asl tax ; X=test_num_zp * 2 lda buftab,x sta target_buf lda buftab+1,x sta target_buf+1 lda regtab,x sta reg_under_test lda regtab+1,x sta reg_under_test+1 rts NUM_TESTS equ 4 buftab: dc.w BUFFER_RES+$0000 dc.w BUFFER_RES+$0100 dc.w BUFFER_RES+$0200 dc.w BUFFER_RES+$0300 regtab: dc.w $9003,$9004,$9006,$9007 align 256 delay: eor #$ff lsr sta dl_sm1+1 bcc dl_skp1 dl_skp1: clv dl_sm1: bvc dl_skp1 ds.b 127,$ea ;****** ; start of test ldx #%00000000 stx $9111 reg_under_test equ .+1 lda $ffff ldx #%00100000 stx $9111 rts HEADER_LEN equ $40 BUFFER equ $17c0 BUFFER_RES equ $1800 BUFFER_END equ $1c00 ; eof
13.040752
75
0.600721
9ea8a2f52e7a78a16285843b95deb3ec37fd4bee
5,992
asm
Assembly
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_2796.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_2796.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i3-7100_9_0x84_notsx.log_21829_2796.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x43ca, %rsi lea addresses_WT_ht+0x720a, %rdi nop nop sub %rax, %rax mov $4, %rcx rep movsl nop nop nop nop and %r15, %r15 lea addresses_A_ht+0x8f0a, %r10 clflush (%r10) nop nop sub $64544, %r9 mov (%r10), %esi nop nop nop and %rcx, %rcx lea addresses_WC_ht+0x142a6, %rsi lea addresses_UC_ht+0x7062, %rdi nop cmp $28729, %r9 mov $73, %rcx rep movsb nop add %r10, %r10 lea addresses_UC_ht+0x17eca, %rcx nop nop inc %r15 movl $0x61626364, (%rcx) nop nop nop nop add %r9, %r9 lea addresses_WT_ht+0x25a6, %r10 nop nop nop nop sub $19230, %rcx mov $0x6162636465666768, %r15 movq %r15, %xmm6 vmovups %ymm6, (%r10) sub %r9, %r9 lea addresses_WC_ht+0xad58, %rax clflush (%rax) nop nop add $12367, %r15 mov $0x6162636465666768, %r9 movq %r9, %xmm7 movups %xmm7, (%rax) nop dec %rdi lea addresses_WC_ht+0x1414a, %rsi nop and $36338, %r15 mov $0x6162636465666768, %rcx movq %rcx, %xmm5 movups %xmm5, (%rsi) nop nop cmp $33972, %rdi lea addresses_A_ht+0x1bca2, %rsi lea addresses_normal_ht+0x53a4, %rdi nop nop nop nop add %r15, %r15 mov $113, %rcx rep movsq xor %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r15 push %r9 push %rbx push %rcx push %rdi push %rdx // Faulty Load lea addresses_US+0x1c84a, %r9 clflush (%r9) nop nop nop nop sub $12094, %rbx mov (%r9), %rcx lea oracles, %rdi and $0xff, %rcx shlq $12, %rcx mov (%rdi,%rcx,1), %rcx pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_US', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'same': True, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': True}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 4, 'congruent': 7, 'NT': True, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': True}, 'OP': 'REPM'} {'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 */
41.041096
2,999
0.65988
59edf33338c0984309f431e164574249fd342362
3,619
asm
Assembly
src/core/messaging.asm
endstation/golf
5784b06e5b025c7c52b9b6ebcba2c62592730804
[ "BSD-2-Clause" ]
1
2022-02-13T16:09:18.000Z
2022-02-13T16:09:18.000Z
src/core/messaging.asm
1888games/golf
5078fc0699e5f91a53761cc30526b510d49e955c
[ "BSD-2-Clause" ]
null
null
null
src/core/messaging.asm
1888games/golf
5078fc0699e5f91a53761cc30526b510d49e955c
[ "BSD-2-Clause" ]
1
2022-02-12T23:40:10.000Z
2022-02-12T23:40:10.000Z
; Top-hole Golf ; Copyright 2020-2021 Matthew Clarke msg_c_BEGIN = * ; ***************** ; *** CONSTANTS *** ; ***************** ; NOTE: in 'bitmap' coordinates. msg_c_ROW = 24*8 msg_c_OUT_OF_BOUNDS_STR !raw "Out of bounds!" msg_c_SCORE_CARDS_STR !raw "Loading score cards" msg_c_FISHING_STR !raw "Gone fishing!" msg_c_CONCEDE_STR !raw "Concede hole? No Yes" msg_c_WAIT_STR !raw "Please wait..." msg_l_MSG_ADDR_LO !byte <msg_c_OUT_OF_BOUNDS_STR !byte <msg_c_SCORE_CARDS_STR !byte <msg_c_FISHING_STR !byte <msg_c_CONCEDE_STR !byte <msg_c_WAIT_STR msg_l_MSG_ADDR_HI !byte >msg_c_OUT_OF_BOUNDS_STR !byte >msg_c_SCORE_CARDS_STR !byte >msg_c_FISHING_STR !byte >msg_c_CONCEDE_STR !byte >msg_c_WAIT_STR msg_l_MSG_LENGTHS !byte 14,19,13,20,14 msg_c_OUT_OF_BOUNDS = 0 msg_c_LOADING_SCORE_CARDS = 1 msg_c_FISHING = 2 msg_c_CONCEDE_HOLE = 3 msg_c_WAIT = 4 ; ***************** ; *** VARIABLES *** ; ***************** msg_v_last_len !byte 0 ; ******************* ; ****** MACROS ***** ; ******************* ; ******************* ; *** SUBROUTINES *** ; ******************* ; INPUTS: P0-P1 = address of text, P4 = length ; P3 = column (char column * 4) - REQUIRED ONLY IF CALLING ; 'msg_s_display_at_column'. !zone { msg_s_display jsr msg_s_clear lda #0 sta P3 msg_s_display_at_column lda #msg_c_ROW sta P2 lda P4 sta msg_v_last_len jsr font_s_draw_text rts ; end sub msg_s_display } ; !zone ; ************************************************** ; INPUTS: X = index. !zone { msg_s_display_stock_msg jsr msg_s_clear lda msg_l_MSG_ADDR_LO,x sta P0 lda msg_l_MSG_ADDR_HI,x sta P1 lda #msg_c_ROW sta P2 lda #0 sta P3 lda msg_l_MSG_LENGTHS,x sta P4 sta msg_v_last_len jsr font_s_draw_text rts ; end sub msg_s_display_stock_msg } ; !zone ; ************************************************** !zone { msg_s_clear lda msg_v_last_len beq .end lda #<gfxs_c_BITMAP_BASE+(24*320) sta MATHS0 lda #>gfxs_c_BITMAP_BASE+(24*320) sta MATHS1 lda #<gfxs_c_BITMAP_BASE+(24*320)+160 sta MATHS2 lda #>gfxs_c_BITMAP_BASE+(24*320)+160 sta MATHS3 ldy #0 lda #$ff - sta (MATHS0),y sta (MATHS2),y iny cpy #160 bne - lda #0 sta msg_v_last_len .end rts ; end sub msg_s_clear } ; !zone ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** ; ************************************************** msg_c_SIZE = *-msg_c_BEGIN
24.452703
68
0.402321
71075d5e4d66132a1d32d5b8ba8f072bb1772802
541
asm
Assembly
Irvine/Examples/ch11/ReadConsole.asm
alieonsido/ASM_TESTING
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
[ "Apache-2.0" ]
null
null
null
Irvine/Examples/ch11/ReadConsole.asm
alieonsido/ASM_TESTING
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
[ "Apache-2.0" ]
null
null
null
Irvine/Examples/ch11/ReadConsole.asm
alieonsido/ASM_TESTING
4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7
[ "Apache-2.0" ]
null
null
null
; Read From the Console (ReadConsole.asm) ; Read a line of input from standard input. INCLUDE Irvine32.inc BufSize = 80 .data buffer BYTE BufSize DUP(?) stdInHandle HANDLE ? bytesRead DWORD ? .code main PROC ; Get handle to standard input INVOKE GetStdHandle, STD_INPUT_HANDLE mov stdInHandle,eax ; Wait for user input INVOKE ReadConsole, stdInHandle, ADDR buffer, BufSize, ADDR bytesRead, 0 ; Display the buffer mov esi,OFFSET buffer mov ecx,bytesRead mov ebx,TYPE buffer call DumpMem exit main ENDP END main
16.90625
49
0.746765
719b8702bbd3b20d7de13459b339d5c2f4a82ad1
38,067
asm
Assembly
wc.asm
snowman789/xv6_scheduler
074553f802c8f35434bd34f04ea9b81dd6779a1b
[ "MIT-0" ]
null
null
null
wc.asm
snowman789/xv6_scheduler
074553f802c8f35434bd34f04ea9b81dd6779a1b
[ "MIT-0" ]
null
null
null
wc.asm
snowman789/xv6_scheduler
074553f802c8f35434bd34f04ea9b81dd6779a1b
[ "MIT-0" ]
null
null
null
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 57 push %edi 4: 56 push %esi 5: 53 push %ebx 6: 83 ec 1c sub $0x1c,%esp int i, n; int l, w, c, inword; l = w = c = 0; inword = 0; 9: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) l = w = c = 0; 10: be 00 00 00 00 mov $0x0,%esi 15: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) 1c: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) while((n = read(fd, buf, sizeof(buf))) > 0){ 23: 83 ec 04 sub $0x4,%esp 26: 68 00 02 00 00 push $0x200 2b: 68 60 0a 00 00 push $0xa60 30: ff 75 08 pushl 0x8(%ebp) 33: e8 d1 02 00 00 call 309 <read> 38: 89 c7 mov %eax,%edi 3a: 83 c4 10 add $0x10,%esp 3d: 85 c0 test %eax,%eax 3f: 7e 54 jle 95 <wc+0x95> for(i=0; i<n; i++){ 41: bb 00 00 00 00 mov $0x0,%ebx 46: eb 22 jmp 6a <wc+0x6a> c++; if(buf[i] == '\n') l++; if(strchr(" \r\t\n\v", buf[i])) 48: 83 ec 08 sub $0x8,%esp 4b: 0f be c0 movsbl %al,%eax 4e: 50 push %eax 4f: 68 14 07 00 00 push $0x714 54: e8 80 01 00 00 call 1d9 <strchr> 59: 83 c4 10 add $0x10,%esp 5c: 85 c0 test %eax,%eax 5e: 74 22 je 82 <wc+0x82> inword = 0; 60: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) for(i=0; i<n; i++){ 67: 83 c3 01 add $0x1,%ebx 6a: 39 fb cmp %edi,%ebx 6c: 7d b5 jge 23 <wc+0x23> c++; 6e: 83 c6 01 add $0x1,%esi if(buf[i] == '\n') 71: 0f b6 83 60 0a 00 00 movzbl 0xa60(%ebx),%eax 78: 3c 0a cmp $0xa,%al 7a: 75 cc jne 48 <wc+0x48> l++; 7c: 83 45 e0 01 addl $0x1,-0x20(%ebp) 80: eb c6 jmp 48 <wc+0x48> else if(!inword){ 82: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 86: 75 df jne 67 <wc+0x67> w++; 88: 83 45 dc 01 addl $0x1,-0x24(%ebp) inword = 1; 8c: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) 93: eb d2 jmp 67 <wc+0x67> } } } if(n < 0){ 95: 85 c0 test %eax,%eax 97: 78 24 js bd <wc+0xbd> printf(1, "wc: read error\n"); exit(); } printf(1, "%d %d %d %s\n", l, w, c, name); 99: 83 ec 08 sub $0x8,%esp 9c: ff 75 0c pushl 0xc(%ebp) 9f: 56 push %esi a0: ff 75 dc pushl -0x24(%ebp) a3: ff 75 e0 pushl -0x20(%ebp) a6: 68 2a 07 00 00 push $0x72a ab: 6a 01 push $0x1 ad: e8 a9 03 00 00 call 45b <printf> } b2: 83 c4 20 add $0x20,%esp b5: 8d 65 f4 lea -0xc(%ebp),%esp b8: 5b pop %ebx b9: 5e pop %esi ba: 5f pop %edi bb: 5d pop %ebp bc: c3 ret printf(1, "wc: read error\n"); bd: 83 ec 08 sub $0x8,%esp c0: 68 1a 07 00 00 push $0x71a c5: 6a 01 push $0x1 c7: e8 8f 03 00 00 call 45b <printf> exit(); cc: e8 20 02 00 00 call 2f1 <exit> 000000d1 <main>: int main(int argc, char *argv[]) { d1: 8d 4c 24 04 lea 0x4(%esp),%ecx d5: 83 e4 f0 and $0xfffffff0,%esp d8: ff 71 fc pushl -0x4(%ecx) db: 55 push %ebp dc: 89 e5 mov %esp,%ebp de: 57 push %edi df: 56 push %esi e0: 53 push %ebx e1: 51 push %ecx e2: 83 ec 18 sub $0x18,%esp e5: 8b 01 mov (%ecx),%eax e7: 89 45 e4 mov %eax,-0x1c(%ebp) ea: 8b 51 04 mov 0x4(%ecx),%edx ed: 89 55 e0 mov %edx,-0x20(%ebp) int fd, i; if(argc <= 1){ f0: 83 f8 01 cmp $0x1,%eax f3: 7e 40 jle 135 <main+0x64> wc(0, ""); exit(); } for(i = 1; i < argc; i++){ f5: bb 01 00 00 00 mov $0x1,%ebx fa: 3b 5d e4 cmp -0x1c(%ebp),%ebx fd: 7d 60 jge 15f <main+0x8e> if((fd = open(argv[i], 0)) < 0){ ff: 8b 45 e0 mov -0x20(%ebp),%eax 102: 8d 3c 98 lea (%eax,%ebx,4),%edi 105: 83 ec 08 sub $0x8,%esp 108: 6a 00 push $0x0 10a: ff 37 pushl (%edi) 10c: e8 20 02 00 00 call 331 <open> 111: 89 c6 mov %eax,%esi 113: 83 c4 10 add $0x10,%esp 116: 85 c0 test %eax,%eax 118: 78 2f js 149 <main+0x78> printf(1, "wc: cannot open %s\n", argv[i]); exit(); } wc(fd, argv[i]); 11a: 83 ec 08 sub $0x8,%esp 11d: ff 37 pushl (%edi) 11f: 50 push %eax 120: e8 db fe ff ff call 0 <wc> close(fd); 125: 89 34 24 mov %esi,(%esp) 128: e8 ec 01 00 00 call 319 <close> for(i = 1; i < argc; i++){ 12d: 83 c3 01 add $0x1,%ebx 130: 83 c4 10 add $0x10,%esp 133: eb c5 jmp fa <main+0x29> wc(0, ""); 135: 83 ec 08 sub $0x8,%esp 138: 68 29 07 00 00 push $0x729 13d: 6a 00 push $0x0 13f: e8 bc fe ff ff call 0 <wc> exit(); 144: e8 a8 01 00 00 call 2f1 <exit> printf(1, "wc: cannot open %s\n", argv[i]); 149: 83 ec 04 sub $0x4,%esp 14c: ff 37 pushl (%edi) 14e: 68 37 07 00 00 push $0x737 153: 6a 01 push $0x1 155: e8 01 03 00 00 call 45b <printf> exit(); 15a: e8 92 01 00 00 call 2f1 <exit> } exit(); 15f: e8 8d 01 00 00 call 2f1 <exit> 00000164 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 164: 55 push %ebp 165: 89 e5 mov %esp,%ebp 167: 53 push %ebx 168: 8b 45 08 mov 0x8(%ebp),%eax 16b: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 16e: 89 c2 mov %eax,%edx 170: 0f b6 19 movzbl (%ecx),%ebx 173: 88 1a mov %bl,(%edx) 175: 8d 52 01 lea 0x1(%edx),%edx 178: 8d 49 01 lea 0x1(%ecx),%ecx 17b: 84 db test %bl,%bl 17d: 75 f1 jne 170 <strcpy+0xc> ; return os; } 17f: 5b pop %ebx 180: 5d pop %ebp 181: c3 ret 00000182 <strcmp>: int strcmp(const char *p, const char *q) { 182: 55 push %ebp 183: 89 e5 mov %esp,%ebp 185: 8b 4d 08 mov 0x8(%ebp),%ecx 188: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 18b: eb 06 jmp 193 <strcmp+0x11> p++, q++; 18d: 83 c1 01 add $0x1,%ecx 190: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 193: 0f b6 01 movzbl (%ecx),%eax 196: 84 c0 test %al,%al 198: 74 04 je 19e <strcmp+0x1c> 19a: 3a 02 cmp (%edx),%al 19c: 74 ef je 18d <strcmp+0xb> return (uchar)*p - (uchar)*q; 19e: 0f b6 c0 movzbl %al,%eax 1a1: 0f b6 12 movzbl (%edx),%edx 1a4: 29 d0 sub %edx,%eax } 1a6: 5d pop %ebp 1a7: c3 ret 000001a8 <strlen>: uint strlen(const char *s) { 1a8: 55 push %ebp 1a9: 89 e5 mov %esp,%ebp 1ab: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 1ae: ba 00 00 00 00 mov $0x0,%edx 1b3: eb 03 jmp 1b8 <strlen+0x10> 1b5: 83 c2 01 add $0x1,%edx 1b8: 89 d0 mov %edx,%eax 1ba: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 1be: 75 f5 jne 1b5 <strlen+0xd> ; return n; } 1c0: 5d pop %ebp 1c1: c3 ret 000001c2 <memset>: void* memset(void *dst, int c, uint n) { 1c2: 55 push %ebp 1c3: 89 e5 mov %esp,%ebp 1c5: 57 push %edi 1c6: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 1c9: 89 d7 mov %edx,%edi 1cb: 8b 4d 10 mov 0x10(%ebp),%ecx 1ce: 8b 45 0c mov 0xc(%ebp),%eax 1d1: fc cld 1d2: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 1d4: 89 d0 mov %edx,%eax 1d6: 5f pop %edi 1d7: 5d pop %ebp 1d8: c3 ret 000001d9 <strchr>: char* strchr(const char *s, char c) { 1d9: 55 push %ebp 1da: 89 e5 mov %esp,%ebp 1dc: 8b 45 08 mov 0x8(%ebp),%eax 1df: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 1e3: 0f b6 10 movzbl (%eax),%edx 1e6: 84 d2 test %dl,%dl 1e8: 74 09 je 1f3 <strchr+0x1a> if(*s == c) 1ea: 38 ca cmp %cl,%dl 1ec: 74 0a je 1f8 <strchr+0x1f> for(; *s; s++) 1ee: 83 c0 01 add $0x1,%eax 1f1: eb f0 jmp 1e3 <strchr+0xa> return (char*)s; return 0; 1f3: b8 00 00 00 00 mov $0x0,%eax } 1f8: 5d pop %ebp 1f9: c3 ret 000001fa <gets>: char* gets(char *buf, int max) { 1fa: 55 push %ebp 1fb: 89 e5 mov %esp,%ebp 1fd: 57 push %edi 1fe: 56 push %esi 1ff: 53 push %ebx 200: 83 ec 1c sub $0x1c,%esp 203: 8b 7d 08 mov 0x8(%ebp),%edi int i, cc; char c; for(i=0; i+1 < max; ){ 206: bb 00 00 00 00 mov $0x0,%ebx 20b: 8d 73 01 lea 0x1(%ebx),%esi 20e: 3b 75 0c cmp 0xc(%ebp),%esi 211: 7d 2e jge 241 <gets+0x47> cc = read(0, &c, 1); 213: 83 ec 04 sub $0x4,%esp 216: 6a 01 push $0x1 218: 8d 45 e7 lea -0x19(%ebp),%eax 21b: 50 push %eax 21c: 6a 00 push $0x0 21e: e8 e6 00 00 00 call 309 <read> if(cc < 1) 223: 83 c4 10 add $0x10,%esp 226: 85 c0 test %eax,%eax 228: 7e 17 jle 241 <gets+0x47> break; buf[i++] = c; 22a: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 22e: 88 04 1f mov %al,(%edi,%ebx,1) if(c == '\n' || c == '\r') 231: 3c 0a cmp $0xa,%al 233: 0f 94 c2 sete %dl 236: 3c 0d cmp $0xd,%al 238: 0f 94 c0 sete %al buf[i++] = c; 23b: 89 f3 mov %esi,%ebx if(c == '\n' || c == '\r') 23d: 08 c2 or %al,%dl 23f: 74 ca je 20b <gets+0x11> break; } buf[i] = '\0'; 241: c6 04 1f 00 movb $0x0,(%edi,%ebx,1) return buf; } 245: 89 f8 mov %edi,%eax 247: 8d 65 f4 lea -0xc(%ebp),%esp 24a: 5b pop %ebx 24b: 5e pop %esi 24c: 5f pop %edi 24d: 5d pop %ebp 24e: c3 ret 0000024f <stat>: int stat(const char *n, struct stat *st) { 24f: 55 push %ebp 250: 89 e5 mov %esp,%ebp 252: 56 push %esi 253: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 254: 83 ec 08 sub $0x8,%esp 257: 6a 00 push $0x0 259: ff 75 08 pushl 0x8(%ebp) 25c: e8 d0 00 00 00 call 331 <open> if(fd < 0) 261: 83 c4 10 add $0x10,%esp 264: 85 c0 test %eax,%eax 266: 78 24 js 28c <stat+0x3d> 268: 89 c3 mov %eax,%ebx return -1; r = fstat(fd, st); 26a: 83 ec 08 sub $0x8,%esp 26d: ff 75 0c pushl 0xc(%ebp) 270: 50 push %eax 271: e8 d3 00 00 00 call 349 <fstat> 276: 89 c6 mov %eax,%esi close(fd); 278: 89 1c 24 mov %ebx,(%esp) 27b: e8 99 00 00 00 call 319 <close> return r; 280: 83 c4 10 add $0x10,%esp } 283: 89 f0 mov %esi,%eax 285: 8d 65 f8 lea -0x8(%ebp),%esp 288: 5b pop %ebx 289: 5e pop %esi 28a: 5d pop %ebp 28b: c3 ret return -1; 28c: be ff ff ff ff mov $0xffffffff,%esi 291: eb f0 jmp 283 <stat+0x34> 00000293 <atoi>: int atoi(const char *s) { 293: 55 push %ebp 294: 89 e5 mov %esp,%ebp 296: 53 push %ebx 297: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; 29a: b8 00 00 00 00 mov $0x0,%eax while('0' <= *s && *s <= '9') 29f: eb 10 jmp 2b1 <atoi+0x1e> n = n*10 + *s++ - '0'; 2a1: 8d 1c 80 lea (%eax,%eax,4),%ebx 2a4: 8d 04 1b lea (%ebx,%ebx,1),%eax 2a7: 83 c1 01 add $0x1,%ecx 2aa: 0f be d2 movsbl %dl,%edx 2ad: 8d 44 02 d0 lea -0x30(%edx,%eax,1),%eax while('0' <= *s && *s <= '9') 2b1: 0f b6 11 movzbl (%ecx),%edx 2b4: 8d 5a d0 lea -0x30(%edx),%ebx 2b7: 80 fb 09 cmp $0x9,%bl 2ba: 76 e5 jbe 2a1 <atoi+0xe> return n; } 2bc: 5b pop %ebx 2bd: 5d pop %ebp 2be: c3 ret 000002bf <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 2bf: 55 push %ebp 2c0: 89 e5 mov %esp,%ebp 2c2: 56 push %esi 2c3: 53 push %ebx 2c4: 8b 45 08 mov 0x8(%ebp),%eax 2c7: 8b 5d 0c mov 0xc(%ebp),%ebx 2ca: 8b 55 10 mov 0x10(%ebp),%edx char *dst; const char *src; dst = vdst; 2cd: 89 c1 mov %eax,%ecx src = vsrc; while(n-- > 0) 2cf: eb 0d jmp 2de <memmove+0x1f> *dst++ = *src++; 2d1: 0f b6 13 movzbl (%ebx),%edx 2d4: 88 11 mov %dl,(%ecx) 2d6: 8d 5b 01 lea 0x1(%ebx),%ebx 2d9: 8d 49 01 lea 0x1(%ecx),%ecx while(n-- > 0) 2dc: 89 f2 mov %esi,%edx 2de: 8d 72 ff lea -0x1(%edx),%esi 2e1: 85 d2 test %edx,%edx 2e3: 7f ec jg 2d1 <memmove+0x12> return vdst; } 2e5: 5b pop %ebx 2e6: 5e pop %esi 2e7: 5d pop %ebp 2e8: c3 ret 000002e9 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 2e9: b8 01 00 00 00 mov $0x1,%eax 2ee: cd 40 int $0x40 2f0: c3 ret 000002f1 <exit>: SYSCALL(exit) 2f1: b8 02 00 00 00 mov $0x2,%eax 2f6: cd 40 int $0x40 2f8: c3 ret 000002f9 <wait>: SYSCALL(wait) 2f9: b8 03 00 00 00 mov $0x3,%eax 2fe: cd 40 int $0x40 300: c3 ret 00000301 <pipe>: SYSCALL(pipe) 301: b8 04 00 00 00 mov $0x4,%eax 306: cd 40 int $0x40 308: c3 ret 00000309 <read>: SYSCALL(read) 309: b8 05 00 00 00 mov $0x5,%eax 30e: cd 40 int $0x40 310: c3 ret 00000311 <write>: SYSCALL(write) 311: b8 10 00 00 00 mov $0x10,%eax 316: cd 40 int $0x40 318: c3 ret 00000319 <close>: SYSCALL(close) 319: b8 15 00 00 00 mov $0x15,%eax 31e: cd 40 int $0x40 320: c3 ret 00000321 <kill>: SYSCALL(kill) 321: b8 06 00 00 00 mov $0x6,%eax 326: cd 40 int $0x40 328: c3 ret 00000329 <exec>: SYSCALL(exec) 329: b8 07 00 00 00 mov $0x7,%eax 32e: cd 40 int $0x40 330: c3 ret 00000331 <open>: SYSCALL(open) 331: b8 0f 00 00 00 mov $0xf,%eax 336: cd 40 int $0x40 338: c3 ret 00000339 <mknod>: SYSCALL(mknod) 339: b8 11 00 00 00 mov $0x11,%eax 33e: cd 40 int $0x40 340: c3 ret 00000341 <unlink>: SYSCALL(unlink) 341: b8 12 00 00 00 mov $0x12,%eax 346: cd 40 int $0x40 348: c3 ret 00000349 <fstat>: SYSCALL(fstat) 349: b8 08 00 00 00 mov $0x8,%eax 34e: cd 40 int $0x40 350: c3 ret 00000351 <link>: SYSCALL(link) 351: b8 13 00 00 00 mov $0x13,%eax 356: cd 40 int $0x40 358: c3 ret 00000359 <mkdir>: SYSCALL(mkdir) 359: b8 14 00 00 00 mov $0x14,%eax 35e: cd 40 int $0x40 360: c3 ret 00000361 <chdir>: SYSCALL(chdir) 361: b8 09 00 00 00 mov $0x9,%eax 366: cd 40 int $0x40 368: c3 ret 00000369 <dup>: SYSCALL(dup) 369: b8 0a 00 00 00 mov $0xa,%eax 36e: cd 40 int $0x40 370: c3 ret 00000371 <getpid>: SYSCALL(getpid) 371: b8 0b 00 00 00 mov $0xb,%eax 376: cd 40 int $0x40 378: c3 ret 00000379 <sbrk>: SYSCALL(sbrk) 379: b8 0c 00 00 00 mov $0xc,%eax 37e: cd 40 int $0x40 380: c3 ret 00000381 <sleep>: SYSCALL(sleep) 381: b8 0d 00 00 00 mov $0xd,%eax 386: cd 40 int $0x40 388: c3 ret 00000389 <uptime>: SYSCALL(uptime) 389: b8 0e 00 00 00 mov $0xe,%eax 38e: cd 40 int $0x40 390: c3 ret 00000391 <yield>: SYSCALL(yield) 391: b8 16 00 00 00 mov $0x16,%eax 396: cd 40 int $0x40 398: c3 ret 00000399 <shutdown>: SYSCALL(shutdown) 399: b8 17 00 00 00 mov $0x17,%eax 39e: cd 40 int $0x40 3a0: c3 ret 000003a1 <writecount>: SYSCALL(writecount) 3a1: b8 18 00 00 00 mov $0x18,%eax 3a6: cd 40 int $0x40 3a8: c3 ret 000003a9 <setwritecount>: SYSCALL(setwritecount) 3a9: b8 19 00 00 00 mov $0x19,%eax 3ae: cd 40 int $0x40 3b0: c3 ret 000003b1 <settickets>: SYSCALL(settickets) 3b1: b8 1a 00 00 00 mov $0x1a,%eax 3b6: cd 40 int $0x40 3b8: c3 ret 000003b9 <getprocessesinfo>: 3b9: b8 1b 00 00 00 mov $0x1b,%eax 3be: cd 40 int $0x40 3c0: c3 ret 000003c1 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 3c1: 55 push %ebp 3c2: 89 e5 mov %esp,%ebp 3c4: 83 ec 1c sub $0x1c,%esp 3c7: 88 55 f4 mov %dl,-0xc(%ebp) write(fd, &c, 1); 3ca: 6a 01 push $0x1 3cc: 8d 55 f4 lea -0xc(%ebp),%edx 3cf: 52 push %edx 3d0: 50 push %eax 3d1: e8 3b ff ff ff call 311 <write> } 3d6: 83 c4 10 add $0x10,%esp 3d9: c9 leave 3da: c3 ret 000003db <printint>: static void printint(int fd, int xx, int base, int sgn) { 3db: 55 push %ebp 3dc: 89 e5 mov %esp,%ebp 3de: 57 push %edi 3df: 56 push %esi 3e0: 53 push %ebx 3e1: 83 ec 2c sub $0x2c,%esp 3e4: 89 c7 mov %eax,%edi char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 3e6: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 3ea: 0f 95 c3 setne %bl 3ed: 89 d0 mov %edx,%eax 3ef: c1 e8 1f shr $0x1f,%eax 3f2: 84 c3 test %al,%bl 3f4: 74 10 je 406 <printint+0x2b> neg = 1; x = -xx; 3f6: f7 da neg %edx neg = 1; 3f8: c7 45 d4 01 00 00 00 movl $0x1,-0x2c(%ebp) } else { x = xx; } i = 0; 3ff: be 00 00 00 00 mov $0x0,%esi 404: eb 0b jmp 411 <printint+0x36> neg = 0; 406: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) 40d: eb f0 jmp 3ff <printint+0x24> do{ buf[i++] = digits[x % base]; 40f: 89 c6 mov %eax,%esi 411: 89 d0 mov %edx,%eax 413: ba 00 00 00 00 mov $0x0,%edx 418: f7 f1 div %ecx 41a: 89 c3 mov %eax,%ebx 41c: 8d 46 01 lea 0x1(%esi),%eax 41f: 0f b6 92 54 07 00 00 movzbl 0x754(%edx),%edx 426: 88 54 35 d8 mov %dl,-0x28(%ebp,%esi,1) }while((x /= base) != 0); 42a: 89 da mov %ebx,%edx 42c: 85 db test %ebx,%ebx 42e: 75 df jne 40f <printint+0x34> 430: 89 c3 mov %eax,%ebx if(neg) 432: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 436: 74 16 je 44e <printint+0x73> buf[i++] = '-'; 438: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1) 43d: 8d 5e 02 lea 0x2(%esi),%ebx 440: eb 0c jmp 44e <printint+0x73> while(--i >= 0) putc(fd, buf[i]); 442: 0f be 54 1d d8 movsbl -0x28(%ebp,%ebx,1),%edx 447: 89 f8 mov %edi,%eax 449: e8 73 ff ff ff call 3c1 <putc> while(--i >= 0) 44e: 83 eb 01 sub $0x1,%ebx 451: 79 ef jns 442 <printint+0x67> } 453: 83 c4 2c add $0x2c,%esp 456: 5b pop %ebx 457: 5e pop %esi 458: 5f pop %edi 459: 5d pop %ebp 45a: c3 ret 0000045b <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 45b: 55 push %ebp 45c: 89 e5 mov %esp,%ebp 45e: 57 push %edi 45f: 56 push %esi 460: 53 push %ebx 461: 83 ec 1c sub $0x1c,%esp char *s; int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; 464: 8d 45 10 lea 0x10(%ebp),%eax 467: 89 45 e4 mov %eax,-0x1c(%ebp) state = 0; 46a: be 00 00 00 00 mov $0x0,%esi for(i = 0; fmt[i]; i++){ 46f: bb 00 00 00 00 mov $0x0,%ebx 474: eb 14 jmp 48a <printf+0x2f> c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; } else { putc(fd, c); 476: 89 fa mov %edi,%edx 478: 8b 45 08 mov 0x8(%ebp),%eax 47b: e8 41 ff ff ff call 3c1 <putc> 480: eb 05 jmp 487 <printf+0x2c> } } else if(state == '%'){ 482: 83 fe 25 cmp $0x25,%esi 485: 74 25 je 4ac <printf+0x51> for(i = 0; fmt[i]; i++){ 487: 83 c3 01 add $0x1,%ebx 48a: 8b 45 0c mov 0xc(%ebp),%eax 48d: 0f b6 04 18 movzbl (%eax,%ebx,1),%eax 491: 84 c0 test %al,%al 493: 0f 84 23 01 00 00 je 5bc <printf+0x161> c = fmt[i] & 0xff; 499: 0f be f8 movsbl %al,%edi 49c: 0f b6 c0 movzbl %al,%eax if(state == 0){ 49f: 85 f6 test %esi,%esi 4a1: 75 df jne 482 <printf+0x27> if(c == '%'){ 4a3: 83 f8 25 cmp $0x25,%eax 4a6: 75 ce jne 476 <printf+0x1b> state = '%'; 4a8: 89 c6 mov %eax,%esi 4aa: eb db jmp 487 <printf+0x2c> if(c == 'd'){ 4ac: 83 f8 64 cmp $0x64,%eax 4af: 74 49 je 4fa <printf+0x9f> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 4b1: 83 f8 78 cmp $0x78,%eax 4b4: 0f 94 c1 sete %cl 4b7: 83 f8 70 cmp $0x70,%eax 4ba: 0f 94 c2 sete %dl 4bd: 08 d1 or %dl,%cl 4bf: 75 63 jne 524 <printf+0xc9> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 4c1: 83 f8 73 cmp $0x73,%eax 4c4: 0f 84 84 00 00 00 je 54e <printf+0xf3> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 4ca: 83 f8 63 cmp $0x63,%eax 4cd: 0f 84 b7 00 00 00 je 58a <printf+0x12f> putc(fd, *ap); ap++; } else if(c == '%'){ 4d3: 83 f8 25 cmp $0x25,%eax 4d6: 0f 84 cc 00 00 00 je 5a8 <printf+0x14d> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 4dc: ba 25 00 00 00 mov $0x25,%edx 4e1: 8b 45 08 mov 0x8(%ebp),%eax 4e4: e8 d8 fe ff ff call 3c1 <putc> putc(fd, c); 4e9: 89 fa mov %edi,%edx 4eb: 8b 45 08 mov 0x8(%ebp),%eax 4ee: e8 ce fe ff ff call 3c1 <putc> } state = 0; 4f3: be 00 00 00 00 mov $0x0,%esi 4f8: eb 8d jmp 487 <printf+0x2c> printint(fd, *ap, 10, 1); 4fa: 8b 7d e4 mov -0x1c(%ebp),%edi 4fd: 8b 17 mov (%edi),%edx 4ff: 83 ec 0c sub $0xc,%esp 502: 6a 01 push $0x1 504: b9 0a 00 00 00 mov $0xa,%ecx 509: 8b 45 08 mov 0x8(%ebp),%eax 50c: e8 ca fe ff ff call 3db <printint> ap++; 511: 83 c7 04 add $0x4,%edi 514: 89 7d e4 mov %edi,-0x1c(%ebp) 517: 83 c4 10 add $0x10,%esp state = 0; 51a: be 00 00 00 00 mov $0x0,%esi 51f: e9 63 ff ff ff jmp 487 <printf+0x2c> printint(fd, *ap, 16, 0); 524: 8b 7d e4 mov -0x1c(%ebp),%edi 527: 8b 17 mov (%edi),%edx 529: 83 ec 0c sub $0xc,%esp 52c: 6a 00 push $0x0 52e: b9 10 00 00 00 mov $0x10,%ecx 533: 8b 45 08 mov 0x8(%ebp),%eax 536: e8 a0 fe ff ff call 3db <printint> ap++; 53b: 83 c7 04 add $0x4,%edi 53e: 89 7d e4 mov %edi,-0x1c(%ebp) 541: 83 c4 10 add $0x10,%esp state = 0; 544: be 00 00 00 00 mov $0x0,%esi 549: e9 39 ff ff ff jmp 487 <printf+0x2c> s = (char*)*ap; 54e: 8b 45 e4 mov -0x1c(%ebp),%eax 551: 8b 30 mov (%eax),%esi ap++; 553: 83 c0 04 add $0x4,%eax 556: 89 45 e4 mov %eax,-0x1c(%ebp) if(s == 0) 559: 85 f6 test %esi,%esi 55b: 75 28 jne 585 <printf+0x12a> s = "(null)"; 55d: be 4b 07 00 00 mov $0x74b,%esi 562: 8b 7d 08 mov 0x8(%ebp),%edi 565: eb 0d jmp 574 <printf+0x119> putc(fd, *s); 567: 0f be d2 movsbl %dl,%edx 56a: 89 f8 mov %edi,%eax 56c: e8 50 fe ff ff call 3c1 <putc> s++; 571: 83 c6 01 add $0x1,%esi while(*s != 0){ 574: 0f b6 16 movzbl (%esi),%edx 577: 84 d2 test %dl,%dl 579: 75 ec jne 567 <printf+0x10c> state = 0; 57b: be 00 00 00 00 mov $0x0,%esi 580: e9 02 ff ff ff jmp 487 <printf+0x2c> 585: 8b 7d 08 mov 0x8(%ebp),%edi 588: eb ea jmp 574 <printf+0x119> putc(fd, *ap); 58a: 8b 7d e4 mov -0x1c(%ebp),%edi 58d: 0f be 17 movsbl (%edi),%edx 590: 8b 45 08 mov 0x8(%ebp),%eax 593: e8 29 fe ff ff call 3c1 <putc> ap++; 598: 83 c7 04 add $0x4,%edi 59b: 89 7d e4 mov %edi,-0x1c(%ebp) state = 0; 59e: be 00 00 00 00 mov $0x0,%esi 5a3: e9 df fe ff ff jmp 487 <printf+0x2c> putc(fd, c); 5a8: 89 fa mov %edi,%edx 5aa: 8b 45 08 mov 0x8(%ebp),%eax 5ad: e8 0f fe ff ff call 3c1 <putc> state = 0; 5b2: be 00 00 00 00 mov $0x0,%esi 5b7: e9 cb fe ff ff jmp 487 <printf+0x2c> } } } 5bc: 8d 65 f4 lea -0xc(%ebp),%esp 5bf: 5b pop %ebx 5c0: 5e pop %esi 5c1: 5f pop %edi 5c2: 5d pop %ebp 5c3: c3 ret 000005c4 <free>: static Header base; static Header *freep; void free(void *ap) { 5c4: 55 push %ebp 5c5: 89 e5 mov %esp,%ebp 5c7: 57 push %edi 5c8: 56 push %esi 5c9: 53 push %ebx 5ca: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; 5cd: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5d0: a1 40 0a 00 00 mov 0xa40,%eax 5d5: eb 02 jmp 5d9 <free+0x15> 5d7: 89 d0 mov %edx,%eax 5d9: 39 c8 cmp %ecx,%eax 5db: 73 04 jae 5e1 <free+0x1d> 5dd: 39 08 cmp %ecx,(%eax) 5df: 77 12 ja 5f3 <free+0x2f> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 5e1: 8b 10 mov (%eax),%edx 5e3: 39 c2 cmp %eax,%edx 5e5: 77 f0 ja 5d7 <free+0x13> 5e7: 39 c8 cmp %ecx,%eax 5e9: 72 08 jb 5f3 <free+0x2f> 5eb: 39 ca cmp %ecx,%edx 5ed: 77 04 ja 5f3 <free+0x2f> 5ef: 89 d0 mov %edx,%eax 5f1: eb e6 jmp 5d9 <free+0x15> break; if(bp + bp->s.size == p->s.ptr){ 5f3: 8b 73 fc mov -0x4(%ebx),%esi 5f6: 8d 3c f1 lea (%ecx,%esi,8),%edi 5f9: 8b 10 mov (%eax),%edx 5fb: 39 d7 cmp %edx,%edi 5fd: 74 19 je 618 <free+0x54> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 5ff: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 602: 8b 50 04 mov 0x4(%eax),%edx 605: 8d 34 d0 lea (%eax,%edx,8),%esi 608: 39 ce cmp %ecx,%esi 60a: 74 1b je 627 <free+0x63> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 60c: 89 08 mov %ecx,(%eax) freep = p; 60e: a3 40 0a 00 00 mov %eax,0xa40 } 613: 5b pop %ebx 614: 5e pop %esi 615: 5f pop %edi 616: 5d pop %ebp 617: c3 ret bp->s.size += p->s.ptr->s.size; 618: 03 72 04 add 0x4(%edx),%esi 61b: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 61e: 8b 10 mov (%eax),%edx 620: 8b 12 mov (%edx),%edx 622: 89 53 f8 mov %edx,-0x8(%ebx) 625: eb db jmp 602 <free+0x3e> p->s.size += bp->s.size; 627: 03 53 fc add -0x4(%ebx),%edx 62a: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 62d: 8b 53 f8 mov -0x8(%ebx),%edx 630: 89 10 mov %edx,(%eax) 632: eb da jmp 60e <free+0x4a> 00000634 <morecore>: static Header* morecore(uint nu) { 634: 55 push %ebp 635: 89 e5 mov %esp,%ebp 637: 53 push %ebx 638: 83 ec 04 sub $0x4,%esp 63b: 89 c3 mov %eax,%ebx char *p; Header *hp; if(nu < 4096) 63d: 3d ff 0f 00 00 cmp $0xfff,%eax 642: 77 05 ja 649 <morecore+0x15> nu = 4096; 644: bb 00 10 00 00 mov $0x1000,%ebx p = sbrk(nu * sizeof(Header)); 649: 8d 04 dd 00 00 00 00 lea 0x0(,%ebx,8),%eax 650: 83 ec 0c sub $0xc,%esp 653: 50 push %eax 654: e8 20 fd ff ff call 379 <sbrk> if(p == (char*)-1) 659: 83 c4 10 add $0x10,%esp 65c: 83 f8 ff cmp $0xffffffff,%eax 65f: 74 1c je 67d <morecore+0x49> return 0; hp = (Header*)p; hp->s.size = nu; 661: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 664: 83 c0 08 add $0x8,%eax 667: 83 ec 0c sub $0xc,%esp 66a: 50 push %eax 66b: e8 54 ff ff ff call 5c4 <free> return freep; 670: a1 40 0a 00 00 mov 0xa40,%eax 675: 83 c4 10 add $0x10,%esp } 678: 8b 5d fc mov -0x4(%ebp),%ebx 67b: c9 leave 67c: c3 ret return 0; 67d: b8 00 00 00 00 mov $0x0,%eax 682: eb f4 jmp 678 <morecore+0x44> 00000684 <malloc>: void* malloc(uint nbytes) { 684: 55 push %ebp 685: 89 e5 mov %esp,%ebp 687: 53 push %ebx 688: 83 ec 04 sub $0x4,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 68b: 8b 45 08 mov 0x8(%ebp),%eax 68e: 8d 58 07 lea 0x7(%eax),%ebx 691: c1 eb 03 shr $0x3,%ebx 694: 83 c3 01 add $0x1,%ebx if((prevp = freep) == 0){ 697: 8b 0d 40 0a 00 00 mov 0xa40,%ecx 69d: 85 c9 test %ecx,%ecx 69f: 74 04 je 6a5 <malloc+0x21> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 6a1: 8b 01 mov (%ecx),%eax 6a3: eb 4d jmp 6f2 <malloc+0x6e> base.s.ptr = freep = prevp = &base; 6a5: c7 05 40 0a 00 00 44 movl $0xa44,0xa40 6ac: 0a 00 00 6af: c7 05 44 0a 00 00 44 movl $0xa44,0xa44 6b6: 0a 00 00 base.s.size = 0; 6b9: c7 05 48 0a 00 00 00 movl $0x0,0xa48 6c0: 00 00 00 base.s.ptr = freep = prevp = &base; 6c3: b9 44 0a 00 00 mov $0xa44,%ecx 6c8: eb d7 jmp 6a1 <malloc+0x1d> if(p->s.size >= nunits){ if(p->s.size == nunits) 6ca: 39 da cmp %ebx,%edx 6cc: 74 1a je 6e8 <malloc+0x64> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 6ce: 29 da sub %ebx,%edx 6d0: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 6d3: 8d 04 d0 lea (%eax,%edx,8),%eax p->s.size = nunits; 6d6: 89 58 04 mov %ebx,0x4(%eax) } freep = prevp; 6d9: 89 0d 40 0a 00 00 mov %ecx,0xa40 return (void*)(p + 1); 6df: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 6e2: 83 c4 04 add $0x4,%esp 6e5: 5b pop %ebx 6e6: 5d pop %ebp 6e7: c3 ret prevp->s.ptr = p->s.ptr; 6e8: 8b 10 mov (%eax),%edx 6ea: 89 11 mov %edx,(%ecx) 6ec: eb eb jmp 6d9 <malloc+0x55> for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 6ee: 89 c1 mov %eax,%ecx 6f0: 8b 00 mov (%eax),%eax if(p->s.size >= nunits){ 6f2: 8b 50 04 mov 0x4(%eax),%edx 6f5: 39 da cmp %ebx,%edx 6f7: 73 d1 jae 6ca <malloc+0x46> if(p == freep) 6f9: 39 05 40 0a 00 00 cmp %eax,0xa40 6ff: 75 ed jne 6ee <malloc+0x6a> if((p = morecore(nunits)) == 0) 701: 89 d8 mov %ebx,%eax 703: e8 2c ff ff ff call 634 <morecore> 708: 85 c0 test %eax,%eax 70a: 75 e2 jne 6ee <malloc+0x6a> return 0; 70c: b8 00 00 00 00 mov $0x0,%eax 711: eb cf jmp 6e2 <malloc+0x5e>
32.619537
60
0.413429
64f80c775921c5b3899e16ca2506543e4027c892
765
asm
Assembly
programs/oeis/078/A078599.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/078/A078599.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/078/A078599.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A078599: Product of squarefree divisors of n. ; 1,2,3,2,5,36,7,2,3,100,11,36,13,196,225,2,17,36,19,100,441,484,23,36,5,676,3,196,29,810000,31,2,1089,1156,1225,36,37,1444,1521,100,41,3111696,43,484,225,2116,47,36,7,100,2601,676,53,36,3025,196,3249,3364,59,810000,61,3844,441,2,4225,18974736,67,1156,4761,24010000,71,36,73,5476,225,1444,5929,37015056,79,100,3,6724,83,3111696,7225,7396,7569,484,89,810000,8281,2116,8649,8836,9025,36,97,196,1089,100 add $0,1 mov $1,1 mov $2,2 mov $3,$0 mov $4,$0 lpb $3 mov $5,$4 mov $6,0 lpb $5 add $6,1 mov $7,$0 div $0,$2 mod $7,$2 cmp $7,0 sub $5,$7 lpe cmp $6,0 cmp $6,0 mov $7,$2 pow $7,$6 mul $0,$7 mul $1,$7 add $2,1 mov $7,$0 cmp $7,1 cmp $7,0 sub $3,$7 lpe mov $0,$1
23.181818
400
0.620915
671299612b26ae36e40cf380a6da36178b36065b
4,202
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_168.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_168.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_168.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %rax push %rbp push %rcx // Store mov $0x860, %rbp nop nop inc %r13 mov $0x5152535455565758, %rcx movq %rcx, %xmm5 movaps %xmm5, (%rbp) nop nop nop nop inc %rcx // Load lea addresses_normal+0x1c4f8, %r10 nop nop xor $39456, %r11 mov (%r10), %bp nop nop nop nop inc %rcx // Faulty Load lea addresses_PSE+0x97e0, %rbp cmp $60668, %r13 mov (%rbp), %r11 lea oracles, %r10 and $0xff, %r11 shlq $12, %r11 mov (%r10,%r11,1), %r11 pop %rcx pop %rbp pop %rax pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_P', 'AVXalign': True, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_normal', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'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 */
60.028571
2,999
0.659924
91486c0fb0425f7a04a819f22010d74d131dc1b6
706
asm
Assembly
programs/oeis/294/A294935.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/294/A294935.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/294/A294935.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A294935: Characteristic function for nonabundant numbers (A263837): a(n) = 1 if A001065(n) <= n, 0 otherwise. ; 1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,0,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,0,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1 cal $0,33880 ; Abundance of n, or (sum of divisors of n) - 2n. trn $0,1 mov $1,$0 cmp $1,0
88.25
501
0.548159
5d5ecaf1954e94b06b2af24202dd23462c91647f
720
asm
Assembly
0.Array/FillArray.asm
KDahir247/X86AssemblyPratice
f2f2267f4979e5332c727e49a9b3fb958f366938
[ "MIT" ]
1
2021-02-15T00:44:26.000Z
2021-02-15T00:44:26.000Z
0.Array/FillArray.asm
KDahir247/X86AssemblyPratice
f2f2267f4979e5332c727e49a9b3fb958f366938
[ "MIT" ]
null
null
null
0.Array/FillArray.asm
KDahir247/X86AssemblyPratice
f2f2267f4979e5332c727e49a9b3fb958f366938
[ "MIT" ]
null
null
null
.model flat, c ;Implementation for this Assembly File ;extern "C" void FillArray(int amt, int* array); .code FillArray proc push ebp ;push the 32 bit base pointer register mov ebp, esp mov eax, [ebp + 12] ;eax = 'array' mov ecx, [ebp + 8] ;ecx = amt test ecx, ecx ;we are doing a and setting SF, ZF, PF flag depending on result je ZeroArray ; jump if the zero flat is 1 (true) dec ecx ;decrement ecx since array are zero base l1: mov dword ptr [eax + ecx * 4], ecx ; storing the value of ecx in the array element offset loop l1 ;loop and decrement ecx break when ecx == 0 mov dword ptr [eax], ecx ; store array[0] = ecx(0) ZeroArray: pop ebp ; popped push register ebp ret FillArray endp end
23.225806
90
0.693056
ee58111c669b47295bd0fb47617dfd361a22751a
320
asm
Assembly
programs/oeis/029/A029836.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/029/A029836.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/029/A029836.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A029836: log( n-th prime) rounded to nearest integer. ; 1,1,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6 pow $0,2 mul $0,2 div $0,7 mov $1,1 lpb $0 sub $0,1 div $0,5 add $2,$1 lpe add $1,$2 mov $0,$1
21.333333
161
0.540625
7a926928e9b4a1b5e06a03e596977947173e53d1
8,390
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_18765_954.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_18765_954.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_18765_954.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 %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x149cf, %r8 nop xor %rdi, %rdi mov (%r8), %ecx nop nop cmp $3747, %rdx lea addresses_WC_ht+0x1aed4, %r13 add %rcx, %rcx mov $0x6162636465666768, %r11 movq %r11, (%r13) nop and %r8, %r8 lea addresses_UC_ht+0x16b23, %r13 nop nop nop nop xor %rbx, %rbx vmovups (%r13), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %rdx nop and $49463, %rdx lea addresses_WT_ht+0x19323, %rsi lea addresses_WT_ht+0x1a8b3, %rdi nop nop nop nop nop cmp %r13, %r13 mov $51, %rcx rep movsw add $46971, %rbx lea addresses_WC_ht+0x5be7, %rbx nop nop nop nop cmp %rcx, %rcx mov (%rbx), %r8w nop nop nop nop sub %rcx, %rcx lea addresses_A_ht+0xb123, %rbx nop nop nop nop nop dec %rdx mov $0x6162636465666768, %r8 movq %r8, %xmm4 and $0xffffffffffffffc0, %rbx movntdq %xmm4, (%rbx) nop sub $12583, %rdx lea addresses_A_ht+0x112f3, %rsi lea addresses_WT_ht+0x10323, %rdi nop and %rbx, %rbx mov $53, %rcx rep movsb nop nop nop cmp $27087, %rbx lea addresses_A_ht+0x2923, %rsi lea addresses_UC_ht+0x4a91, %rdi clflush (%rdi) nop nop nop nop nop cmp $30665, %r13 mov $40, %rcx rep movsw nop nop nop nop nop add %rcx, %rcx lea addresses_WC_ht+0x1963, %r11 nop nop nop xor %rcx, %rcx movb (%r11), %bl nop add $714, %rdx lea addresses_A_ht+0xba10, %rsi lea addresses_WC_ht+0x29d7, %rdi clflush (%rsi) nop nop nop nop nop xor $18998, %r8 mov $15, %rcx rep movsq sub %r11, %r11 lea addresses_UC_ht+0x15a93, %r11 nop nop cmp $31866, %rbx and $0xffffffffffffffc0, %r11 movntdqa (%r11), %xmm5 vpextrq $1, %xmm5, %r13 nop nop nop nop add $53458, %rdi lea addresses_D_ht+0x2b63, %rcx nop nop nop nop add %r11, %r11 mov $0x6162636465666768, %rsi movq %rsi, %xmm0 vmovups %ymm0, (%rcx) nop nop nop nop and %rsi, %rsi lea addresses_UC_ht+0x1eba3, %rcx nop nop nop sub %r13, %r13 movl $0x61626364, (%rcx) nop xor %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %r14 push %r8 push %rdx // Store lea addresses_D+0x1c723, %r8 clflush (%r8) nop nop nop nop nop dec %r13 movb $0x51, (%r8) nop nop nop xor %r8, %r8 // Store lea addresses_D+0x17d23, %r11 nop nop sub %r10, %r10 mov $0x5152535455565758, %r14 movq %r14, (%r11) nop nop nop xor %r14, %r14 // Store lea addresses_WC+0xba3, %r13 nop nop nop nop and $48092, %r12 movl $0x51525354, (%r13) nop nop and %r10, %r10 // Store lea addresses_PSE+0x3ca3, %r11 xor %r12, %r12 mov $0x5152535455565758, %r8 movq %r8, %xmm5 movntdq %xmm5, (%r11) xor %r10, %r10 // Faulty Load lea addresses_D+0x17d23, %r8 nop nop nop nop add %rdx, %rdx mov (%r8), %r10d lea oracles, %r11 and $0xff, %r10 shlq $12, %r10 mov (%r11,%r10,1), %r10 pop %rdx pop %r8 pop %r14 pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'same': False, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_D', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'same': True, 'size': 4, 'congruent': 2, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D_ht', 'same': True, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'58': 18765} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
31.423221
2,999
0.654231
207b3e1e4c7fc4ad14a5d8eb222a5ccdf9351b49
6,876
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1740.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1740.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1740.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1a37d, %r14 nop nop and $2097, %r12 mov (%r14), %edx nop nop nop sub %r11, %r11 lea addresses_A_ht+0x1d46b, %rsi lea addresses_D_ht+0xb995, %rdi nop nop nop nop cmp %r11, %r11 mov $98, %rcx rep movsb nop nop nop nop nop sub %rdx, %rdx lea addresses_UC_ht+0x32ed, %r12 nop nop dec %rdx mov $0x6162636465666768, %rcx movq %rcx, (%r12) nop nop nop nop inc %r12 lea addresses_A_ht+0x1207d, %rdx sub $57247, %r11 mov $0x6162636465666768, %rdi movq %rdi, (%rdx) nop nop nop nop xor %rcx, %rcx lea addresses_WC_ht+0x123fd, %rdx nop nop nop nop sub $7585, %r12 mov $0x6162636465666768, %rcx movq %rcx, (%rdx) nop nop sub %rcx, %rcx lea addresses_WC_ht+0x1a35d, %r14 nop nop nop nop nop add $56313, %rdx mov $0x6162636465666768, %rcx movq %rcx, %xmm0 movups %xmm0, (%r14) and $23450, %rdi lea addresses_WC_ht+0x19c7d, %rdi nop cmp $4103, %r11 mov $0x6162636465666768, %rdx movq %rdx, %xmm2 movups %xmm2, (%rdi) nop nop nop nop nop inc %r14 lea addresses_D_ht+0x1c73d, %rdi xor $31524, %rsi vmovups (%rdi), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %r12 nop cmp %rdx, %rdx lea addresses_normal_ht+0x1b07d, %rdi nop nop nop nop nop and $49069, %r14 mov $0x6162636465666768, %rdx movq %rdx, %xmm0 movups %xmm0, (%rdi) nop nop nop xor $51510, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r9 push %rbp push %rbx push %rcx push %rdx push %rsi // Store lea addresses_RW+0x409d, %rbx nop nop cmp %rsi, %rsi mov $0x5152535455565758, %r9 movq %r9, %xmm5 movups %xmm5, (%rbx) nop nop nop nop inc %rsi // Store lea addresses_D+0x1e866, %rcx clflush (%rcx) nop nop nop nop dec %rbp mov $0x5152535455565758, %r12 movq %r12, %xmm6 vmovups %ymm6, (%rcx) nop nop sub $30585, %rdx // Faulty Load mov $0x61a364000000047d, %rbx nop nop nop nop and $48883, %rsi movntdqa (%rbx), %xmm7 vpextrq $0, %xmm7, %rbp lea oracles, %rbx and $0xff, %rbp shlq $12, %rbp mov (%rbx,%rbp,1), %rbp pop %rsi pop %rdx pop %rcx pop %rbx pop %rbp pop %r9 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_NC', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_RW', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D', 'congruent': 0}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 0}} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 5}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 6}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 10}, 'OP': 'STOR'} {'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 */
34.38
2,999
0.659395
8548d87f87b311e3bfb7e4696f0c722d98578bc3
5,100
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2580.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2580.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2580.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 %r15 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xc13e, %rsi lea addresses_A_ht+0x132ce, %rdi nop add %rdx, %rdx mov $60, %rcx rep movsw lfence lea addresses_WC_ht+0xc1b8, %rdx nop inc %r15 movl $0x61626364, (%rdx) cmp $22847, %r15 lea addresses_A_ht+0x5912, %rcx clflush (%rcx) nop nop nop nop nop and $18991, %r8 mov (%rcx), %rax nop nop nop nop sub $19230, %r8 lea addresses_D_ht+0xc44e, %rsi nop nop nop nop add $50367, %r8 movb $0x61, (%rsi) nop nop nop nop inc %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r9 push %rax push %rbp push %rsi // Store mov $0xc4e, %r11 nop nop nop nop cmp $34768, %r9 mov $0x5152535455565758, %rbp movq %rbp, %xmm0 vmovups %ymm0, (%r11) nop nop nop nop add $14351, %rsi // Faulty Load lea addresses_WC+0xb44e, %r10 nop nop nop cmp %r14, %r14 mov (%r10), %r11w lea oracles, %rbp and $0xff, %r11 shlq $12, %r11 mov (%rbp,%r11,1), %r11 pop %rsi pop %rbp pop %rax pop %r9 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': True, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
43.220339
2,999
0.659216
216999e7fd9f7b7d8dc4eb22f733304b9fccfd63
886
asm
Assembly
S5/AO/Assembler/String/inversedStringCorrect.asm
Momellouky/S5
3357722927dd4a9f16968b10f1477d99afc4acfa
[ "MIT" ]
1
2021-11-25T22:54:49.000Z
2021-11-25T22:54:49.000Z
S5/AO/Assembler/String/inversedStringCorrect.asm
Momellouky/S5
3357722927dd4a9f16968b10f1477d99afc4acfa
[ "MIT" ]
null
null
null
S5/AO/Assembler/String/inversedStringCorrect.asm
Momellouky/S5
3357722927dd4a9f16968b10f1477d99afc4acfa
[ "MIT" ]
null
null
null
data segment tab db 'maison$' msg db 'la chaine en inverser :$' ends stack segment dw 128 dup(0) ends code segment start: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; mov ax, data mov ds, ax mov es, ax mov ah,09h mov dl,offset msg int 21h mov si,0 mov ax,0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; boucle: cmp al,36 je boucle3 mov al,tab[si] push ax inc si jmp boucle ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; boucle3: pop dx dec si boucle1: pop dx mov ah,02h int 21h dec si cmp si,0 jne boucle1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; mov ax, 4c00h int 21h ends end start ; set entry point and stop the assembler.
13.223881
61
0.371332
ceb3a334d73b320d8042fc9337e38a5fa221a156
87
asm
Assembly
src/main/fragment/mos6502-common/_deref_pwsz1=_deref_pwsz1_plus_vwsm2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/_deref_pwsz1=_deref_pwsz1_plus_vwsm2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/_deref_pwsz1=_deref_pwsz1_plus_vwsm2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
ldy #0 clc lda ({z1}),y adc {m2} sta ({z1}),y iny lda ({z1}),y adc {m2}+1 sta ({z1}),y
8.7
12
0.517241
afaef8e0fe747e16baec5edfb6b0e1ac7e153cd3
474
asm
Assembly
programs/oeis/097/A097723.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/097/A097723.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/097/A097723.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A097723: One fourth of sum of divisors of 4n+3. ; 1,2,3,6,5,6,10,8,12,14,11,12,18,18,15,26,17,18,31,20,21,30,28,30,39,26,27,38,36,36,42,32,33,60,35,42,57,38,48,54,41,42,65,62,45,62,54,48,84,50,60,78,53,66,74,56,57,96,72,60,91,70,63,108,76,66,90,68,93,104,71,84,98,90,84,102,77,78,156,90,90,110,83,102,114,100,87,140,108,90,133,92,108,156,95,96,143,108,120,160 mul $0,4 add $0,2 seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n). div $0,4
59.25
311
0.666667
cccdd8db96fcc280e0e14cc863eec265ca976754
383
asm
Assembly
src/main/resources/Examples/PreProcessing Commands/define.asm
jimw278/MIPS
13d666f46ad945f038514768d975150d89cd612b
[ "Apache-2.0" ]
3
2020-11-04T00:03:41.000Z
2020-11-30T00:35:39.000Z
src/main/resources/Examples/PreProcessing Commands/define.asm
jimw278/MIPS
13d666f46ad945f038514768d975150d89cd612b
[ "Apache-2.0" ]
27
2020-09-01T00:44:10.000Z
2021-05-10T15:59:46.000Z
src/main/resources/Examples/PreProcessing Commands/define.asm
jimw278/MIPS
13d666f46ad945f038514768d975150d89cd612b
[ "Apache-2.0" ]
1
2020-12-05T00:14:11.000Z
2020-12-05T00:14:11.000Z
;define can be used for many things including using defined values for pre processor if/ifelse statements #define gold 7 #define reg $2 #define zero $0 addi reg, zero, gold #define reg $5 ;this will give you a warning because reg is apready defined use undef reg for proper convention addi reg, zero, gold #define NAME EXAMPLE_DEFINE ;this can used in if and ifelse statements
25.533333
111
0.775457
7b97e7e5193ba0839f64b29030d6f0cc023e693b
298
asm
Assembly
programs/oeis/131/A131282.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/131/A131282.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/131/A131282.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A131282: Period 6: repeat [1, 2, 3, 3, 4, 5]. ; 1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3,4,5,1,2,3,3 mod $0,6 mov $1,$0 div $1,3 sub $0,$1 add $0,1
33.111111
201
0.506711
c141380c5cc76947fba84df2ccce4a3fcdbbdebc
7,415
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3149.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_0x84_notsx.log_21829_3149.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_0x84_notsx.log_21829_3149.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 %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x4b64, %rsi lea addresses_A_ht+0x1c484, %rdi inc %rbx mov $45, %rcx rep movsl nop nop nop cmp $16310, %rbx lea addresses_WT_ht+0x184a4, %rbx nop nop nop nop nop add %r15, %r15 mov $0x6162636465666768, %rsi movq %rsi, %xmm1 movups %xmm1, (%rbx) add %rdi, %rdi lea addresses_WT_ht+0x12da4, %r15 nop nop nop nop nop cmp %rbx, %rbx movl $0x61626364, (%r15) nop nop nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0x15564, %r11 clflush (%r11) nop nop nop nop nop sub %r10, %r10 movb $0x61, (%r11) nop nop nop nop and %r15, %r15 lea addresses_WT_ht+0x10ea4, %rdi nop nop and $26994, %r10 movups (%rdi), %xmm3 vpextrq $1, %xmm3, %rsi nop nop nop nop nop inc %rsi lea addresses_WC_ht+0x2be2, %r15 nop cmp $64434, %rbx mov $0x6162636465666768, %r10 movq %r10, %xmm7 and $0xffffffffffffffc0, %r15 vmovntdq %ymm7, (%r15) nop cmp %rdi, %rdi lea addresses_A_ht+0xb0a4, %rcx nop add %r15, %r15 mov (%rcx), %edi nop add %rcx, %rcx lea addresses_A_ht+0xed82, %rdi nop nop nop nop inc %r15 mov $0x6162636465666768, %r11 movq %r11, (%rdi) and %rbx, %rbx lea addresses_WC_ht+0x12464, %r15 nop nop nop add $57074, %r10 movups (%r15), %xmm7 vpextrq $1, %xmm7, %r11 nop nop xor $10081, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r9 push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_D+0x150a4, %rsi lea addresses_WC+0x92e4, %rdi nop cmp $13790, %r9 mov $119, %rcx rep movsl nop nop nop nop nop xor $35144, %r9 // Store lea addresses_WC+0x11456, %rcx add %r11, %r11 mov $0x5152535455565758, %r14 movq %r14, (%rcx) nop nop nop nop cmp $21058, %r9 // Store lea addresses_WC+0x403f, %rsi nop nop xor $54102, %r11 movw $0x5152, (%rsi) nop xor %r11, %r11 // Load mov $0x274db00000000a4, %r11 nop nop nop nop xor %rdi, %rdi mov (%r11), %r14d nop nop nop dec %rbp // Store lea addresses_WT+0x11c0c, %rdi nop dec %r14 movb $0x51, (%rdi) nop nop sub $47308, %rbp // Faulty Load lea addresses_PSE+0x1b8a4, %rbp nop nop nop sub $34742, %rcx mov (%rbp), %r9 lea oracles, %rcx and $0xff, %r9 shlq $12, %r9 mov (%rcx,%r9,1), %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_NC', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, '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 */
33.251121
2,999
0.653405
6c59f6b6daf1c662705c63ce023e51e0f55a0d17
354
asm
Assembly
oeis/271/A271079.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/271/A271079.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/271/A271079.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A271079: Residues (mod 32) of partial sums of Fibonacci numbers starting with F(2). ; Submitted by Christian Krause ; 1,3,6,11,19,0,21,23,14,7,23,0,25,27,22,19,11,0,13,15,30,15,15,0,17,19,6,27,3,0,5,7,14,23,7,0,9,11,22,3,27,0,29,31,30,31,31,0 mov $3,1 lpb $0 sub $0,1 add $1,1 mov $2,$3 add $3,$1 mov $1,$2 lpe add $3,$1 mov $0,$3 mod $0,32
22.125
126
0.624294
91b745d7bee09a510714db642db2bb03703984f2
443
asm
Assembly
test/link/section-union/assert.asm
orbea/rgbds
91889fc14abbf705271bb484e89e349e08f76477
[ "MIT" ]
522
2017-02-25T21:10:13.000Z
2020-09-13T14:26:18.000Z
test/link/section-union/assert.asm
orbea/rgbds
91889fc14abbf705271bb484e89e349e08f76477
[ "MIT" ]
405
2017-02-25T21:32:37.000Z
2020-09-13T16:43:29.000Z
test/link/section-union/assert.asm
orbea/rgbds
91889fc14abbf705271bb484e89e349e08f76477
[ "MIT" ]
84
2017-02-25T21:10:26.000Z
2020-09-13T14:28:25.000Z
IF !DEF(SECOND) OFS = 42 ELSE OFS = 69 ENDC BASE = $C0DE SECTION UNION "assertions in unions", WRAM0 IF DEF(SECOND) assert @ != BASE, "Force failing the build" ; Force failure in RGBLINK, though ENDC ds OFS assert @ == BASE + OFS, "This assertion should not trigger" ; Only make RGBASM aware of the section's location *after* it sees the assertion ; This forces it to pass it to RGBLINK SECTION UNION "assertions in unions", WRAM0[BASE]
23.315789
80
0.726862
053bd0b3b1ffda11549930cedc56d9de882caebb
546
asm
Assembly
oeis/070/A070216.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/070/A070216.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/070/A070216.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A070216: Triangle T(n, k) = n^2 + k^2, 1 <= k <= n, read by rows. ; Submitted by Jon Maiga ; 2,5,8,10,13,18,17,20,25,32,26,29,34,41,50,37,40,45,52,61,72,50,53,58,65,74,85,98,65,68,73,80,89,100,113,128,82,85,90,97,106,117,130,145,162,101,104,109,116,125,136,149,164,181,200,122,125,130,137,146,157,170,185,202,221,242,145,148,153,160,169,180,193,208,225,244,265,288,170,173,178,185,194,205,218,233,250,269,290,313,338,197,200,205,212,221,232,245,260,277 lpb $0 add $2,1 sub $0,$2 lpe add $0,1 pow $0,2 add $2,1 pow $2,2 add $2,$0 mov $0,$2
36.4
361
0.661172
f729aecffe6e2336367947344d72f494f55d0cda
6,638
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_286.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_286.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_286.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1b286, %r11 xor %rdi, %rdi mov $0x6162636465666768, %r15 movq %r15, %xmm0 vmovups %ymm0, (%r11) nop and %rcx, %rcx lea addresses_WT_ht+0xdf44, %r10 nop dec %rcx mov (%r10), %edi nop xor %r11, %r11 lea addresses_UC_ht+0x66ca, %rbx nop nop and $64195, %r11 mov $0x6162636465666768, %r10 movq %r10, %xmm2 vmovups %ymm2, (%rbx) nop nop nop nop nop inc %r11 lea addresses_UC_ht+0xc6c5, %rbx nop cmp %rsi, %rsi mov $0x6162636465666768, %r15 movq %r15, (%rbx) nop nop xor %r10, %r10 lea addresses_A_ht+0x1b09e, %rsi clflush (%rsi) cmp %r15, %r15 movw $0x6162, (%rsi) nop nop nop nop xor %rcx, %rcx lea addresses_D_ht+0x1e006, %r10 nop nop nop nop nop dec %rsi vmovups (%r10), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r11 nop nop xor %r11, %r11 lea addresses_normal_ht+0x1d9a6, %rsi lea addresses_WT_ht+0x139e, %rdi nop sub %r13, %r13 mov $22, %rcx rep movsw nop cmp %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %rax push %rbp push %rcx push %rdx push %rsi // Store lea addresses_A+0x1f8b8, %rbp nop nop xor $34194, %rcx mov $0x5152535455565758, %rdx movq %rdx, (%rbp) nop nop nop nop nop inc %rbp // Load lea addresses_RW+0xd6be, %rsi inc %r10 mov (%rsi), %edx sub $40165, %rax // Store lea addresses_normal+0x5c06, %r10 nop nop nop nop nop sub $50218, %rsi movb $0x51, (%r10) nop nop nop nop dec %rsi // Store lea addresses_D+0x19c06, %rbp nop nop nop and $52391, %rcx movb $0x51, (%rbp) nop nop nop nop sub $13250, %r10 // Faulty Load lea addresses_D+0x7406, %rsi nop nop nop xor $34806, %rbp mov (%rsi), %rdx lea oracles, %r11 and $0xff, %rdx shlq $12, %rdx mov (%r11,%rdx,1), %rdx pop %rsi pop %rdx pop %rcx pop %rbp pop %rax pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 1}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_RW', 'congruent': 3}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 11}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D', 'congruent': 10}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 7}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 1}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 0}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 6}} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
36.076087
2,999
0.655017
ce047c2f48d646495cecac38dc8b65230363f08c
333
asm
Assembly
engine/events/hidden_objects/route_15_binoculars.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
engine/events/hidden_objects/route_15_binoculars.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
engine/events/hidden_objects/route_15_binoculars.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
Route15GateLeftBinoculars: ld a, [wSpritePlayerStateData1FacingDirection] cp SPRITE_FACING_UP ret nz call EnableAutoTextBoxDrawing tx_pre Route15UpstairsBinocularsText ld a, ARTICUNO ld [wcf91], a call PlayCry jp DisplayMonFrontSpriteInBox Route15UpstairsBinocularsText:: text_far _Route15UpstairsBinocularsText text_end
22.2
47
0.855856
655820581b4e63d1cb2b7224e6ce067cdb41b4ca
1,280
asm
Assembly
AOC/Meus Exercicios/Aula12/exercicio3.asm
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
AOC/Meus Exercicios/Aula12/exercicio3.asm
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
AOC/Meus Exercicios/Aula12/exercicio3.asm
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
.data n_input: .asciiz "Insira valor de n: " k_input: .asciiz "\nInsira o valor de k: " .text # Vinicius Gasparini .globl main main: li $v0, 4 # call code para print_str la $a0, n_input # carregando str para arg da syscall syscall ori $v0, $zero, 5 # call code para read_int syscall ori $t0, $v0, 0 # t0 = n li $v0, 4 # call code para print_str la $a0, k_input # carregando str para arg da syscall syscall ori $v0, $zero, 5 syscall ori $a0, $t0, 0 # a0 = n ori $a1, $v0, 0 # a1 = n ori $v0, $zero, 0 jal conta ori $a0, $v0, 0 # carregando retorno para arg da syscall ori $v0, $zero, 1 # call code para print_int syscall end: li $v0, 10 syscall conta: slti $t0, $a0, 10 # if (a0<10) bne $t0, $zero, return # if (a0<10) ori $s0, $zero, 10 # s0 = 10 div $a0, $s0 # n/10 mflo $t1 # n//10 mfhi $t2 # n%10 addi $sp, $sp, -8 # liberando espaço na stack sw $ra, 0($sp) # salvando endereço de retorno na stack sw $t2, 4($sp) # salvando n%10 na stack ori $a0, $t1, 0 jal conta lw $ra, 0($sp) # recuperando da stack o retorno lw $t2, 4($sp) # n%10 addi $sp, $sp, 8 # liberando a stack beq $t2, $a1, return_1 jr $ra return_1: addi $v0, $v0, 1 jr $ra return: beq $a0, $a1, return_1 jr $ra
18.028169
58
0.6
6848cfd76047aaf5aa6117278e500c517a2ec43e
7,941
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1589.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1589.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1589.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 %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x706d, %rbp sub %rcx, %rcx movl $0x61626364, (%rbp) nop nop nop nop nop and $11623, %r9 lea addresses_WC_ht+0x16154, %rdi nop nop and %rax, %rax mov (%rdi), %r12w nop nop sub $62223, %rdi lea addresses_WC_ht+0x12b18, %rbp sub $33452, %r8 movl $0x61626364, (%rbp) nop nop add %r12, %r12 lea addresses_A_ht+0x18235, %rsi lea addresses_WC_ht+0x18a5, %rdi nop nop inc %rbp mov $11, %rcx rep movsq nop nop nop nop sub %r12, %r12 lea addresses_A_ht+0x72a5, %rsi lea addresses_normal_ht+0x1dca5, %rdi dec %r8 mov $28, %rcx rep movsl nop nop xor $4374, %r8 lea addresses_WT_ht+0x115a5, %r8 clflush (%r8) sub $20706, %rsi mov (%r8), %r12 dec %r8 lea addresses_normal_ht+0x1cfa5, %rsi lea addresses_WC_ht+0x19ca5, %rdi clflush (%rsi) nop xor %r9, %r9 mov $25, %rcx rep movsb nop nop nop cmp %rax, %rax lea addresses_D_ht+0x4bfd, %r9 xor $27095, %rcx mov $0x6162636465666768, %rax movq %rax, (%r9) nop nop nop nop cmp $56433, %r8 lea addresses_A_ht+0x1b35b, %r9 nop add $13300, %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm5 vmovups %ymm5, (%r9) nop sub $56180, %rax lea addresses_UC_ht+0x3a5, %rbp nop nop nop nop nop and %rcx, %rcx movl $0x61626364, (%rbp) nop nop nop and %r12, %r12 lea addresses_WT_ht+0x1eae5, %rsi lea addresses_normal_ht+0x136c5, %rdi nop nop xor %rax, %rax mov $49, %rcx rep movsb nop nop nop and %rdi, %rdi lea addresses_D_ht+0x4fe5, %rax nop nop nop and %rdi, %rdi mov (%rax), %r9d nop nop cmp %r12, %r12 lea addresses_WT_ht+0x14a5, %r12 nop nop sub $1722, %r8 mov (%r12), %esi nop nop nop nop nop add $31959, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %rbp push %rdi push %rdx // Store lea addresses_D+0x25db, %r12 nop nop nop nop nop add $4625, %r10 mov $0x5152535455565758, %rdx movq %rdx, %xmm0 movntdq %xmm0, (%r12) nop nop nop nop nop add $9200, %r10 // Load lea addresses_RW+0xe8a5, %r12 nop nop cmp %rbp, %rbp movups (%r12), %xmm5 vpextrq $0, %xmm5, %rdx sub $34174, %rdi // Load lea addresses_UC+0xdf25, %rdx nop nop nop nop nop inc %r14 mov (%rdx), %rdi nop cmp $29247, %rbp // Faulty Load lea addresses_RW+0xe8a5, %rbp add $56667, %rdi movups (%rbp), %xmm2 vpextrq $1, %xmm2, %r10 lea oracles, %rdx and $0xff, %r10 shlq $12, %r10 mov (%rdx,%r10,1), %r10 pop %rdx pop %rdi pop %rbp pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': True, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}, 'dst': {'same': True, 'type': 'addresses_normal_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'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 */
34.081545
2,999
0.654074
1784e0ce1e6b12c68cb1b9c1b9b7d39bd3e2d23a
564
asm
Assembly
oeis/158/A158629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/158/A158629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/158/A158629.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A158629: a(n) = 484*n^2 + 22. ; 22,506,1958,4378,7766,12122,17446,23738,30998,39226,48422,58586,69718,81818,94886,108922,123926,139898,156838,174746,193622,213466,234278,256058,278806,302522,327206,352858,379478,407066,435622,465146,495638,527098,559526,592922,627286,662618,698918,736186,774422,813626,853798,894938,937046,980122,1024166,1069178,1115158,1162106,1210022,1258906,1308758,1359578,1411366,1464122,1517846,1572538,1628198,1684826,1742422,1800986,1860518,1921018,1982486,2044922,2108326,2172698,2238038,2304346,2371622 pow $0,2 mul $0,484 add $0,22
80.571429
500
0.819149
d5c523273d3547fa08b08cc3f6150c937e8b623a
689
asm
Assembly
oeis/056/A056918.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/056/A056918.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/056/A056918.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A056918: a(n) = 9*a(n-1)-a(n-2); a(0)=2, a(1)=9. ; Submitted by Christian Krause ; 2,9,79,702,6239,55449,492802,4379769,38925119,345946302,3074591599,27325378089,242853811202,2158358922729,19182376493359,170483029517502,1515164889164159,13466000972959929,119678843867475202,1063643593834316889,9453113500641376799,84014377911938074302,746676287706801291919,6636072211449273552969,58977973615336660684802,524165690326580672610249,4658513239323889392807439,41402453463588423862656702,367963567932971925371102879,3270269657933158904477269209,29064463353465458214924320002 mov $3,1 lpb $0 sub $0,1 mul $1,7 add $3,$1 add $2,$3 mov $1,$2 add $3,2 lpe mov $0,$1 mul $0,7 add $0,2
40.529412
487
0.812772
75679a18eaac978aa659ad3bf7a9771496e1397e
324
asm
Assembly
programs/oeis/328/A328994.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/328/A328994.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/328/A328994.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A328994: a(n) = n^2*(1+n)*(1+n^2)/4. ; 1,15,90,340,975,2331,4900,9360,16605,27775,44286,67860,100555,144795,203400,279616,377145,500175,653410,842100,1072071,1349755,1682220,2077200,2543125,3089151,3725190,4461940,5310915,6284475,7395856,8659200,10089585 sub $2,$0 add $0,2 mul $2,$0 sub $2,1 bin $2,2 mul $0,$2 div $0,2
29.454545
217
0.725309
09f13d3d41b7c0545014efeedf89acc2256eb860
2,428
asm
Assembly
kernel/syscall/x64/syscall_user_low-x64.asm
martin-hughes/project_azalea
28aa0183cde350073cf0167df3f51435ea409c8b
[ "MIT" ]
13
2017-12-20T00:02:38.000Z
2022-01-07T11:18:36.000Z
kernel/syscall/x64/syscall_user_low-x64.asm
martin-hughes/project_azalea
28aa0183cde350073cf0167df3f51435ea409c8b
[ "MIT" ]
21
2016-09-21T16:50:39.000Z
2020-04-12T12:58:19.000Z
kernel/syscall/x64/syscall_user_low-x64.asm
martin-hughes/project_azalea
28aa0183cde350073cf0167df3f51435ea409c8b
[ "MIT" ]
6
2017-12-20T00:02:27.000Z
2019-03-21T16:28:24.000Z
[BITS 64] ; Project Azalea system call user interface. ; All system calls are basically the same - put the system call number in to RAX, swap RCX into R10 and then do the ; call. %macro GENERIC_SYSCALL 2 GLOBAL %2 %2: mov rax, %1 mov r10, rcx syscall ret %endmacro ; The indices in this list MUST be the same as those in the syscall_pointers[] array in syscall_kernel.cpp! GENERIC_SYSCALL 0, syscall_debug_output, ; Handle management. GENERIC_SYSCALL 1, syscall_open_handle, GENERIC_SYSCALL 2, syscall_create_obj_and_handle, GENERIC_SYSCALL 3, syscall_close_handle, GENERIC_SYSCALL 4, syscall_seek_handle, GENERIC_SYSCALL 5, syscall_read_handle, GENERIC_SYSCALL 6, syscall_get_handle_data_len, GENERIC_SYSCALL 7, syscall_set_handle_data_len, GENERIC_SYSCALL 8, syscall_write_handle, GENERIC_SYSCALL 9, syscall_rename_object, GENERIC_SYSCALL 10, syscall_delete_object, GENERIC_SYSCALL 11, syscall_get_object_properties, GENERIC_SYSCALL 12, syscall_enum_children, ; Message passing. GENERIC_SYSCALL 13, syscall_register_for_mp, GENERIC_SYSCALL 14, syscall_send_message, GENERIC_SYSCALL 15, syscall_receive_message_details, GENERIC_SYSCALL 16, syscall_receive_message_body, GENERIC_SYSCALL 17, syscall_message_complete, ; Process & thread control GENERIC_SYSCALL 18, syscall_create_process, GENERIC_SYSCALL 19, syscall_set_startup_params, GENERIC_SYSCALL 20, syscall_start_process, GENERIC_SYSCALL 21, syscall_stop_process, GENERIC_SYSCALL 22, syscall_destroy_process, GENERIC_SYSCALL 23, syscall_exit_process, GENERIC_SYSCALL 24, syscall_create_thread, GENERIC_SYSCALL 25, syscall_start_thread, GENERIC_SYSCALL 26, syscall_stop_thread, GENERIC_SYSCALL 27, syscall_destroy_thread, GENERIC_SYSCALL 28, syscall_exit_thread, GENERIC_SYSCALL 29, syscall_thread_set_tls_base, ; Memory control, GENERIC_SYSCALL 30, syscall_allocate_backing_memory, GENERIC_SYSCALL 31, syscall_release_backing_memory, GENERIC_SYSCALL 32, syscall_map_memory, GENERIC_SYSCALL 33, syscall_unmap_memory, ; Thread synchronization GENERIC_SYSCALL 34, syscall_wait_for_object, GENERIC_SYSCALL 35, syscall_futex_op, GENERIC_SYSCALL 36, syscall_create_mutex, GENERIC_SYSCALL 37, syscall_release_mutex, GENERIC_SYSCALL 38, syscall_create_semaphore, GENERIC_SYSCALL 39, syscall_signal_semaphore, ; Timing GENERIC_SYSCALL 40, syscall_get_system_clock, GENERIC_SYSCALL 41, syscall_sleep_thread ; Other syscalls: GENERIC_SYSCALL 42, syscall_yield
31.128205
115
0.85173
4df65e350a5ace01765fb899b25c1220d77f225e
2,480
asm
Assembly
zx-soft/uniper_splash_routines.asm
pavkriz/zx-uniper
7d4d18a697bb2bbf5df35bed47c59ae767eafbed
[ "BSD-3-Clause" ]
null
null
null
zx-soft/uniper_splash_routines.asm
pavkriz/zx-uniper
7d4d18a697bb2bbf5df35bed47c59ae767eafbed
[ "BSD-3-Clause" ]
5
2017-04-02T19:05:05.000Z
2017-04-02T20:53:03.000Z
zx-soft/uniper_splash_routines.asm
pavkriz/zx-uniper
7d4d18a697bb2bbf5df35bed47c59ae767eafbed
[ "BSD-3-Clause" ]
null
null
null
; Place this routine to RAM (not ROM), ; because we want to page our ("uniper splash") custom ROM (emulated by zx-uniper) ; out and page the original (physical) ZX ROM in. SECTION smc_user PUBLIC _copy_rom2rom EXTERN ZX_SPLASH_ROMREAD_START_BORDER EXTERN ZX_SPLASH_ROMREAD_END_BORDER INCLUDE "uniper_splash_common.inc" _copy_rom2rom: copy_rom2rom: ; Disable intetrupts during the operation. ; Interrupt would, well, actually interrupt our operation ;-) ; And we don't need intterupts here. di ; Set border to predefined value ZX_SPLASH_ROMREAD_START_BORDER. ; ZX-uniper sniffs writes to port 254. ; When ZX_SPLASH_ROMREAD_START_BORDER value is sniffed, zx-uniper will ; page the physical ZX's ROM in (leaves ROMCS in high-Z, letting ULA ; to control this line). ld a, ZX_SPLASH_ROMREAD_START_BORDER out (254), a ; Wait in order to give zx-uniper some time (eg. to reconfigure bus operation handlers). ld b, 255 wait1: nop nop nop nop djnz wait1 ; Now we want to read the whole physical ROM, while zx-uniper sniffs ; the reads and stores values from data-bus to it's RAM. ; We abuse the CPI instruction here (to read values from ROM), because ; it has minimum side-effects (in contrast to LDI or OUTI). ; Start reading at address 0 (beginning of the ROM) ld hl, 0 ; Read 16 kB (the size of the ROM) ; TODO ZX Spectrum 128k is not supported yet, we copy only one ROM (page) here ld bc, 0x4000 ; Let's go reading! ; We unroll the loop a little in order to make it faster. ; (Make sure 0x4000 modulo number of operations in the unroller loop = 0) read_rom_loop: cpi cpi cpi cpi cpi cpi cpi cpi cpi cpi cpi cpi cpi cpi cpi cpi jp pe, read_rom_loop ; Here, we are done reading the ROM ; Set border to predefined value ZX_SPLASH_ROMREAD_END_BORDER in order ; to notify zx-uniper we are done (but it should actually know on its ; own due to sniffing our operations). ld a, ZX_SPLASH_ROMREAD_END_BORDER out (254), a ; Wait in order to give zx-uniper some time (eg. to reconfigure bus operation handlers). ld b, 255 wait2: nop nop nop nop djnz wait2 ; Enable interrupts again ei ; Restore black border ld a, 0 out (254), a inf_loop: jp inf_loop
25.56701
92
0.6625
464153b4d31ca63a791a9e6d64919e1a5a8b229a
198
asm
Assembly
libsrc/stdio_new/file/putchar.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/stdio_new/file/putchar.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/stdio_new/file/putchar.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; int __FASTCALL__ putchar(int c) ; 06.2008 aralbrec PUBLIC putchar EXTERN fputc_callee EXTERN ASMDISP_FPUTC_CALLEE, _stdout .putchar ld ix,(_stdout) jp fputc_callee + ASMDISP_FPUTC_CALLEE
16.5
41
0.787879
5d4ccb61cec5b5bae1f833931df9b9a65d85dbde
196
asm
Assembly
programs/oeis/200/A200919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/200/A200919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/200/A200919.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A200919: Number of crossings on periodic braids with n strands such that all strands meet. ; 0,0,0,1,3,5,9,13,19,25,34 trn $0,2 seq $0,8804 ; Expansion of 1/((1-x)^2*(1-x^2)*(1-x^4)). sub $0,1
28
92
0.653061
de8f6c5893b1fb6048eaf243d2a6e2ee435d171a
8,594
asm
Assembly
lib/i386/rc4asm.asm
timgates42/SymCrypt
263e3e6550a7ca5386fa5edcdb7dbd52702c0d50
[ "MIT" ]
null
null
null
lib/i386/rc4asm.asm
timgates42/SymCrypt
263e3e6550a7ca5386fa5edcdb7dbd52702c0d50
[ "MIT" ]
null
null
null
lib/i386/rc4asm.asm
timgates42/SymCrypt
263e3e6550a7ca5386fa5edcdb7dbd52702c0d50
[ "MIT" ]
1
2020-07-30T13:02:29.000Z
2020-07-30T13:02:29.000Z
; ; rc4asm.asm ; ; Copyright (c) Microsoft Corporation. Licensed under the MIT license. ; ; RC4 implementation in x86 assembler ; This is a new RC4 implementation for SymCrypt. ; It is NOT based on the existing one in RSA32.lib. ; TITLE "RC4" .586P _TEXT SEGMENT PARA PUBLIC USE32 'CODE' ASSUME CS:_TEXT, DS:FLAT, SS:FLAT include symcrypt_version.inc include symcrypt_magic.inc ; ; Structure definition that mirrors the SYMCRYPT_RC4_STATE struct ; RC4_STATE struct S db 256 dup (?) i db ? j db ? SYMCRYPT_MAGIC_FIELD RC4_STATE ends PUBLIC @SymCryptRc4InitAsm@12 PUBLIC @SymCryptRc4CryptAsm@16 BEFORE_PROC MACRO ; ; Our current x86 compiler inserts 5 0xcc bytes before every function ; and starts every function with a 2-byte NOP. ; This supports hot-patching. ; DB 5 dup (0cch) ENDM ; The .FPO provides debugging information. ; This stuff not well documented, ; but here is the information I've gathered about the arguments to .FPO ; ; In order: ; cdwLocals: Size of local variables, in DWords ; cdwParams: Size of parameters, in DWords. Given that this is all about ; stack stuff, I'm assuming this is only about parameters passed ; on the stack. ; cbProlog : Number of bytes in the prolog code. We have interleaved the ; prolog code with work for better performance. Most uses of ; .FPO seem to set this value to 0 anyway, which is what we ; will do. ; cbRegs : # registers saved in the prolog. 4 in our case ; fUseBP : 0 if EBP is not used as base pointer, 1 if EBP is used as base pointer ; cbFrame : Type of frame. ; 0 = FPO frame (no frame pointer) ; 1 = Trap frame (result of a CPU trap event) ; 2 = TSS frame ; ; Having looked at various occurrences of .FPO in the Windows code it ; seems to be used fairly sloppy, with lots of arguments left 0 even when ; they probably shouldn't be according to the spec. ; BEFORE_PROC @SymCryptRc4InitAsm@12 PROC ;VOID ;SYMCRYPT_CALL ;SymCryptRc4InitAsm( ; _Out_ PSYMCRYPT_RC4_STATE pState, ; _In_reads_bytes_( cbKey ) PCBYTE pbKey, ; _In_ SIZE_T cbKey ); ; ; NOTE: Unlike the SymCryptRc4Init function ; this function does not check the cbKey validity, and does not return an error code. ; Currently we don't have the error code values symbolically in the asm environment. ; We use an inlined function to generate the errors instead, and call this function ; only when there are no errors. ; Rc4InitFrame struct 4, NONUNIQUE pbKey dd ? SaveEdi dd ? SaveEsi dd ? SaveEbp dd ? SaveEbx dd ? ReturnAddress dd ? cbKey dd ? Rc4InitFrame ends .FPO(5,1,0,4,0,0) ; ecx = pState ; edx = pKey ; [esp + 4] = cbKey ; ; Set up stack frame, and initialize pbKey ; mov edi,edi ; 2-byte NOP for hot-patching push ebx push ebp push esi push edi push edx ; ; Initialize S[i] = i ; lea esi,[ecx + 100h] mov edi,ecx mov eax,03020100h mov ebx,04040404h @@: mov [edi],eax add eax,ebx mov [edi+4],eax add eax,ebx mov [edi+8],eax add eax,ebx mov [edi+12],eax add eax,ebx add edi,16 cmp edi,esi jb @B mov ebp,edx xor ebx,ebx ; j = 0 xor esi,esi ; i = 0 mov edi,[esp + Rc4InitFrame.cbKey] add edi, edx ; edi = pbKey + cbKey SymCryptRc4InitMainLoop: ; Registers: ; eax = Tmp1 ; ebx = j ; ecx = S ; edx = Tmp2 ; esi = i ; edi = keyLimit ; just beyond the key ; ebp = pKey ; pointer to current key byte movzx edx,byte ptr[ebp] ; get key byte add ebx,edx ; j += key byte movzx eax,byte ptr[ecx + esi] ; get S[i] add ebx,eax ; j += S[i] and ebx,0ffh movzx edx,byte ptr [ecx + ebx]; get S[j] mov byte ptr[ecx + ebx], al ; update S[j] mov byte ptr[ecx + esi], dl ; update S[i] add ebp,1 ; increment key pointer modulo key length cmp ebp,edi jb @F mov ebp,[esp + Rc4InitFrame.pbKey] @@: add esi,1 ; increment i cmp esi,100h jb SymCryptRc4InitMainLoop mov word ptr [ecx + RC4_STATE.i], 1 ; i = 1; j = 0 add esp,4 pop edi pop esi pop ebp pop ebx ret 4 @SymCryptRc4InitAsm@12 ENDP BEFORE_PROC @SymCryptRc4CryptAsm@16 PROC ;VOID ;SYMCRYPT_CALL ;SymCryptRc4Crypt( ; _Inout_ PSYMCRYPT_RC4_STATE pState, ; _In_reads_bytes_( cbData ) PCBYTE pbSrc, ; _Out_writes_bytes_( cbData ) PBYTE pbDst, ; _In_ SIZE_T cbData ) Rc4CryptFrame struct 4, NONUNIQUE pbEndDst dd ? SaveEdi dd ? SaveEsi dd ? SaveEbp dd ? SaveEbx dd ? ReturnAddress dd ? pbDst dd ? cbData dd ? Rc4CryptFrame ends .FPO(5,2,0,4,0,0) mov edi,edi push ebx push ebp push esi push edi sub esp,4 SYMCRYPT_CHECK_MAGIC ecx, RC4_STATE mov eax,[esp + Rc4CryptFrame.cbData] test eax,eax jz Rc4CryptDoNothing mov ebp,[esp + Rc4CryptFrame.pbDst] add eax,ebp mov [esp + Rc4CryptFrame.pbEndDst], eax mov edi, edx movzx edx,[ecx + RC4_STATE.i] movzx esi,[ecx + RC4_STATE.j] ; ; Further perf improvements are possible. ; Instead of encrypting byte-by-byte, we can collect 4 bytes of the key ; stream in a register, and then encrypt 4 bytes at a time. ; This reduces the # memory operations we do per byte. ; Ideally this is done with aligned operations, either ; aligning to pbSrc, pbDst, or to i (which removes the need to increment i every time). ; @@: ; eax Ti ; ebx Tj ; ecx S ; edx i ; esi j ; edi pSrc ; ebp pDst movzx eax, byte ptr[ecx + edx] ; Ti = S[i] ;add esi, eax ;and esi, 0ffh lea ebx, [esi + eax] movzx esi, bl ; j += Ti movzx ebx, byte ptr[ecx + esi] ; Tj = S[j] mov [ecx + edx], bl ; S[i] = Tj mov [ecx + esi], al ; S[j] = Ti ;add eax,ebx ;and eax,0ffh lea eax,[eax + ebx] movzx eax,al ; Ti = Ti + Tj mov al,[ecx + eax] ; Til = S[Ti] ;add edx, 1 ;and 0ffh lea edx,[edx + 1] movzx edx,dl ; i += 1 xor al,[edi] add edi,1 mov [ebp],al add ebp, 1 cmp ebp,[esp + Rc4CryptFrame.pbEndDst] jb @B mov eax, esi mov [ecx + RC4_STATE.i], dl mov [ecx + RC4_STATE.j], al Rc4CryptDoNothing: add esp,4 pop edi pop esi pop ebp pop ebx ret 8 @SymCryptRc4CryptAsm@16 ENDP _TEXT ENDS END
27.28254
96
0.473703
3f7ea3d331cb980283434254525c414e432e4c52
120
asm
Assembly
sw/552tests/complex_demo2/perf-test-dep-ld.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
1
2022-02-15T16:03:25.000Z
2022-02-15T16:03:25.000Z
sw/552tests/complex_demo2/perf-test-dep-ld.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
sw/552tests/complex_demo2/perf-test-dep-ld.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
lbi r0, 0 ld r1, r0, 0 addi r2, r1, 0 ld r1, r0, 2 add r2, r1, r2 ld r1, r0, 4 add r2, r1, r2 halt
12
17
0.483333
a03173dfaec841beb492f3b1f8250a2f3fe6f7f9
983
asm
Assembly
data/phone/text/tiffany_overworld.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
data/phone/text/tiffany_overworld.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
data/phone/text/tiffany_overworld.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
TiffanyAskNumber1Text: text "Hi! You like" line "CLEFAIRY too?" para "They're so very" line "cute, aren't they?" para "I think we can be" line "good friends!" para "I want to know" line "your phone number!" para "Let's talk about" line "CLEFAIRY!" done TiffanyAskNumber2Text: text "I want to know" line "your phone number!" para "Let's talk about" line "CLEFAIRY!" done TiffanyNumberAcceptedText: text "Isn't my CLEFAIRY" line "super-adorable?" done TiffanyNumberDeclinedText: text "Aww… Oh well." line "Look for me if you" para "want to talk about" line "CLEFAIRY." done TiffanyPhoneFullText: text "Oh? Your phone" line "registry is full." done TiffanyRematchText: text "There you are!" para "CLEFAIRY, I want" line "you to try hard!" done TiffanyGiftText: text "You took a long" line "time. See this?" para "Isn't it cute?" line "It's a PINK BOW." done TiffanyPackFullText: text "Uh-oh. Your PACK" line "is crammed full." done
15.603175
26
0.697864
75ca3675a08276d98c8c8edecb5e7db9f0cb6b94
1,735
asm
Assembly
src/util/icon/gotofn.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/icon/gotofn.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/icon/gotofn.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
* Sprite gotofn * * Mode 4 * +----|---------------+ * - g gg ggg w w - * |g g g g ww ww | * |g gg ggg wwwww | * |g g g g wwwww | * | g g ggg wwwww | * | wwwwwwwww | * | wwwwwww | * | wwwww | * | www | * | w | * | | * | www w w w w w | * | w w w ww w w w| * | ww w w w ww w | * | w w w w w w w| * | w w w w w | * +----|---------------+ * section sprite xdef mes_gotofn mes_gotofn dc.w $0100,$0000 dc.w 20,16,4,0 dc.l mcs_gotofn-* dc.l mms_gotofn-* dc.l 0 mcs_gotofn dc.w $5B00,$8808 dc.w $8080,$0000 dc.w $9200,$8D0D dc.w $8080,$0000 dc.w $9B00,$8F0F dc.w $8080,$0000 dc.w $9200,$8F0F dc.w $8080,$0000 dc.w $5300,$8F0F dc.w $8080,$0000 dc.w $0000,$3F3F dc.w $E0E0,$0000 dc.w $0000,$1F1F dc.w $C0C0,$0000 dc.w $0000,$0F0F dc.w $8080,$0000 dc.w $0000,$0707 dc.w $0000,$0000 dc.w $0000,$0202 dc.w $0000,$0000 dc.w $0000,$0000 dc.w $0000,$0000 dc.w $0E0E,$A9A9 dc.w $2020,$0000 dc.w $0808,$ADAD dc.w $5050,$0000 dc.w $0C0C,$ABAB dc.w $4040,$0000 dc.w $0808,$A9A9 dc.w $5050,$0000 dc.w $0808,$4949 dc.w $2020,$0000 mms_gotofn dc.w $5B5B,$8888 dc.w $8080,$0000 dc.w $9292,$8D8D dc.w $8080,$0000 dc.w $9B9B,$8F8F dc.w $8080,$0000 dc.w $9292,$8F8F dc.w $8080,$0000 dc.w $5353,$8F8F dc.w $8080,$0000 dc.w $0000,$3F3F dc.w $E0E0,$0000 dc.w $0000,$1F1F dc.w $C0C0,$0000 dc.w $0000,$0F0F dc.w $8080,$0000 dc.w $0000,$0707 dc.w $0000,$0000 dc.w $0000,$0202 dc.w $0000,$0000 dc.w $0000,$0000 dc.w $0000,$0000 dc.w $0E0E,$A9A9 dc.w $2020,$0000 dc.w $0808,$ADAD dc.w $5050,$0000 dc.w $0C0C,$ABAB dc.w $4040,$0000 dc.w $0808,$A9A9 dc.w $5050,$0000 dc.w $0808,$4949 dc.w $2020,$0000 * end
17.35
24
0.540634
05c75ac5cfbcbc1cd1d11e57a3937d8f7a4a2a44
60
asm
Assembly
c51-assembler/stack.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
10
2018-04-05T05:12:15.000Z
2022-03-18T19:06:53.000Z
c51-assembler/stack.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
null
null
null
c51-assembler/stack.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
7
2020-02-09T15:07:15.000Z
2021-11-04T09:17:39.000Z
ORG 0000H MOV A,#255 MOV B,#10 ADD A,B MOV P0,A END
7.5
11
0.583333
22292481db79f70ad4588e5231075f93fbf0f320
1,059
asm
Assembly
libsrc/_DEVELOPMENT/arch/zx/esxdos/z80/asm_esxdos_f_opendir.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zx/esxdos/z80/asm_esxdos_f_opendir.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zx/esxdos/z80/asm_esxdos_f_opendir.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; uchar esxdos_f_opendir(char *path) ; uchar esxdos_f_opendir_p3(char *path) INCLUDE "config_private.inc" SECTION code_clib SECTION code_esxdos PUBLIC asm_esxdos_f_opendir EXTERN __esxdos_error_mc asm_esxdos_f_opendir: ; F_OPENDIR: ; Open dir. ; ; A=drive ; HL=Pointer to null-terminated string containg path to dir ; B=dir access mode (only BASIC header bit matters - if you ; want to read header info or not) ; ; On return if OK, A=dir handle. ; ; enter : a = uchar drive ; b = 0 or __ESXDOS_MODE_USE_HEADER ; hl = char *path ; ; note : hl is the parameter for dot commands and ix is used otherwise ; ; exit : success ; ; l = dir handle ; carry reset ; ; error ; ; hl = -1 ; carry set, errno set ; ; uses : unknown IF __SDCC_IY push hl pop iy ELSE push hl pop ix ENDIF rst __ESXDOS_SYSCALL defb __ESXDOS_SYS_F_OPENDIR ld l,a ret nc jp __esxdos_error_mc
18.258621
74
0.602455
49e024de8a96f1235743ffe878ad7735821ed226
145
asm
Assembly
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/sf2/gstrats.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/sf2/gstrats.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/sf2/gstrats.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: gstrats.asm Type: file Size: 64594 Last-Modified: '1993-03-02T01:40:45Z' SHA-1: B2A3B073772FE79BB67EDC8C57CDCBE18871D7BE Description: null
20.714286
47
0.813793
aba61eac58413345f9862ff59638c213f2d88b08
325
asm
Assembly
oeis/021/A021797.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021797.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021797.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021797: Decimal expansion of 1/793. ; Submitted by Jon Maiga ; 0,0,1,2,6,1,0,3,4,0,4,7,9,1,9,2,9,3,8,2,0,9,3,3,1,6,5,1,9,5,4,6,0,2,7,7,4,2,7,4,9,0,5,4,2,2,4,4,6,4,0,6,0,5,2,9,6,3,4,3,0,0,1,2,6,1,0,3,4,0,4,7,9,1,9,2,9,3,8,2,0,9,3,3,1,6,5,1,9,5,4,6,0,2,7,7,4,2,7 add $0,1 mov $2,10 pow $2,$0 div $2,793 mov $0,$2 mod $0,10
29.545455
199
0.556923
75d07d880a90f978051316684d37cdb95d300bf0
429
asm
Assembly
alice1/rom1.asm
lkesteloot/alice
44b85caf744e5830536b5e813e761cc0ce3f695e
[ "Apache-2.0" ]
63
2015-08-14T23:27:39.000Z
2022-03-09T22:46:11.000Z
alice1/rom1.asm
lkesteloot/alice
44b85caf744e5830536b5e813e761cc0ce3f695e
[ "Apache-2.0" ]
64
2015-09-11T23:13:03.000Z
2018-10-29T09:38:06.000Z
alice1/rom1.asm
lkesteloot/alice
44b85caf744e5830536b5e813e761cc0ce3f695e
[ "Apache-2.0" ]
9
2016-01-06T00:06:33.000Z
2021-12-07T10:38:15.000Z
OB1 EQU 0C0H OB2 EQU 00DH OB3 EQU 0DEH OB4 EQU 0E1H OB5 EQU 015H OB6 EQU 05CH OB7 EQU 0C0H OB8 EQU 00DH OB9 EQU 0DEH LD A, OB1 OUT (0), A LD A, OB2 OUT (0), A LD A, OB3 OUT (0), A LD A, OB4 OUT (0), A LD A, OB5 OUT (0), A LD A, OB6 OUT (0), A LD A, OB7 OUT (0), A LD A, OB8 OUT (0), A LD A, OB9 OUT (0), A OUT (0), A OUT (0), A OUT (0), A OUT (0), A LD A, 0 LOOP OUT (0), A INC A JP LOOP HALT END
9.976744
12
0.55711
b51e17918dd4a52d13b92d0d40cd8e3a136947ba
754
asm
Assembly
oeis/028/A028028.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/028/A028028.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/028/A028028.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A028028: Expansion of 1/((1-3*x)*(1-4*x)*(1-5*x)*(1-9*x)). ; Submitted by Simon Strandgaard ; 1,21,286,3234,33187,322455,3035152,28040628,256229413,2326373049,21042916258,189930286182,1712158289479,15423616827003,138884571944404,1250325501927096,11254768340210185,101302177508279517,911766183522100390,8206129677461670570,73856341613555028331,664712964664800205791,5982446202971827605016,53842163712882124383804,484580213971670117380717,4361225633024743807601025,39251049251628030936279082,353259536108713679011333998,3179336289486891859800464143,28614028929077086095171220419 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,18911 ; Expansion of 1/((1-4x)(1-5x)(1-9x)). sub $0,$1 mul $1,4 add $1,$0 lpe mov $0,$1
41.888889
484
0.793103
51d39cf8346433966acbe371d4f50e8bed19f635
556
asm
Assembly
oeis/017/A017038.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017038.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017038.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017038: a(n) = (7*n + 4)^10. ; 1048576,25937424601,3570467226624,95367431640625,1125899906842624,8140406085191601,42420747482776576,174887470365513049,604661760000000000,1822837804551761449,4923990397355877376,12157665459056928801,27850097600940212224,59873693923837890625,121899441999475713024,236736367459211723401,441143507864991563776,792594609605189126649,1378584918490000000000,2329194047563391944849,3833759992447475122176,6162677950336718514001,9695514708609891533824,14956826027973134765625,22661281678134344679424 mul $0,7 add $0,4 pow $0,10
79.428571
494
0.895683
1a9e1b017efc7c10465d3204feb88c6276ae0c88
370
asm
Assembly
programs/oeis/112/A112347.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/112/A112347.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/112/A112347.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A112347: Kronecker symbol (-1, n) except a(0) = 0. ; 0,1,1,-1,1,1,-1,-1,1,1,1,-1,-1,1,-1,-1,1,1,1,-1,1,1,-1,-1,-1,1,1,-1,-1,1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,1,-1,-1,1,-1,-1,-1,1,1,-1,1,1,-1,-1,-1,1,1,-1,-1,1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,1,-1,-1,1,-1,-1,1,1,1,-1,1,1,-1,-1,-1,1,1,-1,-1,1,-1,-1,-1,1,1,-1 mov $1,$0 seq $1,121238 ; a(n) = (-1)^(1+n+A088585(n)). min $0,$1
52.857143
249
0.448649
90fd889588005cbbb476c4c35cdabc08d33120a8
1,344
asm
Assembly
include/test/misc.asm
eyalabraham/dragon
115532f44de70252e9014bff07ca1704d218bcf8
[ "MIT" ]
null
null
null
include/test/misc.asm
eyalabraham/dragon
115532f44de70252e9014bff07ca1704d218bcf8
[ "MIT" ]
1
2021-03-31T18:40:59.000Z
2022-01-04T03:16:16.000Z
include/test/misc.asm
eyalabraham/dragon
115532f44de70252e9014bff07ca1704d218bcf8
[ "MIT" ]
null
null
null
; ; misc.asm ; ; MC6809E emulator test code for compare and value move. ; All tests will use direct or immediate addressing for simplicity, ; other addressing modes will be tested separately. ; jmp start ; setcf: equ $01 clrcf: equ $fe ; varstart equ * ; var0: fcb $ff var1: fcb $55 var2: fcb $aa var3: fcb $01 var4: fcb $80 var5: fcb $00 ; varend: equ * varlen: equ varend-varstart ; temp: fcb 0 ; start: andcc #0 ; zero CC bits ; ; TST ; lda var1 ldb var2 orcc #$0f ; flags NZVC tsta ; flags nzvC tstb ; flags NzvC tst temp ; flags nZvC ; ; EXG ; lda var0 ldb var1 exg a,b ldx var2 exg d,x ; ; TFR ; tfr x,y tfr y,d tfr d,u ; ; SEX ; ldb var1 sex ldb var2 sex ; ; BIT ; lda #$55 bita var3 bita var4 ldb #$aa bitb var4 bitb var3 ; nop ; ; End of test
18.929577
67
0.37872
41191a2b81090ca527f033217e96e5efa5de20fd
4,780
asm
Assembly
kernel/asm/startup-x86_64.asm
pwoolcoc/redox
87f5ea23d26502494439cbf2a094bb5102f989b8
[ "MIT" ]
null
null
null
kernel/asm/startup-x86_64.asm
pwoolcoc/redox
87f5ea23d26502494439cbf2a094bb5102f989b8
[ "MIT" ]
null
null
null
kernel/asm/startup-x86_64.asm
pwoolcoc/redox
87f5ea23d26502494439cbf2a094bb5102f989b8
[ "MIT" ]
null
null
null
%include "asm/startup-common.asm" startup_arch: cli ; setting up Page Tables ; Identity Mapping first GB mov ax, 0x7000 mov es, ax xor edi, edi xor eax, eax mov ecx, 3 * 4096 / 4 ;PML4, PDP, PD / moves 4 Bytes at once cld rep stosd xor edi, edi ;Link first PML4 to PDP mov DWORD [es:edi], 0x71000 | 1 << 1 | 1 add edi, 0x1000 ;Link first PDP to PD mov DWORD [es:edi], 0x72000 | 1 << 1 | 1 add edi, 0x1000 ;Link all PD's (512 per PDP, 2MB each)y mov ebx, 1 << 7 | 1 << 1 | 1 mov ecx, 512 .setpd: mov [es:edi], ebx add ebx, 0x200000 add edi, 8 loop .setpd xor ax, ax mov es, ax ;cr3 holds pointer to PML4 mov edi, 0x70000 mov cr3, edi ;enable Page Address Extension and Page Size Extension mov eax, cr4 or eax, 1 << 5 | 1 << 4 mov cr4, eax ; load protected mode GDT lgdt [gdtr] mov ecx, 0xC0000080 ; Read from the EFER MSR. rdmsr or eax, 0x00000100 ; Set the Long-Mode-Enable bit. wrmsr ;enabling paging and protection simultaneously mov ebx, cr0 or ebx, 0x80000001 ;Bit 31: Paging, Bit 0: Protected Mode mov cr0, ebx ; far jump to enable Long Mode and load CS with 64 bit segment jmp gdt.kernel_code:long_mode USE64 long_mode: ; load all the other segments with 64 bit data segments mov rax, gdt.kernel_data mov ds, rax mov es, rax mov fs, rax mov gs, rax mov ss, rax ; load long mode IDT lidt [idtr] mov rsp, 0x800000 - 128 mov rax, gdt.tss ltr ax ;rust init mov eax, [kernel_base + 0x18] mov [interrupts.handler], rax mov rax, tss int 0xFF .lp: sti hlt jmp .lp gdtr: dw gdt.end + 1 ; size dq gdt ; offset gdt: .null equ $ - gdt dq 0 .kernel_code equ $ - gdt istruc GDTEntry at GDTEntry.limitl, dw 0 at GDTEntry.basel, dw 0 at GDTEntry.basem, db 0 at GDTEntry.attribute, db attrib.present | attrib.user | attrib.code at GDTEntry.flags__limith, db flags.long_mode at GDTEntry.baseh, db 0 iend .kernel_data equ $ - gdt istruc GDTEntry at GDTEntry.limitl, dw 0 at GDTEntry.basel, dw 0 at GDTEntry.basem, db 0 ; AMD System Programming Manual states that the writeable bit is ignored in long mode, but ss can not be set to this descriptor without it at GDTEntry.attribute, db attrib.present | attrib.user | attrib.writable at GDTEntry.flags__limith, db 0 at GDTEntry.baseh, db 0 iend .user_code equ $ - gdt istruc GDTEntry at GDTEntry.limitl, dw 0 at GDTEntry.basel, dw 0 at GDTEntry.basem, db 0 at GDTEntry.attribute, db attrib.present | attrib.ring3 | attrib.user | attrib.code at GDTEntry.flags__limith, db flags.long_mode at GDTEntry.baseh, db 0 iend .user_data equ $ - gdt istruc GDTEntry at GDTEntry.limitl, dw 0 at GDTEntry.basel, dw 0 at GDTEntry.basem, db 0 ; AMD System Programming Manual states that the writeable bit is ignored in long mode, but ss can not be set to this descriptor without it at GDTEntry.attribute, db attrib.present | attrib.ring3 | attrib.user | attrib.writable at GDTEntry.flags__limith, db 0 at GDTEntry.baseh, db 0 iend .tss equ $ - gdt istruc GDTEntry at GDTEntry.limitl, dw (tss.end - tss) & 0xFFFF at GDTEntry.basel, dw (tss-$$+0x7C00) & 0xFFFF at GDTEntry.basem, db ((tss-$$+0x7C00) >> 16) & 0xFF at GDTEntry.attribute, db attrib.present | attrib.ring3 | attrib.tssAvailabe64 at GDTEntry.flags__limith, db ((tss.end - tss) >> 16) & 0xF at GDTEntry.baseh, db ((tss-$$+0x7C00) >> 24) & 0xFF iend dq 0 ;tss descriptors are extended to 16 Bytes .end equ $ - gdt struc TSS .reserved1 resd 1 ;The previous TSS - if we used hardware task switching this would form a linked list. .rsp0 resq 1 ;The stack pointer to load when we change to kernel mode. .rsp1 resq 1 ;everything below here is unused now.. .rsp2 resq 1 .reserved2 resd 1 .reserved3 resd 1 .ist1 resq 1 .ist2 resq 1 .ist3 resq 1 .ist4 resq 1 .ist5 resq 1 .ist6 resq 1 .ist7 resq 1 .reserved4 resd 1 .reserved5 resd 1 .reserved6 resw 1 .iomap_base resw 1 endstruc tss: istruc TSS at TSS.rsp0, dd 0x800000 - 128 at TSS.iomap_base, dw 0xFFFF iend .end: %include "asm/interrupts-x86_64.asm"
26.703911
142
0.598326
c672024bbddeb5fdfdeba9d2da40bbbaed9aa1aa
493
asm
Assembly
m3-sys/m3cc/gcc-apple/gcc/config/i386/lib1funcs.asm
jaykrell/cm3
2aae7d9342b8e26680f6419f9296450fae8cbd4b
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
105
2015-03-02T16:58:34.000Z
2022-03-28T07:17:49.000Z
m3-sys/m3cc/gcc-apple/gcc/config/i386/lib1funcs.asm
jaykrell/cm3
2aae7d9342b8e26680f6419f9296450fae8cbd4b
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
145
2015-03-18T10:08:17.000Z
2022-03-31T01:27:08.000Z
m3-sys/m3cc/gcc-apple/gcc/config/i386/lib1funcs.asm
jaykrell/cm3
2aae7d9342b8e26680f6419f9296450fae8cbd4b
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
26
2015-10-10T09:37:44.000Z
2022-02-23T02:02:05.000Z
# APPLE LOCAL file 4099000 #ifndef __x86_64__ #define THUNK(REG) \ .private_extern ___i686.get_pc_thunk.REG ;\ ___i686.get_pc_thunk.REG: ;\ movl (%esp,1),%REG ;\ ret ; #ifdef L_get_pc_thunk_ax THUNK(eax) #endif #ifdef L_get_pc_thunk_dx THUNK(edx) #endif #ifdef L_get_pc_thunk_cx THUNK(ecx) #endif #ifdef L_get_pc_thunk_bx THUNK(ebx) #endif #ifdef L_get_pc_thunk_si THUNK(esi) #endif #ifdef L_get_pc_thunk_di THUNK(edi) #endif #ifdef L_get_pc_thunk_bp THUNK(ebp) #endif #endif
15.903226
43
0.756592
5e8f6d0261337487f12edf8a1f6b48103dea15fe
324
asm
Assembly
programs/oeis/016/A016014.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016014.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016014.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016014: Least k such that 2*n*k + 1 is a prime. ; 1,1,1,2,1,1,2,1,1,2,1,3,2,1,1,3,3,1,5,1,1,2,1,2,2,1,2,2,1,1,5,3,1,2,1,1,2,3,1,3,1,4,2,1,2,3,3,1,2,1,1,3,1,1,3,1,2,2,6,2,3,3,1,2,1,3,2,1,1,2,4,3,2,1,1,3,3,1,2,4,1,5,1,2,6,1,2,2,1,1,3,7,2,5,1,1,2,1,1,2 mul $0,2 add $0,1 seq $0,34693 ; Smallest k such that k*n+1 is prime.
46.285714
201
0.552469
a7c2393b7fd3c6587e27a8a0fb075dc73bf5ed59
110
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/cosh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/cosh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/cosh.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC cosh EXTERN cm48_sccz80_cosh defc cosh = cm48_sccz80_cosh
11
28
0.845455
a4c5bed0deec99e287d5bea00e72015b740089e8
252
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sccz80/_strrstrip_.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/string/c/sccz80/_strrstrip_.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/string/c/sccz80/_strrstrip_.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; char *_strrstrip_(const char *s) SECTION code_clib SECTION code_string PUBLIC _strrstrip_ EXTERN asm__strrstrip defc _strrstrip_ = asm__strrstrip ; SDCC bridge for Classic IF __CLASSIC PUBLIC __strrstrip_ defc __strrstrip_ = _strrstrip_ ENDIF
13.263158
34
0.81746
b74a2bccd6e99efe03802a7078213f03fa5796cd
152
asm
Assembly
programs/oeis/170/A170956.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/170/A170956.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/170/A170956.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A170956: Expansion of Product_{i=1..m} (1 + x^(4*i-1)) for m = 3. ; 1,0,0,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,0,1 mul $0,2 mod $0,11 gcd $0,3 div $0,2
19
67
0.539474
d56434f5af361348296c2560b9aa531f75ef8554
60
asm
Assembly
libsrc/fcntl/nc100/_fnoisy.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/nc100/_fnoisy.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/nc100/_fnoisy.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
PUBLIC _fnoisy ; fastcall _fnoisy ex de, hl jp 0xb917
12
18
0.7
5b59bac370b42f6d310bebec610202b5470e042f
815
asm
Assembly
oeis/293/A293561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/293/A293561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/293/A293561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A293561: Column 3 of A142249. ; Submitted by Christian Krause ; 3,19,80,286,945,2997,9294,28456,86471,261559,788892,2375010,7141581,21457705,64438874,193447948,580606275,1742343435,5228079240,15686335270,47063200553,141197990749,423610749990,1270865804976,3812664524415,11438127791647,34314651811124,102944492305066,308834550657861,926505799458129,2779521693342642,8338573669963540,25015738189760891,75047248929022195,225141815506544544,675425583958588398,2026277026753673505,6078831630016835845,18236495989562136830,54709490167709667640,164128474901175515703 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,112495 ; Third column of triangle A112493 used for e.g.f.s of Stirling2 diagonals. mov $2,$3 mul $2,$0 add $4,$2 lpe min $5,1 mul $5,2 mul $5,$0 mov $0,$4 sub $0,$5
37.045455
497
0.797546
ff2f2188d98b67c41ae0deb960b8be55a957ebdf
578
asm
Assembly
oeis/195/A195316.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/195/A195316.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/195/A195316.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A195316: Centered 36-gonal numbers. ; 1,37,109,217,361,541,757,1009,1297,1621,1981,2377,2809,3277,3781,4321,4897,5509,6157,6841,7561,8317,9109,9937,10801,11701,12637,13609,14617,15661,16741,17857,19009,20197,21421,22681,23977,25309,26677,28081,29521,30997,32509,34057,35641,37261,38917,40609,42337,44101,45901,47737,49609,51517,53461,55441,57457,59509,61597,63721,65881,68077,70309,72577,74881,77221,79597,82009,84457,86941,89461,92017,94609,97237,99901,102601,105337,108109,110917,113761,116641,119557,122509,125497,128521,131581,134677 add $0,1 bin $0,2 mul $0,36 add $0,1
72.25
501
0.801038
d6bdd0fb39616659ece431e8682c6acc1143f4eb
1,491
asm
Assembly
msquic/msvc/evercrypt/amd64/cpuid-x86_64-msvc.asm
ThadHouse/everest-dist
4e71b972d4629ac8a562d7f161e4995b32900309
[ "Apache-2.0" ]
1
2019-11-22T20:15:11.000Z
2019-11-22T20:15:11.000Z
msquic/msvc/evercrypt/amd64/cpuid-x86_64-msvc.asm
ThadHouse/everest-dist
4e71b972d4629ac8a562d7f161e4995b32900309
[ "Apache-2.0" ]
null
null
null
msquic/msvc/evercrypt/amd64/cpuid-x86_64-msvc.asm
ThadHouse/everest-dist
4e71b972d4629ac8a562d7f161e4995b32900309
[ "Apache-2.0" ]
2
2019-11-22T20:29:17.000Z
2020-03-13T16:59:49.000Z
.code ALIGN 16 check_aesni proc mov r9, rbx mov rcx, 0 mov rax, 1 cpuid mov rax, rcx and rax, 33554432 shr rax, 24 and rcx, 2 and rax, rcx mov rbx, r9 ret check_aesni endp ALIGN 16 check_sha proc mov r9, rbx mov rax, 7 mov rcx, 0 cpuid and rbx, 536870912 mov rax, rbx mov rbx, r9 ret check_sha endp ALIGN 16 check_adx_bmi2 proc mov r9, rbx mov rax, 7 mov rcx, 0 cpuid mov rax, rbx and rax, 524288 shr rax, 11 and rbx, 256 and rax, rbx mov rbx, r9 ret check_adx_bmi2 endp ALIGN 16 check_avx proc mov r9, rbx mov rcx, 0 mov rax, 1 cpuid mov rax, rcx and rax, 268435456 shr rax, 27 mov rbx, r9 ret check_avx endp ALIGN 16 check_avx2 proc mov r9, rbx mov rax, 7 mov rcx, 0 cpuid and rbx, 32 mov rax, rbx mov rbx, r9 ret check_avx2 endp ALIGN 16 check_movbe proc mov r9, rbx mov rcx, 0 mov rax, 1 cpuid mov rax, rcx and rax, 4194304 shr rax, 21 mov rbx, r9 ret check_movbe endp ALIGN 16 check_sse proc mov r9, rbx mov rcx, 0 mov rax, 1 cpuid mov rax, rcx and rax, 524288 and rcx, 512 and rdx, 67108864 shr rax, 10 shr rdx, 17 and rax, rdx and rax, rcx mov rbx, r9 ret check_sse endp ALIGN 16 check_rdrand proc mov r9, rbx mov rcx, 0 mov rax, 1 cpuid mov rax, rcx and rax, 1073741824 shr rax, 29 mov rbx, r9 ret check_rdrand endp end
14.066038
22
0.609658
aef1fb69f94f98ec832df4b03c8d1870c6f3a88c
333
asm
Assembly
oeis/021/A021777.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021777.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021777.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021777: Decimal expansion of 1/773. ; Submitted by Jamie Morken(s4.) ; 0,0,1,2,9,3,6,6,1,0,6,0,8,0,2,0,6,9,8,5,7,6,9,7,2,8,3,3,1,1,7,7,2,3,1,5,6,5,3,2,9,8,8,3,5,7,0,5,0,4,5,2,7,8,1,3,7,1,2,8,0,7,2,4,4,5,0,1,9,4,0,4,9,1,5,9,1,2,0,3,1,0,4,7,8,6,5,4,5,9,2,4,9,6,7,6,5,8,4 add $0,1 mov $2,10 pow $2,$0 div $2,773 mov $0,$2 mod $0,10
30.272727
199
0.558559
cc4b6e4cd3e93116785d7e2bae1467e756fa3949
46,364
nasm
Assembly
example-output/SyscallsStubs.x86.nasm
xenoscr/SysWhispers2
545c3968f1b7709b2ccba2ac22453732befafd12
[ "Apache-2.0" ]
88
2022-03-03T01:56:35.000Z
2022-03-22T06:48:31.000Z
example-output/SyscallsStubs.x86.nasm
xenoscr/SysWhispers2
545c3968f1b7709b2ccba2ac22453732befafd12
[ "Apache-2.0" ]
null
null
null
example-output/SyscallsStubs.x86.nasm
xenoscr/SysWhispers2
545c3968f1b7709b2ccba2ac22453732befafd12
[ "Apache-2.0" ]
11
2022-03-03T11:13:00.000Z
2022-03-18T09:51:05.000Z
[SECTION .data] global _NtAccessCheck global _NtWorkerFactoryWorkerReady global _NtAcceptConnectPort global _NtMapUserPhysicalPagesScatter global _NtWaitForSingleObject global _NtCallbackReturn global _NtReadFile global _NtDeviceIoControlFile global _NtWriteFile global _NtRemoveIoCompletion global _NtReleaseSemaphore global _NtReplyWaitReceivePort global _NtReplyPort global _NtSetInformationThread global _NtSetEvent global _NtClose global _NtQueryObject global _NtQueryInformationFile global _NtOpenKey global _NtEnumerateValueKey global _NtFindAtom global _NtQueryDefaultLocale global _NtQueryKey global _NtQueryValueKey global _NtAllocateVirtualMemory global _NtQueryInformationProcess global _NtWaitForMultipleObjects32 global _NtWriteFileGather global _NtCreateKey global _NtFreeVirtualMemory global _NtImpersonateClientOfPort global _NtReleaseMutant global _NtQueryInformationToken global _NtRequestWaitReplyPort global _NtQueryVirtualMemory global _NtOpenThreadToken global _NtQueryInformationThread global _NtOpenProcess global _NtSetInformationFile global _NtMapViewOfSection global _NtAccessCheckAndAuditAlarm global _NtUnmapViewOfSection global _NtReplyWaitReceivePortEx global _NtTerminateProcess global _NtSetEventBoostPriority global _NtReadFileScatter global _NtOpenThreadTokenEx global _NtOpenProcessTokenEx global _NtQueryPerformanceCounter global _NtEnumerateKey global _NtOpenFile global _NtDelayExecution global _NtQueryDirectoryFile global _NtQuerySystemInformation global _NtOpenSection global _NtQueryTimer global _NtFsControlFile global _NtWriteVirtualMemory global _NtCloseObjectAuditAlarm global _NtDuplicateObject global _NtQueryAttributesFile global _NtClearEvent global _NtReadVirtualMemory global _NtOpenEvent global _NtAdjustPrivilegesToken global _NtDuplicateToken global _NtContinue global _NtQueryDefaultUILanguage global _NtQueueApcThread global _NtYieldExecution global _NtAddAtom global _NtCreateEvent global _NtQueryVolumeInformationFile global _NtCreateSection global _NtFlushBuffersFile global _NtApphelpCacheControl global _NtCreateProcessEx global _NtCreateThread global _NtIsProcessInJob global _NtProtectVirtualMemory global _NtQuerySection global _NtResumeThread global _NtTerminateThread global _NtReadRequestData global _NtCreateFile global _NtQueryEvent global _NtWriteRequestData global _NtOpenDirectoryObject global _NtAccessCheckByTypeAndAuditAlarm global _NtWaitForMultipleObjects global _NtSetInformationObject global _NtCancelIoFile global _NtTraceEvent global _NtPowerInformation global _NtSetValueKey global _NtCancelTimer global _NtSetTimer global _NtAccessCheckByType global _NtAccessCheckByTypeResultList global _NtAccessCheckByTypeResultListAndAuditAlarm global _NtAccessCheckByTypeResultListAndAuditAlarmByHandle global _NtAcquireProcessActivityReference global _NtAddAtomEx global _NtAddBootEntry global _NtAddDriverEntry global _NtAdjustGroupsToken global _NtAdjustTokenClaimsAndDeviceGroups global _NtAlertResumeThread global _NtAlertThread global _NtAlertThreadByThreadId global _NtAllocateLocallyUniqueId global _NtAllocateReserveObject global _NtAllocateUserPhysicalPages global _NtAllocateUuids global _NtAllocateVirtualMemoryEx global _NtAlpcAcceptConnectPort global _NtAlpcCancelMessage global _NtAlpcConnectPort global _NtAlpcConnectPortEx global _NtAlpcCreatePort global _NtAlpcCreatePortSection global _NtAlpcCreateResourceReserve global _NtAlpcCreateSectionView global _NtAlpcCreateSecurityContext global _NtAlpcDeletePortSection global _NtAlpcDeleteResourceReserve global _NtAlpcDeleteSectionView global _NtAlpcDeleteSecurityContext global _NtAlpcDisconnectPort global _NtAlpcImpersonateClientContainerOfPort global _NtAlpcImpersonateClientOfPort global _NtAlpcOpenSenderProcess global _NtAlpcOpenSenderThread global _NtAlpcQueryInformation global _NtAlpcQueryInformationMessage global _NtAlpcRevokeSecurityContext global _NtAlpcSendWaitReceivePort global _NtAlpcSetInformation global _NtAreMappedFilesTheSame global _NtAssignProcessToJobObject global _NtAssociateWaitCompletionPacket global _NtCallEnclave global _NtCancelIoFileEx global _NtCancelSynchronousIoFile global _NtCancelTimer2 global _NtCancelWaitCompletionPacket global _NtCommitComplete global _NtCommitEnlistment global _NtCommitRegistryTransaction global _NtCommitTransaction global _NtCompactKeys global _NtCompareObjects global _NtCompareSigningLevels global _NtCompareTokens global _NtCompleteConnectPort global _NtCompressKey global _NtConnectPort global _NtConvertBetweenAuxiliaryCounterAndPerformanceCounter global _NtCreateDebugObject global _NtCreateDirectoryObject global _NtCreateDirectoryObjectEx global _NtCreateEnclave global _NtCreateEnlistment global _NtCreateEventPair global _NtCreateIRTimer global _NtCreateIoCompletion global _NtCreateJobObject global _NtCreateJobSet global _NtCreateKeyTransacted global _NtCreateKeyedEvent global _NtCreateLowBoxToken global _NtCreateMailslotFile global _NtCreateMutant global _NtCreateNamedPipeFile global _NtCreatePagingFile global _NtCreatePartition global _NtCreatePort global _NtCreatePrivateNamespace global _NtCreateProcess global _NtCreateProfile global _NtCreateProfileEx global _NtCreateRegistryTransaction global _NtCreateResourceManager global _NtCreateSemaphore global _NtCreateSymbolicLinkObject global _NtCreateThreadEx global _NtCreateTimer global _NtCreateTimer2 global _NtCreateToken global _NtCreateTokenEx global _NtCreateTransaction global _NtCreateTransactionManager global _NtCreateUserProcess global _NtCreateWaitCompletionPacket global _NtCreateWaitablePort global _NtCreateWnfStateName global _NtCreateWorkerFactory global _NtDebugActiveProcess global _NtDebugContinue global _NtDeleteAtom global _NtDeleteBootEntry global _NtDeleteDriverEntry global _NtDeleteFile global _NtDeleteKey global _NtDeleteObjectAuditAlarm global _NtDeletePrivateNamespace global _NtDeleteValueKey global _NtDeleteWnfStateData global _NtDeleteWnfStateName global _NtDisableLastKnownGood global _NtDisplayString global _NtDrawText global _NtEnableLastKnownGood global _NtEnumerateBootEntries global _NtEnumerateDriverEntries global _NtEnumerateSystemEnvironmentValuesEx global _NtEnumerateTransactionObject global _NtExtendSection global _NtFilterBootOption global _NtFilterToken global _NtFilterTokenEx global _NtFlushBuffersFileEx global _NtFlushInstallUILanguage global _NtFlushInstructionCache global _NtFlushKey global _NtFlushProcessWriteBuffers global _NtFlushVirtualMemory global _NtFlushWriteBuffer global _NtFreeUserPhysicalPages global _NtFreezeRegistry global _NtFreezeTransactions global _NtGetCachedSigningLevel global _NtGetCompleteWnfStateSubscription global _NtGetContextThread global _NtGetCurrentProcessorNumber global _NtGetCurrentProcessorNumberEx global _NtGetDevicePowerState global _NtGetMUIRegistryInfo global _NtGetNextProcess global _NtGetNextThread global _NtGetNlsSectionPtr global _NtGetNotificationResourceManager global _NtGetWriteWatch global _NtImpersonateAnonymousToken global _NtImpersonateThread global _NtInitializeEnclave global _NtInitializeNlsFiles global _NtInitializeRegistry global _NtInitiatePowerAction global _NtIsSystemResumeAutomatic global _NtIsUILanguageComitted global _NtListenPort global _NtLoadDriver global _NtLoadEnclaveData global _NtLoadHotPatch global _NtLoadKey global _NtLoadKey2 global _NtLoadKeyEx global _NtLockFile global _NtLockProductActivationKeys global _NtLockRegistryKey global _NtLockVirtualMemory global _NtMakePermanentObject global _NtMakeTemporaryObject global _NtManagePartition global _NtMapCMFModule global _NtMapUserPhysicalPages global _NtMapViewOfSectionEx global _NtModifyBootEntry global _NtModifyDriverEntry global _NtNotifyChangeDirectoryFile global _NtNotifyChangeDirectoryFileEx global _NtNotifyChangeKey global _NtNotifyChangeMultipleKeys global _NtNotifyChangeSession global _NtOpenEnlistment global _NtOpenEventPair global _NtOpenIoCompletion global _NtOpenJobObject global _NtOpenKeyEx global _NtOpenKeyTransacted global _NtOpenKeyTransactedEx global _NtOpenKeyedEvent global _NtOpenMutant global _NtOpenObjectAuditAlarm global _NtOpenPartition global _NtOpenPrivateNamespace global _NtOpenProcessToken global _NtOpenRegistryTransaction global _NtOpenResourceManager global _NtOpenSemaphore global _NtOpenSession global _NtOpenSymbolicLinkObject global _NtOpenThread global _NtOpenTimer global _NtOpenTransaction global _NtOpenTransactionManager global _NtPlugPlayControl global _NtPrePrepareComplete global _NtPrePrepareEnlistment global _NtPrepareComplete global _NtPrepareEnlistment global _NtPrivilegeCheck global _NtPrivilegeObjectAuditAlarm global _NtPrivilegedServiceAuditAlarm global _NtPropagationComplete global _NtPropagationFailed global _NtPulseEvent global _NtQueryAuxiliaryCounterFrequency global _NtQueryBootEntryOrder global _NtQueryBootOptions global _NtQueryDebugFilterState global _NtQueryDirectoryFileEx global _NtQueryDirectoryObject global _NtQueryDriverEntryOrder global _NtQueryEaFile global _NtQueryFullAttributesFile global _NtQueryInformationAtom global _NtQueryInformationByName global _NtQueryInformationEnlistment global _NtQueryInformationJobObject global _NtQueryInformationPort global _NtQueryInformationResourceManager global _NtQueryInformationTransaction global _NtQueryInformationTransactionManager global _NtQueryInformationWorkerFactory global _NtQueryInstallUILanguage global _NtQueryIntervalProfile global _NtQueryIoCompletion global _NtQueryLicenseValue global _NtQueryMultipleValueKey global _NtQueryMutant global _NtQueryOpenSubKeys global _NtQueryOpenSubKeysEx global _NtQueryPortInformationProcess global _NtQueryQuotaInformationFile global _NtQuerySecurityAttributesToken global _NtQuerySecurityObject global _NtQuerySecurityPolicy global _NtQuerySemaphore global _NtQuerySymbolicLinkObject global _NtQuerySystemEnvironmentValue global _NtQuerySystemEnvironmentValueEx global _NtQuerySystemInformationEx global _NtQueryTimerResolution global _NtQueryWnfStateData global _NtQueryWnfStateNameInformation global _NtQueueApcThreadEx global _NtRaiseException global _NtRaiseHardError global _NtReadOnlyEnlistment global _NtRecoverEnlistment global _NtRecoverResourceManager global _NtRecoverTransactionManager global _NtRegisterProtocolAddressInformation global _NtRegisterThreadTerminatePort global _NtReleaseKeyedEvent global _NtReleaseWorkerFactoryWorker global _NtRemoveIoCompletionEx global _NtRemoveProcessDebug global _NtRenameKey global _NtRenameTransactionManager global _NtReplaceKey global _NtReplacePartitionUnit global _NtReplyWaitReplyPort global _NtRequestPort global _NtResetEvent global _NtResetWriteWatch global _NtRestoreKey global _NtResumeProcess global _NtRevertContainerImpersonation global _NtRollbackComplete global _NtRollbackEnlistment global _NtRollbackRegistryTransaction global _NtRollbackTransaction global _NtRollforwardTransactionManager global _NtSaveKey global _NtSaveKeyEx global _NtSaveMergedKeys global _NtSecureConnectPort global _NtSerializeBoot global _NtSetBootEntryOrder global _NtSetBootOptions global _NtSetCachedSigningLevel global _NtSetCachedSigningLevel2 global _NtSetContextThread global _NtSetDebugFilterState global _NtSetDefaultHardErrorPort global _NtSetDefaultLocale global _NtSetDefaultUILanguage global _NtSetDriverEntryOrder global _NtSetEaFile global _NtSetHighEventPair global _NtSetHighWaitLowEventPair global _NtSetIRTimer global _NtSetInformationDebugObject global _NtSetInformationEnlistment global _NtSetInformationJobObject global _NtSetInformationKey global _NtSetInformationResourceManager global _NtSetInformationSymbolicLink global _NtSetInformationToken global _NtSetInformationTransaction global _NtSetInformationTransactionManager global _NtSetInformationVirtualMemory global _NtSetInformationWorkerFactory global _NtSetIntervalProfile global _NtSetIoCompletion global _NtSetIoCompletionEx global _NtSetLdtEntries global _NtSetLowEventPair global _NtSetLowWaitHighEventPair global _NtSetQuotaInformationFile global _NtSetSecurityObject global _NtSetSystemEnvironmentValue global _NtSetSystemEnvironmentValueEx global _NtSetSystemInformation global _NtSetSystemPowerState global _NtSetSystemTime global _NtSetThreadExecutionState global _NtSetTimer2 global _NtSetTimerEx global _NtSetTimerResolution global _NtSetUuidSeed global _NtSetVolumeInformationFile global _NtSetWnfProcessNotificationEvent global _NtShutdownSystem global _NtShutdownWorkerFactory global _NtSignalAndWaitForSingleObject global _NtSinglePhaseReject global _NtStartProfile global _NtStopProfile global _NtSubscribeWnfStateChange global _NtSuspendProcess global _NtSuspendThread global _NtSystemDebugControl global _NtTerminateEnclave global _NtTerminateJobObject global _NtTestAlert global _NtThawRegistry global _NtThawTransactions global _NtTraceControl global _NtTranslateFilePath global _NtUmsThreadYield global _NtUnloadDriver global _NtUnloadKey global _NtUnloadKey2 global _NtUnloadKeyEx global _NtUnlockFile global _NtUnlockVirtualMemory global _NtUnmapViewOfSectionEx global _NtUnsubscribeWnfStateChange global _NtUpdateWnfStateData global _NtVdmControl global _NtWaitForAlertByThreadId global _NtWaitForDebugEvent global _NtWaitForKeyedEvent global _NtWaitForWorkViaWorkerFactory global _NtWaitHighEventPair global _NtWaitLowEventPair global _NtAcquireCMFViewOwnership global _NtCancelDeviceWakeupRequest global _NtClearAllSavepointsTransaction global _NtClearSavepointTransaction global _NtRollbackSavepointTransaction global _NtSavepointTransaction global _NtSavepointComplete global _NtCreateSectionEx global _NtCreateCrossVmEvent global _NtGetPlugPlayEvent global _NtListTransactions global _NtMarshallTransaction global _NtPullTransaction global _NtReleaseCMFViewOwnership global _NtWaitForWnfNotifications global _NtStartTm global _NtSetInformationProcess global _NtRequestDeviceWakeup global _NtRequestWakeupLatency global _NtQuerySystemTime global _NtManageHotPatch global _NtContinueEx global _RtlCreateUserThread global _WhisperMain extern _SW2_GetSyscallNumber [SECTION .text] BITS 32 _WhisperMain: pop eax ; Remove return address from CALL instruction call _SW2_GetSyscallNumber ; Resolve function hash into syscall number add esp, 4 ; Restore ESP mov ecx, [fs:0c0h] test ecx, ecx jne _wow64 lea edx, [esp+4h] INT 02eh ret _wow64: xor ecx, ecx lea edx, [esp+4h] call dword [fs:0c0h] ret _NtAccessCheck: push 0B6D641BBh call _WhisperMain _NtWorkerFactoryWorkerReady: push 0163E3285h call _WhisperMain _NtAcceptConnectPort: push 02EB72D38h call _WhisperMain _NtMapUserPhysicalPagesScatter: push 0D19E1AC6h call _WhisperMain _NtWaitForSingleObject: push 018A02BEFh call _WhisperMain _NtCallbackReturn: push 0829013BEh call _WhisperMain _NtReadFile: push 028C05C56h call _WhisperMain _NtDeviceIoControlFile: push 0D841A2A6h call _WhisperMain _NtWriteFile: push 0C9719FCBh call _WhisperMain _NtRemoveIoCompletion: push 016801617h call _WhisperMain _NtReleaseSemaphore: push 01457341Ah call _WhisperMain _NtReplyWaitReceivePort: push 07AB26F32h call _WhisperMain _NtReplyPort: push 0DA342B5Ah call _WhisperMain _NtSetInformationThread: push 02A8E6857h call _WhisperMain _NtSetEvent: push 0CB020C49h call _WhisperMain _NtClose: push 046D16D51h call _WhisperMain _NtQueryObject: push 01F3075CEh call _WhisperMain _NtQueryInformationFile: push 085115D55h call _WhisperMain _NtOpenKey: push 02490F9CAh call _WhisperMain _NtEnumerateValueKey: push 019CD7426h call _WhisperMain _NtFindAtom: push 038AD2144h call _WhisperMain _NtQueryDefaultLocale: push 0C221CCB2h call _WhisperMain _NtQueryKey: push 03BE15A1Ah call _WhisperMain _NtQueryValueKey: push 01C1D1F87h call _WhisperMain _NtAllocateVirtualMemory: push 03191457Dh call _WhisperMain _NtQueryInformationProcess: push 0832D80A2h call _WhisperMain _NtWaitForMultipleObjects32: push 0C85C2D8Bh call _WhisperMain _NtWriteFileGather: push 0379E6D37h call _WhisperMain _NtCreateKey: push 039002E90h call _WhisperMain _NtFreeVirtualMemory: push 001990F0Fh call _WhisperMain _NtImpersonateClientOfPort: push 058F16D58h call _WhisperMain _NtReleaseMutant: push 0BF1C984Fh call _WhisperMain _NtQueryInformationToken: push 0939DD948h call _WhisperMain _NtRequestWaitReplyPort: push 038B1235Eh call _WhisperMain _NtQueryVirtualMemory: push 033AE1F39h call _WhisperMain _NtOpenThreadToken: push 01DA027ECh call _WhisperMain _NtQueryInformationThread: push 0B207F4A5h call _WhisperMain _NtOpenProcess: push 0EAA8F120h call _WhisperMain _NtSetInformationFile: push 0725AB909h call _WhisperMain _NtMapViewOfSection: push 022CC205Dh call _WhisperMain _NtAccessCheckAndAuditAlarm: push 0DABDE4F0h call _WhisperMain _NtUnmapViewOfSection: push 0D28DF657h call _WhisperMain _NtReplyWaitReceivePortEx: push 0AF8072D4h call _WhisperMain _NtTerminateProcess: push 077BF5E26h call _WhisperMain _NtSetEventBoostPriority: push 022B3ADB4h call _WhisperMain _NtReadFileScatter: push 0058C0D17h call _WhisperMain _NtOpenThreadTokenEx: push 0BA4FC4B9h call _WhisperMain _NtOpenProcessTokenEx: push 038AA7A50h call _WhisperMain _NtQueryPerformanceCounter: push 02B89C793h call _WhisperMain _NtEnumerateKey: push 07ECF5E94h call _WhisperMain _NtOpenFile: push 0E77EEFEBh call _WhisperMain _NtDelayExecution: push 0C20DE25Fh call _WhisperMain _NtQueryDirectoryFile: push 03F38BD21h call _WhisperMain _NtQuerySystemInformation: push 0EFB51AD7h call _WhisperMain _NtOpenSection: push 0DFB2FB39h call _WhisperMain _NtQueryTimer: push 03C16F04Ch call _WhisperMain _NtFsControlFile: push 0C94297F7h call _WhisperMain _NtWriteVirtualMemory: push 00B970317h call _WhisperMain _NtCloseObjectAuditAlarm: push 010BFECF0h call _WhisperMain _NtDuplicateObject: push 008B62A2Bh call _WhisperMain _NtQueryAttributesFile: push 09DDBBC81h call _WhisperMain _NtClearEvent: push 0704ABB1Ch call _WhisperMain _NtReadVirtualMemory: push 001910F07h call _WhisperMain _NtOpenEvent: push 0004D07C6h call _WhisperMain _NtAdjustPrivilegesToken: push 09449F4DBh call _WhisperMain _NtDuplicateToken: push 00B9EFF06h call _WhisperMain _NtContinue: push 0D55BEACFh call _WhisperMain _NtQueryDefaultUILanguage: push 09233B5AFh call _WhisperMain _NtQueueApcThread: push 036822C3Bh call _WhisperMain _NtYieldExecution: push 060CA061Fh call _WhisperMain _NtAddAtom: push 0964EF75Ch call _WhisperMain _NtCreateEvent: push 000BD7B4Ah call _WhisperMain _NtQueryVolumeInformationFile: push 064C05C66h call _WhisperMain _NtCreateSection: push 03E911CDDh call _WhisperMain _NtFlushBuffersFile: push 07CAB2E9Eh call _WhisperMain _NtApphelpCacheControl: push 00FD80B43h call _WhisperMain _NtCreateProcessEx: push 08F8FCD34h call _WhisperMain _NtCreateThread: push 076D96C6Fh call _WhisperMain _NtIsProcessInJob: push 029933921h call _WhisperMain _NtProtectVirtualMemory: push 099F38567h call _WhisperMain _NtQuerySection: push 0E04BE6DFh call _WhisperMain _NtResumeThread: push 094AD1E8Bh call _WhisperMain _NtTerminateThread: push 050800A31h call _WhisperMain _NtReadRequestData: push 0C608DEB2h call _WhisperMain _NtCreateFile: push 0D87CA29Ch call _WhisperMain _NtQueryEvent: push 031746CDCh call _WhisperMain _NtWriteRequestData: push 036BA0E24h call _WhisperMain _NtOpenDirectoryObject: push 00BAB657Ah call _WhisperMain _NtAccessCheckByTypeAndAuditAlarm: push 05B357D66h call _WhisperMain _NtWaitForMultipleObjects: push 0F75ADF07h call _WhisperMain _NtSetInformationObject: push 004985645h call _WhisperMain _NtCancelIoFile: push 0B8BB5EBFh call _WhisperMain _NtTraceEvent: push 042864312h call _WhisperMain _NtPowerInformation: push 0ED4BEBD8h call _WhisperMain _NtSetValueKey: push 02AFC0D63h call _WhisperMain _NtCancelTimer: push 08B9FFB1Dh call _WhisperMain _NtSetTimer: push 09CA9F453h call _WhisperMain _NtAccessCheckByType: push 0B72E5D20h call _WhisperMain _NtAccessCheckByTypeResultList: push 050C2100Fh call _WhisperMain _NtAccessCheckByTypeResultListAndAuditAlarm: push 01ABC1024h call _WhisperMain _NtAccessCheckByTypeResultListAndAuditAlarmByHandle: push 0C04DF8DEh call _WhisperMain _NtAcquireProcessActivityReference: push 07ACB6B7Eh call _WhisperMain _NtAddAtomEx: push 0E1132F46h call _WhisperMain _NtAddBootEntry: push 049947D28h call _WhisperMain _NtAddDriverEntry: push 047D2736Eh call _WhisperMain _NtAdjustGroupsToken: push 01F988590h call _WhisperMain _NtAdjustTokenClaimsAndDeviceGroups: push 03D973D01h call _WhisperMain _NtAlertResumeThread: push 05CCEDEEFh call _WhisperMain _NtAlertThread: push 020985A45h call _WhisperMain _NtAlertThreadByThreadId: push 09CA377E5h call _WhisperMain _NtAllocateLocallyUniqueId: push 0378A9940h call _WhisperMain _NtAllocateReserveObject: push 0391729BBh call _WhisperMain _NtAllocateUserPhysicalPages: push 05FBE7024h call _WhisperMain _NtAllocateUuids: push 04E575ECBh call _WhisperMain _NtAllocateVirtualMemoryEx: push 076EFA8B9h call _WhisperMain _NtAlpcAcceptConnectPort: push 0ACF19342h call _WhisperMain _NtAlpcCancelMessage: push 08DDE9967h call _WhisperMain _NtAlpcConnectPort: push 0A0BE1DB0h call _WhisperMain _NtAlpcConnectPortEx: push 03D0F71CBh call _WhisperMain _NtAlpcCreatePort: push 022B33D38h call _WhisperMain _NtAlpcCreatePortSection: push 006AA263Fh call _WhisperMain _NtAlpcCreateResourceReserve: push 01A9E1E7Fh call _WhisperMain _NtAlpcCreateSectionView: push 0D048B9D7h call _WhisperMain _NtAlpcCreateSecurityContext: push 056C94B58h call _WhisperMain _NtAlpcDeletePortSection: push 036AD10F9h call _WhisperMain _NtAlpcDeleteResourceReserve: push 0F761E7CAh call _WhisperMain _NtAlpcDeleteSectionView: push 0049C293Bh call _WhisperMain _NtAlpcDeleteSecurityContext: push 09CC79146h call _WhisperMain _NtAlpcDisconnectPort: push 0593058BEh call _WhisperMain _NtAlpcImpersonateClientContainerOfPort: push 0FE760D38h call _WhisperMain _NtAlpcImpersonateClientOfPort: push 0A93184AFh call _WhisperMain _NtAlpcOpenSenderProcess: push 0C557C6C8h call _WhisperMain _NtAlpcOpenSenderThread: push 09427D601h call _WhisperMain _NtAlpcQueryInformation: push 03CAE4643h call _WhisperMain _NtAlpcQueryInformationMessage: push 093B15C90h call _WhisperMain _NtAlpcRevokeSecurityContext: push 0772A826Bh call _WhisperMain _NtAlpcSendWaitReceivePort: push 0E1720463h call _WhisperMain _NtAlpcSetInformation: push 000A80239h call _WhisperMain _NtAreMappedFilesTheSame: push 09734447Ch call _WhisperMain _NtAssignProcessToJobObject: push 01C800A1Dh call _WhisperMain _NtAssociateWaitCompletionPacket: push 0098D2332h call _WhisperMain _NtCallEnclave: push 01AAC6E46h call _WhisperMain _NtCancelIoFileEx: push 0D8052A7Fh call _WhisperMain _NtCancelSynchronousIoFile: push 038AFEC1Ch call _WhisperMain _NtCancelTimer2: push 096143ACAh call _WhisperMain _NtCancelWaitCompletionPacket: push 0BB9CC350h call _WhisperMain _NtCommitComplete: push 0AA35FCFEh call _WhisperMain _NtCommitEnlistment: push 0D76AECDDh call _WhisperMain _NtCommitRegistryTransaction: push 00F980302h call _WhisperMain _NtCommitTransaction: push 0B329F1F8h call _WhisperMain _NtCompactKeys: push 0C3A5FE0Bh call _WhisperMain _NtCompareObjects: push 0039D0313h call _WhisperMain _NtCompareSigningLevels: push 0D043D6D8h call _WhisperMain _NtCompareTokens: push 043C3495Bh call _WhisperMain _NtCompleteConnectPort: push 020B52F36h call _WhisperMain _NtCompressKey: push 098CAA368h call _WhisperMain _NtConnectPort: push 066BF195Ch call _WhisperMain _NtConvertBetweenAuxiliaryCounterAndPerformanceCounter: push 02B97BF95h call _WhisperMain _NtCreateDebugObject: push 00CA1645Dh call _WhisperMain _NtCreateDirectoryObject: push 009A1FFDBh call _WhisperMain _NtCreateDirectoryObjectEx: push 0F6790F3Fh call _WhisperMain _NtCreateEnclave: push 016300A8Ah call _WhisperMain _NtCreateEnlistment: push 06BA72A6Dh call _WhisperMain _NtCreateEventPair: push 00757F637h call _WhisperMain _NtCreateIRTimer: push 07B996D02h call _WhisperMain _NtCreateIoCompletion: push 052C8725Fh call _WhisperMain _NtCreateJobObject: push 096BDAE11h call _WhisperMain _NtCreateJobSet: push 082C28450h call _WhisperMain _NtCreateKeyTransacted: push 0ECA3351Eh call _WhisperMain _NtCreateKeyedEvent: push 0E05DDBFAh call _WhisperMain _NtCreateLowBoxToken: push 015349407h call _WhisperMain _NtCreateMailslotFile: push 0E97ED3D9h call _WhisperMain _NtCreateMutant: push 07E9E1C88h call _WhisperMain _NtCreateNamedPipeFile: push 085031D03h call _WhisperMain _NtCreatePagingFile: push 06AFA5BAEh call _WhisperMain _NtCreatePartition: push 036AC163Bh call _WhisperMain _NtCreatePort: push 0DC4EBFD0h call _WhisperMain _NtCreatePrivateNamespace: push 096B2AD2Dh call _WhisperMain _NtCreateProcess: push 0272D24A2h call _WhisperMain _NtCreateProfile: push 0F4DDEB67h call _WhisperMain _NtCreateProfileEx: push 005BBD0E7h call _WhisperMain _NtCreateRegistryTransaction: push 09F87DF55h call _WhisperMain _NtCreateResourceManager: push 0BB62C3A8h call _WhisperMain _NtCreateSemaphore: push 0109BF8D6h call _WhisperMain _NtCreateSymbolicLinkObject: push 00B24F92Ah call _WhisperMain _NtCreateThreadEx: push 098B757F1h call _WhisperMain _NtCreateTimer: push 09CB7962Ch call _WhisperMain _NtCreateTimer2: push 0B02BEFA6h call _WhisperMain _NtCreateToken: push 084AD920Eh call _WhisperMain _NtCreateTokenEx: push 020A25258h call _WhisperMain _NtCreateTransaction: push 0E237DA9Dh call _WhisperMain _NtCreateTransactionManager: push 019A136F0h call _WhisperMain _NtCreateUserProcess: push 0EDA3CE3Fh call _WhisperMain _NtCreateWaitCompletionPacket: push 0073D77C1h call _WhisperMain _NtCreateWaitablePort: push 02871CA1Fh call _WhisperMain _NtCreateWnfStateName: push 0B4BA5BB1h call _WhisperMain _NtCreateWorkerFactory: push 0DCCDF265h call _WhisperMain _NtDebugActiveProcess: push 07E3197ADh call _WhisperMain _NtDebugContinue: push 058D98B96h call _WhisperMain _NtDeleteAtom: push 0AD5F2C4Dh call _WhisperMain _NtDeleteBootEntry: push 00D951502h call _WhisperMain _NtDeleteDriverEntry: push 0CA96DE0Bh call _WhisperMain _NtDeleteFile: push 014B3DE16h call _WhisperMain _NtDeleteKey: push 069D34464h call _WhisperMain _NtDeleteObjectAuditAlarm: push 074DA8FD6h call _WhisperMain _NtDeletePrivateNamespace: push 01CAD3F35h call _WhisperMain _NtDeleteValueKey: push 0C51D1046h call _WhisperMain _NtDeleteWnfStateData: push 0134B3F87h call _WhisperMain _NtDeleteWnfStateName: push 08A8D871Dh call _WhisperMain _NtDisableLastKnownGood: push 015CB8BF0h call _WhisperMain _NtDisplayString: push 068909F00h call _WhisperMain _NtDrawText: push 0D34AD0DDh call _WhisperMain _NtEnableLastKnownGood: push 06BF90732h call _WhisperMain _NtEnumerateBootEntries: push 00E963B09h call _WhisperMain _NtEnumerateDriverEntries: push 02C96B699h call _WhisperMain _NtEnumerateSystemEnvironmentValuesEx: push 0D19DE521h call _WhisperMain _NtEnumerateTransactionObject: push 00C90361Dh call _WhisperMain _NtExtendSection: push 0128A3019h call _WhisperMain _NtFilterBootOption: push 00EA60E33h call _WhisperMain _NtFilterToken: push 0C355ADCAh call _WhisperMain _NtFilterTokenEx: push 0769F2A4Ah call _WhisperMain _NtFlushBuffersFileEx: push 0A634616Ah call _WhisperMain _NtFlushInstallUILanguage: push 00FD14672h call _WhisperMain _NtFlushInstructionCache: push 04D9BB1DBh call _WhisperMain _NtFlushKey: push 019CEE8B6h call _WhisperMain _NtFlushProcessWriteBuffers: push 079399F6Ah call _WhisperMain _NtFlushVirtualMemory: push 03FA90907h call _WhisperMain _NtFlushWriteBuffer: push 0802BDAE2h call _WhisperMain _NtFreeUserPhysicalPages: push 07BE16462h call _WhisperMain _NtFreezeRegistry: push 00E6A100Fh call _WhisperMain _NtFreezeTransactions: push 00F4A05DDh call _WhisperMain _NtGetCachedSigningLevel: push 0969A1DA4h call _WhisperMain _NtGetCompleteWnfStateSubscription: push 04C922453h call _WhisperMain _NtGetContextThread: push 054D01671h call _WhisperMain _NtGetCurrentProcessorNumber: push 09A3B8A99h call _WhisperMain _NtGetCurrentProcessorNumberEx: push 086A2C25Eh call _WhisperMain _NtGetDevicePowerState: push 036893E26h call _WhisperMain _NtGetMUIRegistryInfo: push 0FC74C8F1h call _WhisperMain _NtGetNextProcess: push 0863B9757h call _WhisperMain _NtGetNextThread: push 08A895136h call _WhisperMain _NtGetNlsSectionPtr: push 02292AB8Dh call _WhisperMain _NtGetNotificationResourceManager: push 00F3F1194h call _WhisperMain _NtGetWriteWatch: push 0B779F9CFh call _WhisperMain _NtImpersonateAnonymousToken: push 00794898Ch call _WhisperMain _NtImpersonateThread: push 081A8C174h call _WhisperMain _NtInitializeEnclave: push 0883AB77Eh call _WhisperMain _NtInitializeNlsFiles: push 0FEDEC97Ah call _WhisperMain _NtInitializeRegistry: push 0198AF1DAh call _WhisperMain _NtInitiatePowerAction: push 008922A07h call _WhisperMain _NtIsSystemResumeAutomatic: push 022BA5568h call _WhisperMain _NtIsUILanguageComitted: push 07BA27317h call _WhisperMain _NtListenPort: push 020B3CF28h call _WhisperMain _NtLoadDriver: push 0945DFE86h call _WhisperMain _NtLoadEnclaveData: push 06342B777h call _WhisperMain _NtLoadHotPatch: push 090AEA036h call _WhisperMain _NtLoadKey: push 069209848h call _WhisperMain _NtLoadKey2: push 02149CB54h call _WhisperMain _NtLoadKeyEx: push 063681596h call _WhisperMain _NtLockFile: push 02D74AB69h call _WhisperMain _NtLockProductActivationKeys: push 022C03565h call _WhisperMain _NtLockRegistryKey: push 07621558Eh call _WhisperMain _NtLockVirtualMemory: push 019916919h call _WhisperMain _NtMakePermanentObject: push 022BC2C21h call _WhisperMain _NtMakeTemporaryObject: push 006984055h call _WhisperMain _NtManagePartition: push 019743BA5h call _WhisperMain _NtMapCMFModule: push 03EF510A6h call _WhisperMain _NtMapUserPhysicalPages: push 02F9E5E62h call _WhisperMain _NtMapViewOfSectionEx: push 002917268h call _WhisperMain _NtModifyBootEntry: push 0B9F575A0h call _WhisperMain _NtModifyDriverEntry: push 019820116h call _WhisperMain _NtNotifyChangeDirectoryFile: push 0EED4AFF2h call _WhisperMain _NtNotifyChangeDirectoryFileEx: push 0C92793F2h call _WhisperMain _NtNotifyChangeKey: push 028142F8Bh call _WhisperMain _NtNotifyChangeMultipleKeys: push 023B92826h call _WhisperMain _NtNotifyChangeSession: push 0018EEF92h call _WhisperMain _NtOpenEnlistment: push 089D34C85h call _WhisperMain _NtOpenEventPair: push 010B3DCEDh call _WhisperMain _NtOpenIoCompletion: push 036A9163Bh call _WhisperMain _NtOpenJobObject: push 008B4D919h call _WhisperMain _NtOpenKeyEx: push 04D5A9906h call _WhisperMain _NtOpenKeyTransacted: push 0B55EF5E3h call _WhisperMain _NtOpenKeyTransactedEx: push 026BD7460h call _WhisperMain _NtOpenKeyedEvent: push 046CC615Eh call _WhisperMain _NtOpenMutant: push 0E8B7F13Ah call _WhisperMain _NtOpenObjectAuditAlarm: push 0DB5ADFCDh call _WhisperMain _NtOpenPartition: push 0CE912CC5h call _WhisperMain _NtOpenPrivateNamespace: push 0AA8EB728h call _WhisperMain _NtOpenProcessToken: push 0B3ED8D40h call _WhisperMain _NtOpenRegistryTransaction: push 01572C81Dh call _WhisperMain _NtOpenResourceManager: push 0C71FEFA6h call _WhisperMain _NtOpenSemaphore: push 0709E5A5Eh call _WhisperMain _NtOpenSession: push 0DA909A42h call _WhisperMain _NtOpenSymbolicLinkObject: push 00C91040Dh call _WhisperMain _NtOpenThread: push 0EECCF26Fh call _WhisperMain _NtOpenTimer: push 08D249BC0h call _WhisperMain _NtOpenTransaction: push 0CEC5EA57h call _WhisperMain _NtOpenTransactionManager: push 0C415D4B7h call _WhisperMain _NtPlugPlayControl: push 08E108A88h call _WhisperMain _NtPrePrepareComplete: push 0054071ACh call _WhisperMain _NtPrePrepareEnlistment: push 0CB55CEC3h call _WhisperMain _NtPrepareComplete: push 038B6D025h call _WhisperMain _NtPrepareEnlistment: push 030274DD5h call _WhisperMain _NtPrivilegeCheck: push 0C25DF1C1h call _WhisperMain _NtPrivilegeObjectAuditAlarm: push 09334726Bh call _WhisperMain _NtPrivilegedServiceAuditAlarm: push 01AA5F2FAh call _WhisperMain _NtPropagationComplete: push 015343DF4h call _WhisperMain _NtPropagationFailed: push 019B69D96h call _WhisperMain _NtPulseEvent: push 030AC153Ch call _WhisperMain _NtQueryAuxiliaryCounterFrequency: push 078CC82CDh call _WhisperMain _NtQueryBootEntryOrder: push 06C3178D0h call _WhisperMain _NtQueryBootOptions: push 04C1B6285h call _WhisperMain _NtQueryDebugFilterState: push 076CF1C40h call _WhisperMain _NtQueryDirectoryFileEx: push 00A1946ADh call _WhisperMain _NtQueryDirectoryObject: push 0EC48C0F3h call _WhisperMain _NtQueryDriverEntryOrder: push 00B2E75C3h call _WhisperMain _NtQueryEaFile: push 038987C42h call _WhisperMain _NtQueryFullAttributesFile: push 0B0BA5EB2h call _WhisperMain _NtQueryInformationAtom: push 051C3B257h call _WhisperMain _NtQueryInformationByName: push 0FADDD389h call _WhisperMain _NtQueryInformationEnlistment: push 00395320Fh call _WhisperMain _NtQueryInformationJobObject: push 004B82DE5h call _WhisperMain _NtQueryInformationPort: push 09932B2ADh call _WhisperMain _NtQueryInformationResourceManager: push 0EBD3B9F3h call _WhisperMain _NtQueryInformationTransaction: push 01ED41C79h call _WhisperMain _NtQueryInformationTransactionManager: push 035B76176h call _WhisperMain _NtQueryInformationWorkerFactory: push 0254E0FECh call _WhisperMain _NtQueryInstallUILanguage: push 0CF5CF80Ch call _WhisperMain _NtQueryIntervalProfile: push 0A061F6DCh call _WhisperMain _NtQueryIoCompletion: push 01BB51EDEh call _WhisperMain _NtQueryLicenseValue: push 03A3F29B4h call _WhisperMain _NtQueryMultipleValueKey: push 0ED24D096h call _WhisperMain _NtQueryMutant: push 07E965F42h call _WhisperMain _NtQueryOpenSubKeys: push 08294ED4Eh call _WhisperMain _NtQueryOpenSubKeysEx: push 077DBA48Fh call _WhisperMain _NtQueryPortInformationProcess: push 019B4241Ch call _WhisperMain _NtQueryQuotaInformationFile: push 0BCBBB61Fh call _WhisperMain _NtQuerySecurityAttributesToken: push 0FC66E4CDh call _WhisperMain _NtQuerySecurityObject: push 0EFBD8563h call _WhisperMain _NtQuerySecurityPolicy: push 0045FF92Bh call _WhisperMain _NtQuerySemaphore: push 0CD5F32C5h call _WhisperMain _NtQuerySymbolicLinkObject: push 0132B3377h call _WhisperMain _NtQuerySystemEnvironmentValue: push 04CBB7764h call _WhisperMain _NtQuerySystemEnvironmentValueEx: push 023DEEF9Ah call _WhisperMain _NtQuerySystemInformationEx: push 0697D29B5h call _WhisperMain _NtQueryTimerResolution: push 01E816402h call _WhisperMain _NtQueryWnfStateData: push 0AC0E8282h call _WhisperMain _NtQueryWnfStateNameInformation: push 09A4BFC9Fh call _WhisperMain _NtQueueApcThreadEx: push 098B9269Eh call _WhisperMain _NtRaiseException: push 001A8217Ah call _WhisperMain _NtRaiseHardError: push 009978393h call _WhisperMain _NtReadOnlyEnlistment: push 0EEA1CF33h call _WhisperMain _NtRecoverEnlistment: push 011933405h call _WhisperMain _NtRecoverResourceManager: push 04D905F0Ch call _WhisperMain _NtRecoverTransactionManager: push 082B5B60Fh call _WhisperMain _NtRegisterProtocolAddressInformation: push 0D54EF51Ch call _WhisperMain _NtRegisterThreadTerminatePort: push 066F67F62h call _WhisperMain _NtReleaseKeyedEvent: push 008890F12h call _WhisperMain _NtReleaseWorkerFactoryWorker: push 0BC8D8A29h call _WhisperMain _NtRemoveIoCompletionEx: push 0B49732A8h call _WhisperMain _NtRemoveProcessDebug: push 01050FE46h call _WhisperMain _NtRenameKey: push 01B0C46D8h call _WhisperMain _NtRenameTransactionManager: push 02FA9E7F0h call _WhisperMain _NtReplaceKey: push 066CE7554h call _WhisperMain _NtReplacePartitionUnit: push 022BE3E1Eh call _WhisperMain _NtReplyWaitReplyPort: push 024B42B2Eh call _WhisperMain _NtRequestPort: push 0A0374F24h call _WhisperMain _NtResetEvent: push 044CE8F88h call _WhisperMain _NtResetWriteWatch: push 0FCE9375Ah call _WhisperMain _NtRestoreKey: push 0FB3EE7A5h call _WhisperMain _NtResumeProcess: push 011A90C20h call _WhisperMain _NtRevertContainerImpersonation: push 0C629C4C5h call _WhisperMain _NtRollbackComplete: push 059204DCCh call _WhisperMain _NtRollbackEnlistment: push 031872C15h call _WhisperMain _NtRollbackRegistryTransaction: push 0CA51CAC3h call _WhisperMain _NtRollbackTransaction: push 09CBDDA69h call _WhisperMain _NtRollforwardTransactionManager: push 003AF9F82h call _WhisperMain _NtSaveKey: push 03BAF2A30h call _WhisperMain _NtSaveKeyEx: push 09798D324h call _WhisperMain _NtSaveMergedKeys: push 067827A6Ch call _WhisperMain _NtSecureConnectPort: push 0983281BCh call _WhisperMain _NtSerializeBoot: push 0CBD8D946h call _WhisperMain _NtSetBootEntryOrder: push 0960E8E84h call _WhisperMain _NtSetBootOptions: push 0779C2F4Bh call _WhisperMain _NtSetCachedSigningLevel: push 0AABA3194h call _WhisperMain _NtSetCachedSigningLevel2: push 03E10D901h call _WhisperMain _NtSetContextThread: push 0AB9BA70Bh call _WhisperMain _NtSetDebugFilterState: push 0B3316903h call _WhisperMain _NtSetDefaultHardErrorPort: push 0A734A0BFh call _WhisperMain _NtSetDefaultLocale: push 0452D7FEBh call _WhisperMain _NtSetDefaultUILanguage: push 0299B6E3Ah call _WhisperMain _NtSetDriverEntryOrder: push 013A51131h call _WhisperMain _NtSetEaFile: push 0C0FA48C8h call _WhisperMain _NtSetHighEventPair: push 0D753F5CCh call _WhisperMain _NtSetHighWaitLowEventPair: push 03F6ECE0Dh call _WhisperMain _NtSetIRTimer: push 00850DB12h call _WhisperMain _NtSetInformationDebugObject: push 08837B8BBh call _WhisperMain _NtSetInformationEnlistment: push 0479B3A4Dh call _WhisperMain _NtSetInformationJobObject: push 08ED07ACFh call _WhisperMain _NtSetInformationKey: push 0C2785060h call _WhisperMain _NtSetInformationResourceManager: push 0C41FD0BDh call _WhisperMain _NtSetInformationSymbolicLink: push 0A8A67607h call _WhisperMain _NtSetInformationToken: push 063D6755Eh call _WhisperMain _NtSetInformationTransaction: push 01681381Dh call _WhisperMain _NtSetInformationTransactionManager: push 005349715h call _WhisperMain _NtSetInformationVirtualMemory: push 09B028F9Fh call _WhisperMain _NtSetInformationWorkerFactory: push 0786D108Fh call _WhisperMain _NtSetIntervalProfile: push 076A1B0F8h call _WhisperMain _NtSetIoCompletion: push 002D843F7h call _WhisperMain _NtSetIoCompletionEx: push 0C92F0C73h call _WhisperMain _NtSetLdtEntries: push 05B6A2499h call _WhisperMain _NtSetLowEventPair: push 040D27C5Bh call _WhisperMain _NtSetLowWaitHighEventPair: push 0A43DA4A3h call _WhisperMain _NtSetQuotaInformationFile: push 0A23B5420h call _WhisperMain _NtSetSecurityObject: push 0FAD676B9h call _WhisperMain _NtSetSystemEnvironmentValue: push 01C9F0B0Ch call _WhisperMain _NtSetSystemEnvironmentValueEx: push 00F935D4Eh call _WhisperMain _NtSetSystemInformation: push 0072F4385h call _WhisperMain _NtSetSystemPowerState: push 010892602h call _WhisperMain _NtSetSystemTime: push 03EAD353Dh call _WhisperMain _NtSetThreadExecutionState: push 012B3ECA8h call _WhisperMain _NtSetTimer2: push 0CF356FABh call _WhisperMain _NtSetTimerEx: push 01CFA2E40h call _WhisperMain _NtSetTimerResolution: push 054CE745Dh call _WhisperMain _NtSetUuidSeed: push 01DCF5F12h call _WhisperMain _NtSetVolumeInformationFile: push 03402BB21h call _WhisperMain _NtSetWnfProcessNotificationEvent: push 016CB77DEh call _WhisperMain _NtShutdownSystem: push 0C0ECECB7h call _WhisperMain _NtShutdownWorkerFactory: push 0189320D4h call _WhisperMain _NtSignalAndWaitForSingleObject: push 029111FA8h call _WhisperMain _NtSinglePhaseReject: push 0249E3611h call _WhisperMain _NtStartProfile: push 060356B93h call _WhisperMain _NtStopProfile: push 0E5B21DE6h call _WhisperMain _NtSubscribeWnfStateChange: push 006A77F3Ah call _WhisperMain _NtSuspendProcess: push 077AB5232h call _WhisperMain _NtSuspendThread: push 01CBD5E1Bh call _WhisperMain _NtSystemDebugControl: push 0BDAC5CBAh call _WhisperMain _NtTerminateEnclave: push 0613E59E2h call _WhisperMain _NtTerminateJobObject: push 01EA037FDh call _WhisperMain _NtTestAlert: push 08CAFE33Ch call _WhisperMain _NtThawRegistry: push 03EAC3439h call _WhisperMain _NtThawTransactions: push 0900AF0DEh call _WhisperMain _NtTraceControl: push 0B865DEF4h call _WhisperMain _NtTranslateFilePath: push 0F2B2CFE7h call _WhisperMain _NtUmsThreadYield: push 009B78290h call _WhisperMain _NtUnloadDriver: push 09CD7A65Bh call _WhisperMain _NtUnloadKey: push 05B2C58B5h call _WhisperMain _NtUnloadKey2: push 0EE7706E9h call _WhisperMain _NtUnloadKeyEx: push 03F99C3E2h call _WhisperMain _NtUnlockFile: push 0E1781BFFh call _WhisperMain _NtUnlockVirtualMemory: push 00F98213Fh call _WhisperMain _NtUnmapViewOfSectionEx: push 040DA1604h call _WhisperMain _NtUnsubscribeWnfStateChange: push 0209C6524h call _WhisperMain _NtUpdateWnfStateData: push 00C851638h call _WhisperMain _NtVdmControl: push 01BC3E185h call _WhisperMain _NtWaitForAlertByThreadId: push 06CABA912h call _WhisperMain _NtWaitForDebugEvent: push 0968A759Ch call _WhisperMain _NtWaitForKeyedEvent: push 0F918FC89h call _WhisperMain _NtWaitForWorkViaWorkerFactory: push 0489E7A52h call _WhisperMain _NtWaitHighEventPair: push 023332BA4h call _WhisperMain _NtWaitLowEventPair: push 072DF924Dh call _WhisperMain _NtAcquireCMFViewOwnership: push 00B4D01D4h call _WhisperMain _NtCancelDeviceWakeupRequest: push 0D421DCA5h call _WhisperMain _NtClearAllSavepointsTransaction: push 09E05BE8Bh call _WhisperMain _NtClearSavepointTransaction: push 0FD69C1A2h call _WhisperMain _NtRollbackSavepointTransaction: push 01C47DE17h call _WhisperMain _NtSavepointTransaction: push 01C844249h call _WhisperMain _NtSavepointComplete: push 01A90361Ah call _WhisperMain _NtCreateSectionEx: push 0984DC69Bh call _WhisperMain _NtCreateCrossVmEvent: push 0C951D0DFh call _WhisperMain _NtGetPlugPlayEvent: push 0E0452617h call _WhisperMain _NtListTransactions: push 0ECB6E62Ch call _WhisperMain _NtMarshallTransaction: push 07ADD647Dh call _WhisperMain _NtPullTransaction: push 07D557FF9h call _WhisperMain _NtReleaseCMFViewOwnership: push 05A6F42F8h call _WhisperMain _NtWaitForWnfNotifications: push 00D992ACBh call _WhisperMain _NtStartTm: push 0C38E50AFh call _WhisperMain _NtSetInformationProcess: push 06DAF4A7Ch call _WhisperMain _NtRequestDeviceWakeup: push 05517B042h call _WhisperMain _NtRequestWakeupLatency: push 0043EE142h call _WhisperMain _NtQuerySystemTime: push 0EAAEF31Bh call _WhisperMain _NtManageHotPatch: push 0F0D1E66Eh call _WhisperMain _NtContinueEx: push 02794F0CBh call _WhisperMain _RtlCreateUserThread: push 016AE441Fh call _WhisperMain
18.986077
80
0.818717
e837215bddfda3601bc1d739fcb19730c10fa013
6,992
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21132_291.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21132_291.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21132_291.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x15e82, %r15 and $35738, %r10 movups (%r15), %xmm4 vpextrq $1, %xmm4, %r12 nop add %r8, %r8 lea addresses_D_ht+0xaf0a, %rsi lea addresses_A_ht+0x18fc2, %rdi clflush (%rdi) nop nop nop nop nop and $57447, %rbp mov $4, %rcx rep movsw nop nop nop nop nop add $18024, %r15 lea addresses_UC_ht+0x7702, %r15 and %rdi, %rdi movb $0x61, (%r15) nop nop nop xor %rcx, %rcx lea addresses_A_ht+0xcf82, %rbp nop nop nop nop nop sub %r12, %r12 mov $0x6162636465666768, %r15 movq %r15, (%rbp) nop nop xor %r10, %r10 lea addresses_D_ht+0x1c002, %rsi lea addresses_normal_ht+0x124e2, %rdi add %r12, %r12 mov $25, %rcx rep movsl nop nop nop nop sub %rcx, %rcx lea addresses_A_ht+0x1b702, %rsi lea addresses_UC_ht+0x12a82, %rdi nop nop nop nop xor %r10, %r10 mov $1, %rcx rep movsq nop nop nop nop inc %r12 lea addresses_D_ht+0x13922, %rsi inc %r12 movups (%rsi), %xmm2 vpextrq $0, %xmm2, %r8 nop nop nop sub %rsi, %rsi lea addresses_A_ht+0x1d902, %rsi lea addresses_WC_ht+0xfa2a, %rdi clflush (%rdi) nop nop add %r15, %r15 mov $101, %rcx rep movsb nop nop nop nop inc %r8 lea addresses_WC_ht+0x16e42, %rdi sub %rsi, %rsi movl $0x61626364, (%rdi) nop inc %r10 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %r14 push %r8 push %rcx // Store lea addresses_RW+0x11702, %r12 nop dec %r8 movl $0x51525354, (%r12) nop nop nop nop nop sub $38037, %r12 // Store lea addresses_normal+0x1a716, %r10 nop cmp $44260, %r13 mov $0x5152535455565758, %r8 movq %r8, (%r10) nop nop nop sub %r13, %r13 // Store mov $0x4adc510000000d02, %rcx nop nop nop nop cmp %r11, %r11 movl $0x51525354, (%rcx) nop nop xor $4651, %r14 // Faulty Load lea addresses_RW+0x11702, %r11 nop nop nop nop nop cmp %r14, %r14 movb (%r11), %r8b lea oracles, %r14 and $0xff, %r8 shlq $12, %r8 mov (%r14,%r8,1), %r8 pop %rcx pop %r8 pop %r14 pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 8, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 6}} {'54': 21132} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
34.613861
2,999
0.656465
33ba13b234a7f8962191a3d28f376e3261d25ee1
6,250
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_10147_415.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_10147_415.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_10147_415.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 %r9 push %rdi push %rdx push %rsi lea addresses_WT_ht+0x195c7, %rsi nop mfence movw $0x6162, (%rsi) nop nop sub %rsi, %rsi lea addresses_UC_ht+0x1787, %r10 nop nop nop nop dec %r9 mov (%r10), %rdi nop nop nop nop add %r9, %r9 lea addresses_WC_ht+0x6bb7, %r9 nop nop inc %rsi mov (%r9), %r11 nop nop nop sub $8925, %r9 pop %rsi pop %rdx pop %rdi pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %r15 push %rax push %rbp // Store lea addresses_A+0x199c7, %rax nop nop nop nop inc %rbp mov $0x5152535455565758, %r15 movq %r15, (%rax) cmp %rax, %rax // Store lea addresses_WT+0x3347, %r14 nop nop nop nop nop add $15506, %r12 movl $0x51525354, (%r14) nop nop add $11568, %r10 // Store lea addresses_WT+0xf8bb, %rax xor $18576, %r13 mov $0x5152535455565758, %r15 movq %r15, %xmm3 and $0xffffffffffffffc0, %rax movaps %xmm3, (%rax) sub $27830, %r12 // Store lea addresses_WT+0xf4c7, %r14 nop nop nop nop nop inc %r15 movb $0x51, (%r14) nop nop nop nop nop inc %rbp // Store lea addresses_A+0x199c7, %r15 nop nop nop nop nop inc %rbp movb $0x51, (%r15) nop nop nop and %rax, %rax // Store lea addresses_WC+0xe9c7, %rax nop sub %r14, %r14 mov $0x5152535455565758, %rbp movq %rbp, %xmm4 movups %xmm4, (%rax) nop nop inc %r14 // Store lea addresses_RW+0xc9c7, %r12 nop nop nop nop nop sub $42987, %r13 movl $0x51525354, (%r12) xor %r14, %r14 // Faulty Load lea addresses_A+0x199c7, %r10 nop nop cmp $9806, %r12 mov (%r10), %r13d lea oracles, %r12 and $0xff, %r13 shlq $12, %r13 mov (%r12,%r13,1), %r13 pop %rbp pop %rax pop %r15 pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': True, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': True, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': True, 'NT': False}} {'54': 10147} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
34.916201
2,999
0.65248
8ad90ce161db7590270c284f3ebd6dab48a72146
410
asm
Assembly
oeis/091/A091712.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/091/A091712.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/091/A091712.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A091712: a(n)=6(2n-4)!/((n-2)!n!), if n>2. a(0)=1,a(1)=a(2)=2. ; Submitted by Jon Maiga ; 1,2,2,2,3,6,14,36,99,286,858,2652,8398,27132,89148,297160,1002915,3421710,11785890,40940460,143291610,504932340,1790214660,6382504440,22870640910,82334307276,297670187844,1080432533656,3935861372604 mov $1,1 mov $3,$0 mov $0,10 lpb $3 sub $0,4 mul $1,$0 sub $2,1 div $1,$2 max $1,2 sub $3,1 lpe mov $0,$1
24.117647
200
0.670732
8e60b192c217a9b0480d671d097f5fbcd729d634
1,090
asm
Assembly
programs/oeis/097/A097804.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/097/A097804.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/097/A097804.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A097804: a(n) = 3*(2*5^n + 1). ; 9,33,153,753,3753,18753,93753,468753,2343753,11718753,58593753,292968753,1464843753,7324218753,36621093753,183105468753,915527343753,4577636718753,22888183593753,114440917968753,572204589843753,2861022949218753,14305114746093753,71525573730468753,357627868652343753,1788139343261718753,8940696716308593753,44703483581542968753,223517417907714843753,1117587089538574218753,5587935447692871093753,27939677238464355468753,139698386192321777343753,698491930961608886718753,3492459654808044433593753,17462298274040222167968753,87311491370201110839843753,436557456851005554199218753,2182787284255027770996093753,10913936421275138854980468753,54569682106375694274902343753,272848410531878471374511718753,1364242052659392356872558593753,6821210263296961784362792968753,34106051316484808921813964843753,170530256582424044609069824218753,852651282912120223045349121093753,4263256414560601115226745605468753,21316282072803005576133728027343753,106581410364015027880668640136718753,532907051820075139403343200683593753 mov $1,5 pow $1,$0 mul $1,6 add $1,3 mov $0,$1
121.111111
1,008
0.912844
3958253df8abab14c092e5adadcd21e0e87a79e2
7,134
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i9-9900K_12_0xca.log_21829_1406.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i9-9900K_12_0xca.log_21829_1406.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i9-9900K_12_0xca.log_21829_1406.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1a159, %rbx clflush (%rbx) nop nop and %rsi, %rsi vmovups (%rbx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %rdi nop nop nop and %rbx, %rbx lea addresses_D_ht+0x13499, %rbx add $60143, %r11 movl $0x61626364, (%rbx) nop inc %rdi lea addresses_A_ht+0x13759, %rsi lea addresses_D_ht+0x172d9, %rdi nop nop xor $8568, %rbx mov $59, %rcx rep movsw nop nop cmp $14659, %rcx lea addresses_normal_ht+0x12419, %rcx nop sub %r13, %r13 movb (%rcx), %r11b nop and %r11, %r11 lea addresses_D_ht+0x17359, %rsi lea addresses_UC_ht+0x18d91, %rdi nop nop nop nop nop cmp $64138, %r9 mov $96, %rcx rep movsq nop nop nop nop nop sub %rbp, %rbp lea addresses_WT_ht+0x1b359, %r11 cmp $56562, %r9 mov $0x6162636465666768, %r13 movq %r13, %xmm0 movups %xmm0, (%r11) nop nop nop nop nop sub %rdi, %rdi lea addresses_A_ht+0x10659, %r11 nop nop nop cmp $1948, %rbp mov (%r11), %rsi nop nop nop nop nop dec %rcx lea addresses_A_ht+0x25d9, %rbp nop nop nop and $63794, %r13 movb $0x61, (%rbp) nop nop nop nop and %r13, %r13 lea addresses_WT_ht+0x3225, %rsi lea addresses_WC_ht+0x11759, %rdi nop nop nop nop add %r11, %r11 mov $103, %rcx rep movsl nop nop nop add $52736, %rbp lea addresses_WC_ht+0x9d9, %rdi sub $18159, %r11 mov $0x6162636465666768, %r13 movq %r13, %xmm5 movups %xmm5, (%rdi) nop nop nop nop nop add $47690, %r9 lea addresses_normal_ht+0x19ad9, %rdi nop nop nop nop cmp %r11, %r11 mov (%rdi), %r9w and %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %r9 push %rdi push %rdx push %rsi // Store lea addresses_WC+0xf359, %r9 nop nop nop dec %rdi mov $0x5152535455565758, %rdx movq %rdx, %xmm3 vmovups %ymm3, (%r9) nop nop add $42658, %r9 // Faulty Load lea addresses_UC+0x1ef59, %r12 inc %r14 vmovaps (%r12), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %rsi lea oracles, %r12 and $0xff, %rsi shlq $12, %rsi mov (%r12,%rsi,1), %rsi pop %rsi pop %rdx pop %rdi pop %r9 pop %r8 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 9}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': True, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 7}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': True, 'congruent': 7}} {'44': 8, '49': 4509, '46': 17104, '45': 134, '39': 1, '00': 71, 'f5': 2} 44 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 49 49 46 46 49 49 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 49 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 49 49 49 46 46 49 46 46 46 49 46 46 49 46 46 49 49 46 46 46 46 46 46 46 46 46 46 46 49 49 46 46 46 49 49 46 46 49 46 46 49 46 46 49 46 45 49 46 46 49 46 46 46 46 46 49 49 46 46 46 46 46 46 46 46 46 46 49 49 49 46 46 46 49 46 46 46 46 46 46 46 49 49 49 46 46 46 49 46 46 49 46 46 46 46 46 49 49 46 46 46 49 46 46 46 46 46 46 46 46 46 49 46 46 49 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 49 49 46 46 49 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 49 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 49 49 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 49 46 46 46 46 46 49 49 49 46 46 49 46 46 46 46 46 46 46 46 49 49 49 46 46 46 49 46 46 49 46 46 46 46 46 49 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 49 49 46 46 46 46 46 46 46 49 49 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 49 46 46 46 46 46 49 49 49 46 46 46 46 46 46 49 46 46 46 46 46 46 46 45 49 46 46 49 46 46 49 46 46 46 46 46 49 49 46 49 46 46 49 46 46 49 46 46 49 49 46 46 46 46 49 46 46 46 46 46 46 46 49 49 49 46 46 46 46 46 46 49 46 46 49 46 46 46 46 45 49 46 46 49 46 46 46 46 46 46 46 46 49 49 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 49 49 49 46 46 46 49 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 49 46 46 49 49 49 46 46 46 49 46 46 46 46 46 46 46 49 46 46 46 46 49 46 46 49 46 46 46 49 46 49 49 49 46 46 46 46 46 46 46 46 46 46 46 49 49 46 46 46 49 46 46 49 46 46 49 46 46 49 49 46 46 46 46 49 49 46 46 46 49 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 49 49 46 46 46 46 46 46 46 46 46 46 46 46 49 49 49 46 46 46 46 46 46 46 46 46 46 46 49 49 46 46 46 46 46 46 46 46 46 46 49 46 46 46 45 46 49 49 46 46 46 45 49 46 46 49 46 49 46 00 46 49 46 49 46 46 46 49 46 46 49 46 49 46 46 49 49 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 49 49 46 46 46 49 46 46 46 49 46 46 46 46 46 46 46 49 49 46 46 46 46 49 46 46 46 46 46 46 46 49 49 49 46 46 46 49 46 46 46 46 46 46 46 49 49 49 46 46 46 46 46 46 46 46 46 49 46 46 46 49 46 46 46 46 46 46 46 49 49 49 46 46 46 49 46 46 46 46 46 46 46 49 49 46 46 46 46 46 49 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 49 49 49 49 49 46 46 46 46 46 49 46 46 46 46 46 46 46 49 49 49 46 46 46 46 46 46 46 46 46 49 49 46 46 46 46 46 46 49 46 46 49 46 46 49 49 49 46 46 46 49 46 46 46 46 46 49 46 46 46 46 46 46 46 46 49 49 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 49 49 46 46 46 46 46 46 46 49 46 46 46 46 46 46 49 49 46 46 46 49 46 46 49 46 46 46 46 46 49 49 49 46 49 46 46 46 46 46 46 49 46 46 46 46 46 46 46 49 49 46 46 49 46 46 49 46 46 49 46 46 49 49 46 46 46 49 46 46 49 46 46 49 46 */
35.67
2,999
0.656154
83df6c9a373633e4502d872aff99e8b96be360f6
679
asm
Assembly
oeis/014/A014729.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/014/A014729.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/014/A014729.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A014729: Squares of even Fibonacci numbers. ; Submitted by Jamie Morken(s4) ; 0,4,64,1156,20736,372100,6677056,119814916,2149991424,38580030724,692290561600,12422650078084,222915410843904,4000054745112196,71778070001175616,1288005205276048900,23112315624967704576,414733676044142633476,7442093853169599697984,133542955681008651930244,2396331108404986135046400,43000416995608741778904964,771611174812552365885242944,13846000729630333844155468036,248456401958533456828913181696,4458369234523971889076281802500,80002189819472960546544159263296,1435581047515989317948718584936836 mul $0,3 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. pow $0,2
84.875
499
0.858616
d1dd85d1299172e4582f2d645adf66c437805642
583
asm
Assembly
Library/Chart/Series/seriesEC.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Chart/Series/seriesEC.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Chart/Series/seriesEC.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: seriesEC.asm AUTHOR: Chris Boyke METHODS: Name Description ---- ----------- FUNCTIONS: Scope Name Description ----- ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- CDB 2/26/92 Initial version. DESCRIPTION: $Id: seriesEC.asm,v 1.1 97/04/04 17:47:14 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
18.806452
71
0.432247
04e4cbf9abf6c62961f3008b2fa337fdf377f1e4
462
asm
Assembly
programs/oeis/281/A281228.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/281/A281228.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/281/A281228.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A281228: Expansion of (Sum_{k>=0} x^(3^k))^2 [even terms only]. ; 0,1,2,1,0,2,2,0,0,1,0,0,0,0,2,2,0,0,2,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,2,0,0,0,0,0,0,0,0,2,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,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 seq $0,126792 ; Removing the first, fourth, seventh, tenth ... term of the sequence yields the original sequence, augmented by 1. lpb $0 sub $0,1 pow $0,4 add $1,2 lpe div $1,2 mov $0,$1
38.5
201
0.58658
4cb9ffde314518c1895c8de8a80ba74ea2a0cf7f
498
asm
Assembly
oeis/258/A258998.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/258/A258998.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/258/A258998.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A258998: a(n) = -(-1)^n if n = k^2 for positive integer k, otherwise 0. ; Submitted by Jamie Morken(s2) ; 0,1,0,0,-1,0,0,0,0,1,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $2,$0 seq $0,272188 ; Triangle with 2*n+1 terms per row, read by rows: the first row is 1 (by decree), following rows contain 0 to 2n+1 but omitting 2n. sub $0,1 add $2,1 bin $0,$2
49.8
205
0.594378
5416ced817d1576e57915a9fd5822518d3a86995
6,839
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_1469.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_1469.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_1469.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 %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xec36, %r8 nop add %rdx, %rdx movb $0x61, (%r8) nop dec %rbx lea addresses_UC_ht+0x1e534, %r13 nop add %rbx, %rbx movl $0x61626364, (%r13) nop nop nop nop xor %r8, %r8 lea addresses_normal_ht+0x14436, %rsi lea addresses_A_ht+0x16f86, %rdi nop nop sub %rbx, %rbx mov $45, %rcx rep movsb nop nop xor %r8, %r8 lea addresses_UC_ht+0x10e36, %r8 nop nop nop xor %r13, %r13 mov (%r8), %rcx cmp $50539, %r8 lea addresses_D_ht+0x42f6, %r8 nop nop nop nop xor %rcx, %rcx movl $0x61626364, (%r8) nop nop nop add %r8, %r8 lea addresses_UC_ht+0x12c0e, %r8 nop nop nop xor %rcx, %rcx mov $0x6162636465666768, %rdi movq %rdi, (%r8) nop nop nop nop nop inc %r12 lea addresses_D_ht+0x12246, %rsi lea addresses_WT_ht+0x1cf36, %rdi inc %r8 mov $44, %rcx rep movsq nop nop nop xor $40042, %rcx lea addresses_A_ht+0x6ea, %rdx clflush (%rdx) nop nop nop and %rdi, %rdi vmovups (%rdx), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rcx nop nop nop nop xor %rbx, %rbx lea addresses_WT_ht+0x1004a, %r12 nop nop nop mfence and $0xffffffffffffffc0, %r12 vmovntdqa (%r12), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %rsi and $17771, %rbx lea addresses_UC_ht+0xee2c, %rsi lea addresses_UC_ht+0x6bce, %rdi clflush (%rsi) nop and %r8, %r8 mov $19, %rcx rep movsb nop and %r13, %r13 lea addresses_D_ht+0x787e, %rsi lea addresses_D_ht+0x17ca5, %rdi nop nop nop nop nop add %r13, %r13 mov $56, %rcx rep movsl nop nop nop nop nop cmp $33739, %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rbx push %rdx push %rsi // Faulty Load mov $0x66c4750000000436, %rsi nop nop nop nop sub %rbx, %rbx movaps (%rsi), %xmm3 vpextrq $1, %xmm3, %r12 lea oracles, %rsi and $0xff, %r12 shlq $12, %r12 mov (%rsi,%r12,1), %r12 pop %rsi pop %rdx pop %rbx pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'dst': {'same': True, 'congruent': 4, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}} {'46': 17091, '49': 1130, '45': 3574, '44': 22, '00': 12} 46 46 46 46 46 46 46 46 45 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 45 45 45 46 46 46 46 46 46 46 46 49 46 49 46 46 46 46 46 46 46 46 46 46 46 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 49 46 46 45 45 45 45 45 46 46 46 49 46 46 49 46 46 46 46 46 46 45 45 45 46 46 46 46 46 46 45 45 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 49 46 46 46 46 46 49 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 45 45 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 45 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 45 45 46 46 46 46 46 46 46 46 46 46 46 46 46 49 45 45 45 45 46 46 46 46 49 46 46 46 46 46 46 46 46 45 45 00 46 46 49 46 46 46 46 46 46 49 45 45 45 45 45 45 45 45 45 45 46 46 46 46 46 46 46 46 46 46 46 49 45 45 45 46 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 46 46 46 46 49 46 46 46 46 46 46 46 46 46 45 45 45 45 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 49 46 46 46 46 46 46 49 45 45 46 46 46 46 49 46 46 45 45 45 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 49 46 46 46 46 46 46 45 45 45 45 45 45 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 49 45 45 45 45 45 46 46 46 46 46 46 49 45 45 45 45 45 45 45 46 46 46 46 46 46 46 46 46 46 46 46 45 45 45 45 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 49 44 46 46 46 46 46 46 46 46 46 46 46 46 46 46 45 45 45 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 49 46 46 49 46 46 46 46 46 46 49 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 49 45 45 46 46 46 46 46 46 45 45 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 45 45 45 45 45 46 46 46 46 46 46 46 49 45 45 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 45 45 45 45 45 45 45 45 46 46 46 46 46 49 46 49 46 46 46 46 46 46 46 46 45 45 45 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 49 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 49 46 46 46 46 46 49 46 46 46 46 46 46 46 46 46 46 46 45 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 */
36.768817
2,999
0.656675
fdbde48ac4faaf36fe2b00d7e19ea4aafed9a0bc
313
asm
Assembly
oeis/129/A129555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/129/A129555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/129/A129555.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A129555: A054523 * A129372. ; Submitted by Christian Krause ; 1,1,1,3,0,1,2,1,0,1,5,0,0,0,1,3,3,1,0,0,1,7,0,0,0,0,0,1,4,2,0,1,0,0,0,1,9,0,3,0,0,0,0,0,1,5,5,0,0,1,0,0,0,0,1 seq $0,126988 ; Triangle read by rows: T(n,k) = n/k if k is a divisor of n; T(n,k) = 0 if k is not a divisor of n (1 <= k <= n). dif $0,2
44.714286
128
0.58147
50ebe233d0403a50b05692f414957bfb72743d01
451
asm
Assembly
oeis/175/A175567.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/175/A175567.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/175/A175567.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A175567: (n!)^2 modulo n(n+1)/2. ; Submitted by Jon Maiga ; 0,1,0,6,0,15,0,0,0,45,0,66,0,0,0,120,0,153,0,0,0,231,0,0,0,0,0,378,0,435,0,0,0,0,0,630,0,0,0,780,0,861,0,0,0,1035,0,0,0,0,0,1326,0,0,0,0,0,1653,0,1770,0,0,0,0,0,2145,0,0,0,2415,0,2556,0,0,0,0,0,3003,0,0,0,3321,0,0,0,0,0,3828,0,0,0,0,0,0,0,4560,0,0,0,4950 add $0,1 mov $1,$0 bin $0,2 mov $2,$1 seq $2,10051 ; Characteristic function of primes: 1 if n is prime, else 0. mul $2,$0 mov $0,$2
37.583333
256
0.616408
ea34a655fd9e49031e6fc0316ecd9da6fec8d233
924
asm
Assembly
engine/battle/move_effects/curse.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
engine/battle/move_effects/curse.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
engine/battle/move_effects/curse.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
BattleCommand_curse: ; curse ld de, wBattleMonType1 ld bc, wPlayerStatLevels ldh a, [hBattleTurn] and a jr z, .go ld de, wEnemyMonType1 ld bc, wEnemyStatLevels .go ; Curse is different for Ghost-types. ld a, [de] cp GHOST jr z, .ghost inc de ld a, [de] cp GHOST jr z, .ghost ; not Ghost-type ld b, SPEED call ForceLowerStat ld b, ATTACK call ForceRaiseStat ld b, DEFENSE jp ForceRaiseStat .ghost ; Cut HP in half and put a curse on the opponent. call CheckHiddenOpponent jr nz, .failed call CheckSubstituteOpp jr nz, .failed ld a, BATTLE_VARS_SUBSTATUS1_OPP call GetBattleVarAddr bit SUBSTATUS_CURSE, [hl] jr nz, .failed set SUBSTATUS_CURSE, [hl] call AnimateCurrentMove ld hl, GetHalfMaxHP call CallBattleCore ld hl, SubtractHPFromUser call CallBattleCore call UpdateUserInParty ld hl, PutACurseText jp StdBattleTextbox .failed call AnimateFailedMove jp PrintButItFailed
15.4
49
0.752165
8ae53942ffd86bbb6b14bd70ad6b049cc05a12a9
17,409
asm
Assembly
cmd/command/tenv2.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
cmd/command/tenv2.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
cmd/command/tenv2.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
page ,132 ; SCCSID = @(#)tenv2.asm 1.1 85/05/14 ; SCCSID = @(#)tenv2.asm 1.1 85/05/14 TITLE Part6 COMMAND Transient routines. ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; Environment utilities and misc. routines .xlist .xcref include comsw.asm include dossym.inc include syscall.inc include find.inc include comseg.asm include comequ.asm .list .cref DATARES SEGMENT PUBLIC BYTE ;AC000; EXTRN pipeflag:byte DATARES ENDS TRANDATA SEGMENT PUBLIC BYTE ;AC000; EXTRN ACRLF_PTR:WORD EXTRN BadCD_Ptr:WORD EXTRN Badmkd_ptr:word EXTRN BADRMD_PTR:WORD EXTRN Extend_buf_ptr:word ;AN000; EXTRN Extend_buf_sub:byte ;AN022; EXTRN MD_exists_ptr:word ;AN006; EXTRN msg_disp_class:byte ;AC000; EXTRN NOSPACE_PTR:WORD EXTRN parse_chdir:byte ;AC000; EXTRN parse_mrdir:byte ;AC000; EXTRN PIPEEMES_PTR:WORD EXTRN string_buf_ptr:word TRANDATA ENDS TRANSPACE SEGMENT PUBLIC BYTE ;AC000; EXTRN CURDRV:BYTE EXTRN DESTINFO:BYTE EXTRN DESTTAIL:WORD EXTRN DIRCHAR:BYTE EXTRN dirflag:byte ;AN015; EXTRN KPARSE:BYTE ;AC000; 3/3/KK EXTRN msg_numb:word ;AN022; EXTRN parse1_addr:dword ;AC000; EXTRN parse1_type:byte ;AC000; EXTRN PATHPOS:WORD EXTRN RESSEG:WORD EXTRN srcxname:byte ;AC000; EXTRN string_ptr_2:word EXTRN SWITCHAR:BYTE EXTRN USERDIR1:BYTE TRANSPACE ENDS TRANCODE SEGMENT PUBLIC byte ASSUME CS:TRANGROUP,DS:NOTHING,ES:NOTHING,SS:NOTHING EXTRN cerror:near PUBLIC $chdir PUBLIC $mkdir PUBLIC $rmdir PUBLIC crlf2 PUBLIC crprint PUBLIC delim PUBLIC error_output PUBLIC fcb_to_ascz PUBLIC pathchrcmp PUBLIC pathcrunch PUBLIC savudir PUBLIC savudir1 PUBLIC scanoff PUBLIC strcomp break $Chdir ; **************************************************************** ; * ; * ROUTINE: $CHDIR ; * ; * FUNCTION: Entry point for CHDIR command. Parse the command ; * line. If path is found, CHDIR to path. If a drive ; * letter is found, get and display the current dir ; * of the specified drive. If nothing is found, get ; * and display the current dir of the default drive. ; * ; * INPUT: command line at offset 81H ; * ; * OUTPUT: none ; * ; **************************************************************** assume ds:trangroup,es:trangroup $CHDIR: mov si,81H mov di,offset trangroup:parse_chdir ;AN000; Get adderss of PARSE_CHDIR xor cx,cx ;AN000; clear cx,dx xor dx,dx ;AN000; invoke parse_with_msg ;AC018; call parser cmp ax,end_of_line ;AC000; are we at end of line? jz bwdJ ; No args cmp ax,result_no_error ;AC000; did we have an error? jnz ChDirErr ;AC018; yes - exit cmp parse1_type,result_drive ;AC000; was a drive entered? jnz REALCD ; no ; ; D: was found. See if there is anything more. ; mov di,offset trangroup:parse_chdir ;AC000; get address of parse_chdir xor dx,dx ;AC000; invoke parse_check_eol ;AC000; call parser jnz ChDirErr ;AC000; bwdJ: invoke build_dir_for_chdir ; Drive only specified call crlf2 return REALCD: push si ;AN000; save position in line lds si,parse1_addr ;AN000; get address of filespec invoke move_to_srcbuf ;AN000; move to srcbuf pop si ;AN000; restore position in line mov di,offset trangroup:parse_chdir ;AC000; get address of parse_chdir xor dx,dx ;AC000; invoke parse_check_eol ;AC000; call parser jnz ChDirErr ;AC000; invoke SETPATH TEST [DESTINFO],2 JNZ BadChdir MOV AH,CHDIR INT 21h retnc invoke get_ext_error_number ;AN022; get the extended error cmp ax,error_path_not_found ;AN022; see if path not found jz BadChDir ;AN022; yes - issue old message ;SR; ; We want to issue "Invalid Directory" message even if the path is valid ;but is not a directory. The extended error returns "Access denied" which ;is kind of confusing. Issue the old message if access denied error is ;returned ; cmp ax,error_access_denied jz BadChDir call Set_Ext_Error_Subst ;AN022; jmp short chdirerr ;AN022; BadChDir: MOV DX,OFFSET TRANGROUP:BADCD_ptr ChDirErr: invoke Std_Eprintf return break $Mkdir assume ds:trangroup,es:trangroup $MKDIR: CALL SETRMMK JC MkDirErr MOV AH,MKDIR INT 21h retnc invoke get_ext_error_number ;AN022; get the extended error cmp ax,error_path_not_found ;AN022; see if path not found jz MD_other_err ;AN022; yes - issue old message cmp ax,error_access_denied ;AN022; access denied? jz badmderr ;AN022; yes - see if file exists call Set_Ext_Error_Subst ;AN022; jmp short MkDirerr ;AC022; yes - go print it BADMDERR: mov dx,offset trangroup:srcxname ;AN006; Set Disk transfer address mov ah,Set_DMA ;AN006; int 21h ;AN006; MOV AH,Find_First ;AN006; see if file/dir exists mov cx,attr_directory ;AN006; search for directory INT 21h ;AN006; jc MD_other_err ;AN006; doesn't exist - must be something else mov dl,srcxname.find_buf_attr ;AN006; we found a file/dir test dl,attr_directory ;AN006; was it a directory? jz MD_other_err ;AN006; no - must have been a file mov dx,offset trangroup:MD_exists_ptr ;AN006; set up already exists error jmp short MkDirErr ;AN006; make sure we didn't have network error MD_other_err: ;AN006; MOV DX,OFFSET TRANGROUP:BADMKD_ptr MkDirErr: invoke Std_Eprintf return Break <Common MkDir/RmDir set up code> ;**************************************************************** ;* ;* ROUTINE: SETRMMK ;* ;* FUNCTION: Parse routine for the internal MKDIR and RMDIR ;* commands. Parses the command line for a required ;* filespec. ;* ;* INPUT: command line at offset 81H ;* ;* OUTPUT: carry clear ;* DS:DX points to ASCIIZ argument ;* carry set ;* DS:DX has error message pointer ;* ;**************************************************************** SETRMMK: mov si,81H mov di,offset trangroup:parse_mrdir ;AN000; Get adderss of PARSE_MRDIR xor cx,cx ;AN000; clear cx,dx xor dx,dx ;AN000; invoke parse_with_msg ;AC000; call parser cmp ax,result_no_error ;AC000; did we have an error? jnz NOARGERR ;AC000; yes - exit mov di,offset trangroup:srcxname ;AN000; get address of srcxname push di ;AN000; save address push si ;AN000; save position in line lds si,parse1_addr ;AN000; get address of path mrdir_move_filename: ;AN000; put filespec in srcxname lodsb ;get a char from buffer stosb ;AN000; store in srcxname cmp al,end_of_line_out ;AC000; it char a terminator? jnz mrdir_move_filename ;AC000; no - keep moving pop si ;AN000; get line position back ; ; we have scanned an argument. See if any args beyond. ; mov di,offset trangroup:parse_mrdir ;AC000; get address of parse_mrdir invoke parse_check_eol ;AC000; are we at end of line? pop dx ;AC000; get address of SRCXNAME retz ;yes - return no error NOARGERR: mov dx,offset TranGroup:Extend_Buf_ptr ;AC000; get extended message pointer XOR AX,AX STC return break $Rmdir assume ds:trangroup,es:trangroup $RMDIR: CALL SETRMMK JC RmDirErr JNZ BADRDERR MOV AH,RMDIR INT 21h retnc invoke get_ext_error_number ;AN022; get the extended error cmp ax,error_path_not_found ;AN022; see if path not found jz badrderr ;AN022; yes - issue old message cmp ax,error_access_denied ;AN022; access denied? jz badrderr ;AN022; yes - issue old message call Set_Ext_Error_Subst ;AN022; jmp short RmDirerr ;AC022; yes - go print it BADRDERR: MOV DX,OFFSET TRANGROUP:BADRMD_ptr RmDirErr: invoke STD_Eprintf return ;**************************************************************** ;* ;* ROUTINE: Set_ext_error_subst ;* ;* FUNCTION: Sets up substitution for extended error ;* ;* INPUT: AX - extended error number ;* DX - offset of string ;* ;* OUTPUT: Extend_Buf_Ptr set up for STD_EPRINTF ;* ;**************************************************************** Set_ext_error_subst proc near ;AN022; mov msg_disp_class,ext_msg_class ;AN022; set up extended error msg class mov string_ptr_2,dx ;AN022; get address of failed string mov Extend_buf_sub,one_subst ;AN022; put number of subst in control block mov dx,offset TranGroup:Extend_Buf_ptr ;AN022; get extended message pointer mov Extend_Buf_ptr,ax ;AN022; get message number in control block ret ;AN022; return Set_ext_error_subst endp ;AN022; Break <SavUDir - preserve the users current directory on a particular drive> ; ; SavUDir - move the user's current directory on a drive into UserDir1 ; SavUDir1 - move the user's current directory on a drive into a specified ; buffer ; ; Inputs: DL has 1-based drive number ; ES:DI has destination buffer (SavUDir1 only) ; Outputs: Carry Clear ; DS = TranGroup ; Carry Set ; AX has error code ; Registers Modified: AX, SI ; SAVUDIR: MOV DI,OFFSET TRANGROUP:USERDIR1 SAVUDIR1: MOV AL,DL ADD AL,'@' CMP AL,'@' JNZ GOTUDRV ADD AL,[CURDRV] INC AL ; A = 1 GOTUDRV: STOSB MOV AH,[DIRCHAR] MOV AL,':' STOSW PUSH ES POP DS ASSUME DS:NOTHING MOV SI,DI MOV AH,CURRENT_DIR ; Get the Directory Text INT 21h retc PUSH CS POP DS ASSUME DS:TRANGROUP return CRLF2: PUSH DX MOV DX,OFFSET TRANGROUP:ACRLF_ptr PR: PUSH DS PUSH CS POP DS invoke std_printf POP DS POP DX return ; ; These routines (SCANOFF, DELIM) are called in batch processing when DS ; may NOT be TRANGROUP ; ASSUME DS:NOTHING,ES:NOTHING SCANOFF: LODSB CALL DELIM JZ SCANOFF DEC SI ; Point to first non-delimiter return ; ; Input: AL is character to classify ; Output: Z set if delimiter ; NZ set otherwise ; Registers modified: none ; DELIM: CMP AL,' ' retz CMP AL,'=' retz CMP AL,',' retz CMP AL,';' retz CMP AL,9 ; Check for TAB character retz CMP AL,0ah ; Check for line feed character - BAS return ASSUME DS:TRANGROUP,ES:TRANGROUP FCB_TO_ASCZ: ; Convert DS:SI to ASCIZ ES:DI MOV CX,8 MAINNAME: LODSB CMP AL,' ' JZ SKIPSPC STOSB SKIPSPC: LOOP MAINNAME LODSB CMP AL,' ' JZ GOTNAME MOV AH,AL MOV AL,dot_chr STOSB XCHG AL,AH STOSB MOV CL,2 EXTNAME: LODSB CMP AL,' ' JZ GOTNAME STOSB LOOP EXTNAME GOTNAME: XOR AL,AL STOSB return STRCOMP: ; ; Compare ASCIZ DS:SI with ES:DI. ; SI,DI destroyed. ; CMPSB retnz ; Strings not equal cmp byte ptr [SI-1],0 ; Hit NUL terminator? retz ; Yes, strings equal jmp short STRCOMP ; Equal so far, keep going CRPRINT: PUSH AX MOV AL,13 PUSH CX PUSH DI MOV DI,DX MOV CX,-1 PUSH ES PUSH DS POP ES REPNZ SCASB ; LOOK FOR TERMINATOR mov byte ptr [di-1],0 ; nul terminate the string POP ES mov string_ptr_2,dx mov dx,offset trangroup:string_buf_ptr invoke std_printf mov ds:byte ptr [di-1],13 ; now put the CR back JC ERROR_OUTPUT POP DI POP CX POP AX return ERROR_OUTPUT: PUSH CS POP DS ASSUME DS:TRANGROUP MOV ES,[RESSEG] ASSUME ES:RESGROUP MOV DX,OFFSET TRANGROUP:NOSPACE_ptr CMP [PIPEFLAG],0 JZ GO_TO_ERROR invoke PipeOff MOV DX,OFFSET TRANGROUP:PIPEEMES_ptr GO_TO_ERROR: JMP CERROR ASSUME DS:TRANGROUP,ES:TRANGROUP PATHCHRCMP: ;---- Mod for path invocation ---- PUBLIC pathchrcmp ;---- push ax mov ah,'/' CMP [SWITCHAR],ah JZ NOSLASHT CMP AL,'/' jz pccont NOSLASHT: CMP AL,'\' pccont: pop ax return ; ; PATHCRUNCH - ; ; ENTRY FCB (in PSP) contains drive # to crunch on ; PathPos = ptr to string with pathname in it ; PathCnt = length of string ; ; EXIT PathPos = ptr after pathname (w/ NULL) in string ; PathCnt = length left in string ; DestIsDir = nonzero if pathname delimiter char's found in pathname ; DestInfo<bit1> = set if wildcard char's found in pathname ; If path crunched successfully, ; CY = clear ; Current directory is changed to directory in pathname ; UserDir1 contains previous directory for use by RestUDir ; RestDir = nonzero to flag later restoration of user's dir ; DestTail = ptr to beginning of filename ; If filename found in pathname, ; ZR = clear ; FCB filename fields contain filename ; If filename not found (pure directory path), ; ZR = set ; FCB filename fields are wildcarded with ?'s ; If pathcrunch failed (no ChDir's worked), ; CY = set ; Msg_Numb = extended error code ; ; NOTE DIR asks PathCrunch to forego parsing the filename into the ; FCB by setting DirFlag. In this case, the FCB is returned ; with the filename wildcarded. ; PATHCRUNCH: mov [msg_numb],0 ;AN022; Set up message flag MOV DL,DS:[FCB] ; DL = drive # (1 = A) CALL SAVUDIR ; save current directory in UserDir1 jc pcrunch_cderrJ ;AN022; if error on current dir - report invoke SETPATH ; scan past switches, whitespace ; DX = ptr to pathname, NULL-terminated ; PathPos = ptr to byte after NULL at end of pathname TEST [DESTINFO],2 ; test if wildcards (? or *) seen JNZ TRYPEEL ; wildcard seen, peel filename MOV AH,CHDIR ; AH = DOS ChDir function code INT 21h ; call DOS jnc chdir_worked ;AN022; no error - continue invoke get_ext_error_number ;AN022; get the extended error cmp ax,error_path_not_found ;AN022; if path not found jz trypeel ;AC022; keep trying cmp ax,error_access_denied ;AN022; if access denied jz trypeel ;AC022; keep trying mov [msg_numb],ax ;AN022; set up message flag jmp peelfail ;AN022; exit with other error chdir_worked: invoke SETREST1 ; set 'Restore Directory' flag true MOV AL,'?' ; if pure dir, wildcard filename in FCB MOV DI,5DH MOV CX,11 REP STOSB XOR AL,AL ; return carry clear, zero set return pcrunch_cderrj: ;AN022; need this for long jmp jmp pcrunch_cderr ;AN022; TRYPEEL: MOV SI,[PATHPOS] DEC SI ; SI = ptr to NULL at end of pathname MOV AL,[SI-1] ; AL = last char of pathname CMP [KPARSE],0 JNZ DELSTRT ; Last char is second KANJI byte, might be '\' CALL PATHCHRCMP JZ PEELFAIL ; Trailing '/' DELSTRT: MOV CX,SI ; CX = ptr to NULL at end of pathname MOV SI,DX ; SI = ptr to start of pathname PUSH DX ; save ptr to pathname DELLOOP: CMP SI,CX JZ GOTDELE ; no char's left, we have what we have LODSB ; AL = next char of pathname invoke TESTKANJ JZ NOTKANJ8 ; not Kanji, move along INC SI JMP DELLOOP NOTKANJ8: CALL PATHCHRCMP JNZ DELLOOP ; not a path delimiter, keep looking MOV DX,SI DEC DX ; DX = ptr to last delimiter found JMP DELLOOP ; go look for more GOTDELE: MOV SI,DX ; SI = ptr to pathname or last delim POP DX ; DX = ptr to pathname CMP SI,DX JZ BADRET ; didn't find path delim MOV CX,SI ; CX = ptr to last path delimiter MOV SI,DX ; SI = ptr to pathname DELLOOP2: ; Set value of KPARSE CMP SI,CX JZ TRYCD ; roll up till SI meets CX MOV [KPARSE],0 LODSB INVOKE TESTKANJ JZ DELLOOP2 INC SI INC [KPARSE] JMP DELLOOP2 TRYCD: push ax mov al,dot_chr ; AL = '.' CMP BYTE PTR [SI+1],al ; check for '.' after path delim ;M019; allow continuation if '. ' or ;M019; '..' is not found. jnz @F ;M019; '.' not found cmp BYTE PTR [SI+2],al ;M019; check for '..' jz @F ;M019; found '..' cmp BYTE PTR [SI+2],0 ;M019; check for '. ' (null terminated) @@: pop ax JZ PEELFAIL ; if . or .., pure cd should have worked mov al,[si-1] CMP al,':' ; Special case d:\file JZ BADRET CMP [KPARSE],0 JNZ NOTDOUBLESL ; Last char is second KANJI byte, might be '\' CALL PATHCHRCMP JNZ NOTDOUBLESL PEELFAIL: STC ; // return NOTDOUBLESL: MOV BYTE PTR [SI],0 MOV AH,CHDIR INT 21h JNC CDSUCC pcrunch_cderr: invoke get_ext_error_number ;AN022; get the extended error mov [msg_numb],ax ;AN022; set up message flag or si,si ;AN022; set up zero flag to not zero stc ;AN022; set up carry flag return BADRET: MOV AL,[SI] CALL PATHCHRCMP ; Special case 'DIRCHAR'file STC retnz XOR BL,BL XCHG BL,[SI+1] MOV AH,CHDIR INT 21h jc pcrunch_cderr ;AN022; go to error exit MOV [SI+1],BL CDSUCC: invoke SETREST1 INC SI ; Reset zero MOV [DESTTAIL],SI pushf ;AN015; save flags cmp dirflag,-1 ;AN015; don't do parse if in DIR jz pcrunch_end ;AN015; MOV DI,FCB MOV AX,(PARSE_FILE_DESCRIPTOR SHL 8) OR 02H ; Parse with default drive INT 21h pcrunch_end: popf ;AN015; get flags back return trancode ends end 
24.485232
81
0.64392
7effd81cbe5e083a5d23a55234a8bb250eb78583
924
asm
Assembly
programs/oeis/194/A194223.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/194/A194223.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/194/A194223.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A194223: a(n) = [sum{(k/6) : 1<=k<=n}], where [ ]=floor, ( )=fractional part. ; 0,0,1,1,2,2,2,3,3,4,5,5,5,5,6,6,7,7,7,8,8,9,10,10,10,10,11,11,12,12,12,13,13,14,15,15,15,15,16,16,17,17,17,18,18,19,20,20,20,20,21,21,22,22,22,23,23,24,25,25,25,25,26,26,27,27,27,28,28,29,30,30,30,30,31,31,32,32,32,33,33,34,35,35,35,35,36,36,37,37,37,38,38,39,40,40,40,40,41,41,42,42,42,43,43,44,45,45,45,45,46,46,47,47,47,48,48,49,50,50,50,50,51,51,52,52,52,53,53,54,55,55,55,55,56,56,57,57,57,58,58,59,60,60,60,60,61,61,62,62,62,63,63,64,65,65,65,65,66,66,67,67,67,68,68,69,70,70,70,70,71,71,72,72,72,73,73,74,75,75,75,75,76,76,77,77,77,78,78,79,80,80,80,80,81,81,82,82,82,83,83,84,85,85,85,85,86,86,87,87,87,88,88,89,90,90,90,90,91,91,92,92,92,93,93,94,95,95,95,95,96,96,97,97,97,98,98,99,100,100,100,100,101,101,102,102,102,103,103,104 add $0,1 cal $0,130484 ; a(n) = Sum_{k=0..n} (k mod 6) (Partial sums of A010875). div $0,6 mov $1,$0
115.5
741
0.638528
244a6a5ab7c3ea3ea20281c302ab71bbdf6fa5d0
144
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/FZERO/FZERO/Game/effect.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
46
2020-08-02T08:00:14.000Z
2022-03-07T02:25:47.000Z
other.7z/SFC.7z/SFC/ソースデータ/FZERO/FZERO/Game/effect.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/FZERO/FZERO/Game/effect.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
12
2020-07-29T05:00:28.000Z
2021-12-11T20:30:28.000Z
Name: effect.asm Type: file Size: 61229 Last-Modified: '2000-11-08T02:03:12Z' SHA-1: 269E3A56B08A6A3D7892BE1015827C4AE1E20564 Description: null
20.571429
47
0.8125
8b667aac1dd3e8e6b32aacd89aa22e61bc04e126
11,795
asm
Assembly
Routines/Conversion.asm
vcte/eclectic
46d82f3a573d9fd09847a07cb9017d8a57db9b1a
[ "MIT" ]
1
2018-10-22T23:38:28.000Z
2018-10-22T23:38:28.000Z
Routines/Conversion.asm
vcte/eclectic
46d82f3a573d9fd09847a07cb9017d8a57db9b1a
[ "MIT" ]
null
null
null
Routines/Conversion.asm
vcte/eclectic
46d82f3a573d9fd09847a07cb9017d8a57db9b1a
[ "MIT" ]
null
null
null
; =============================================================== ; Conversion Routines ; =============================================================== ; =============================================================== ; IntStr: ; Converts an integer to a NTBS string ; Input: A = integer to convert ; Output: (conv) = converted string ; HL = pointer to conv ; A = str length ; =============================================================== IntStr: ld C, 3 IntStrlp: dec C ld D, 10 call div ;A / 10 ld B, $30 ;find ASCII equivalent of remainder add A, B ex DE, HL ld HL, conv ;sto to (conv) ld B, 0 add HL, BC ld (HL), A ex DE, HL ld A, L ;ret if quotient is zero or A jr nz, IntStrlp ;else, loop ld B, C ld A, B or A jr z, intstr0 ;skip if already left aligned IntStrlp2: push BC ;shift bytes to the left until C = 0 ld HL, conv + 1 ld DE, conv ld BC, 2 ldir pop BC djnz intstrlp2 IntStr0: ld A, 3 sub C push AF ld HL, conv ld B, 0 ld C, A add HL, BC ld (HL), 0 ld HL, conv pop AF ret ; =============================================================== ; BCDStr: ; Converts BCD to a NTBS string ; Input: HL = pointer to start of BCD ; Output: (BCD) = converted string ; HL = pointer to bcd ; =============================================================== BCDStr: ld DE, bcd ;86FE BCDStrlp: ld A, (HL) ld B, 4 BCDStr1: srl A ;upper 4 bits of A into A rr C ;lower 4 bits of A into C djnz BCDStr1 ld B, 4 BCDStr2: srl C djnz BCDStr2 or A ;exit if null terminated jr z, BCDStr0 ld B, $2D add A, B ld (DE), A inc DE ld A, C or A jr z, BCDStr0 ld B, $2D add A, B ld (DE), A inc DE inc HL jr BCDStrlp BCDStr0: xor A ld (DE), A ld HL, bcd ret ; =============================================================== ; StrInt: ; Converts a string to an 8 bit unsigned integer ; Input: (input) = string input ; Output: B = converted integer ; c = error ; =============================================================== StrInt: ld HL, input StrInt2: ld B, 0 StrIntLp: ld A, (HL) inc HL or A ret z ;end if no more chars sub '0' ret c ;end if non-numerical char cp 10 ccf ret c ld C, A ld A, B cp 26 ;end if overflow (260+) ccf ret c ld D, B ;save num in case of overflow add A, A ;mult current number by 10 add A, A add A, B add A, A add A, C ;add new num ld B, A ;sto to B jr nc, StrIntLp ld B, D ;exit in case of overflow ret ; =============================================================== ; StrFP: ; Converts a NBTS string to an FP number ; Input: HL = pointer to string start ; B = max size of str ; Output: OP1 = FP number ; c = error ; HL = pointer to string end ; =============================================================== StrFp: push BC call BCDFPClear pop BC ld A, (HL) ;if character after the element symbol is a number or dot... cp '.' ret c cp '9' + 1 ccf ret c ld DE, block18 ;...then find the number's value sub '.' - 1 ld (DE), A inc HL inc DE StrFPLp: ld A, (HL) cp '.' jr c, StrFPNotNum cp '9' + 1 jr nc, StrFPNotNum sub '.' - 1 ld (DE), A inc DE inc HL djnz StrFPLp StrFPNotNum: xor A ld (DE), A push HL call BCDFPDone1 ;subscript value into OP1 pop HL or A ret ; =============================================================== ; BCDFP ; Converts a BCD to floating point number ; Input: HL = pointer to BCD ; Output: OP1 = FP number ; =============================================================== BCDFP: ld A, (HL) cp $30 ;if BCD is zero jp z, BCDFPZero ;set OP1 to 0 call BCDFPClear ld DE, block18 ;extracts BCD to 18 byte data block BCDFPLp: ;ex: $41, $33, $AC, $70 would become ld A, (HL) ; $04, $01, $03, $03, $0A, $0C, $07, $00 inc HL call BCDFPNib ld B, A ld A, C ld (DE), A inc DE or A jr z, BCDFPDone1 ld A, B ld (DE), A inc DE or A jr z, BCDFPDone1 jr BCDFPLp BCDFPDone1: ld A, $FF ;default value of CommaPos - if comma not found, then (CommPos) = $FF ld (CommaPos), A ld HL, block18 ld DE, block18A ld B, 0 ;set counter to find first significant digit BCDFPLp2: ;move HL to first significant, nonzero digit ld A, (HL) cp 4 jr nc, BCDFPDone2 or A jr z, BCDFPDone2 cp 1 ;if comma is encountered jr nz, BCDFPSkip0 ld A, B ;then mark its position in the BCD ld (CommaPos), A BCDFPSkip0: inc HL inc B jr BCDFPLp2 BCDFPDone2: ld A, B ld (sig1), A ; ld B, 0 ;set counter to find pos of comma BCDFPLp3: ld A, (HL) inc HL or A jr z, BCDFPDone3 cp 1 ;if comma is encountered jr nz, BCDFPSkip ld A, B ;then mark its position in the BCD ld (CommaPos), A jr BCDFPLp3 BCDFPSkip: sub 3 ;convert each digit in block18 to TI's FP format, store in block18A ld (DE), A inc DE inc B jr BCDFPLp3 BCDFPDone3: ld A, B ;set length (from first sig to end of bcd) ld (LengthBCD), A ;find exponent through divide and conquer ld HL, commapos ;3 possibilities: ld A, $FF cp (HL) jr z, BCDFPSkip2 ld A, (sig1) cp (HL) jr z, BCDFPSkip2 cp (HL) jr c, BCDFPSkip2 ;(1): (sig1) > (commapos), therefore, FP exponent < $80 && FP is a NonInt < 1 ld A, $80 ;Exp = $80 + (CommaPos) - (Sig1) ld HL, CommaPos ld B, (HL) add A, B dec HL ld B, (HL) sub B jr BCDFPExp BCDFPSkip2: ld A, (CommaPos) cp $FF jr z, BCDFPSkip3 ;(2): (CommaPos) /= 0, therefore, FP exponent > $80 && FP is a NonInt > 1 ld A, $80 ;Exp = $80 + (CommaPos) - (sig1) - 1 ld HL, CommaPos ld B, (HL) add A, B dec HL sub (HL) dec A jr BCDFPExp BCDFPSkip3: ;(3): Else, FP exponent > $80 and FP is whole # ld A, $80 ;Exp = $80 + (length) - (sig1) - 1 ld HL, LengthBCD add A, (HL) dec HL dec HL sub (HL) dec A BCDFPExp: ld (block9 + 1), A ;enter exponent ld HL, block18A ld DE, block9 + 2 ld B, 7 BCDFPLp4: push BC ;compress data in 18 byte block back into 9 byte OP stuff ld C, 0 ld A, (HL) inc HL ld B, 4 BCDFPLp42: srl A rr C djnz BCDFPLp42 ld A, (HL) inc HL or C ld (DE), A inc DE pop BC djnz BCDFPLp4 ld HL, block9 rst rMov9ToOp1 ret BCDFPNib: ;'subroutine' that extracts nibbles from A and outputs to CA ld B, 4 ld C, 0 BCDFPNibLp: sla A rl C djnz BCDFPNibLp ld B, 4 BCDFPNibLp2: srl A djnz BCDFPNibLp2 ret BCDFPClear: push HL ;clears out both 18 byte data blocks and temp data and 9 byte block ld HL, block9 xor A ld (HL), A ld DE, block9 + 1 ld BC, 18 * 2 + 3 + 9 ldir pop HL ret BCDFPZero: b_call(_OP1Set0) ret ; =============================================================== ; IntFP: ; Converts a 1-byte integer to FP ; Input: A = integer ; Output: OP1 = FP ; =============================================================== IntFP: or A jr z, IntFPZero call IntStr call BCDFPClear ld HL, conv ld DE, block18 IntFPLp: ld A, (HL) or A jr z, IntFPDone sub '0' - 3 ld (DE), A inc DE inc HL jr IntFPLp IntFPDone: xor A ld (DE), A call BCDFPDone1 ret IntFPZero: b_call(_OP1Set0) ret ; =============================================================== ; Int2FP: ; Converts a 2-byte integer to FP ; Input: HL = integer ; Output: OP1 = FP ; =============================================================== Int2FP: push HL ;OP1 = 256 * H (as FP) + L (as FP) ld A, H call IntFP ld HL, FP256 b_call(_Mov9ToOp2) b_call(_FPMult) b_call(_Op1ToOp2) pop HL ld A, L call IntFP rst rFPAdd ret ; =============================================================== ; GetNum: ; Get ASCII number from GetCSC table ; Input: A = Scan code ; Output: A = ASCII ; c = error ; =============================================================== GetNum: sub $12 ;discard chars under '3' and over '7' ret c cp $24 - $12 + 1 ccf ret c ld HL, numtable ld D, 0 ld E, A add HL, DE ld A, (HL) or A ret nz scf ret ; =============================================================== ; GetChar: ; Get ASCII character from GetCSC table ; Input: A = Scan code ; Output: A = ASCII ; c = error ; =============================================================== GetChar: sub $0B ;discard characters under 'W' and over 'A' ret c cp $2F - $0B + 1 ccf ret c ld HL, chartable ;get char from table ld D, 0 ld E, A add HL, DE ld A, (HL) or A ret nz scf ret ; =============================================================== ; CharListNm: ; Converts a string of ASCII chars to a list name ; Input: HL = pointer to ASCII string ; Output: tokenstr = Token string ; HL = tokenstr ; =============================================================== CharListNm: ld DE, tokenstr ld A, RealObj ;OPTIMIZE w/ 2 byte regs ld (DE), A inc DE ld A, tVarLst ld (DE), A inc DE ld A, (HL) ;special value of 2 denotes L1 | L2, or the like cp 2 jr z, CharListNm1 CharListNmLp: ld A, (HL) or A jr z, CharListNmDone ld (DE), A inc DE inc HL jr CharListNmLp CharListNm1: inc HL ld A, (HL) sub '1' ld (DE), A inc DE CharListNmDone: xor A ld (DE), A ld HL, tokenstr ret ; =============================================================== ; GetA: ; Calculates the atomic number based on cursor position ; Input: (elex) = x position ; (eley) = y position ; Output: A = atomic number of element ; =============================================================== geta: xor A ld (temp), A ld A, (eley) ;row = ((eley) - 3) / 5 sub 3 cp 38 jr c, getat sub 13 ld HL, temp ;f group ld (HL), 1 getat: ld D, 5 call div ld D, 0 ;get min atomic number from row ld E, L ld HL, rowtable add HL, DE ld E, (HL) ld A, (elex) sub 3 ld D, 5 call div ld A, L ;case by case analysis of L (col) (0 - 17) and E (row) (1, 3, 11, 19, 37, 55, 87) cp 17 jr nz, geta1 ld A, E cp 1 jr nz, geta1 ld A, 2 ;Helium ld (curele), A ret geta1: ld A, L cp 12 jr c, geta2 ld A, E cp 19 jr nc, geta2 ld A, L sub 10 ;Groups 2p and 3p ld L, A jr geta0 geta2: ld A, (temp) or A jr nz, geta3 ld A, E cp 55 jr c, geta0 ld A, L cp 3 jr c, geta0 add A, 14 ;Groups 6d and 7d ld L, A jr geta0 geta3: inc L ;inner transition metals geta0: ld A, E add A, L ld (curele), A ret ; =============================================================== ; GetPos: ; Gets cursor position based on atomic number ; Input: A = atomic number ; Output: (elex) ; (eley) ; =============================================================== GetPos: cp 3 jr c, enterr1 cp 11 jr c, enterr2 cp 19 jr c, enterr3 cp 37 jr c, enterr4 cp 55 jr c, enterr5 cp 87 jr c, enterr6 ;//row 7 cp 90 jr c, enterr7a cp 104 jp c, enterr7b ld C, 33 call sety sub 104 ;A = (A - 104) * 5 + 18 jp enter61 enterr7a: ld C, 33 call sety sub 87 ;A = (A - 87) * 5 + 3 jp enter62 enterr7b: ld C, 46 call sety sub 90 ;A = (A - 90) * 5 + 3 ;GLITCH jp enter63 enterr1: ld C, 3 call sety cp 1 jr z, enterr1a ld A, 88 ld (elex), A ret enterr1a: ld A, 3 ld (elex), A ret enterr2: ld C, 8 call sety call multa5 ;A = (A - 3) * 5 + 3 = 5 * A - 12 sub 12 enterr20: cp 13 jr c, enterr2a add A, 50 enterr2a: ld (elex), A ret enterr3: ld C, 13 call sety call multa5 ;A = (A - 11) * 5 + 3 = 5 * A - 52 sub 52 jr enterr20 enterr4: ld C, 18 call sety call multa5 ;A = (A - 19) * 5 + 3 = 5 * A - 92 sub 92 ld (elex), A ret enterr5: ld C, 23 call sety call multa5 ;A = (A - 37) * 5 + 3 = 5 * A - 182 sub 182 ld (elex), A ret enterr6: cp 58 jr c, enterr6a cp 72 jr c, enterr6b ld C, 28 call sety sub 72 ;A = (A - 72) * 5 + 18 enter61: call multa5 add A, 18 ld (elex), A ret enterr6a: ld C, 28 call sety sub 55 ;A = (A - 55) * 5 + 3 enter62: call multa5 add A, 3 ld (elex), A ret enterr6b: ld C, 41 call sety sub 58 ;A = (A - 58) * 5 + 13 enter63: call multa5 add A, 13 ld (elex), A ret
16.825963
96
0.525901
31ebbee42255dbf416fed3d450166779171dcc6d
10,175
asm
Assembly
ta19demo/raycaster.asm
hallorant/bitmit
58f337ecbafe04066e71bc54efa4640643bf5373
[ "Apache-2.0" ]
6
2020-08-16T03:23:37.000Z
2022-03-19T20:50:27.000Z
ta19demo/raycaster.asm
hallorant/bitmit
58f337ecbafe04066e71bc54efa4640643bf5373
[ "Apache-2.0" ]
1
2021-09-14T22:24:14.000Z
2021-09-15T01:48:48.000Z
ta19demo/raycaster.asm
hallorant/bitmit
58f337ecbafe04066e71bc54efa4640643bf5373
[ "Apache-2.0" ]
1
2021-09-09T22:50:31.000Z
2021-09-09T22:50:31.000Z
; __ __ _ _ __ ; | \/ | | | | | /_ | ; | \ / | ___ __| | ___| | | | ; | |\/| |/ _ \ / _` |/ _ \ | | | ; | | | | (_) | (_| | __/ | | | ; |_| |_|\___/ \__,_|\___|_| |_| ; ; _____ _ _ ; | __ \ | | (_) ; | |__) |__ _ _ _ ___ __ _ ___| |_ _ _ __ __ _ ; | _ // _` | | | |/ __/ _` / __| __| | '_ \ / _` | ; | | \ \ (_| | |_| | (_| (_| \__ \ |_| | | | | (_| | ; |_| \_\__,_|\__, |\___\__,_|___/\__|_|_| |_|\__, | ; __/ | __/ | ; |___/ |___/ ; _____ ; | __ \ ; | | | | ___ _ __ ___ ___ ; | | | |/ _ \ '_ ` _ \ / _ \ ; | |__| | __/ | | | | | (_) | ; |_____/ \___|_| |_| |_|\___/ ; ; Author: Tim Halloran ; From the tutorial at https://lodev.org/cgtutor/raycasting.html org $4a00 import 'lib/barden_move.asm' import 'lib/barden_fill.asm' import 'lib/barden_mul16.asm' import 'lib/barden_hexcv.asm' ; Address of the start of video memory. screen equ $3c00 ; Our video back buffer: 11 lines 56 characters wide. ; We'll center this on the screen with 4-character margin. buff_line_width equ 56 buff01 defs buff_line_width buff02 defs buff_line_width buff03 defs buff_line_width buff04 defs buff_line_width buff05 defs buff_line_width buff06 defs buff_line_width buff07 defs buff_line_width buff08 defs buff_line_width buff09 defs buff_line_width buff10 defs buff_line_width buff11 defs buff_line_width ; To express the player direction (or angle) in one byte (unsigned) we ; adopt a circle with 256 divisions: (0,256]. ; 0 ; - | - ; | ; 192 -----+----- 64 ; | ; - | - ; 128 player_dir defb 110 ; Our world is 24x24 (see world.asm). player_x defw 16 player_y defw 16 frames_drawn defw 0 demo_mode defb 1 ; 1 = yes, 0 = no. use_vblank defb 1 ; 1 = yes, 0 = no. title_txt defb 'TRS-80 MODEL 1 RAYCASTING DEMONSTRATION' title_len equ $-title_txt frames_txt defb 'FRAMES DRAWN' frames_len equ $-frames_txt pos_txt defb 'PLAYER' pos_len equ $-pos_txt dir_txt defb 'DIRECTION' dir_len equ $-dir_txt comma equ ',' cast_col defb 0 cast_camera_dir defb 0 buff_addr defw 0 cast_dir defb 0 wall_hh defb 0 wall_is_solid defb 0 save_sp defw 0 ; Our raycasting modules. import 'delta_dist.asm' import 'dist_to_hh.asm' import 'draw_walls.asm' import 'line_to_screen.asm' import 'world.asm' import 'cast.asm' ; Depends upon the above includes line_to_video macro src, dst ; A line is 56 bytes. phillips_14byte_move src, dst phillips_14byte_move src+14, dst+14 phillips_14byte_move src+28, dst+28 phillips_14byte_move src+42, dst+42 endm ; --------------------------------------- ; Setup the static portion of the screen. ; --------------------------------------- main: di ld sp,$6000 ; Clear the screen ld d,$80 ld hl,screen ld bc,64*16 call barden_fill ; Frame the raycasting window on the screen. ld d,$b0 ; Top horizontal line ld hl,screen+3 ld bc,58 call barden_fill ld d,$83 ; Bottom horizontal line ld hl,screen+64*12+3 ld bc,58 call barden_fill ld a,$bf ld (screen+64*1+3),a ; Left vertical line ld (screen+64*2+3),a ld (screen+64*3+3),a ld (screen+64*4+3),a ld (screen+64*5+3),a ld (screen+64*6+3),a ld (screen+64*7+3),a ld (screen+64*8+3),a ld (screen+64*9+3),a ld (screen+64*10+3),a ld (screen+64*11+3),a ld (screen+64*1+60),a ; Right vertical line ld (screen+64*2+60),a ld (screen+64*3+60),a ld (screen+64*4+60),a ld (screen+64*5+60),a ld (screen+64*6+60),a ld (screen+64*7+60),a ld (screen+64*8+60),a ld (screen+64*9+60),a ld (screen+64*10+60),a ld (screen+64*11+60),a ; Show the title on the screen. ld hl,title_txt ld de,screen+64*13 ld bc,title_len call barden_move ; Show 'FRAMES' on the screen. ld hl,frames_txt ld de,screen+64*14 ld bc,frames_len call barden_move ; Show 'PLAYER' on the screen. ld hl,pos_txt ld de,screen+64*14-12 ld bc,pos_len call barden_move ld a,comma ld (screen+64*14-3),a ; Show 'DIRECTION' on the screen. ld hl,dir_txt ld de,screen+64*15-12 ld bc,dir_len call barden_move ; Ensure the bit bit order for the map is corrent. call prepare_world ; ---------------------------- ; Clear the video back buffer. ; ---------------------------- game_loop: ld (spsv),sp ld sp,buff01+buff_line_width*11 ld de,$8080 rept buff_line_width*11/2 push de endm ld sp,0 spsv equ $-2 ; ------------------------------ ; Check for input from the user. ; ------------------------------ ld a,($3840) ; A keyboard row ld c,a ; ...goes into c txt_larrow: bit 5,c ; Check bit 5: [<-] jr z,tst_rarrow ; User is pressing the left-arrow key (<-) so we change the ; player's direction one to the left. ld a,(player_dir) dec a dec a dec a ld (player_dir),a tst_rarrow: bit 6,c ; Check bit 6: [->] jr z,tst_a ; User is pressing the right-arrow key (->) so we change the ; player's direction one to the right. ld a,(player_dir) inc a inc a inc a ld (player_dir),a tst_a: ld a,($3801) ; A keyboard row ld c,a ; ...goes into c bit 1,c ; Check bit 1: [A] jr z,tst_d ; Move the player EAST by one block. ld hl,(player_x) dec hl ld (player_x),hl tst_d: bit 4,c ; Check bit 4: [D] jr z,tst_w ; Move the player WEST by one block. ld hl,(player_x) inc hl ld (player_x),hl tst_w: ld a,($3804) ; A keyboard row ld c,a ; ...goes into c bit 7,c ; Check bit 7: [W] jr z,tst_s ; Move the player NORTH by one block. ld hl,(player_y) inc hl ld (player_y),hl tst_s: bit 3,c ; Check bit 3: [S] jr z,tst_t ; Move the player SOUTH by one block. ld hl,(player_y) dec hl ld (player_y),hl tst_t: bit 4,c ; Check bit 4: [T] jr z,tst_v ; Toggle demo mode. ld a,(demo_mode) xor 1 ld (demo_mode),a tst_v: bit 6,c ; Check bit 6: [V] jr z,demo ; Toggle use of VBLANK mod hardware. ld a,(use_vblank) xor 1 ld (use_vblank),a demo: ld a,(demo_mode) or a jr z,raycast ; In demo mode we rotate to the right all the time. ld a,(player_dir) inc a inc a inc a ld (player_dir),a ; ----------------------------------- ; Raycast into the video back buffer. ; ----------------------------------- raycast: ld a,buff_line_width ld (cast_col),a ; # of columns to drawn walls for. ld a,64 sub a,(buff_line_width/2) ld (cast_camera_dir),a ; Angle for camera correction. ld hl,buff06 ld (buff_addr),hl ; First column addr in the back buffer. ld a,(player_dir) add a,256-(buff_line_width/2) ld (cast_dir),a ; Raycasting angle of the first column. col_loop: ; Cast and draw the wall at the left-hand-side of the column. call cast ld ix,(buff_addr) ld iy,wall_hh ld a,(wall_is_solid) ; Draw solid or outline wall? or a jr z,lhs_outline call draw_solid_wall jr col_next lhs_outline: call draw_outline_wall jr col_next col_next: ; Move to next column and check if we are done drawing. ld a,(cast_col) dec a ; Decrement the # of columns left. jr z, copy_to_screen ; When done, copy buff to the screen. ld (cast_col),a ld a,(cast_dir) inc a ; Increment the raycasting angle. ld (cast_dir),a ld hl,(buff_addr) inc hl ; Increment the back buffer addr. ld (buff_addr),hl ld a,(cast_camera_dir) inc a ; Increment the camera lookup angle. ld (cast_camera_dir),a jr col_loop ; ----------------------------------- ; Copy the back buffer to the screen. ; ----------------------------------- copy_to_screen: ld (save_sp),sp ; Save SP ld sp,$3ec0 ; Check if we are suppose to use the VBLANK hardware. ld a,(use_vblank) or a jr z,update_screen ; ** Model 1 with VBLANK mod only ** ; Wait for the start of VBLANK. We want to see a 0 value to ; Ensure we aren't jumping in at the end of VBLANK. in_vblank: in a,($ff) bit 0,a jr nz,in_vblank not_in_vblank: in a,($ff) bit 0,a jr z, not_in_vblank ; VBLANK is beginning when we fall through to here. ; Skipping the first line, copy the video back buffer to ; lines 2-12 on the screen with a 4 character margin. update_screen: line_to_screen buff01,screen+64*1+4 line_to_screen buff02,screen+64*2+4 line_to_screen buff03,screen+64*3+4 line_to_screen buff04,screen+64*4+4 line_to_screen buff05,screen+64*5+4 line_to_screen buff06,screen+64*6+4 line_to_screen buff07,screen+64*7+4 line_to_screen buff08,screen+64*8+4 line_to_screen buff09,screen+64*9+4 line_to_screen buff10,screen+64*10+4 line_to_screen buff11,screen+64*11+4 ld sp,(save_sp) ; Restore SP ; Output stats to the screen. ; Show the frame count drawn to the screen. ld hl,(frames_drawn) ; Increment value inc hl ld (frames_drawn),hl ld b,l ; Display on the screen ld a,h call barden_hexcv ld (screen+64*14+frames_len+1),hl ld a,b call barden_hexcv ld (screen+64*14+frames_len+3),hl ; Show the player position on the screen. ld a,(player_y) call barden_hexcv ld (screen+64*14-2),hl ld a,(player_x) call barden_hexcv ld (screen+64*14-5),hl ; Show the player direction on the screen. ld a,(player_dir) call barden_hexcv ld (screen+64*15-2),hl ; Show we are in demo mode, if needed. ld a,(demo_mode) or a jr z,clear_star ; Show a '*' on the screen to indicated we are in demo mode. ld a,'*' ld (screen+64*13+title_len+1),a jr vblank clear_star: ; Clear the demo mode '*' from the screen. ld a,' ' ld (screen+64*13+title_len+1),a ; Show we are using VBLANK hardware, if needed. vblank: ld a,(use_vblank) or a jr z,clear_vblank ; Show a 'V' on the screen to indicated we are in demo mode. ld a,'V' ld (screen+64*14+title_len+1),a jr game_cont clear_vblank: ; Clear the VBLANK hardware use 'V' from the screen. ld a,' ' ld (screen+64*14+title_len+1),a ; --------------------------------------------------- ; Now go back to the top of the game loop and repeat. ; --------------------------------------------------- game_cont: jp game_loop end main
25.629723
71
0.612187
d1ae1c8387419f61d56c7dd4baa0d0a39d4d3ba2
154
asm
Assembly
01. 8051/01. Introduction/Prog3.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
01. 8051/01. Introduction/Prog3.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
01. 8051/01. Introduction/Prog3.asm
nitrece/microprocessor-laboratory
40d9e41537e56fb049ef6230fcaaaee3b5d3b121
[ "MIT" ]
null
null
null
org 0h mov dptr, #300h mov a, #0 movc a, @a+dptr mov r0, a mov a, #1 movc a, @a+dptr mov r1, a mov a, #2 movc a, @a+dptr mov r2, a org 300h db "NIT" end
10.266667
15
0.61039
822ed6d7a7bfd84d378f810157a4ea63bedff01f
6,528
asm
Assembly
ClarkeQuay.asm
hwreverse/PC-G850V
53a4dca7b31f940412e0ebddba395f2b8deda895
[ "MIT" ]
7
2020-09-30T19:56:39.000Z
2021-09-30T12:05:18.000Z
ClarkeQuay.asm
hwreverse/PC-G850V
53a4dca7b31f940412e0ebddba395f2b8deda895
[ "MIT" ]
1
2021-09-04T02:52:33.000Z
2021-09-04T02:52:33.000Z
ClarkeQuay.asm
hwreverse/PC-G850V
53a4dca7b31f940412e0ebddba395f2b8deda895
[ "MIT" ]
2
2021-09-03T12:28:16.000Z
2021-09-30T13:47:01.000Z
10 ORG 100H 20 JP MAIN 30GPF EQU 0BFD0H 40WAITK EQU 0BFCDH 50RPTCHR EQU 0BFEEH 60MAIN: CALL CLS 60 LD HL, L0 70 LD B, 144 80 LD DE, 0000H 90 CALL GPF 100 LD HL, L1 110 LD B, 144 120 LD DE, 0100H 130 CALL GPF 140 LD HL, L2 150 LD B, 144 160 LD DE, 0200H 170 CALL GPF 180 LD HL, L3 190 LD B, 144 200 LD DE, 0300H 210 CALL GPF 220 LD HL, L4 230 LD B, 144 240 LD DE, 0400H 250 CALL GPF 260 LD HL, L5 270 LD B, 144 280 LD DE, 0500H 290 CALL GPF 300MAIN0: CALL WAITK 310 CP 0 320 JP Z, MAIN0 330 RET 340CLS: LD B, 144 350 LD DE, 0 360CLS0: LD A, 32 370 CALL RPTCHR 380 RET 1000L0: DB 000H, 0C0H, 0C0H, 080H, 000H, 000H, 000H, 000H 1001 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1002 DB 0C0H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1003 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1004 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1005 DB 000H, 020H, 000H, 000H, 000H, 000H, 000H, 000H 1006 DB 000H, 000H, 000H, 000H, 000H, 000H, 0F0H, 0F8H 1007 DB 0F8H, 0F8H, 0F8H, 000H, 000H, 000H, 000H, 000H 1008 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1009 DB 000H, 000H, 000H, 000H, 000H, 040H, 0E0H, 000H 1010 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 040H 1011 DB 0C0H, 0C0H, 080H, 080H, 080H, 000H, 000H, 000H 1012 DB 000H, 060H, 060H, 060H, 0C0H, 000H, 000H, 000H 1013 DB 000H, 020H, 020H, 080H, 080H, 000H, 000H, 000H 1014 DB 000H, 000H, 000H, 000H, 000H, 000H, 0F0H, 000H 1015 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1016 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1017 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1018L1: DB 0FFH, 0FFH, 0FFH, 03FH, 00FH, 0FCH, 006H, 0C0H 1019 DB 0E0H, 0CCH, 0F8H, 0F8H, 0F8H, 0F0H, 0E0H, 0F8H 1020 DB 0FFH, 0FEH, 0F8H, 0F8H, 0FCH, 0FEH, 0FEH, 07EH 1021 DB 0F8H, 070H, 078H, 0E0H, 040H, 00EH, 0F8H, 038H 1022 DB 000H, 0FEH, 0FCH, 0FCH, 0BEH, 03EH, 060H, 084H 1023 DB 080H, 059H, 0F6H, 0C0H, 0C0H, 080H, 000H, 000H 1024 DB 000H, 0C0H, 000H, 000H, 078H, 000H, 03FH, 0FFH 1025 DB 0FFH, 0FFH, 0FFH, 000H, 008H, 040H, 0F0H, 062H 1026 DB 07CH, 0FFH, 0FFH, 0FFH, 0FFH, 060H, 078H, 02EH 1027 DB 0F6H, 016H, 016H, 010H, 018H, 010H, 0FFH, 0FEH 1028 DB 040H, 000H, 080H, 000H, 000H, 000H, 000H, 000H 1029 DB 07FH, 07FH, 0FFH, 0FFH, 0FFH, 005H, 018H, 000H 1030 DB 000H, 000H, 0FEH, 04EH, 04FH, 01CH, 07EH, 006H 1031 DB 000H, 0FFH, 0FFH, 0FFH, 0FFH, 000H, 000H, 000H 1032 DB 000H, 000H, 0C0H, 0E0H, 0E0H, 0E0H, 0FFH, 0E4H 1033 DB 0E0H, 0E0H, 0E0H, 0F0H, 080H, 000H, 03CH, 07CH 1034 DB 006H, 000H, 0F8H, 0C0H, 000H, 000H, 000H, 000H 1035 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1036L2: DB 0FFH, 0EFH, 0C5H, 096H, 0D4H, 0F7H, 038H, 01FH 1037 DB 01FH, 0FFH, 0FFH, 0F6H, 09FH, 0FDH, 0FFH, 0FFH 1038 DB 0FFH, 0C1H, 0E1H, 0FBH, 0FFH, 0DDH, 018H, 010H 1039 DB 001H, 06CH, 0EEH, 07DH, 024H, 03DH, 0B7H, 06FH 1040 DB 065H, 04FH, 04FH, 0C7H, 0C1H, 0E0H, 0E7H, 0E5H 1041 DB 0ECH, 0F0H, 0E3H, 0F7H, 061H, 060H, 060H, 004H 1042 DB 040H, 001H, 000H, 003H, 000H, 0F0H, 0FEH, 0FFH 1043 DB 0FFH, 0FFH, 07FH, 00FH, 003H, 003H, 00BH, 0FBH 1044 DB 0C1H, 0FDH, 0F1H, 0F1H, 0E1H, 0F1H, 0FFH, 0FDH 1045 DB 0FFH, 0F8H, 0F8H, 0FEH, 0DEH, 0DEH, 0FFH, 0FFH 1046 DB 0FFH, 07EH, 03FH, 080H, 000H, 000H, 000H, 000H 1047 DB 002H, 0FCH, 03FH, 03FH, 00FH, 00EH, 01EH, 010H 1048 DB 000H, 018H, 01FH, 000H, 001H, 000H, 002H, 01FH 1049 DB 0CCH, 00FH, 01FH, 00FH, 003H, 000H, 038H, 0F8H 1050 DB 078H, 078H, 07FH, 0FFH, 0FFH, 0FBH, 0F3H, 0E3H 1051 DB 0C3H, 083H, 083H, 003H, 07FH, 07FH, 07CH, 07EH 1052 DB 004H, 002H, 007H, 00FH, 000H, 000H, 000H, 000H 1053 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1054L3: DB 0F7H, 0F6H, 0FFH, 0F7H, 0FFH, 0FFH, 0F7H, 0FAH 1055 DB 0FFH, 0F9H, 07CH, 0FDH, 0FBH, 0FFH, 0FFH, 0FFH 1056 DB 0FFH, 0FFH, 03FH, 07FH, 0FFH, 01FH, 0BFH, 0FFH 1057 DB 01BH, 09AH, 094H, 0C0H, 000H, 000H, 000H, 080H 1058 DB 010H, 000H, 0E0H, 003H, 0FFH, 0FFH, 0C7H, 081H 1059 DB 021H, 0C3H, 0CFH, 0EFH, 0FEH, 0FEH, 0FCH, 0FCH 1060 DB 0FFH, 03FH, 007H, 00FH, 0CCH, 087H, 0E3H, 0F3H 1061 DB 0F0H, 0E1H, 0E0H, 0C0H, 0E0H, 080H, 0FFH, 0FFH 1062 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1063 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1064 DB 0F7H, 0F6H, 0FEH, 0FFH, 0FAH, 0E3H, 0F2H, 0FEH 1065 DB 0F8H, 0F8H, 0F8H, 0F8H, 0F8H, 0F8H, 0F8H, 0F0H 1066 DB 0F0H, 0A0H, 0E0H, 060H, 070H, 070H, 0F0H, 0F0H 1067 DB 073H, 03FH, 010H, 010H, 000H, 040H, 040H, 040H 1068 DB 0C0H, 060H, 060H, 040H, 07FH, 06FH, 08FH, 08FH 1069 DB 08FH, 088H, 08EH, 08CH, 080H, 00CH, 00CH, 04DH 1070 DB 00CH, 000H, 000H, 080H, 000H, 000H, 000H, 000H 1071 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1072L4: DB 0FCH, 0FEH, 0FEH, 0FFH, 0FFH, 0FDH, 0FCH, 0FCH 1073 DB 0FCH, 0FCH, 0FCH, 0FFH, 0FEH, 0F8H, 0FFH, 0FFH 1074 DB 0FFH, 0FFH, 0FEH, 0BBH, 00FH, 000H, 089H, 021H 1075 DB 0E1H, 0FAH, 0DBH, 083H, 000H, 04CH, 000H, 0FFH 1076 DB 000H, 000H, 0FFH, 000H, 0FFH, 0FFH, 0FFH, 0FEH 1077 DB 0F8H, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1078 DB 0FFH, 00CH, 000H, 010H, 0FFH, 0FFH, 0FFH, 0FFH 1079 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1080 DB 0FFH, 0FFH, 0FFH, 07FH, 0FFH, 0FFH, 0FFH, 0FFH 1081 DB 0FFH, 0FFH, 0FFH, 0CFH, 0CFH, 0FFH, 0FFH, 0FFH 1082 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1083 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1084 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FEH 1085 DB 0FCH, 0E0H, 070H, 0F0H, 0E0H, 0FFH, 0FFH, 07EH 1086 DB 07EH, 07EH, 0C0H, 0E0H, 0E0H, 0E0H, 0F2H, 0F8H 1087 DB 0F8H, 024H, 066H, 063H, 0E6H, 0E0H, 0E4H, 0E0H 1088 DB 0E8H, 0A0H, 0A0H, 0F8H, 000H, 000H, 000H, 000H 1089 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 1090L5: DB 007H, 0F7H, 0DFH, 0FFH, 027H, 0A0H, 0B4H, 037H 1091 DB 033H, 003H, 093H, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1092 DB 0EFH, 0E7H, 0EFH, 0E0H, 0F0H, 0F0H, 0F2H, 0FFH 1093 DB 0FFH, 0FFH, 0FFH, 081H, 000H, 0C0H, 0C0H, 0FBH 1094 DB 010H, 080H, 080H, 080H, 0FFH, 0FFH, 0FFH, 0FFH 1095 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1096 DB 0FFH, 0F0H, 0C0H, 0C0H, 0E7H, 0FFH, 0FFH, 08FH 1097 DB 01FH, 03FH, 03FH, 03FH, 03FH, 01FH, 083H, 023H 1098 DB 0FFH, 0FFH, 03FH, 03EH, 03FH, 03FH, 03BH, 07FH 1099 DB 0FFH, 0DFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1100 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1101 DB 0FDH, 0F9H, 0FBH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH 1102 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0BFH 1103 DB 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0FFH, 0B7H, 0F0H 1104 DB 0F0H, 0F0H, 0F1H, 0F1H, 0EFH, 08FH, 0EFH, 0FFH 1105 DB 0FFH, 0FDH, 0FEH, 0FAH, 0FEH, 0FEH, 0FEH, 0FEH 1106 DB 0FDH, 0C1H, 0C1H, 083H, 000H, 000H, 000H, 000H 1107 DB 000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H 
43.52
57
0.692402
f48e2f1db29713f532824dde67a2e2640a3fbfce
4,876
asm
Assembly
src/spread/rows.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/spread/rows.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/spread/rows.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
; QSpread Gird command ; - Insert rows include win1_mac_oli include win1_keys_wwork include win1_spread_keys section prog xdef act_insr,act_delr ;+++ ; delete rows ; ; Entry Exit ; d5 col|row of position ;--- act_delr subr d4/a5 move.l d5,d1 ; d5.w = Pos. of row where to start xjsr acc_selr ; select row bne.s delr_exit delr_again moveq #1,d1 ; request number of rows bsr req_row bne.s delr_exit move.w d1,d4 ; d4.w = Nr. of rows to delete move.w da_nrows(a6),d1 ; last row subq.w #1,d1 sub.w d5,d1 ; d1.w = max. nr. to delete cmp.w d4,d1 ble.s delr_again move.l da_cbx1(a6),d1 ; make the whole range to remove add.w d4,d1 subq.w #1,d1 xjsr cel_botr movem.l a3,-(sp) ; is he sure? xlea ask_delr,a3 xjsr ask_yn movem.l (sp)+,a3 tst.b d1 beq.s delr_exit ; no, whimp clr.w da_saved(a6) move.l da_ordr(a6),-(sp) ; order for processing rows!! move.l #$00010000,da_ordr(a6) ; (because of overflowing strings) addq.w #1,da_dupdt(a6) lea acc_clr,a5 ; clear rows to delete xjsr mul_blok lea derc_cell,a5 ; now process the whole grid... xjsr mul_grid subq.w #1,da_dupdt(a6) move.l (sp)+,da_ordr(a6) xjsr acc_calc delr_exit move.l d5,d1 ; mark recently selected cell xjsr cel_topl moveq #0,d0 subend ;+++ ; delete rows, action routine for one cell ; ; Entry Exit ; d1.l col|row of currentcell ; d4.w nr. of cols to delete ; d5.w pos. of first col ;--- derc_cell subr d1-d5/a1 move.l d1,d2 ; d2.w = cell.row lea da_echf(a6),a1 ; formula buffer xjsr acc_getf ; get formula move.l d0,d3 swap d3 ; d3.w = format word tst.w d0 ; was it a string? bne.s refd_no tst.w (a1) ; any formula at all? beq.s refd_no bsr.s delrc_refs ; adjust references refd_no xjsr acc_clr ; clear cell add.w d4,d5 cmp.w d2,d5 bhi.s delrc_noadj sub.w d4,d1 delrc_noadj tst.w (a1) beq.s delrc_exit xjsr acc_putf move.w d3,d2 xjsr acc_fwrd delrc_exit moveq #0,d0 subend ; adjust formula references delrc_refs subr a0-a2 lea da_echf(a6),a0 ; find references lea da_echs(a6),a1 lea da_echl(a6),a2 xjsr cel_fref bsr.s refi_adj ; adjust reference values xjsr cel_rref ; resolve references subend refi_adj subr a2/d1 adi_lp move.l (a2),d1 ; get reference cell bmi.s adi_ok ; end of list? cmp.w d1,d5 ; check for correct row bhi.s adi_ok sub.w d4,d1 ; calc new position move.l d1,(a2)+ ; restore reference bra.s adi_lp adi_ok subend ;+++ ; insert rows ; ; Entry Exit ; d5 col|row of position ;--- act_insr subr d4/a5 moveq #0,d1 bsr req_row ; reqest number of rows bne.s insr_exit clr.w da_saved(a6) move.w d1,d4 ; d4.w = Nr. of rows ; d5.w = insert row position addq.w #1,da_dupdt(a6) lea insr_cell,a5 ; now process the whole grid... xjsr mul_rgrd ; .. in reverse order subq.w #1,da_dupdt(a6) xjsr acc_calc ; re-calculate and redraw insr_exit moveq #0,d0 subend ;+++ ; Insert rows, action for one cell ; ; Entry Exit ; d1.l col|row of cell preserved ; d4.w nr. of rows to ins preserved ; d5.w position where to ins preserved ;--- insr_cell subr d1-d5/a1 move.l d1,d2 ; d2.w=cell.row lea da_echf(a6),a1 ; formula buffer xjsr acc_getf ; get formula move.l d0,d3 swap d3 ; d3.w = format word tst.w d0 ; was it a string? bne.s refs_no tst.w (a1) ; any formula at all? beq.s refs_no bsr.s insr_refs ; adjust references refs_no xjsr acc_clr ; clear cell d1 cmp.w d2,d5 bgt.s insrc_noadj add.w d4,d1 ; calc new position of cell insrc_noadj tst.w (a1) beq.s insrc_exit xjsr acc_putf ; put formula into new cell move.w d3,d2 ; change format word of cell xjsr acc_fwrd insrc_exit moveq #0,d0 subend insr_refs subr a0-a2 lea da_echf(a6),a0 ; find references lea da_echs(a6),a1 lea da_echl(a6),a2 xjsr cel_fref bsr.s refs_adj ; adjust reference values xjsr cel_rref ; resolve references subend refs_adj subr a2/d1 adj_lp move.l (a2),d1 ; get reference cell bmi.s adj_ok ; end of list? cmp.w d1,d5 ; check for correct column bgt.s adj_ok add.w d4,d1 ; calc new position move.l d1,(a2)+ ; restore reference bra.s adj_lp adj_ok subend ;+++ ; Request number of rows to insert ; ; Entry Exit ; d1.w insert=0, delete<>0 value ; ; error and condition codes set (=1 ... ESC) ;--- req_row subr a0/a2/a3/d2-d3 row_again move.w d1,d0 moveq #-1,d1 ; origin moveq #0,d2 ;;; move.b colm(a6),d2 ; main colourway moveq #20,d3 ; window width xlea met_insr,a0 xlea msg_insr,a2 tst.w d0 beq.s reqr_ins xlea met_delr,a0 reqr_ins lea da_anbuf(a6),a3 move.l #$00013100,(a3) ; default one row xjsr mu_reqst bne.s reqr_exit ; error or ESC? move.l a3,a0 ; ptr to string xjsr con_decw ; convert to decimal cmp.w da_nrows(a6),d0 bge.s row_again tst.w d0 beq.s row_again move.w d0,d1 ; result moveq #0,d0 reqr_exit tst.l d0 subend end
17.730909
65
0.682527
e5947808138361a5a815a90e851bf72eba63f10a
259
asm
Assembly
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_ScreenAttr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_ScreenAttr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_ScreenAttr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; uchar sp1_ScreenAttr(uchar row, uchar col) SECTION code_clib SECTION code_temp_sp1 PUBLIC _sp1_ScreenAttr EXTERN asm_sp1_ScreenAttr _sp1_ScreenAttr: ld hl,2 add hl,sp ld d,(hl) inc hl inc hl ld e,(hl) jp asm_sp1_ScreenAttr
12.333333
44
0.706564
5d7b02281b818a5d59db22ff79d3278ce274fe25
53,185
asm
Assembly
ls.asm
cassianomaia/SO1-P2
8152b4bb2e60b2907f1c34d77ff4b739b6da73be
[ "MIT-0" ]
null
null
null
ls.asm
cassianomaia/SO1-P2
8152b4bb2e60b2907f1c34d77ff4b739b6da73be
[ "MIT-0" ]
null
null
null
ls.asm
cassianomaia/SO1-P2
8152b4bb2e60b2907f1c34d77ff4b739b6da73be
[ "MIT-0" ]
null
null
null
_ls: file format elf32-i386 Disassembly of section .text: 00001000 <fmtname>: #include "user.h" #include "fs.h" char* fmtname(char *path) { 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 53 push %ebx 1004: 83 ec 24 sub $0x24,%esp static char buf[DIRSIZ+1]; char *p; // Find first character after last slash. for(p=path+strlen(path); p >= path && *p != '/'; p--) 1007: 8b 45 08 mov 0x8(%ebp),%eax 100a: 89 04 24 mov %eax,(%esp) 100d: e8 dd 03 00 00 call 13ef <strlen> 1012: 8b 55 08 mov 0x8(%ebp),%edx 1015: 01 d0 add %edx,%eax 1017: 89 45 f4 mov %eax,-0xc(%ebp) 101a: eb 04 jmp 1020 <fmtname+0x20> 101c: 83 6d f4 01 subl $0x1,-0xc(%ebp) 1020: 8b 45 f4 mov -0xc(%ebp),%eax 1023: 3b 45 08 cmp 0x8(%ebp),%eax 1026: 72 0a jb 1032 <fmtname+0x32> 1028: 8b 45 f4 mov -0xc(%ebp),%eax 102b: 0f b6 00 movzbl (%eax),%eax 102e: 3c 2f cmp $0x2f,%al 1030: 75 ea jne 101c <fmtname+0x1c> ; p++; 1032: 83 45 f4 01 addl $0x1,-0xc(%ebp) // Return blank-padded name. if(strlen(p) >= DIRSIZ) 1036: 8b 45 f4 mov -0xc(%ebp),%eax 1039: 89 04 24 mov %eax,(%esp) 103c: e8 ae 03 00 00 call 13ef <strlen> 1041: 83 f8 0d cmp $0xd,%eax 1044: 76 05 jbe 104b <fmtname+0x4b> return p; 1046: 8b 45 f4 mov -0xc(%ebp),%eax 1049: eb 5f jmp 10aa <fmtname+0xaa> memmove(buf, p, strlen(p)); 104b: 8b 45 f4 mov -0xc(%ebp),%eax 104e: 89 04 24 mov %eax,(%esp) 1051: e8 99 03 00 00 call 13ef <strlen> 1056: 89 44 24 08 mov %eax,0x8(%esp) 105a: 8b 45 f4 mov -0xc(%ebp),%eax 105d: 89 44 24 04 mov %eax,0x4(%esp) 1061: c7 04 24 1c 2e 00 00 movl $0x2e1c,(%esp) 1068: e8 11 05 00 00 call 157e <memmove> memset(buf+strlen(p), ' ', DIRSIZ-strlen(p)); 106d: 8b 45 f4 mov -0xc(%ebp),%eax 1070: 89 04 24 mov %eax,(%esp) 1073: e8 77 03 00 00 call 13ef <strlen> 1078: ba 0e 00 00 00 mov $0xe,%edx 107d: 89 d3 mov %edx,%ebx 107f: 29 c3 sub %eax,%ebx 1081: 8b 45 f4 mov -0xc(%ebp),%eax 1084: 89 04 24 mov %eax,(%esp) 1087: e8 63 03 00 00 call 13ef <strlen> 108c: 05 1c 2e 00 00 add $0x2e1c,%eax 1091: 89 5c 24 08 mov %ebx,0x8(%esp) 1095: c7 44 24 04 20 00 00 movl $0x20,0x4(%esp) 109c: 00 109d: 89 04 24 mov %eax,(%esp) 10a0: e8 71 03 00 00 call 1416 <memset> return buf; 10a5: b8 1c 2e 00 00 mov $0x2e1c,%eax } 10aa: 83 c4 24 add $0x24,%esp 10ad: 5b pop %ebx 10ae: 5d pop %ebp 10af: c3 ret 000010b0 <ls>: void ls(char *path) { 10b0: 55 push %ebp 10b1: 89 e5 mov %esp,%ebp 10b3: 57 push %edi 10b4: 56 push %esi 10b5: 53 push %ebx 10b6: 81 ec 5c 02 00 00 sub $0x25c,%esp char buf[512], *p; int fd; struct dirent de; struct stat st; if((fd = open(path, 0)) < 0){ 10bc: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 10c3: 00 10c4: 8b 45 08 mov 0x8(%ebp),%eax 10c7: 89 04 24 mov %eax,(%esp) 10ca: e8 44 05 00 00 call 1613 <open> 10cf: 89 45 e4 mov %eax,-0x1c(%ebp) 10d2: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 10d6: 79 20 jns 10f8 <ls+0x48> printf(2, "ls: cannot open %s\n", path); 10d8: 8b 45 08 mov 0x8(%ebp),%eax 10db: 89 44 24 08 mov %eax,0x8(%esp) 10df: c7 44 24 04 1f 1b 00 movl $0x1b1f,0x4(%esp) 10e6: 00 10e7: c7 04 24 02 00 00 00 movl $0x2,(%esp) 10ee: e8 60 06 00 00 call 1753 <printf> return; 10f3: e9 01 02 00 00 jmp 12f9 <ls+0x249> } if(fstat(fd, &st) < 0){ 10f8: 8d 85 bc fd ff ff lea -0x244(%ebp),%eax 10fe: 89 44 24 04 mov %eax,0x4(%esp) 1102: 8b 45 e4 mov -0x1c(%ebp),%eax 1105: 89 04 24 mov %eax,(%esp) 1108: e8 1e 05 00 00 call 162b <fstat> 110d: 85 c0 test %eax,%eax 110f: 79 2b jns 113c <ls+0x8c> printf(2, "ls: cannot stat %s\n", path); 1111: 8b 45 08 mov 0x8(%ebp),%eax 1114: 89 44 24 08 mov %eax,0x8(%esp) 1118: c7 44 24 04 33 1b 00 movl $0x1b33,0x4(%esp) 111f: 00 1120: c7 04 24 02 00 00 00 movl $0x2,(%esp) 1127: e8 27 06 00 00 call 1753 <printf> close(fd); 112c: 8b 45 e4 mov -0x1c(%ebp),%eax 112f: 89 04 24 mov %eax,(%esp) 1132: e8 c4 04 00 00 call 15fb <close> return; 1137: e9 bd 01 00 00 jmp 12f9 <ls+0x249> } switch(st.type){ 113c: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 1143: 98 cwtl 1144: 83 f8 01 cmp $0x1,%eax 1147: 74 53 je 119c <ls+0xec> 1149: 83 f8 02 cmp $0x2,%eax 114c: 0f 85 9c 01 00 00 jne 12ee <ls+0x23e> case T_FILE: printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size); 1152: 8b bd cc fd ff ff mov -0x234(%ebp),%edi 1158: 8b b5 c4 fd ff ff mov -0x23c(%ebp),%esi 115e: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 1165: 0f bf d8 movswl %ax,%ebx 1168: 8b 45 08 mov 0x8(%ebp),%eax 116b: 89 04 24 mov %eax,(%esp) 116e: e8 8d fe ff ff call 1000 <fmtname> 1173: 89 7c 24 14 mov %edi,0x14(%esp) 1177: 89 74 24 10 mov %esi,0x10(%esp) 117b: 89 5c 24 0c mov %ebx,0xc(%esp) 117f: 89 44 24 08 mov %eax,0x8(%esp) 1183: c7 44 24 04 47 1b 00 movl $0x1b47,0x4(%esp) 118a: 00 118b: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1192: e8 bc 05 00 00 call 1753 <printf> break; 1197: e9 52 01 00 00 jmp 12ee <ls+0x23e> case T_DIR: if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ 119c: 8b 45 08 mov 0x8(%ebp),%eax 119f: 89 04 24 mov %eax,(%esp) 11a2: e8 48 02 00 00 call 13ef <strlen> 11a7: 83 c0 10 add $0x10,%eax 11aa: 3d 00 02 00 00 cmp $0x200,%eax 11af: 76 19 jbe 11ca <ls+0x11a> printf(1, "ls: path too long\n"); 11b1: c7 44 24 04 54 1b 00 movl $0x1b54,0x4(%esp) 11b8: 00 11b9: c7 04 24 01 00 00 00 movl $0x1,(%esp) 11c0: e8 8e 05 00 00 call 1753 <printf> break; 11c5: e9 24 01 00 00 jmp 12ee <ls+0x23e> } strcpy(buf, path); 11ca: 8b 45 08 mov 0x8(%ebp),%eax 11cd: 89 44 24 04 mov %eax,0x4(%esp) 11d1: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 11d7: 89 04 24 mov %eax,(%esp) 11da: e8 a1 01 00 00 call 1380 <strcpy> p = buf+strlen(buf); 11df: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 11e5: 89 04 24 mov %eax,(%esp) 11e8: e8 02 02 00 00 call 13ef <strlen> 11ed: 8d 95 e0 fd ff ff lea -0x220(%ebp),%edx 11f3: 01 d0 add %edx,%eax 11f5: 89 45 e0 mov %eax,-0x20(%ebp) *p++ = '/'; 11f8: 8b 45 e0 mov -0x20(%ebp),%eax 11fb: 8d 50 01 lea 0x1(%eax),%edx 11fe: 89 55 e0 mov %edx,-0x20(%ebp) 1201: c6 00 2f movb $0x2f,(%eax) while(read(fd, &de, sizeof(de)) == sizeof(de)){ 1204: e9 be 00 00 00 jmp 12c7 <ls+0x217> if(de.inum == 0) 1209: 0f b7 85 d0 fd ff ff movzwl -0x230(%ebp),%eax 1210: 66 85 c0 test %ax,%ax 1213: 75 05 jne 121a <ls+0x16a> continue; 1215: e9 ad 00 00 00 jmp 12c7 <ls+0x217> memmove(p, de.name, DIRSIZ); 121a: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp) 1221: 00 1222: 8d 85 d0 fd ff ff lea -0x230(%ebp),%eax 1228: 83 c0 02 add $0x2,%eax 122b: 89 44 24 04 mov %eax,0x4(%esp) 122f: 8b 45 e0 mov -0x20(%ebp),%eax 1232: 89 04 24 mov %eax,(%esp) 1235: e8 44 03 00 00 call 157e <memmove> p[DIRSIZ] = 0; 123a: 8b 45 e0 mov -0x20(%ebp),%eax 123d: 83 c0 0e add $0xe,%eax 1240: c6 00 00 movb $0x0,(%eax) if(stat(buf, &st) < 0){ 1243: 8d 85 bc fd ff ff lea -0x244(%ebp),%eax 1249: 89 44 24 04 mov %eax,0x4(%esp) 124d: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 1253: 89 04 24 mov %eax,(%esp) 1256: e8 88 02 00 00 call 14e3 <stat> 125b: 85 c0 test %eax,%eax 125d: 79 20 jns 127f <ls+0x1cf> printf(1, "ls: cannot stat %s\n", buf); 125f: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 1265: 89 44 24 08 mov %eax,0x8(%esp) 1269: c7 44 24 04 33 1b 00 movl $0x1b33,0x4(%esp) 1270: 00 1271: c7 04 24 01 00 00 00 movl $0x1,(%esp) 1278: e8 d6 04 00 00 call 1753 <printf> continue; 127d: eb 48 jmp 12c7 <ls+0x217> } printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); 127f: 8b bd cc fd ff ff mov -0x234(%ebp),%edi 1285: 8b b5 c4 fd ff ff mov -0x23c(%ebp),%esi 128b: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax 1292: 0f bf d8 movswl %ax,%ebx 1295: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax 129b: 89 04 24 mov %eax,(%esp) 129e: e8 5d fd ff ff call 1000 <fmtname> 12a3: 89 7c 24 14 mov %edi,0x14(%esp) 12a7: 89 74 24 10 mov %esi,0x10(%esp) 12ab: 89 5c 24 0c mov %ebx,0xc(%esp) 12af: 89 44 24 08 mov %eax,0x8(%esp) 12b3: c7 44 24 04 47 1b 00 movl $0x1b47,0x4(%esp) 12ba: 00 12bb: c7 04 24 01 00 00 00 movl $0x1,(%esp) 12c2: e8 8c 04 00 00 call 1753 <printf> break; } strcpy(buf, path); p = buf+strlen(buf); *p++ = '/'; while(read(fd, &de, sizeof(de)) == sizeof(de)){ 12c7: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 12ce: 00 12cf: 8d 85 d0 fd ff ff lea -0x230(%ebp),%eax 12d5: 89 44 24 04 mov %eax,0x4(%esp) 12d9: 8b 45 e4 mov -0x1c(%ebp),%eax 12dc: 89 04 24 mov %eax,(%esp) 12df: e8 07 03 00 00 call 15eb <read> 12e4: 83 f8 10 cmp $0x10,%eax 12e7: 0f 84 1c ff ff ff je 1209 <ls+0x159> printf(1, "ls: cannot stat %s\n", buf); continue; } printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); } break; 12ed: 90 nop } close(fd); 12ee: 8b 45 e4 mov -0x1c(%ebp),%eax 12f1: 89 04 24 mov %eax,(%esp) 12f4: e8 02 03 00 00 call 15fb <close> } 12f9: 81 c4 5c 02 00 00 add $0x25c,%esp 12ff: 5b pop %ebx 1300: 5e pop %esi 1301: 5f pop %edi 1302: 5d pop %ebp 1303: c3 ret 00001304 <main>: int main(int argc, char *argv[]) { 1304: 55 push %ebp 1305: 89 e5 mov %esp,%ebp 1307: 83 e4 f0 and $0xfffffff0,%esp 130a: 83 ec 20 sub $0x20,%esp int i; if(argc < 2){ 130d: 83 7d 08 01 cmpl $0x1,0x8(%ebp) 1311: 7f 11 jg 1324 <main+0x20> ls("."); 1313: c7 04 24 67 1b 00 00 movl $0x1b67,(%esp) 131a: e8 91 fd ff ff call 10b0 <ls> exit(); 131f: e8 af 02 00 00 call 15d3 <exit> } for(i=1; i<argc; i++) 1324: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp) 132b: 00 132c: eb 1f jmp 134d <main+0x49> ls(argv[i]); 132e: 8b 44 24 1c mov 0x1c(%esp),%eax 1332: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 1339: 8b 45 0c mov 0xc(%ebp),%eax 133c: 01 d0 add %edx,%eax 133e: 8b 00 mov (%eax),%eax 1340: 89 04 24 mov %eax,(%esp) 1343: e8 68 fd ff ff call 10b0 <ls> if(argc < 2){ ls("."); exit(); } for(i=1; i<argc; i++) 1348: 83 44 24 1c 01 addl $0x1,0x1c(%esp) 134d: 8b 44 24 1c mov 0x1c(%esp),%eax 1351: 3b 45 08 cmp 0x8(%ebp),%eax 1354: 7c d8 jl 132e <main+0x2a> ls(argv[i]); exit(); 1356: e8 78 02 00 00 call 15d3 <exit> 0000135b <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 135b: 55 push %ebp 135c: 89 e5 mov %esp,%ebp 135e: 57 push %edi 135f: 53 push %ebx asm volatile("cld; rep stosb" : 1360: 8b 4d 08 mov 0x8(%ebp),%ecx 1363: 8b 55 10 mov 0x10(%ebp),%edx 1366: 8b 45 0c mov 0xc(%ebp),%eax 1369: 89 cb mov %ecx,%ebx 136b: 89 df mov %ebx,%edi 136d: 89 d1 mov %edx,%ecx 136f: fc cld 1370: f3 aa rep stos %al,%es:(%edi) 1372: 89 ca mov %ecx,%edx 1374: 89 fb mov %edi,%ebx 1376: 89 5d 08 mov %ebx,0x8(%ebp) 1379: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 137c: 5b pop %ebx 137d: 5f pop %edi 137e: 5d pop %ebp 137f: c3 ret 00001380 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1380: 55 push %ebp 1381: 89 e5 mov %esp,%ebp 1383: 83 ec 10 sub $0x10,%esp char *os; os = s; 1386: 8b 45 08 mov 0x8(%ebp),%eax 1389: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 138c: 90 nop 138d: 8b 45 08 mov 0x8(%ebp),%eax 1390: 8d 50 01 lea 0x1(%eax),%edx 1393: 89 55 08 mov %edx,0x8(%ebp) 1396: 8b 55 0c mov 0xc(%ebp),%edx 1399: 8d 4a 01 lea 0x1(%edx),%ecx 139c: 89 4d 0c mov %ecx,0xc(%ebp) 139f: 0f b6 12 movzbl (%edx),%edx 13a2: 88 10 mov %dl,(%eax) 13a4: 0f b6 00 movzbl (%eax),%eax 13a7: 84 c0 test %al,%al 13a9: 75 e2 jne 138d <strcpy+0xd> ; return os; 13ab: 8b 45 fc mov -0x4(%ebp),%eax } 13ae: c9 leave 13af: c3 ret 000013b0 <strcmp>: int strcmp(const char *p, const char *q) { 13b0: 55 push %ebp 13b1: 89 e5 mov %esp,%ebp while(*p && *p == *q) 13b3: eb 08 jmp 13bd <strcmp+0xd> p++, q++; 13b5: 83 45 08 01 addl $0x1,0x8(%ebp) 13b9: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 13bd: 8b 45 08 mov 0x8(%ebp),%eax 13c0: 0f b6 00 movzbl (%eax),%eax 13c3: 84 c0 test %al,%al 13c5: 74 10 je 13d7 <strcmp+0x27> 13c7: 8b 45 08 mov 0x8(%ebp),%eax 13ca: 0f b6 10 movzbl (%eax),%edx 13cd: 8b 45 0c mov 0xc(%ebp),%eax 13d0: 0f b6 00 movzbl (%eax),%eax 13d3: 38 c2 cmp %al,%dl 13d5: 74 de je 13b5 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 13d7: 8b 45 08 mov 0x8(%ebp),%eax 13da: 0f b6 00 movzbl (%eax),%eax 13dd: 0f b6 d0 movzbl %al,%edx 13e0: 8b 45 0c mov 0xc(%ebp),%eax 13e3: 0f b6 00 movzbl (%eax),%eax 13e6: 0f b6 c0 movzbl %al,%eax 13e9: 29 c2 sub %eax,%edx 13eb: 89 d0 mov %edx,%eax } 13ed: 5d pop %ebp 13ee: c3 ret 000013ef <strlen>: uint strlen(char *s) { 13ef: 55 push %ebp 13f0: 89 e5 mov %esp,%ebp 13f2: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 13f5: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 13fc: eb 04 jmp 1402 <strlen+0x13> 13fe: 83 45 fc 01 addl $0x1,-0x4(%ebp) 1402: 8b 55 fc mov -0x4(%ebp),%edx 1405: 8b 45 08 mov 0x8(%ebp),%eax 1408: 01 d0 add %edx,%eax 140a: 0f b6 00 movzbl (%eax),%eax 140d: 84 c0 test %al,%al 140f: 75 ed jne 13fe <strlen+0xf> ; return n; 1411: 8b 45 fc mov -0x4(%ebp),%eax } 1414: c9 leave 1415: c3 ret 00001416 <memset>: void* memset(void *dst, int c, uint n) { 1416: 55 push %ebp 1417: 89 e5 mov %esp,%ebp 1419: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 141c: 8b 45 10 mov 0x10(%ebp),%eax 141f: 89 44 24 08 mov %eax,0x8(%esp) 1423: 8b 45 0c mov 0xc(%ebp),%eax 1426: 89 44 24 04 mov %eax,0x4(%esp) 142a: 8b 45 08 mov 0x8(%ebp),%eax 142d: 89 04 24 mov %eax,(%esp) 1430: e8 26 ff ff ff call 135b <stosb> return dst; 1435: 8b 45 08 mov 0x8(%ebp),%eax } 1438: c9 leave 1439: c3 ret 0000143a <strchr>: char* strchr(const char *s, char c) { 143a: 55 push %ebp 143b: 89 e5 mov %esp,%ebp 143d: 83 ec 04 sub $0x4,%esp 1440: 8b 45 0c mov 0xc(%ebp),%eax 1443: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 1446: eb 14 jmp 145c <strchr+0x22> if(*s == c) 1448: 8b 45 08 mov 0x8(%ebp),%eax 144b: 0f b6 00 movzbl (%eax),%eax 144e: 3a 45 fc cmp -0x4(%ebp),%al 1451: 75 05 jne 1458 <strchr+0x1e> return (char*)s; 1453: 8b 45 08 mov 0x8(%ebp),%eax 1456: eb 13 jmp 146b <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 1458: 83 45 08 01 addl $0x1,0x8(%ebp) 145c: 8b 45 08 mov 0x8(%ebp),%eax 145f: 0f b6 00 movzbl (%eax),%eax 1462: 84 c0 test %al,%al 1464: 75 e2 jne 1448 <strchr+0xe> if(*s == c) return (char*)s; return 0; 1466: b8 00 00 00 00 mov $0x0,%eax } 146b: c9 leave 146c: c3 ret 0000146d <gets>: char* gets(char *buf, int max) { 146d: 55 push %ebp 146e: 89 e5 mov %esp,%ebp 1470: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 1473: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 147a: eb 4c jmp 14c8 <gets+0x5b> cc = read(0, &c, 1); 147c: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1483: 00 1484: 8d 45 ef lea -0x11(%ebp),%eax 1487: 89 44 24 04 mov %eax,0x4(%esp) 148b: c7 04 24 00 00 00 00 movl $0x0,(%esp) 1492: e8 54 01 00 00 call 15eb <read> 1497: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 149a: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 149e: 7f 02 jg 14a2 <gets+0x35> break; 14a0: eb 31 jmp 14d3 <gets+0x66> buf[i++] = c; 14a2: 8b 45 f4 mov -0xc(%ebp),%eax 14a5: 8d 50 01 lea 0x1(%eax),%edx 14a8: 89 55 f4 mov %edx,-0xc(%ebp) 14ab: 89 c2 mov %eax,%edx 14ad: 8b 45 08 mov 0x8(%ebp),%eax 14b0: 01 c2 add %eax,%edx 14b2: 0f b6 45 ef movzbl -0x11(%ebp),%eax 14b6: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 14b8: 0f b6 45 ef movzbl -0x11(%ebp),%eax 14bc: 3c 0a cmp $0xa,%al 14be: 74 13 je 14d3 <gets+0x66> 14c0: 0f b6 45 ef movzbl -0x11(%ebp),%eax 14c4: 3c 0d cmp $0xd,%al 14c6: 74 0b je 14d3 <gets+0x66> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 14c8: 8b 45 f4 mov -0xc(%ebp),%eax 14cb: 83 c0 01 add $0x1,%eax 14ce: 3b 45 0c cmp 0xc(%ebp),%eax 14d1: 7c a9 jl 147c <gets+0xf> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 14d3: 8b 55 f4 mov -0xc(%ebp),%edx 14d6: 8b 45 08 mov 0x8(%ebp),%eax 14d9: 01 d0 add %edx,%eax 14db: c6 00 00 movb $0x0,(%eax) return buf; 14de: 8b 45 08 mov 0x8(%ebp),%eax } 14e1: c9 leave 14e2: c3 ret 000014e3 <stat>: int stat(char *n, struct stat *st) { 14e3: 55 push %ebp 14e4: 89 e5 mov %esp,%ebp 14e6: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 14e9: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 14f0: 00 14f1: 8b 45 08 mov 0x8(%ebp),%eax 14f4: 89 04 24 mov %eax,(%esp) 14f7: e8 17 01 00 00 call 1613 <open> 14fc: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 14ff: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1503: 79 07 jns 150c <stat+0x29> return -1; 1505: b8 ff ff ff ff mov $0xffffffff,%eax 150a: eb 23 jmp 152f <stat+0x4c> r = fstat(fd, st); 150c: 8b 45 0c mov 0xc(%ebp),%eax 150f: 89 44 24 04 mov %eax,0x4(%esp) 1513: 8b 45 f4 mov -0xc(%ebp),%eax 1516: 89 04 24 mov %eax,(%esp) 1519: e8 0d 01 00 00 call 162b <fstat> 151e: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 1521: 8b 45 f4 mov -0xc(%ebp),%eax 1524: 89 04 24 mov %eax,(%esp) 1527: e8 cf 00 00 00 call 15fb <close> return r; 152c: 8b 45 f0 mov -0x10(%ebp),%eax } 152f: c9 leave 1530: c3 ret 00001531 <atoi>: int atoi(const char *s) { 1531: 55 push %ebp 1532: 89 e5 mov %esp,%ebp 1534: 83 ec 10 sub $0x10,%esp int n; n = 0; 1537: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 153e: eb 25 jmp 1565 <atoi+0x34> n = n*10 + *s++ - '0'; 1540: 8b 55 fc mov -0x4(%ebp),%edx 1543: 89 d0 mov %edx,%eax 1545: c1 e0 02 shl $0x2,%eax 1548: 01 d0 add %edx,%eax 154a: 01 c0 add %eax,%eax 154c: 89 c1 mov %eax,%ecx 154e: 8b 45 08 mov 0x8(%ebp),%eax 1551: 8d 50 01 lea 0x1(%eax),%edx 1554: 89 55 08 mov %edx,0x8(%ebp) 1557: 0f b6 00 movzbl (%eax),%eax 155a: 0f be c0 movsbl %al,%eax 155d: 01 c8 add %ecx,%eax 155f: 83 e8 30 sub $0x30,%eax 1562: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 1565: 8b 45 08 mov 0x8(%ebp),%eax 1568: 0f b6 00 movzbl (%eax),%eax 156b: 3c 2f cmp $0x2f,%al 156d: 7e 0a jle 1579 <atoi+0x48> 156f: 8b 45 08 mov 0x8(%ebp),%eax 1572: 0f b6 00 movzbl (%eax),%eax 1575: 3c 39 cmp $0x39,%al 1577: 7e c7 jle 1540 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 1579: 8b 45 fc mov -0x4(%ebp),%eax } 157c: c9 leave 157d: c3 ret 0000157e <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 157e: 55 push %ebp 157f: 89 e5 mov %esp,%ebp 1581: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 1584: 8b 45 08 mov 0x8(%ebp),%eax 1587: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 158a: 8b 45 0c mov 0xc(%ebp),%eax 158d: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 1590: eb 17 jmp 15a9 <memmove+0x2b> *dst++ = *src++; 1592: 8b 45 fc mov -0x4(%ebp),%eax 1595: 8d 50 01 lea 0x1(%eax),%edx 1598: 89 55 fc mov %edx,-0x4(%ebp) 159b: 8b 55 f8 mov -0x8(%ebp),%edx 159e: 8d 4a 01 lea 0x1(%edx),%ecx 15a1: 89 4d f8 mov %ecx,-0x8(%ebp) 15a4: 0f b6 12 movzbl (%edx),%edx 15a7: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 15a9: 8b 45 10 mov 0x10(%ebp),%eax 15ac: 8d 50 ff lea -0x1(%eax),%edx 15af: 89 55 10 mov %edx,0x10(%ebp) 15b2: 85 c0 test %eax,%eax 15b4: 7f dc jg 1592 <memmove+0x14> *dst++ = *src++; return vdst; 15b6: 8b 45 08 mov 0x8(%ebp),%eax } 15b9: c9 leave 15ba: c3 ret 000015bb <fork>: 15bb: b8 01 00 00 00 mov $0x1,%eax 15c0: cd 40 int $0x40 15c2: c3 ret 000015c3 <cowfork>: 15c3: b8 0f 00 00 00 mov $0xf,%eax 15c8: cd 40 int $0x40 15ca: c3 ret 000015cb <procdump>: 15cb: b8 10 00 00 00 mov $0x10,%eax 15d0: cd 40 int $0x40 15d2: c3 ret 000015d3 <exit>: 15d3: b8 02 00 00 00 mov $0x2,%eax 15d8: cd 40 int $0x40 15da: c3 ret 000015db <wait>: 15db: b8 03 00 00 00 mov $0x3,%eax 15e0: cd 40 int $0x40 15e2: c3 ret 000015e3 <pipe>: 15e3: b8 04 00 00 00 mov $0x4,%eax 15e8: cd 40 int $0x40 15ea: c3 ret 000015eb <read>: 15eb: b8 05 00 00 00 mov $0x5,%eax 15f0: cd 40 int $0x40 15f2: c3 ret 000015f3 <write>: 15f3: b8 12 00 00 00 mov $0x12,%eax 15f8: cd 40 int $0x40 15fa: c3 ret 000015fb <close>: 15fb: b8 17 00 00 00 mov $0x17,%eax 1600: cd 40 int $0x40 1602: c3 ret 00001603 <kill>: 1603: b8 06 00 00 00 mov $0x6,%eax 1608: cd 40 int $0x40 160a: c3 ret 0000160b <exec>: 160b: b8 07 00 00 00 mov $0x7,%eax 1610: cd 40 int $0x40 1612: c3 ret 00001613 <open>: 1613: b8 11 00 00 00 mov $0x11,%eax 1618: cd 40 int $0x40 161a: c3 ret 0000161b <mknod>: 161b: b8 13 00 00 00 mov $0x13,%eax 1620: cd 40 int $0x40 1622: c3 ret 00001623 <unlink>: 1623: b8 14 00 00 00 mov $0x14,%eax 1628: cd 40 int $0x40 162a: c3 ret 0000162b <fstat>: 162b: b8 08 00 00 00 mov $0x8,%eax 1630: cd 40 int $0x40 1632: c3 ret 00001633 <link>: 1633: b8 15 00 00 00 mov $0x15,%eax 1638: cd 40 int $0x40 163a: c3 ret 0000163b <mkdir>: 163b: b8 16 00 00 00 mov $0x16,%eax 1640: cd 40 int $0x40 1642: c3 ret 00001643 <chdir>: 1643: b8 09 00 00 00 mov $0x9,%eax 1648: cd 40 int $0x40 164a: c3 ret 0000164b <dup>: 164b: b8 0a 00 00 00 mov $0xa,%eax 1650: cd 40 int $0x40 1652: c3 ret 00001653 <getpid>: 1653: b8 0b 00 00 00 mov $0xb,%eax 1658: cd 40 int $0x40 165a: c3 ret 0000165b <sbrk>: 165b: b8 0c 00 00 00 mov $0xc,%eax 1660: cd 40 int $0x40 1662: c3 ret 00001663 <sleep>: 1663: b8 0d 00 00 00 mov $0xd,%eax 1668: cd 40 int $0x40 166a: c3 ret 0000166b <uptime>: 166b: b8 0e 00 00 00 mov $0xe,%eax 1670: cd 40 int $0x40 1672: c3 ret 00001673 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 1673: 55 push %ebp 1674: 89 e5 mov %esp,%ebp 1676: 83 ec 18 sub $0x18,%esp 1679: 8b 45 0c mov 0xc(%ebp),%eax 167c: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 167f: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 1686: 00 1687: 8d 45 f4 lea -0xc(%ebp),%eax 168a: 89 44 24 04 mov %eax,0x4(%esp) 168e: 8b 45 08 mov 0x8(%ebp),%eax 1691: 89 04 24 mov %eax,(%esp) 1694: e8 5a ff ff ff call 15f3 <write> } 1699: c9 leave 169a: c3 ret 0000169b <printint>: static void printint(int fd, int xx, int base, int sgn) { 169b: 55 push %ebp 169c: 89 e5 mov %esp,%ebp 169e: 56 push %esi 169f: 53 push %ebx 16a0: 83 ec 30 sub $0x30,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 16a3: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 16aa: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 16ae: 74 17 je 16c7 <printint+0x2c> 16b0: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 16b4: 79 11 jns 16c7 <printint+0x2c> neg = 1; 16b6: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 16bd: 8b 45 0c mov 0xc(%ebp),%eax 16c0: f7 d8 neg %eax 16c2: 89 45 ec mov %eax,-0x14(%ebp) 16c5: eb 06 jmp 16cd <printint+0x32> } else { x = xx; 16c7: 8b 45 0c mov 0xc(%ebp),%eax 16ca: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 16cd: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 16d4: 8b 4d f4 mov -0xc(%ebp),%ecx 16d7: 8d 41 01 lea 0x1(%ecx),%eax 16da: 89 45 f4 mov %eax,-0xc(%ebp) 16dd: 8b 5d 10 mov 0x10(%ebp),%ebx 16e0: 8b 45 ec mov -0x14(%ebp),%eax 16e3: ba 00 00 00 00 mov $0x0,%edx 16e8: f7 f3 div %ebx 16ea: 89 d0 mov %edx,%eax 16ec: 0f b6 80 08 2e 00 00 movzbl 0x2e08(%eax),%eax 16f3: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 16f7: 8b 75 10 mov 0x10(%ebp),%esi 16fa: 8b 45 ec mov -0x14(%ebp),%eax 16fd: ba 00 00 00 00 mov $0x0,%edx 1702: f7 f6 div %esi 1704: 89 45 ec mov %eax,-0x14(%ebp) 1707: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 170b: 75 c7 jne 16d4 <printint+0x39> if(neg) 170d: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 1711: 74 10 je 1723 <printint+0x88> buf[i++] = '-'; 1713: 8b 45 f4 mov -0xc(%ebp),%eax 1716: 8d 50 01 lea 0x1(%eax),%edx 1719: 89 55 f4 mov %edx,-0xc(%ebp) 171c: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 1721: eb 1f jmp 1742 <printint+0xa7> 1723: eb 1d jmp 1742 <printint+0xa7> putc(fd, buf[i]); 1725: 8d 55 dc lea -0x24(%ebp),%edx 1728: 8b 45 f4 mov -0xc(%ebp),%eax 172b: 01 d0 add %edx,%eax 172d: 0f b6 00 movzbl (%eax),%eax 1730: 0f be c0 movsbl %al,%eax 1733: 89 44 24 04 mov %eax,0x4(%esp) 1737: 8b 45 08 mov 0x8(%ebp),%eax 173a: 89 04 24 mov %eax,(%esp) 173d: e8 31 ff ff ff call 1673 <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 1742: 83 6d f4 01 subl $0x1,-0xc(%ebp) 1746: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 174a: 79 d9 jns 1725 <printint+0x8a> putc(fd, buf[i]); } 174c: 83 c4 30 add $0x30,%esp 174f: 5b pop %ebx 1750: 5e pop %esi 1751: 5d pop %ebp 1752: c3 ret 00001753 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 1753: 55 push %ebp 1754: 89 e5 mov %esp,%ebp 1756: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 1759: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 1760: 8d 45 0c lea 0xc(%ebp),%eax 1763: 83 c0 04 add $0x4,%eax 1766: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 1769: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 1770: e9 7c 01 00 00 jmp 18f1 <printf+0x19e> c = fmt[i] & 0xff; 1775: 8b 55 0c mov 0xc(%ebp),%edx 1778: 8b 45 f0 mov -0x10(%ebp),%eax 177b: 01 d0 add %edx,%eax 177d: 0f b6 00 movzbl (%eax),%eax 1780: 0f be c0 movsbl %al,%eax 1783: 25 ff 00 00 00 and $0xff,%eax 1788: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 178b: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 178f: 75 2c jne 17bd <printf+0x6a> if(c == '%'){ 1791: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 1795: 75 0c jne 17a3 <printf+0x50> state = '%'; 1797: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 179e: e9 4a 01 00 00 jmp 18ed <printf+0x19a> } else { putc(fd, c); 17a3: 8b 45 e4 mov -0x1c(%ebp),%eax 17a6: 0f be c0 movsbl %al,%eax 17a9: 89 44 24 04 mov %eax,0x4(%esp) 17ad: 8b 45 08 mov 0x8(%ebp),%eax 17b0: 89 04 24 mov %eax,(%esp) 17b3: e8 bb fe ff ff call 1673 <putc> 17b8: e9 30 01 00 00 jmp 18ed <printf+0x19a> } } else if(state == '%'){ 17bd: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 17c1: 0f 85 26 01 00 00 jne 18ed <printf+0x19a> if(c == 'd'){ 17c7: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 17cb: 75 2d jne 17fa <printf+0xa7> printint(fd, *ap, 10, 1); 17cd: 8b 45 e8 mov -0x18(%ebp),%eax 17d0: 8b 00 mov (%eax),%eax 17d2: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 17d9: 00 17da: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 17e1: 00 17e2: 89 44 24 04 mov %eax,0x4(%esp) 17e6: 8b 45 08 mov 0x8(%ebp),%eax 17e9: 89 04 24 mov %eax,(%esp) 17ec: e8 aa fe ff ff call 169b <printint> ap++; 17f1: 83 45 e8 04 addl $0x4,-0x18(%ebp) 17f5: e9 ec 00 00 00 jmp 18e6 <printf+0x193> } else if(c == 'x' || c == 'p'){ 17fa: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 17fe: 74 06 je 1806 <printf+0xb3> 1800: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 1804: 75 2d jne 1833 <printf+0xe0> printint(fd, *ap, 16, 0); 1806: 8b 45 e8 mov -0x18(%ebp),%eax 1809: 8b 00 mov (%eax),%eax 180b: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 1812: 00 1813: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 181a: 00 181b: 89 44 24 04 mov %eax,0x4(%esp) 181f: 8b 45 08 mov 0x8(%ebp),%eax 1822: 89 04 24 mov %eax,(%esp) 1825: e8 71 fe ff ff call 169b <printint> ap++; 182a: 83 45 e8 04 addl $0x4,-0x18(%ebp) 182e: e9 b3 00 00 00 jmp 18e6 <printf+0x193> } else if(c == 's'){ 1833: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 1837: 75 45 jne 187e <printf+0x12b> s = (char*)*ap; 1839: 8b 45 e8 mov -0x18(%ebp),%eax 183c: 8b 00 mov (%eax),%eax 183e: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 1841: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 1845: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1849: 75 09 jne 1854 <printf+0x101> s = "(null)"; 184b: c7 45 f4 69 1b 00 00 movl $0x1b69,-0xc(%ebp) while(*s != 0){ 1852: eb 1e jmp 1872 <printf+0x11f> 1854: eb 1c jmp 1872 <printf+0x11f> putc(fd, *s); 1856: 8b 45 f4 mov -0xc(%ebp),%eax 1859: 0f b6 00 movzbl (%eax),%eax 185c: 0f be c0 movsbl %al,%eax 185f: 89 44 24 04 mov %eax,0x4(%esp) 1863: 8b 45 08 mov 0x8(%ebp),%eax 1866: 89 04 24 mov %eax,(%esp) 1869: e8 05 fe ff ff call 1673 <putc> s++; 186e: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 1872: 8b 45 f4 mov -0xc(%ebp),%eax 1875: 0f b6 00 movzbl (%eax),%eax 1878: 84 c0 test %al,%al 187a: 75 da jne 1856 <printf+0x103> 187c: eb 68 jmp 18e6 <printf+0x193> putc(fd, *s); s++; } } else if(c == 'c'){ 187e: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 1882: 75 1d jne 18a1 <printf+0x14e> putc(fd, *ap); 1884: 8b 45 e8 mov -0x18(%ebp),%eax 1887: 8b 00 mov (%eax),%eax 1889: 0f be c0 movsbl %al,%eax 188c: 89 44 24 04 mov %eax,0x4(%esp) 1890: 8b 45 08 mov 0x8(%ebp),%eax 1893: 89 04 24 mov %eax,(%esp) 1896: e8 d8 fd ff ff call 1673 <putc> ap++; 189b: 83 45 e8 04 addl $0x4,-0x18(%ebp) 189f: eb 45 jmp 18e6 <printf+0x193> } else if(c == '%'){ 18a1: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 18a5: 75 17 jne 18be <printf+0x16b> putc(fd, c); 18a7: 8b 45 e4 mov -0x1c(%ebp),%eax 18aa: 0f be c0 movsbl %al,%eax 18ad: 89 44 24 04 mov %eax,0x4(%esp) 18b1: 8b 45 08 mov 0x8(%ebp),%eax 18b4: 89 04 24 mov %eax,(%esp) 18b7: e8 b7 fd ff ff call 1673 <putc> 18bc: eb 28 jmp 18e6 <printf+0x193> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 18be: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 18c5: 00 18c6: 8b 45 08 mov 0x8(%ebp),%eax 18c9: 89 04 24 mov %eax,(%esp) 18cc: e8 a2 fd ff ff call 1673 <putc> putc(fd, c); 18d1: 8b 45 e4 mov -0x1c(%ebp),%eax 18d4: 0f be c0 movsbl %al,%eax 18d7: 89 44 24 04 mov %eax,0x4(%esp) 18db: 8b 45 08 mov 0x8(%ebp),%eax 18de: 89 04 24 mov %eax,(%esp) 18e1: e8 8d fd ff ff call 1673 <putc> } state = 0; 18e6: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 18ed: 83 45 f0 01 addl $0x1,-0x10(%ebp) 18f1: 8b 55 0c mov 0xc(%ebp),%edx 18f4: 8b 45 f0 mov -0x10(%ebp),%eax 18f7: 01 d0 add %edx,%eax 18f9: 0f b6 00 movzbl (%eax),%eax 18fc: 84 c0 test %al,%al 18fe: 0f 85 71 fe ff ff jne 1775 <printf+0x22> putc(fd, c); } state = 0; } } } 1904: c9 leave 1905: c3 ret 00001906 <free>: 1906: 55 push %ebp 1907: 89 e5 mov %esp,%ebp 1909: 83 ec 10 sub $0x10,%esp 190c: 8b 45 08 mov 0x8(%ebp),%eax 190f: 83 e8 08 sub $0x8,%eax 1912: 89 45 f8 mov %eax,-0x8(%ebp) 1915: a1 34 2e 00 00 mov 0x2e34,%eax 191a: 89 45 fc mov %eax,-0x4(%ebp) 191d: eb 24 jmp 1943 <free+0x3d> 191f: 8b 45 fc mov -0x4(%ebp),%eax 1922: 8b 00 mov (%eax),%eax 1924: 3b 45 fc cmp -0x4(%ebp),%eax 1927: 77 12 ja 193b <free+0x35> 1929: 8b 45 f8 mov -0x8(%ebp),%eax 192c: 3b 45 fc cmp -0x4(%ebp),%eax 192f: 77 24 ja 1955 <free+0x4f> 1931: 8b 45 fc mov -0x4(%ebp),%eax 1934: 8b 00 mov (%eax),%eax 1936: 3b 45 f8 cmp -0x8(%ebp),%eax 1939: 77 1a ja 1955 <free+0x4f> 193b: 8b 45 fc mov -0x4(%ebp),%eax 193e: 8b 00 mov (%eax),%eax 1940: 89 45 fc mov %eax,-0x4(%ebp) 1943: 8b 45 f8 mov -0x8(%ebp),%eax 1946: 3b 45 fc cmp -0x4(%ebp),%eax 1949: 76 d4 jbe 191f <free+0x19> 194b: 8b 45 fc mov -0x4(%ebp),%eax 194e: 8b 00 mov (%eax),%eax 1950: 3b 45 f8 cmp -0x8(%ebp),%eax 1953: 76 ca jbe 191f <free+0x19> 1955: 8b 45 f8 mov -0x8(%ebp),%eax 1958: 8b 40 04 mov 0x4(%eax),%eax 195b: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 1962: 8b 45 f8 mov -0x8(%ebp),%eax 1965: 01 c2 add %eax,%edx 1967: 8b 45 fc mov -0x4(%ebp),%eax 196a: 8b 00 mov (%eax),%eax 196c: 39 c2 cmp %eax,%edx 196e: 75 24 jne 1994 <free+0x8e> 1970: 8b 45 f8 mov -0x8(%ebp),%eax 1973: 8b 50 04 mov 0x4(%eax),%edx 1976: 8b 45 fc mov -0x4(%ebp),%eax 1979: 8b 00 mov (%eax),%eax 197b: 8b 40 04 mov 0x4(%eax),%eax 197e: 01 c2 add %eax,%edx 1980: 8b 45 f8 mov -0x8(%ebp),%eax 1983: 89 50 04 mov %edx,0x4(%eax) 1986: 8b 45 fc mov -0x4(%ebp),%eax 1989: 8b 00 mov (%eax),%eax 198b: 8b 10 mov (%eax),%edx 198d: 8b 45 f8 mov -0x8(%ebp),%eax 1990: 89 10 mov %edx,(%eax) 1992: eb 0a jmp 199e <free+0x98> 1994: 8b 45 fc mov -0x4(%ebp),%eax 1997: 8b 10 mov (%eax),%edx 1999: 8b 45 f8 mov -0x8(%ebp),%eax 199c: 89 10 mov %edx,(%eax) 199e: 8b 45 fc mov -0x4(%ebp),%eax 19a1: 8b 40 04 mov 0x4(%eax),%eax 19a4: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 19ab: 8b 45 fc mov -0x4(%ebp),%eax 19ae: 01 d0 add %edx,%eax 19b0: 3b 45 f8 cmp -0x8(%ebp),%eax 19b3: 75 20 jne 19d5 <free+0xcf> 19b5: 8b 45 fc mov -0x4(%ebp),%eax 19b8: 8b 50 04 mov 0x4(%eax),%edx 19bb: 8b 45 f8 mov -0x8(%ebp),%eax 19be: 8b 40 04 mov 0x4(%eax),%eax 19c1: 01 c2 add %eax,%edx 19c3: 8b 45 fc mov -0x4(%ebp),%eax 19c6: 89 50 04 mov %edx,0x4(%eax) 19c9: 8b 45 f8 mov -0x8(%ebp),%eax 19cc: 8b 10 mov (%eax),%edx 19ce: 8b 45 fc mov -0x4(%ebp),%eax 19d1: 89 10 mov %edx,(%eax) 19d3: eb 08 jmp 19dd <free+0xd7> 19d5: 8b 45 fc mov -0x4(%ebp),%eax 19d8: 8b 55 f8 mov -0x8(%ebp),%edx 19db: 89 10 mov %edx,(%eax) 19dd: 8b 45 fc mov -0x4(%ebp),%eax 19e0: a3 34 2e 00 00 mov %eax,0x2e34 19e5: c9 leave 19e6: c3 ret 000019e7 <morecore>: 19e7: 55 push %ebp 19e8: 89 e5 mov %esp,%ebp 19ea: 83 ec 28 sub $0x28,%esp 19ed: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 19f4: 77 07 ja 19fd <morecore+0x16> 19f6: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) 19fd: 8b 45 08 mov 0x8(%ebp),%eax 1a00: c1 e0 03 shl $0x3,%eax 1a03: 89 04 24 mov %eax,(%esp) 1a06: e8 50 fc ff ff call 165b <sbrk> 1a0b: 89 45 f4 mov %eax,-0xc(%ebp) 1a0e: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 1a12: 75 07 jne 1a1b <morecore+0x34> 1a14: b8 00 00 00 00 mov $0x0,%eax 1a19: eb 22 jmp 1a3d <morecore+0x56> 1a1b: 8b 45 f4 mov -0xc(%ebp),%eax 1a1e: 89 45 f0 mov %eax,-0x10(%ebp) 1a21: 8b 45 f0 mov -0x10(%ebp),%eax 1a24: 8b 55 08 mov 0x8(%ebp),%edx 1a27: 89 50 04 mov %edx,0x4(%eax) 1a2a: 8b 45 f0 mov -0x10(%ebp),%eax 1a2d: 83 c0 08 add $0x8,%eax 1a30: 89 04 24 mov %eax,(%esp) 1a33: e8 ce fe ff ff call 1906 <free> 1a38: a1 34 2e 00 00 mov 0x2e34,%eax 1a3d: c9 leave 1a3e: c3 ret 00001a3f <malloc>: 1a3f: 55 push %ebp 1a40: 89 e5 mov %esp,%ebp 1a42: 83 ec 28 sub $0x28,%esp 1a45: 8b 45 08 mov 0x8(%ebp),%eax 1a48: 83 c0 07 add $0x7,%eax 1a4b: c1 e8 03 shr $0x3,%eax 1a4e: 83 c0 01 add $0x1,%eax 1a51: 89 45 ec mov %eax,-0x14(%ebp) 1a54: a1 34 2e 00 00 mov 0x2e34,%eax 1a59: 89 45 f0 mov %eax,-0x10(%ebp) 1a5c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 1a60: 75 23 jne 1a85 <malloc+0x46> 1a62: c7 45 f0 2c 2e 00 00 movl $0x2e2c,-0x10(%ebp) 1a69: 8b 45 f0 mov -0x10(%ebp),%eax 1a6c: a3 34 2e 00 00 mov %eax,0x2e34 1a71: a1 34 2e 00 00 mov 0x2e34,%eax 1a76: a3 2c 2e 00 00 mov %eax,0x2e2c 1a7b: c7 05 30 2e 00 00 00 movl $0x0,0x2e30 1a82: 00 00 00 1a85: 8b 45 f0 mov -0x10(%ebp),%eax 1a88: 8b 00 mov (%eax),%eax 1a8a: 89 45 f4 mov %eax,-0xc(%ebp) 1a8d: 8b 45 f4 mov -0xc(%ebp),%eax 1a90: 8b 40 04 mov 0x4(%eax),%eax 1a93: 3b 45 ec cmp -0x14(%ebp),%eax 1a96: 72 4d jb 1ae5 <malloc+0xa6> 1a98: 8b 45 f4 mov -0xc(%ebp),%eax 1a9b: 8b 40 04 mov 0x4(%eax),%eax 1a9e: 3b 45 ec cmp -0x14(%ebp),%eax 1aa1: 75 0c jne 1aaf <malloc+0x70> 1aa3: 8b 45 f4 mov -0xc(%ebp),%eax 1aa6: 8b 10 mov (%eax),%edx 1aa8: 8b 45 f0 mov -0x10(%ebp),%eax 1aab: 89 10 mov %edx,(%eax) 1aad: eb 26 jmp 1ad5 <malloc+0x96> 1aaf: 8b 45 f4 mov -0xc(%ebp),%eax 1ab2: 8b 40 04 mov 0x4(%eax),%eax 1ab5: 2b 45 ec sub -0x14(%ebp),%eax 1ab8: 89 c2 mov %eax,%edx 1aba: 8b 45 f4 mov -0xc(%ebp),%eax 1abd: 89 50 04 mov %edx,0x4(%eax) 1ac0: 8b 45 f4 mov -0xc(%ebp),%eax 1ac3: 8b 40 04 mov 0x4(%eax),%eax 1ac6: c1 e0 03 shl $0x3,%eax 1ac9: 01 45 f4 add %eax,-0xc(%ebp) 1acc: 8b 45 f4 mov -0xc(%ebp),%eax 1acf: 8b 55 ec mov -0x14(%ebp),%edx 1ad2: 89 50 04 mov %edx,0x4(%eax) 1ad5: 8b 45 f0 mov -0x10(%ebp),%eax 1ad8: a3 34 2e 00 00 mov %eax,0x2e34 1add: 8b 45 f4 mov -0xc(%ebp),%eax 1ae0: 83 c0 08 add $0x8,%eax 1ae3: eb 38 jmp 1b1d <malloc+0xde> 1ae5: a1 34 2e 00 00 mov 0x2e34,%eax 1aea: 39 45 f4 cmp %eax,-0xc(%ebp) 1aed: 75 1b jne 1b0a <malloc+0xcb> 1aef: 8b 45 ec mov -0x14(%ebp),%eax 1af2: 89 04 24 mov %eax,(%esp) 1af5: e8 ed fe ff ff call 19e7 <morecore> 1afa: 89 45 f4 mov %eax,-0xc(%ebp) 1afd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1b01: 75 07 jne 1b0a <malloc+0xcb> 1b03: b8 00 00 00 00 mov $0x0,%eax 1b08: eb 13 jmp 1b1d <malloc+0xde> 1b0a: 8b 45 f4 mov -0xc(%ebp),%eax 1b0d: 89 45 f0 mov %eax,-0x10(%ebp) 1b10: 8b 45 f4 mov -0xc(%ebp),%eax 1b13: 8b 00 mov (%eax),%eax 1b15: 89 45 f4 mov %eax,-0xc(%ebp) 1b18: e9 70 ff ff ff jmp 1a8d <malloc+0x4e> 1b1d: c9 leave 1b1e: c3 ret
39.106618
73
0.422525
1a59e16b67276baae2855d89506fab30263a0889
716
asm
Assembly
oeis/116/A116732.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/116/A116732.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/116/A116732.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A116732: a(n) = a(n-1) + a(n-2) + a(n-3) - a(n-4). ; Submitted by Jamie Morken(s4) ; 0,0,0,1,1,2,4,6,11,19,32,56,96,165,285,490,844,1454,2503,4311,7424,12784,22016,37913,65289,112434,193620,333430,574195,988811,1702816,2932392,5049824,8696221,14975621,25789274,44411292,76479966,131704911,226806895,390580480,672612320,1158294784,1994680689,3435007313,5915370466,10186763684,17542460774,30209587611,52023441603,89588726304,154279294744,265681875040,457526454485,787898897965,1356827932746,2336571410156,4023771786382,6929272231319,11932787495111,20549260102656,35387548042704 mov $2,1 lpb $0 sub $0,1 sub $3,$4 add $1,$3 mov $5,$4 mov $4,$2 mov $2,$3 add $4,$1 add $5,$4 mov $3,$5 lpe mov $0,$1
39.777778
492
0.748603
8a5c9ff127a7236d93ebedf62891d0913a5f0ee2
2,138
asm
Assembly
Kernel/asm/interrupts.asm
srosati/TPE_ARQUI
b2e6a3b56c0a82026a353a9e4f487b629861440e
[ "BSD-3-Clause" ]
null
null
null
Kernel/asm/interrupts.asm
srosati/TPE_ARQUI
b2e6a3b56c0a82026a353a9e4f487b629861440e
[ "BSD-3-Clause" ]
null
null
null
Kernel/asm/interrupts.asm
srosati/TPE_ARQUI
b2e6a3b56c0a82026a353a9e4f487b629861440e
[ "BSD-3-Clause" ]
null
null
null
GLOBAL _irq0handler GLOBAL _irq1handler GLOBAL _syscallhandler GLOBAL _cli GLOBAL _sti GLOBAL picMasterMask GLOBAL picSlaveMask EXTERN irqDispatcher EXTERN clearScreen EXTERN getChar EXTERN putChar EXTERN getTime EXTERN drawPixel EXTERN setInterval EXTERN stopInterval EXTERN getScreenDimentions EXTERN getMem EXTERN getRegisters EXTERN exceptionCode section .text %macro pushState 0 push rax push rbx push rcx push rdx push rbp push rdi push rsi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endmacro %macro popState 0 pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rsi pop rdi pop rbp pop rdx pop rcx pop rbx pop rax %endmacro %macro irqHandlerMaster 1 pushState mov rdi, %1 ; pasaje de parametro call irqDispatcher ; signal pic EOI (End of Interrupt) mov al, 20h out 20h, al popState iretq %endmacro _irq0handler: irqHandlerMaster 0 _irq1handler: irqHandlerMaster 1 _syscallhandler: sti cmp rax, 0 je .clear_screen cmp rax, 1 je .call_getc cmp rax, 2 je .call_putc cmp rax, 3 je .get_time cmp rax, 4 je .draw_pixel cmp rax, 5 je .set_interval cmp rax, 6 je .stop_interval cmp rax, 7 je .get_screen_dimentions cmp rax, 8 je .get_mem cmp rax, 9 je .get_registers cmp rax, 10 je .get_exception_code jmp .done .clear_screen: call clearScreen jmp .done .call_getc: call getChar jmp .done .call_putc: call putChar jmp .done .get_time: call getTime jmp .done .draw_pixel: call drawPixel jmp .done .set_interval: call setInterval jmp .done .stop_interval: call stopInterval jmp .done .get_screen_dimentions: call getScreenDimentions jmp .done .get_mem: call getMem jmp .done .get_registers: call getRegisters jmp .done .get_exception_code: call exceptionCode jmp .done .done: push rax mov al, 20h out 20h, al pop rax iretq _cli: cli ret _sti: sti ret picMasterMask: push rbp mov rbp, rsp mov ax, di out 21h,al pop rbp retn picSlaveMask: push rbp mov rbp, rsp mov ax, di; ax = mascara de 16 bits out 0A1h,al pop rbp retn
11.944134
43
0.729654
c11ec47e50d51abcb451ae449136661e9eb6dbd4
3,160
asm
Assembly
src/core/asm/x86/inst_0x00.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
null
null
null
src/core/asm/x86/inst_0x00.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
4
2019-02-27T05:41:26.000Z
2020-07-16T00:24:24.000Z
src/core/asm/x86/inst_0x00.asm
Hiroshi123/bin_tools
95929eb218a82e30c43ee5bd209301a24abebffa
[ "MIT" ]
null
null
null
default rel section .text global _0x00_add global _0x01_add global _0x02_add global _0x03_add global _0x04_add global _0x05_add global _0x08_or global _0x09_or global _0x0a_or global _0x0b_or global _0x0c_or global _0x0d_or global _0x0f %include "extern_for_inst.asm" _0x00_add: add byte [_rip],1 ;; mov rax,_get_mod_reg_rm call _get_mod_reg_rm call _reset_higher8_access call _set_scale_index_base ;; call _inc_displacement call _fetch_displacement_by_mod ret ;; you do not need to execute below if your purpose is just for decrementing call _mov_rm_to_arg1 call _load_rm_by_mod call _mov_res_to_arg1 call _set_reg_to_arg2 call _add8 call _mov_rm_to_arg1 call _mov_res_to_arg2 call _store_or_assign_arg1_by_mod pop rbp ret _0x01_add: add dword [_rip],1 call _get_mod_reg_rm call _set_scale_index_base call _inc_displacement ;; call _fetch_displacement_by_mod ret call _mov_rm_to_arg1 call _load_rm_by_mod call _mov_res_to_arg1 call _set_reg_to_arg2 call _add call _mov_rm_to_arg1 call _mov_res_to_arg2 call _store_or_assign_arg1_by_mod pop rbp ret ;;; 0x02 & 0x03 is the inverse version of r/m & reg. ;;; in this case, destination is always reg and source is r/m _0x02_add: add dword [_rip],1 call _get_mod_reg_rm call _set_scale_index_base call _fetch_displacement_by_mod call _mov_rm_to_arg1 call _load_rm_by_mod ret call _mov_res_to_arg2 call _set_reg_to_arg1 call _add8 call _mov_reg_to_arg1 call _mov_res_to_arg2 call _store_or_assign_arg1_by_mod ret _0x03_add: add dword [_rip],1 call _get_mod_reg_rm call _set_scale_index_base call _fetch_displacement_by_mod ret call _mov_rm_to_arg1 call _load_rm_by_mod call _mov_res_to_arg2 call _set_reg_to_arg1 call _add call _mov_reg_to_arg1 call _mov_res_to_arg2 call _store_or_assign_arg1_by_mod ret ;;; 0x04,0x05 does not need anything about _0x04_add: add byte [_rip],1 call _fetch8 call _mov_res_to_arg2 mov rax,[_rax] ret mov [_context._arg1],rax call _add8 mov rax,_rax mov [_context._arg1],rax call _mov_res_to_arg2 call _assign8 ret _0x05_add: add dword [_rip],1 call _set_dflag call _fetch_no64 mov rax,[_context._res] mov [_context._imm_val],rax mov rax,[_rax] mov [_context._rm],rax ret mov [_context._arg1],rax call _add mov rax,_rax mov [_context._arg1],rax call _mov_res_to_arg2 call _assign ret _0x08_or: mov r15b,0xff _0x09_or: jmp _do01 _0x0a_or: mov r15b,0xff _0x0b_or: mov byte [_context._is_rm_src],0xff jmp _do01 _0x0c_or: jmp _do02 add byte [_rip],1 call _set_dflag call _fetch8 call _mov_res_to_arg2 mov rax,[_rax] mov [_context._arg1],rax call _or8 mov rax,_rax mov [_context._arg1],rax call _mov_res_to_arg2 call _assign8 ret _0x0d_or: call _set_dflag jmp _do02 add byte [_rip],1 call _set_dflag call _fetch call _mov_res_to_arg2 mov rax,[_rax] mov [_context._arg1],rax call _or mov rax,_rax mov [_context._arg1],rax call _mov_res_to_arg2 call _assign ret _0x0f: add dword [_rip],0x01 ;; mov [_context._opcode],rax mov rax,_extend_opcode_table mov [_context._opcode_table],rax jmp _exec_one ret
16.631579
77
0.783861
9381aa91fe6213fa1124f0de424399ce316093d0
6,144
asm
Assembly
Library/Impex/Main/mainC.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Impex/Main/mainC.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Impex/Main/mainC.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: Impex FILE: mainC.asm AUTHOR: Maryann Simmons, Jul 30, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- MS 7/30/92 Initial revision DESCRIPTION: Contains C stubs for Impex routines $Id: mainC.asm,v 1.1 97/04/04 23:49:54 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetGeosConvention ImpexCode segment resource COMMENT @-------------------------------------------------------------------- C FUNCTION: ImpexCreateTempFile C DECLARATION: extern TransErrorInfo ImpexCreateTempFile(char *buffer, word fileType, FileHandle *file) KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- maryann 7/30 Initial version jenny 10/30/92 Changed to return TransErrorInfo type -----------------------------------------------------------------------------@ IMPEXCREATETEMPFILE proc far buffer:fptr, fileType:word, file:fptr uses di, bp, es .enter les di, buffer ; ES:DI <- filename buffer mov ax, fileType ; AX <- IMPEX_TEMP_VM_FILE or ; IMPEX_TEMP_NATIVE_FILE push bp ; save to access local variables call ImpexCreateTempFile ; returns AX = TransError mov cx, bp ; CX <- file handle pop bp ; restore to access locals les di, file mov es:[di], cx ; return file handle mov dx, bx ; DX <- handle of error ; message, if any .leave ret IMPEXCREATETEMPFILE endp COMMENT @-------------------------------------------------------------------- C FUNCTION: ImpexDeleteTempFile C DECLARATION: extern TransErrorInfo ImpexDeleteTempFile(char *buffer, FileHandle metafile, word fileType) KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- maryann 7/30 Initial version jenny 10/30/92 Changed to return TransErrorInfo type -----------------------------------------------------------------------------@ IMPEXDELETETEMPFILE proc far buffer:fptr, metafile:hptr, fileType:word uses di, ds .enter lds dx, buffer ; DS:DX <- filename buffer mov bx, metafile ; BX <- handle of file to delete mov ax, fileType ; AX <- IMPEX_TEMP_VM( or NATIVE )_FILE call ImpexDeleteTempFile ; return AX <- TransError mov dx, bx ; DX <- handle of error ; message, if any .leave ret IMPEXDELETETEMPFILE endp COMMENT @-------------------------------------------------------------------- C FUNCTION: ImpexImportFromMetafile C DECLARATION: extern TransErrorInfo ImpexImportFromMetafile(Handle xlatLib,word routine, VMFileHandle xferFile, FileHandle metafile, dword *xferFormat, word arg1, word arg2) KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- maryann 7/30 Initial version jenny 10/30/92 Changed to return TransErrorInfo type -----------------------------------------------------------------------------@ IMPEXIMPORTFROMMETAFILE proc far xlatLib:hptr, routine:word, xferFile:hptr, metafile:hptr, xferFormat:fptr, arg1:word, arg2:word uses si, di, bp, ds .enter push bp ; save to access locals mov ax, routine ; AX <- entry point number of routine mov di, xferFile ; DI <- VMFile to hold xfer Format mov bx, metafile ; BX <- handle of metafile mov ds, arg1 ; extra args?? mov si, arg2 mov bp, xlatLib ; BP <- handle xlatLib call ImpexImportFromMetafile ; returns AX <- TransError ; DX:CX <- transfer format pop bp ; restore BP to access locals lds si, xferFormat movdw ds:[si], dxcx ; return transfer format mov dx, bx ; DX <- handle of error ; message, if any .leave ret IMPEXIMPORTFROMMETAFILE endp COMMENT @-------------------------------------------------------------------- C FUNCTION: ImpexExportToMetafile C DECLARATION: extern TransErrorInfo ImpexExportToMetafile(Handle xlatLib,word routine, VMFileHandle xferFile, FileHandle metafile, dword xferFormat, word arg1, word arg2) KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- maryann 7/30 Initial version jenny 10/30/92 Changed to return TransErrorInfo type -----------------------------------------------------------------------------@ IMPEXEXPORTTOMETAFILE proc far xlatLib:hptr, routine:word, xferFile:hptr, metafile:hptr,xferFormat:dword, arg1:word, arg2:word uses si, di, bp, ds .enter push bp ; save BP to access locals mov bx, xlatLib ; BX <- handle xlatLib mov ax, routine ; AX <- entry point number if routine movdw dxcx, xferFormat ; DXCX <- VMFile for transfer Format mov di, xferFile ; DI <- handle of transferFile mov ds, arg1 ; extra args?? mov si, arg2 mov bp, metafile ; BP <- metafile Handle call ImpexExportToMetafile ; returns AX <- TransError pop bp ; restore BP to access locals mov dx, bx ; DX <- handle of error ; message, if any .leave ret IMPEXEXPORTTOMETAFILE endp COMMENT @-------------------------------------------------------------------- C FUNCTION: ImpexUpdateImportExportStatus C DECLARATION: extern Boolean ImpexUpdateImportExportStatus(fptr *message, word *percent) KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- maryann 7/30 Initial version jenny 10/30/92 Changed to return TransErrorInfo type -----------------------------------------------------------------------------@ IMPEXUPDATEIMPORTEXPORTSTATUS proc far message:fptr, percent:word uses ds .enter movdw dxsi, message mov ds, dx ; message => DS:SI mov ax, percent call ImpexUpdateImportExportStatus .leave ret IMPEXUPDATEIMPORTEXPORTSTATUS endp ImpexCode ends SetDefaultConvention
28.576744
79
0.586589
eb6ac3158028864a7700d1c38caa94b51c0733f0
1,389
asm
Assembly
programs/oeis/022/A022354.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/022/A022354.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/022/A022354.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A022354: Fibonacci sequence beginning 0, 20. ; 0,20,20,40,60,100,160,260,420,680,1100,1780,2880,4660,7540,12200,19740,31940,51680,83620,135300,218920,354220,573140,927360,1500500,2427860,3928360,6356220,10284580,16640800,26925380,43566180,70491560,114057740,184549300,298607040,483156340,781763380,1264919720,2046683100,3311602820,5358285920,8669888740,14028174660,22698063400,36726238060,59424301460,96150539520,155574840980,251725380500,407300221480,659025601980,1066325823460,1725351425440,2791677248900,4517028674340,7308705923240,11825734597580,19134440520820,30960175118400,50094615639220,81054790757620,131149406396840,212204197154460,343353603551300,555557800705760,898911404257060,1454469204962820,2353380609219880,3807849814182700,6161230423402580,9969080237585280,16130310660987860,26099390898573140,42229701559561000,68329092458134140,110558794017695140,178887886475829280,289446680493524420,468334566969353700,757781247462878120,1226115814432231820,1983897061895109940,3210012876327341760,5193909938222451700,8403922814549793460,13597832752772245160,22001755567322038620,35599588320094283780,57601343887416322400,93200932207510606180,150802276094926928580,244003208302437534760,394805484397364463340,638808692699801998100,1033614177097166461440,1672422869796968459540,2706037046894134920980,4378459916691103380520 seq $0,22087 ; Fibonacci sequence beginning 0, 4. mul $0,5
231.5
1,281
0.905688
233048baef738a2c96183a084551c9ff1d6c5460
516
asm
Assembly
oeis/026/A026657.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/026/A026657.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/026/A026657.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A026657: Sum{T(i,j)}, 0<=i<=n, 0<=j<=n, T given by A026648. ; Submitted by Jon Maiga ; 1,3,8,18,40,84,182,378,814,1686,3626,7506,16138,33402,71810,148626,319522,661314,1421714,2942514,6325906,13092690,28147058,58255794,125240050,259208562,557254322,1153345842,2479497394 mov $6,$0 mov $8,$0 add $8,1 lpb $8 mov $0,$6 mov $2,0 sub $8,1 sub $0,$8 mov $3,1 mov $5,1 lpb $0 sub $0,1 add $2,$5 mov $4,$2 mov $2,$3 add $5,$4 mov $3,$5 mod $3,$4 lpe add $7,$5 lpe mov $0,$7
19.111111
185
0.604651