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
4de2cdcc932f6d94c6471fbdf54f2be938dd743f
416
asm
Assembly
oeis/037/A037500.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037500.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037500.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037500: Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,2. ; Submitted by Christian Krause ; 1,7,51,358,2506,17544,122809,859663,6017643,42123502,294864514,2064051600,14448361201,101138528407,707969698851,4955787891958,34690515243706,242833606705944,1699835246941609 mov $2,1 lpb $0 sub $0,1 add $1,$2 mul $1,7 add $2,11 mod $2,3 lpe add $1,$2 mov $0,$1
27.733333
175
0.75
7259e34b0a617020b09be416de31abe1b690f5fa
2,532
asm
Assembly
Working Disassembly/General/Sprites/Sonic/Map - SStage Sonic.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/General/Sprites/Sonic/Map - SStage Sonic.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/General/Sprites/Sonic/Map - SStage Sonic.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Map_SStageSonic: dc.w word_ABE2C-Map_SStageSonic dc.w word_ABE2E-Map_SStageSonic dc.w word_ABE3C-Map_SStageSonic dc.w word_ABE4A-Map_SStageSonic dc.w word_ABE5E-Map_SStageSonic dc.w word_ABE72-Map_SStageSonic dc.w word_ABE86-Map_SStageSonic dc.w word_ABE9A-Map_SStageSonic dc.w word_ABEAE-Map_SStageSonic dc.w word_ABEC2-Map_SStageSonic dc.w word_ABECA-Map_SStageSonic dc.w word_ABED2-Map_SStageSonic PLC_SStageSonic:dc.w word_ABE2C-PLC_SStageSonic dc.w word_ABEDA-PLC_SStageSonic dc.w word_ABEE0-PLC_SStageSonic dc.w word_ABEE6-PLC_SStageSonic dc.w word_ABEEE-PLC_SStageSonic dc.w word_ABEF6-PLC_SStageSonic dc.w word_ABEFE-PLC_SStageSonic dc.w word_ABF06-PLC_SStageSonic dc.w word_ABF0E-PLC_SStageSonic dc.w word_ABF16-PLC_SStageSonic dc.w word_ABF1A-PLC_SStageSonic dc.w word_ABF1E-PLC_SStageSonic word_ABE2C: dc.w 0 word_ABE2E: dc.w 2 dc.b $DD, $F, 0, 0, $FF, $F0 dc.b $FD, 8, 0, $10, $FF, $F2 word_ABE3C: dc.w 2 dc.b $D5, $F, 0, 0, $FF, $F0 dc.b $F5, 9, 0, $10, $FF, $F1 word_ABE4A: dc.w 3 dc.b $D5, $F, 0, 0, $FF, $F0 dc.b $F5, 8, 0, $10, $FF, $F2 dc.b $FD, 5, 0, $13, $FF, $F2 word_ABE5E: dc.w 3 dc.b $D5, $F, 0, 0, $FF, $F0 dc.b $F5, 8, 0, $10, $FF, $F2 dc.b $FD, 5, 0, $13, $FF, $F2 word_ABE72: dc.w 3 dc.b $D5, $F, 0, 0, $FF, $EE dc.b $F5, 8, 0, $10, $FF, $F6 dc.b $FD, 1, 0, $13, $FF, $F6 word_ABE86: dc.w 3 dc.b $D5, $F, 8, 0, $FF, $EF dc.b $F5, 8, 8, $10, $FF, $F7 dc.b $FD, 5, 8, $13, $FF, $FF word_ABE9A: dc.w 3 dc.b $D5, $F, 8, 0, $FF, $EF dc.b $F5, 8, 8, $10, $FF, $F7 dc.b $FD, 5, 8, $13, $FF, $FF word_ABEAE: dc.w 3 dc.b $D5, $F, 8, 0, $FF, $F0 dc.b $F5, 8, 8, $10, $FF, $F0 dc.b $FD, 1, 8, $13, 0, 0 word_ABEC2: dc.w 1 dc.b $DA, $F, 0, 0, $FF, $F0 word_ABECA: dc.w 1 dc.b $DA, $F, 0, 0, $FF, $F0 word_ABED2: dc.w 1 dc.b $DA, $F, 0, 0, $FF, $F0 word_ABEDA: dc.w 2 dc.w $F000 dc.w $2010 word_ABEE0: dc.w 2 dc.w $F013 dc.w $5023 word_ABEE6: dc.w 3 dc.w $F029 dc.w $2039 dc.w $303C word_ABEEE: dc.w 3 dc.w $F040 dc.w $2050 dc.w $3053 word_ABEF6: dc.w 3 dc.w $F057 dc.w $2067 dc.w $106A word_ABEFE: dc.w 3 dc.w $F029 dc.w $2039 dc.w $303C word_ABF06: dc.w 3 dc.w $F040 dc.w $2050 dc.w $3053 word_ABF0E: dc.w 3 dc.w $F057 dc.w $2067 dc.w $106A word_ABF16: dc.w 1 dc.w $F06C word_ABF1A: dc.w 1 dc.w $F07C word_ABF1E: dc.w 1 dc.w $F08C
25.575758
48
0.596761
713d0889d10f09d4d8bae166d18876747b585dcc
737
asm
Assembly
c_config.asm
jorgicor/altair
a83f4a5b177c366000f69cb261befb499602aa69
[ "MIT" ]
null
null
null
c_config.asm
jorgicor/altair
a83f4a5b177c366000f69cb261befb499602aa69
[ "MIT" ]
null
null
null
c_config.asm
jorgicor/altair
a83f4a5b177c366000f69cb261befb499602aa69
[ "MIT" ]
null
null
null
; ---------------------------------------------------------------------------- ; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and ; Amstrad CPC. ; ---------------------------------------------------------------------------- ; Platform. ; ZX, CPC. ; If master version, the width of the back buffer (ABUFW) cannot be changed. ; If not, its value can be changed IF the function cbpos is changed as well. MASTER_VERSION .equ 1 ; Language (comes from command line). ; LANG_ES, LANG_EN. ; Setting this all colors will have the BRIGHT attribute on. BRIGHT_MODE .equ 1 ; Configure key table size. #define KEYTSZ 7 ; Immune to shots (1 enabled). #define CHEATS_GOD 0 ; Pass level using service key C. #define CHEATS_RST 0
27.296296
78
0.58209
eeb9928d8e60d35693ad873024015e0edf81285e
503
asm
Assembly
programs/oeis/135/A135659.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/135/A135659.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/135/A135659.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A135659: a(n) = 24*n + 7. ; 7,31,55,79,103,127,151,175,199,223,247,271,295,319,343,367,391,415,439,463,487,511,535,559,583,607,631,655,679,703,727,751,775,799,823,847,871,895,919,943,967,991,1015,1039,1063,1087,1111,1135,1159,1183,1207,1231,1255,1279,1303,1327,1351,1375,1399,1423,1447,1471,1495,1519,1543,1567,1591,1615,1639,1663,1687,1711,1735,1759,1783,1807,1831,1855,1879,1903,1927,1951,1975,1999,2023,2047,2071,2095,2119,2143,2167,2191,2215,2239,2263,2287,2311,2335,2359,2383 mul $0,24 add $0,7
83.833333
454
0.749503
91a682326e5562d58eaf20d2df617bd105414c63
831
asm
Assembly
libsrc/msx/msx_vread.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/msx/msx_vread.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/msx/msx_vread.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; ; MSX specific routines ; ; GFX - a small graphics library ; Copyright (C) 2004 Rafael de Oliveira Jannone ; ; extern void vread(unsigned int source, void* dest, unsigned int count); ; ; Transfer count bytes from VRAM to RAM ; ; $Id: msx_vread.asm,v 1.5 2009/06/22 21:44:17 dom Exp $ ; XLIB msx_vread LIB msxbios IF FORmsx INCLUDE "msxbios.def" INCLUDE "msx.def" ELSE INCLUDE "svibios.def" INCLUDE "svi.def" ENDIF msx_vread: ld ix,2 add ix,sp ld c, (ix+0) ; count ld b, (ix+1) ld e, (ix+2) ; dest ld d, (ix+3) ld l, (ix+4) ; source ld h, (ix+5) ;ld ix,LDIRMV ;jp msxbios ld ix,SETRD call msxbios ex (sp),hl ; VDP Timing ex (sp),hl ; VDP Timing rdloop: in a,(VDP_DATAIN) ld (de),a inc de dec bc ld a,c or b jr nz,rdloop ret
13.622951
73
0.600481
e1a91d3a9fabf44a7768810c03b54a067f392992
466
asm
Assembly
oeis/320/A320642.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/320/A320642.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/320/A320642.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A320642: Number of 1's in the base-(-2) expansion of -n. ; Submitted by Jamie Morken(s3) ; 2,1,3,2,4,3,2,1,3,2,4,3,5,4,3,2,4,3,5,4,6,5,4,3,5,4,3,2,4,3,2,1,3,2,4,3,5,4,3,2,4,3,5,4,6,5,4,3,5,4,6,5,7,6,5,4,6,5,4,3,5,4,3,2,4,3,5,4,6,5,4,3,5,4,6,5,7,6,5,4,6,5,7,6,8,7,6,5,7,6,5,4,6,5,4,3,5,4,6,5 seq $0,5352 ; Base -2 representation of -n reinterpreted as binary. seq $0,120 ; 1's-counting sequence: number of 1's in binary expansion of n (or the binary weight of n).
66.571429
201
0.620172
eb48886190c370e21f64e0ae62c039e165d5dbc3
249
asm
Assembly
oeis/073/A073531.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/073/A073531.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/073/A073531.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A073531: Number of n-digit positive integers with all digits distinct. ; Submitted by Jamie Morken(s1) ; 9,81,648,4536,27216,136080,544320,1632960,3265920,3265920 mov $1,1 mov $2,10 lpb $0 sub $0,1 sub $2,1 mul $1,$2 lpe mov $0,$1 mul $0,9
17.785714
72
0.694779
704a71ebe7f4d888f23d37f0f8e2f54085bc8113
1,341
asm
Assembly
text/maps/pokemon_tower_7f.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
text/maps/PokemonTower7F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
text/maps/PokemonTower7F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
_TowerRescueFujiText:: text "MR.FUJI: Heh? You" line "came to save me?" para "Thank you. But, I" line "came here of my" cont "own free will." para "I came to calm" line "the soul of" cont "CUBONE's mother." para "I think MAROWAK's" line "spirit has gone" cont "to the afterlife." para "I must thank you" line "for your kind" cont "concern!" para "Follow me to my" line "home, #MON" cont "HOUSE at the foot" cont "of this tower." done _PokemonTower7BattleText1:: text "What do you want?" line "Why are you here?" done _PokemonTower7EndBattleText1:: text "I give up!" prompt _PokemonTower7AfterBattleText1:: text "I'm not going to" line "forget this!" done _PokemonTower7BattleText2:: text "This old guy came" line "and complained" cont "about us harming" cont "useless #MON!" para "We're talking it" line "over as adults!" done _PokemonTower7EndBattleText2:: text "Please!" line "No more!" prompt _PokemonTower7AfterBattleText2:: text "#MON are only" line "good for making" cont "money!" para "Stay out of our" line "business!" done _PokemonTower7BattleText3:: text "You're not saving" line "anyone, kid!" done _PokemonTower7EndBattleText3:: text "Don't" line "fight us ROCKETs!" prompt _PokemonTower7AfterBattleText3:: text "You're not getting" line "away with this!" done
16.974684
32
0.708427
be13ae9bb073a0fffe4e3f5899a05b62609eb7ff
1,910
asm
Assembly
programs/oeis/195/A195857.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/195/A195857.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/195/A195857.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A195857: a(n) = T(9, n), array T given by A047858. ; 1,11,32,76,168,360,760,1592,3320,6904,14328,29688,61432,126968,262136,540664,1114104,2293752,4718584,9699320,19922936,40894456,83886072,171966456,352321528,721420280,1476395000,3019898872,6174015480,12616466424,25769803768,52613349368,107374182392,219043332088,446676598776,910533066744,1855425871864,3779571220472,7696581394424,15668040695800,31885837205496,64871186038776,131941395333112,268280837177336,545357767376888,1108307720798200,2251799813685240,4573968371548152,9288674231451640,18858823439613944,38280596832649208,77687093572141048,157625986957967352,319755573543305208,648518346341351416,1315051091192184824,2666130979403333624,5404319552844595192,10952754293765046264,22193738963681804280,44963938679667032056,91080798863940911096,184467440737095516152,373546567492618420216,756316507022091616248,1531079758117892784120,3099053004383204671480,6271892985061247549432,12691359922712171511800,25677867750603695849464,51946031311566097350648,105072654243849606004728,212506491729134034616312,429735349941137714446328,868915432848014719320056,1756720331627508019494904,3551219595117973200699384,7177997053961860724817912,14507109835375550096474104,29316451125654757486624760,59237365161116829560602616,119683656141848288295911416,241785163922925834941235192,488406031124310186581295096,986483468805537406560239608,1992309750724908879915778040,4023305127677485893422153720,8123981507810308054025502712,16402705520531288642413395960,33114896050883922353551572984,66848762121410534844552708088,134935464282106449964004540408,272346808642783660477807329272,549645377442708842055211155448,1109194275199700726309615304696,2238195591027967537017616596984,4516005263313067242832005169144,9111238689140398823257554288632,18380933703309326321702196477944,37078780056675709993778568757240 mov $1,2 pow $1,$0 add $0,18 mul $1,$0 div $1,2 sub $1,8 mov $0,$1
173.636364
1,788
0.918848
ca9c999727ecbb74c27b77517dc71243d26db4ec
585
asm
Assembly
oeis/153/A153484.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/153/A153484.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/153/A153484.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A153484: a(n) = prime(n)^5 - 128. ; -96,115,2997,16679,160923,371165,1419729,2475971,6436215,20511021,28629023,69343829,115856073,147008315,229344879,418195365,714924171,844596173,1350124979,1804229223,2073071465,3077056271,3939040515,5584059321,8587340129,10510100373,11592740615,14025517179,15386239421,18424351665,33038369279,38579489523,48261724329,51888844571,73439775621,78502725623,95388992429,115063616915,129891985479,154963891965,183765996771,194264244773,254194901823,267785184065,296709280629,312079600871,418227201923 seq $0,40 ; The prime numbers. pow $0,5 sub $0,128
83.571429
496
0.852991
0fec27f11010555357197e61b5da16a0134606f0
546
asm
Assembly
programs/oeis/313/A313680.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/313/A313680.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/313/A313680.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A313680: Coordination sequence Gal.6.120.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,10,15,19,23,27,31,35,39,44,49,54,59,64,69,73,77,81,85,89,93,98,103,108,113,118,123,127,131,135,139,143,147,152,157,162,167,172,177,181,185,189,193,197,201,206,211,216,221 mov $3,$0 add $0,3 lpb $0,1 sub $0,1 sub $0,$2 add $1,3 trn $0,$1 add $0,$2 add $0,$2 sub $1,2 mov $2,$1 add $1,2 lpe mov $1,$0 lpb $3,1 add $1,4 sub $3,1 lpe add $1,1
23.73913
177
0.652015
ade182d07a09a0fb515c8bf4e1c6a0275af9aa2c
20,181
asm
Assembly
lurch.asm
ricmoo/lurch
508c99b8d25390eba7dae402ba595f695abf768d
[ "MIT" ]
65
2020-03-01T09:53:19.000Z
2022-03-07T02:36:22.000Z
lurch.asm
ricmoo/lurch
508c99b8d25390eba7dae402ba595f695abf768d
[ "MIT" ]
7
2020-06-26T18:48:39.000Z
2020-07-19T05:16:44.000Z
lurch.asm
ricmoo/lurch
508c99b8d25390eba7dae402ba595f695abf768d
[ "MIT" ]
5
2020-03-01T18:10:28.000Z
2021-07-27T16:16:35.000Z
; Lurch VM ; ; todo: store PC wrt BC ; Result ; 0 - error ; 1 - return ; 2 - stop ; 3 - write in static context ; 4 - invalid ; Memory Layout ; Slot Purpose ; 0 PC ; 1 Bytecode Offset (into calldata) ; 2 Bytecode Length ; 3 (calldata offset << 80) | (scratch << 64) | (calldata_length) ; 4 Virtualized Memory Offset ; 5 ... Virtualized Memory starts here ... ; ; ; {{! const SLOT_PC = 0x00; const SLOT_BC_OFF = 0x20; const SLOT_BC_LEN = 0x40; const SLOT_CD = 0x60; const CD_OFF_SHIFT = 80; const CD_LEN_MASK = 0xffff; // The offset (in bytes) into SLOT_CD where the left // edge of the SCRATCH begins. const SLOT_SCRATCH = SLOT_CD + 0x20 - 2 - 2; const SLOT_MEM = 0x80; const SLOT_MEM_BASE = 0xa0; }} ; Deployment initcode (we copy everything including this bootstrap ; so the offsets are easier to work with for replacing placeholders) codecopy(0, $_, #_) ; Inject my real address into the contract (overwrite the PUSH32) mstore({{= myAddress.offset + 1 }}, address) ; Return the Lurch Contract return($lurch, #lurch) @lurch { ; Jump to the start (since we only start once, we can use a higher ; jumpdest offset, reserving these low ones for frequently used things) jump($start) ; Places a 1 on the stack if this MUST be static, 0 otherwise ; Caller must place the return jumpdest on the stack before @isStatic: ; [ return_jumpdest ] ; Put my real address here at deployment(to detect if in a call delegate) @myAddress[ ] {{= zeroPad(0, 32) }} eq(address, $$) ; Return from this sub-routine swap1() jump($$) @popIncrement: ; [ ... target ] ; Clean up the stack from a JUMPI pop() ; falls-through @increment: ; Increment the PC by 1 mstore({{= SLOT_PC }}, add(mload({{= SLOT_PC }}), 1)) ; falls-through @next: ; The length below for the codecopy to fetch the jumpdest 0x02 ; Get the current PC mload({{= SLOT_PC }}) ; [ 0x02, PC ] ; Bounds checking; compute a multiplier (0 if out-of-bounds, 1 otherwise) lt(dup2(), mload({{= SLOT_BC_LEN }})) swap1() ; [ 0x02, ((PC < BC_LEN) ? 1: 0), PC ] ; Get the current operation shr(248, calldataload(add(mload({{= SLOT_BC_OFF }}), $$))) ; Use the bounds checking multiplier from above mul($$, $$) ; [ 0x02, ((PC < BC_LEN) ? opcode: STOP) ] ; Copy the jumpdest location in code from the jump table add($operations, shl(1, $$)) ; [ 0x02, (((jump_table[opcode]) << 240) | junk) ] ; Load the jumpdest into scratch and trim off all the junk codecopy({{= SLOT_SCRATCH }}, $$, $$) shr(240, mload({{= SLOT_SCRATCH }})) ; Jump into the operation jump table jump($$) {{! const jumpTable = [ ]; const added = { }; for (let i = 0; i < 256; i++) { jumpTable[i] = opInvalid; } function setJumpTable(offset, opcode) { //console.log(`Adding ${ Opcode.from(opcode).mnemonic } to ${ offset }.`); const index = offset * 2; if (added[opcode]) { throw new Error("Jump Table already has that value: " + opcode); } added[opcode] = true; jumpTable[opcode] = offset; } function length(ops) { return arrayify(ops).length; } function getSimpleOp(offset, opcode) { setJumpTable(offset, opcode); const ops = [ ]; ops.push(Opcode.from("JUMPDEST")) ops.push(opcode) ops.push(Opcode.from("PUSH1")) ops.push(increment) ops.push(Opcode.from("JUMP")) return concat(ops); } // [ ... ] function getSimpleOpRange(offset, start, end) { const ops = [ ] for (let i = start; i <= end; i++) { ops.push(getSimpleOp(offset + length(concat(ops)), i)); } return concat(ops); } // [ ... topicN, ... , topic0, length, srcMemOffset ] function getLogOp(offset, opcode) { setJumpTable(offset, opcode); const ops = [ ]; ops.push(Opcode.from("JUMPDEST")) // add(mload SLOT_MEM), $$) ops.push(Opcode.from("PUSH1")) ops.push(SLOT_MEM); ops.push(Opcode.from("MLOAD")); ops.push(Opcode.from("ADD")); // logN( ... ) ops.push(opcode) // jump(increment) ops.push(Opcode.from("PUSH1")) ops.push(increment) ops.push(Opcode.from("JUMP")) return concat(ops); } function getPushOps(offset) { const ops = [ ]; for (let i = 1; i <= 32; i++) { setJumpTable(offset + ops.length, 0x60 + i - 1); ops.push(Opcode.from("JUMPDEST")) // Load the PC ops.push(Opcode.from("PUSH1")); ops.push(SLOT_PC); ops.push(Opcode.from("MLOAD")); // [ PC ] // Add the entire push operation to the PC (1 + i) ops.push(Opcode.from("DUP1")); // [ PC, PC ] ops.push(Opcode.from("PUSH1")); ops.push(i + 1); // [ PC, PC, (i + 1) ] ops.push(Opcode.from("ADD")); // [ PC, (PC + i + 1) ] ops.push(Opcode.from("PUSH1")); ops.push(SLOT_PC); // [ PC, (PC + i + 1), SLOT_PC ] ops.push(Opcode.from("MSTORE")); // [ PC ] // [ PC ] // Load the value from calldata (aligned to the left) ops.push(Opcode.from("PUSH1")); ops.push(1); // [ PC, 1 ] ops.push(Opcode.from("ADD")); // [ PC + 1 ] ops.push(Opcode.from("PUSH1")); ops.push(SLOT_BC_OFF); ops.push(Opcode.from("MLOAD")); // [ PC + 1, BC.offset ] ops.push(Opcode.from("ADD")); // [ PC + 1 + BC.offset ] ops.push(Opcode.from("CALLDATALOAD")); // [ (value[0:i] + junk[i:32]) ] // Shift off the bottom junk (this is a nop for PUSH32) if (i !== 32) { ops.push(Opcode.from("PUSH1")); ops.push(256 - 8 * i); ops.push(Opcode.from("SHR")); } // Jump back in ops.push(Opcode.from("PUSH1")) ops.push(next); ops.push(Opcode.from("JUMP")) } return concat(ops); } }} {{! setJumpTable(opStop, Opcode.from("STOP").value) }} @opStop: stop ;;;;;;;;;;;;;;; ;; Math Operations (0x01 - 0x0b) @opsMaths[ {{= getSimpleOpRange(opsMaths.offset, 0x01, 0x0b) }} ] ;;;;;;;;;;;;;;; ;; Compare and Bitwise Operations (0x10 - 0x1d) @opsCompareBitwise[ {{= getSimpleOpRange(opsCompareBitwise.offset, 0x10, 0x1d) }} ] ;;;;;;;;;;;;;;; ;; Identity Operations (0x20) {{! setJumpTable(opSha3, Opcode.from("SHA3").value) }} @opSha3: ; [ ... memDestOffset ] add(mload({{= SLOT_MEM }}), $$) sha3($$, $$) jump($increment) ;;;;;;;;;;;;;;; ;; Environment Information (0x30 - 0x3f) @opAddress[ {{= getSimpleOp(opAddress.offset, Opcode.from("ADDRESS").value) }} ] @opBalance[ {{= getSimpleOp(opBalance.offset, Opcode.from("BALANCE").value) }} ] @opOrigin[ {{= getSimpleOp(opOrigin.offset, Opcode.from("ORIGIN").value) }} ] @opCaller[ {{= getSimpleOp(opCaller.offset, Opcode.from("CALLER").value) }} ] @opCallvalue[ {{= getSimpleOp(opCallvalue.offset, Opcode.from("CALLVALUE").value) }} ] {{! setJumpTable(opCalldataload, Opcode.from("CALLDATALOAD").value) }} @opCalldataload: ; [ ... offset ] add(shr({{= CD_OFF_SHIFT }}, mload({{= SLOT_CD }})), $$) calldataload($$) jump($increment) {{! setJumpTable(opCalldatasize, Opcode.from("CALLDATASIZE").value) }} @opCalldatasize: ; [ ... ] mload(and({{= CD_LEN_MASK }}, {{= SLOT_CD }})) jump($increment) {{! setJumpTable(opCalldatacopy, Opcode.from("CALLDATACOPY").value) }} @opCalldatacopy: ; [ ... length, offset, dstMemOffset ] add(mload({{= SLOT_MEM }}), $$) swap1() add(mload(shr({{= CD_OFF_SHIFT}}, {{= SLOT_CD }})), $$) swap1() calldatacopy($$, $$, $$) jump($increment) {{! setJumpTable(opCodesize, Opcode.from("CODESIZE").value) }} @opCodesize: ; [ ... ] mload({{= SLOT_BC_LEN }}) jump($increment) {{! setJumpTable(opCodecopy, Opcode.from("CODECOPY").value) }} @opCodecopy: ; [ ... length, offset, dstMemOffset] add(mload({{= SLOT_MEM }}), $$) swap1() add(mload({{= SLOT_BC_OFF }}), $$) swap1() calldatacopy($$, $$, $$) jump($increment) @opGasprice[ {{= getSimpleOp(opGasprice.offset, Opcode.from("GASPRICE").value) }} ] @opExtcodesize[ {{= getSimpleOp(opExtcodesize.offset, Opcode.from("EXTCODESIZE").value) }} ] {{! setJumpTable(opExtcodecopy, Opcode.from("EXTCODECOPY").value) }} @opExtcodecopy: ; [ ... length, offset, dstMemOffset, address] swap1() add(mload({{= SLOT_MEM }}), $$) swap1() extcodecopy($$, $$, $$, $$) jump($increment) @opReturndatasize[ {{= getSimpleOp(opReturndatasize.offset, Opcode.from("RETURNDATASIZE").value) }} ] ; needs call to test... {{! setJumpTable(opReturndatacopy, Opcode.from("RETURNDATACOPY").value) }} @opReturndatacopy: ; [ ... length, offset, dstMemOffset ] add(mload({{= SLOT_MEM }}), $$) returndatacopy($$, $$, $$) jump($increment) @opExtcodehash[ {{= getSimpleOp(opExtcodehash.offset, Opcode.from("EXTCODEHASH").value) }} ] ;;;;;;;;;;;;;;; ;; Block Information (0x40 - 0x45) @opsBlock[ {{= getSimpleOpRange(opsBlock.offset, 0x40, 0x45) }} ] ;;;;;;;;;;;;;;; ;; Stack, Memory, Storage and Flow Operations (0x50 - 0x5b) @opPop[ {{= getSimpleOp(opPop.offset, Opcode.from("POP").value) }} ] {{! setJumpTable(opMload, Opcode.from("MLOAD").value) }} @opMload: ; [ ... dstMemOffset ] add(mload({{= SLOT_MEM }}), $$) mload($$) jump($increment) {{! setJumpTable(opMstore, Opcode.from("MSTORE").value) }} @opMstore: ; [ ... value, dstMemOffset ] add(mload({{= SLOT_MEM }}), $$) mstore($$, $$) jump($increment) {{! setJumpTable(opMstore8, Opcode.from("MSTORE8").value) }} @opMstore8: ; [ ... value, dstMemOffset ] add(mload({{= SLOT_MEM }}), $$) mstore8($$, $$) jump($increment) @opSload[ {{= getSimpleOp(opSload.offset, Opcode.from("SLOAD").value) }} ] @opSstore[ {{= getSimpleOp(opSstore.offset, Opcode.from("SSTORE").value) }} ] {{! setJumpTable(opJump, Opcode.from("JUMP").value) }} @opJump: ; [ ... target ] dup1() ; [ ... target, target ] ; Store the updated PC (we will die below if it is not a JUMPDEST) mstore({{= SLOT_PC }}, add(1, $$)) ; Get the opcode at target shr(248, calldataload(add(mload({{= SLOT_BC_OFF }}), $$))) ; [ ... opcode ] ; If it is a JUMPDEST, continue (skipping increment). Otherwise, die jumpi($next, eq({{= Opcode.from("JUMPDEST").value }}, $$)) jump($opInvalid) {{! setJumpTable(opJumpi, Opcode.from("JUMPI").value) }} @opJumpi: ; [ ... notZero, target ] swap1() jumpi($popIncrement, isZero($$)) jump($opJump) {{! setJumpTable(opPc, Opcode.from("PC").value) }} @opPc: ; [ ... ] mload({{= SLOT_PC }}) jump($increment) {{! setJumpTable(opMsize, Opcode.from("MSIZE").value) }} @opMsize: ; [ ... ] sub(msize, {{= SLOT_MEM_BASE }}) jump($increment) @opGas[ {{= getSimpleOp(opGas.offset, Opcode.from("GAS").value) }} ] {{! setJumpTable(opJumpDest, Opcode.from("JUMPDEST").value) }} @opJumpDest: jump($increment) ;;;;;;;;;;;;;;; ;; Push Operations (0x60 - 0x7f) @opsPush[ {{= getPushOps(opsPush.offset) }} ] ;;;;;;;;;;;;;;; ;; Duplicate Operations (0x80 - 0x8f) @opsDuplicate[ {{= getSimpleOpRange(opsDuplicate.offset, 0x80, 0x8f) }} ] ;;;;;;;;;;;;;;; ;; Swap Operations (0x90 - 0x9f) @opsSwap[ {{= getSimpleOpRange(opsSwap.offset, 0x90, 0x9f) }} ] ;;;;;;;;;;;;;;; ;; Log Operations (0xa0 - 0xa4) @opLog0[ {{= getLogOp(opLog0.offset, Opcode.from("LOG0").value) }} ] @opLog1[ {{= getLogOp(opLog1.offset, Opcode.from("LOG1").value) }} ] @opLog2[ {{= getLogOp(opLog2.offset, Opcode.from("LOG2").value) }} ] @opLog3[ {{= getLogOp(opLog3.offset, Opcode.from("LOG3").value) }} ] @opLog4[ {{= getLogOp(opLog4.offset, Opcode.from("LOG4").value) }} ] ;;;;;;;;;;;;;;; ;; System Operations (0xf0 - 0xff, 0xfa, 0xfd - 0xff) {{! setJumpTable(opCreate, Opcode.from("CREATE").value) }} @opCreate: ; [ ... srcLength, srcOffset, value ] swap1() add(mload({{= SLOT_MEM }}), $$) swap1() create($$, $$, $$) jump($increment) {{! setJumpTable(opCall, Opcode.from("CALL").value) }} @opCall: ; [ ... dstLength, dstMemOffset, srcLength, srcMemOffset, value, address, gasLimit ] swap3() add(mload({{= SLOT_MEM }}), $$) swap3() swap5() add(mload({{= SLOT_MEM }}), $$) swap5() call($$, $$, $$, $$, $$, $$, $$) jump($increment) {{! setJumpTable(opCallcode, Opcode.from("CALLCODE").value) }} @opCallcode: ; @TODO: Is this correct? No good docs on CALLCODE... ; [ ... dstLength, dstMemOffset, srcLength, srcMemOffset, value, address, gasLimit ] swap3() add(mload({{= SLOT_MEM }}), $$) swap3() swap5() add(mload({{= SLOT_MEM }}), $$) swap5() callcode($$, $$, $$, $$, $$, $$, $$) jump($increment) {{! setJumpTable(opReturn, Opcode.from("RETURN").value) }} @opReturn: ; [ ... length, srcMemOffset ] add(mload({{= SLOT_MEM }}), $$) return($$, $$) {{! setJumpTable(opDelegatecall, Opcode.from("DELEGATECALL").value) }} @opDelegatecall: ; [ ... dstLength, dstMemOffset, srcLength, srcMemOffset, address, gasLimit ] swap2() add(mload({{= SLOT_MEM }}), $$) swap2() swap4() add(mload({{= SLOT_MEM }}), $$) swap4() delegatecall($$, $$, $$, $$, $$, $$) jump($increment) {{! setJumpTable(opCreate2, Opcode.from("CREATE2").value) }} @opCreate2: ; [ ... salt, srcLength, srcOffset, value ] swap1() add(mload({{= SLOT_MEM }}), $$) swap1() create2($$, $$, $$, $$) jump($increment) {{! setJumpTable(opStaticcall, Opcode.from("STATICCALL").value) }} @opStaticcall: ; [ ... dstLength, dstMemOffset, srcLength, srcMemOffset, address, gasLimit ] swap2() add(mload({{= SLOT_MEM }}), $$) swap2() swap4() add(mload({{= SLOT_MEM }}), $$) swap4() staticcall($$, $$, $$, $$, $$, $$) jump($increment) {{! setJumpTable(opRevert, Opcode.from("REVERT").value) }} @opRevert: ; [ ... length, srcMemOffset ] add(mload({{= SLOT_MEM }}), $$) revert($$, $$) @opInvalid: invalid @opSuicide[ {{= getSimpleOp(opSuicide.offset, Opcode.from("SUICIDE").value) }} ] ;;;; ;;;; Anything after this can have 2-byte offsets ;;;; @start: ; @TODO: Use various decoing depending on the selector ; - eval(bytes bytecode) ; - eval(bytes bytecode, bytes calldata) ; - evalStrict(bytes bytecode) ; - evalStrict(bytes bytecode, bytes calldata) ; - jumpdest(bytes bytecode) ; Stretch goals ; - evalStrict(bytes bytecode, bytes calldata, bytes hooks) ; - eval(bytes bytecode, bytes calldata, bytes hooks) ; Memory ; Slot Value ; 0 0 (PC) ; Load the bytecode size and offset 0x04 ; [ 0x04 ] dup1() ; [ 0x04, 0x04 ] dup1() ; [ 0x04, 0x04, 0x04 ] calldataload($$) ; [ 0x04, 0x04, bytecode_offset ] add($$, $$) ; [ 0x04, bytecode_length ] dup1() ; [ 0x04, bytecode_length, bytecode_length ] mstore({{= SLOT_BC_LEN }}, calldataload($$)) ; [ 0x04, bytecode_length ] add(32, $$) ; [ 0x04, bytecode_data ] mstore({{= SLOT_BC_OFF }}, $$) ; [ 0x04 ] ; Memory ; Slot Value ; 1 bytecode_offset ; 2 bytecode_length ; Load the calldata size and offset calldataload(0x24) ; [ 0x04, calldata_link ] add($$, $$) ; [ calldata ] dup1() ; [ calldata, calldata ] calldataload($$) ; [ calldata, calldata.length ] swap1() ; [ calldata.length, calldata ] add(32, $$) ; [ calldata.length, calldata.data ] or(shl({{= CD_OFF_SHIFT }}, $$), $$) ; [ (calldata.length | (calldata.data << CD_OFF_SHIFT)) ] mstore({{= SLOT_CD }}, $$) ; [ ] ; 3 calldata_offset ; 4 calldata_length mstore({{= SLOT_MEM }}, {{= SLOT_MEM_BASE }}) ; 5 memory_base => 6 ; Start exeuting the VM jump($next) ; The stack must be intact (from the virtualized environment's point ; of view) when entering this jump table. @operations[ {{= concat(jumpTable.map((e) => zeroPad(hexlify(e), 2))) }} ] {{! // Some sanity checking after the bytecode is stable // - Make sure every opcode is represented (jumps to a unique offset) // - Make sure all non-opcodes jump to invalid console.log("-------------") if (opInvalid) { const target = { }; let lastOffset = 0; for (let i = 0; i < 256; i++) { let opcode = Opcode.from(i); const offset = jumpTable[i]; //console.log(">", offset, opcode ? opcode.mnemonic: null); if (opcode === null) { if (offset !== opInvalid) { //throw new Error("INVALID jumps to valid operation"); console.log("INVALID jumps to valid operation"); } } else { if (target[offset]) { //throw new Error(`Duplicate ${ offset } for ${ target[offset].mnemonic }`); console.log(`Duplicate ${ offset } for ${ target[offset].mnemonic }`); } target[offset] = opcode; if (opcode.mnemonic !== "INVALID" && offset === opInvalid) { //throw new Error("opcode not defined: " + opcode.mnemonic); console.log("opcode not defined: " + opcode.mnemonic); } } } } }} }
31.095532
114
0.494326
fee249c029dd0a2d8ab4f311591eb3251d039dde
1,743
asm
Assembly
platforms/m3/pre_v12/debug/ben_gpio/ben_gpio.asm
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
19
2015-01-26T10:47:23.000Z
2021-08-13T11:07:54.000Z
platforms/m3/pre_v12/debug/ben_gpio/ben_gpio.asm
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
14
2015-08-24T02:35:46.000Z
2021-05-05T03:53:44.000Z
platforms/m3/pre_v12/debug/ben_gpio/ben_gpio.asm
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
9
2015-05-27T23:27:35.000Z
2020-10-05T22:02:43.000Z
ben_gpio/ben_gpio.elf: file format elf32-littlearm Disassembly of section .text: 00000000 <hang-0x84>: 0: 00002000 .word 0x00002000 4: 00000089 .word 0x00000089 ... 1c: 00000084 .word 0x00000084 20: 00000084 .word 0x00000084 24: 00000084 .word 0x00000084 28: 00000084 .word 0x00000084 ... 34: 00000084 .word 0x00000084 ... 00000084 <hang>: 84: e7fe b.n 84 <hang> ... 00000088 <_start>: 88: f000 f802 bl 90 <main> 8c: e7fc b.n 88 <_start> Disassembly of section .text.startup.main: 00000090 <main>: 90: 4a0c ldr r2, [pc, #48] ; (c4 <main+0x34>) 92: 4b0d ldr r3, [pc, #52] ; (c8 <main+0x38>) 94: b510 push {r4, lr} 96: 601a str r2, [r3, #0] 98: 4a0c ldr r2, [pc, #48] ; (cc <main+0x3c>) 9a: 2300 movs r3, #0 9c: 6013 str r3, [r2, #0] 9e: 4a0c ldr r2, [pc, #48] ; (d0 <main+0x40>) a0: 2120 movs r1, #32 a2: 6013 str r3, [r2, #0] a4: 4b0b ldr r3, [pc, #44] ; (d4 <main+0x44>) a6: 2203 movs r2, #3 a8: 681b ldr r3, [r3, #0] aa: 200f movs r0, #15 ac: 6019 str r1, [r3, #0] ae: 4b0a ldr r3, [pc, #40] ; (d8 <main+0x48>) b0: 681b ldr r3, [r3, #0] b2: 601a str r2, [r3, #0] b4: 681c ldr r4, [r3, #0] b6: 420c tst r4, r1 b8: d001 beq.n be <main+0x2e> ba: 6018 str r0, [r3, #0] bc: e7fa b.n b4 <main+0x24> be: 601a str r2, [r3, #0] c0: e7f8 b.n b4 <main+0x24> c2: 46c0 nop ; (mov r8, r8) c4: 0001ffff .word 0x0001ffff c8: e000e280 .word 0xe000e280 cc: e000e100 .word 0xe000e100 d0: a0001200 .word 0xa0001200 d4: 000000e0 .word 0x000000e0 d8: 000000dc .word 0x000000dc
28.112903
54
0.549053
1e82b995c4ff9f969166e0355554203d30c8dd77
513
asm
Assembly
programs/oeis/315/A315495.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/315/A315495.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/315/A315495.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A315495: Coordination sequence Gal.5.135.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,6,11,16,22,28,34,39,44,50,56,61,66,72,78,84,89,94,100,106,111,116,122,128,134,139,144,150,156,161,166,172,178,184,189,194,200,206,211,216,222,228,234,239,244,250,256,261,266,272 mov $2,$0 mul $0,16 mov $5,$0 add $0,3 div $0,9 mov $3,8 sub $5,4 div $5,9 add $5,$0 sub $5,1 add $3,$5 mov $1,$3 sub $1,6 mov $4,$2 mul $4,2 add $1,$4
25.65
181
0.684211
fcc3b9da1d2214475ef4b08d0fbec79b3b6e2d77
470
asm
Assembly
programs/oeis/079/A079295.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/079/A079295.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/079/A079295.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A079295: (D(p)-6)/(12p) where D(p) denotes the denominator of the 2p-th Bernoulli number and p runs through the primes. ; 1,1,1,0,1,0,0,0,1,1,0,0,1,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,1,0 mov $2,$0 seq $0,6093 ; a(n) = prime(n) - 1. seq $0,195508 ; Number of iterations in a Draim factorization of 2n+1. sub $0,$2 mov $1,$0 max $0,0 cmp $0,$1
42.727273
191
0.595745
76295b0f6053b8f46f3653a673004f359c413064
532
asm
Assembly
programs/oeis/188/A188071.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/188/A188071.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/188/A188071.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A188071: [nr]-[kr]-[nr-kr], where r=sqrt(3), k=2, [ ]=floor. ; 0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,80757 ; First differences of Beatty sequence A022838(n) = floor(n sqrt(3)). mov $2,$3 mul $2,$0 add $1,$2 mov $4,$0 lpe min $5,1 mul $5,$4 sub $1,$5 add $1,1 mod $1,2 mov $0,$1
23.130435
201
0.526316
e4a91050e0a9bb5e41f80ffcc7fa9ef8349f2f00
624
asm
Assembly
oeis/010/A010019.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/010/A010019.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/010/A010019.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A010019: a(0) = 1, a(n) = 29*n^2 + 2 for n>0. ; 1,31,118,263,466,727,1046,1423,1858,2351,2902,3511,4178,4903,5686,6527,7426,8383,9398,10471,11602,12791,14038,15343,16706,18127,19606,21143,22738,24391,26102,27871,29698,31583,33526,35527,37586,39703,41878,44111,46402,48751,51158,53623,56146,58727,61366,64063,66818,69631,72502,75431,78418,81463,84566,87727,90946,94223,97558,100951,104402,107911,111478,115103,118786,122527,126326,130183,134098,138071,142102,146191,150338,154543,158806,163127,167506,171943,176438,180991,185602,190271,194998 pow $1,$0 gcd $1,2 mov $3,$0 mul $3,$0 mov $2,$3 mul $2,29 add $1,$2 mov $0,$1
52
495
0.759615
8507f13bf20e669ef7f2d9cdc50f1886f472e4a1
8,466
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_363.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_0xa0.log_21829_363.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_0xa0.log_21829_363.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 %r12 push %r13 push %r14 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0xa6c5, %r14 sub $15124, %r13 movb $0x61, (%r14) nop nop nop and $21910, %rcx lea addresses_UC_ht+0x13e3e, %rax nop nop sub %r13, %r13 vmovups (%rax), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r12 nop nop nop nop nop inc %r14 lea addresses_UC_ht+0x1cc05, %rax nop nop sub $27763, %r11 mov (%rax), %r12 nop nop nop nop cmp %rax, %rax lea addresses_D_ht+0x1e8c5, %r13 nop nop nop cmp %r12, %r12 movb (%r13), %al nop nop nop nop xor %r14, %r14 lea addresses_UC_ht+0x7bc5, %r13 inc %rax mov $0x6162636465666768, %r10 movq %r10, %xmm0 movups %xmm0, (%r13) nop nop nop nop xor $54708, %rcx lea addresses_WC_ht+0xa985, %rsi lea addresses_WC_ht+0x828d, %rdi nop nop nop nop nop and $52713, %r14 mov $24, %rcx rep movsb nop nop nop sub %r13, %r13 lea addresses_WT_ht+0x44e5, %rsi lea addresses_A_ht+0xdcf5, %rdi clflush (%rsi) nop nop nop nop dec %rax mov $26, %rcx rep movsw nop nop nop and $6985, %rdi lea addresses_WC_ht+0x1b005, %rsi lea addresses_normal_ht+0x1a865, %rdi nop nop nop nop and %r10, %r10 mov $55, %rcx rep movsl nop nop nop nop nop and %rdi, %rdi lea addresses_D_ht+0x8045, %rax nop sub $10769, %r13 movl $0x61626364, (%rax) nop nop and %r10, %r10 lea addresses_WC_ht+0x48c5, %r14 mfence movb $0x61, (%r14) nop dec %r12 lea addresses_WT_ht+0x16c45, %r13 nop nop nop nop add $31139, %r10 movups (%r13), %xmm4 vpextrq $0, %xmm4, %r11 nop nop sub $14128, %r10 lea addresses_A_ht+0x172c5, %rax nop nop nop and %r12, %r12 movb $0x61, (%rax) nop nop nop cmp $56606, %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r14 pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rax push %rbx push %rdi push %rdx // Store lea addresses_WC+0x1aa15, %rbx nop sub $21370, %rdi movl $0x51525354, (%rbx) nop nop nop nop nop xor $39334, %rax // Store lea addresses_PSE+0xdfb8, %r8 nop nop add %r12, %r12 movb $0x51, (%r8) nop nop nop nop nop dec %r8 // Store lea addresses_A+0xe8c5, %rax nop nop nop nop and $34625, %r10 movb $0x51, (%rax) nop nop cmp %rax, %rax // Load mov $0x5cd6ed0000000729, %rdi nop nop nop and %r8, %r8 vmovups (%rdi), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rbx nop xor $23235, %r8 // Store lea addresses_WT+0x1c4c5, %rax nop nop cmp $6989, %r10 movw $0x5152, (%rax) nop nop nop nop and $1121, %r10 // Store lea addresses_A+0x16610, %rdi nop xor $40838, %r12 mov $0x5152535455565758, %r10 movq %r10, %xmm3 vmovups %ymm3, (%rdi) nop nop nop inc %r10 // Faulty Load lea addresses_A+0xe8c5, %rax xor $23318, %rdi mov (%rax), %dx lea oracles, %rdi and $0xff, %rdx shlq $12, %rdx mov (%rdi,%rdx,1), %rdx pop %rdx pop %rdi pop %rbx pop %rax pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WC', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_NC', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 32}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': True, 'congruent': 6, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': True, 'congruent': 11, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 1}} {'51': 21829} 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 */
30.453237
2,999
0.652138
1bd26c22c00f8be068115778cf5ef5fba83f07aa
469
asm
Assembly
oeis/176/A176317.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/176/A176317.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/176/A176317.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A176317: Decimal expansion of (5+sqrt(35))/2. ; Submitted by Christian Krause ; 5,4,5,8,0,3,9,8,9,1,5,4,9,8,0,8,0,2,1,2,8,3,6,6,4,1,4,5,7,8,0,8,0,8,5,2,4,2,0,7,7,5,0,6,1,5,3,9,7,1,7,0,1,6,1,4,3,9,8,5,9,8,3,4,5,7,1,4,1,1,2,2,9,5,5,2,8,2,6,5,1,8,3,8,2,8,7,6,2,6,3,5,9,1,5,5,4,5,8,9 mov $1,1 mov $3,$0 mul $3,4 lpb $3 mul $1,10 add $1,$2 div $2,-1 add $2,$1 sub $3,1 lpe mul $1,5 mov $4,10 pow $4,$0 div $2,$4 cmp $5,0 add $2,$5 div $1,$2 mod $1,10 mov $0,$1
19.541667
201
0.541578
12f06ed0cf1e2c41ef57be1bee7abb843b5aecbf
8,617
asm
Assembly
src/fx-vertical-stretch.asm
kieranhj/funky-fresh
739962d911ba7a3719878b3bd593d3c79e9e52b8
[ "MIT" ]
null
null
null
src/fx-vertical-stretch.asm
kieranhj/funky-fresh
739962d911ba7a3719878b3bd593d3c79e9e52b8
[ "MIT" ]
null
null
null
src/fx-vertical-stretch.asm
kieranhj/funky-fresh
739962d911ba7a3719878b3bd593d3c79e9e52b8
[ "MIT" ]
null
null
null
\ -*- mode:beebasm -*- \ ****************************************************************** \ * VERTICAL STRETCH FX \ ****************************************************************** \\ TODO: Describe the FX and requirements. \\ Describe the track values used: \\ rocket_track_zoom => zoom factor [0-63] <- 1x to 10x height \\ rocket_track_y_pos => y position of middle line [0-127] <- middle of screen is 63 \ ****************************************************************** \ Update FX \ \ The update function is used to update / tick any variables used \ in the FX. It may also prepare part of the screen buffer before \ drawing commences but note the strict timing constraints! \ \ This function will be called during vblank, after any system \ modules have been polled. \ \ The function MUST COMPLETE BEFORE TIMER 1 REACHES 0, i.e. before \ raster line 0 begins. If you are late then the draw function will \ be late and your raster timings will be wrong! \ ****************************************************************** .standard_multiply_AX { CPX #0:BEQ zero DEX:STX product+1 LSR A:STA product LDA #0 BCC s1:ADC product+1:.s1 ROR A:ROR product BCC s2:ADC product+1:.s2 ROR A:ROR product BCC s3:ADC product+1:.s3 ROR A:ROR product BCC s4:ADC product+1:.s4 ROR A:ROR product BCC s5:ADC product+1:.s5 ROR A:ROR product BCC s6:ADC product+1:.s6 ROR A:ROR product BCC s7:ADC product+1:.s7 ROR A:ROR product BCC s8:ADC product+1:.s8 ROR A:ROR product STA product+1 RTS .zero STX product:STX product+1 RTS } .fx_vertical_stretch_update { ldx rocket_track_zoom+1 lda fx_stretch_dv_table_LO, X sta dv:sta fx_vertical_strech_dv_LO+1 lda fx_stretch_dv_table_HI, X sta dv+1:sta fx_vertical_strech_dv_HI+1 \\ Set v to centre of the image. lda #0:sta v lda #63:sta v+1 ; Image Height / 2 \\ Subtract dv y_pos times to set starting v. \\ v = centre - y_pos * dv IF 0 ldy rocket_track_y_pos+1 .sub_loop sec ; 2c lda v ; 3c sbc dv ; 3c sta v ; 3c lda v+1 ; 3c sbc dv+1 ; 3c sta v+1 ; 3c dey ; 2c bne sub_loop ; 3c \\ 19c * y_pos (60) = 960c!! ELSE \\ TODO: Fix this hack! \\ Assumes dv can be no larger than 1.0 / 256! lda dv+1:beq just_lower \\ If dv == 256 -> 1.0 then \\ v = centre - y_pos so product = y_pos lda #0:sta product lda rocket_track_y_pos+1:sta product+1 jmp done_lower .just_lower \\ product = y_pos * dv lda dv ldx rocket_track_y_pos+1 jsr standard_multiply_AX .done_lower \\ v = centre - y_pos * dv sec lda v sbc product sta v lda v+1 sbc product+1 sta v+1 ENDIF \\ R6=display 1 row. lda #6:sta &fe00 ; 8c lda #1:sta &fe01 ; 8c lda #119:sta row_count ; 5c rts } \\ TODO: Make this comment correct for this framework! \ ****************************************************************** \ Draw FX \ \ The draw function is the main body of the FX. \ \ This function will be exactly at the start* of raster line 0 with \ a stablised raster. VC=0 HC=0|1 SC=0 \ \ This means that a new CRTC cycle has just started! If you didn't \ specify the registers from the previous frame then they will be \ the default MODE 0,1,2 values as per initialisation. \ \ If messing with CRTC registers, THIS FUNCTION MUST ALWAYS PRODUCE \ A FULL AND VALID 312 line PAL signal before exiting! \ ****************************************************************** \\ Limited RVI \\ Display 0,2,4,6 scanline offset for 2 scanlines. \\ <--- 102c total w/ 80c visible and hsync at 98c ---> <2c> ..13x <2c> = 128c \\ Plus one extra for luck! (i.e. we wait for 13 but C9 counts 14 in total.) \\ R9 = 13 + current - next \\ \\ Assumes R4=0, i.e. one row per CRTC cycle. \\ Scanline 0 has normal R0 width 128c. \\ Must set R9 before final scanline to 13 + current - next. eg. R9 = 13 + 0 - 2 = 11 \\ Set scanline 1 to have width 102c. \\ At 102c set R0 width to 2c and skip remaining 26c. \\ At 0c reset R0 width to 128c. \\ \\ Select CRTC register 0, i.e. lda #0:sta &fe00 \\ \\ cycles --> 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 0 \\ lda.sta..........WAIT_CYCLES 18 ..............................lda..sta ...........| \\ #1 &fe01 #127 &fe01 \\ scanline 1 2 3 4 5 6 7 8 9 10 11 xx 0 1 2 \\ | \\ --> missed due to end of CRTC frame + \\ \\ NB. There is no additional scanline if this is not the end of the CRTC frame. .fx_vertical_stretch_draw { \\ <=== HCC=0 (scanline=-2) \\ Row 1 screen start ldx v+1 ; 3c lda #13:sta &fe00 ; 8c <= 7c lda fx_stretch_vram_table_LO, X ; 4c sta &fe01 ; 6c lda #12:sta &fe00 ; 8c lda fx_stretch_vram_table_HI, X ; 4c sta &fe01 ; 6c \\ 38c \\ Set displayed scanline for rasterline 0. lda #9:sta &fe00 ; 8c <= 7c lda v+1:asl a:and #6 ; 7c \\ 2-bits * 2 tax ; 2c eor #&ff ; 2c sec ; 2c adc #13 ; 2c clc ; 2c adc prev_scanline ; 3c \\ R9 must be set before final scanline of the row. sta &fe01 ; 6c <= 5c stx prev_scanline ; 3c \\ 37c \\ This FX always uses screen in MAIN RAM. \\ TODO: Add a data byte to specify MAIN or SHADOW. ; clear bit 0 to display MAIN. lda &fe34:and #&fe:sta &fe34 ; 10c WAIT_CYCLES 43 \\ <=== HCC=0 (scanline=-1) \\ Set R0=101 (102c) lda #0:sta &fe00 ; 8c lda #101:sta &fe01 ; 8c WAIT_CYCLES 78 \\ At HCC=102 set R0=1. lda #1:sta &fe01 ; 8c \\ <=== HCC=102 \\ Burn R0=1 scanlines. WAIT_CYCLES 14 clc ; 2c ldx #4 ; 2c \\ At HCC=0 set R0=127 lda #127:sta &fe01 ; 8c \\ <=== HCC=0 (scanline=0) stx &fe00 ; 6c stz &fe01 ; 6c \\ Now 2x scanlines per loop. .char_row_loop { \\ Update v lda v .*fx_vertical_strech_dv_LO adc #0:sta v ; 8c lda v+1 .*fx_vertical_strech_dv_HI adc #0:sta v+1 ; 8c \\ 16c \\ Row N+1 screen start tax ; 2c lda #13:sta &fe00 ; 8c lda fx_stretch_vram_table_LO, X ; 4c sta &fe01 ; 6c lda #12:sta &fe00 ; 8c lda fx_stretch_vram_table_HI, X ; 4c sta &fe01 ; 6c \\ 40c \\ NB. Must set R9 before final scanline of the row! \\ Row N+1 scanline lda #9:sta &fe00 ; 8c lda v+1:asl a:and #6 ; 7c \\ 2-bits * 2 tax ; 2c eor #&ff ; 2c sec ; 2c adc #13 ; 2c clc ; 2c adc prev_scanline ; 3c sta &fe01 ; 6c stx prev_scanline ; 3c \\ 35c WAIT_CYCLES 15 ; jump to black bar version here - oof! \\ <=== HCC=118 (scanline=odd) WAIT_CYCLES 80 ; for palette changes. \\ Set R0=101 (102c) stz &fe00 ; 6c lda #101:sta &fe01 ; 8c WAIT_CYCLES 10 \\ At HCC=102 set R0=1. lda #1:sta &fe01 ; 8c \\ <=== HCC=102 \\ Burn R0=1 scanlines. WAIT_CYCLES 18 \\ At HCC=0 set R0=127 lda #127:sta &fe01 ; 8c \\ <=== HCC=0 (scanline=even) clc ; 2c dec row_count ; 5c beq scanline_last ; 2c jmp char_row_loop ; 3c } CHECK_SAME_PAGE_AS char_row_loop, FALSE .scanline_last \\ Currently at scanline 2+118*2=238, need 312 lines total. \\ Remaining scanlines = 74 = 37 rows * 2 scanlines. lda #4: sta &FE00 lda #36: sta &FE01 \\ R7 vsync at scanline 272 = 238 + 17*2 lda #7:sta &fe00 lda #17:sta &fe01 \\ If prev_scanline=6 then R9=7 \\ If prev_scanline=4 then R9=5 \\ If prev_scanline=2 then R9=3 \\ If prev_scanline=0 then R9=1 { lda #9:sta &fe00 clc lda #1 adc prev_scanline sta &fe01 } \\ Row 31 WAIT_SCANLINES_ZERO_X 2 \\ R9=1 lda #9:sta &fe00 lda #1:sta &fe01 lda #0:sta prev_scanline rts } \ ****************************************************************** \ * FX DATA \ ****************************************************************** PAGE_ALIGN_FOR_SIZE 256 .fx_stretch_vram_table_LO FOR n,0,127,1 EQUB LO((&3000 + (n DIV 4)*640)/8) NEXT FOR n,0,127,1 EQUB LO(&3000/8) NEXT PAGE_ALIGN_FOR_SIZE 256 .fx_stretch_vram_table_HI FOR n,0,127,1 EQUB HI((&3000 + (n DIV 4)*640)/8) NEXT FOR n,0,127,1 EQUB HI(&3000/8) NEXT PAGE_ALIGN_FOR_SIZE 64 .fx_stretch_dv_table_LO FOR n,0,63,1 height=128 max_height=height*10 h=128+n*(max_height-height)/63 dv = 256 * height / h ;PRINT h, height/h, dv EQUB LO(dv) NEXT PAGE_ALIGN_FOR_SIZE 64 .fx_stretch_dv_table_HI FOR n,0,63,1 height=128 max_height=1280 h=128+n*(max_height-height)/63 dv = 256 * height / h EQUB HI(dv) NEXT
24.410765
98
0.573634
9b699f724a52bb387a7c645616283f9a4eba3bee
2,010
asm
Assembly
microcode/microcode.asm
rj45/rj32
a0484913925bebf6459664f72ac3f8cbfa6002e9
[ "MIT" ]
28
2021-06-27T08:23:41.000Z
2022-03-26T20:48:37.000Z
microcode/microcode.asm
rj45/rj32
a0484913925bebf6459664f72ac3f8cbfa6002e9
[ "MIT" ]
14
2021-06-05T18:13:35.000Z
2021-07-17T17:16:27.000Z
microcode/microcode.asm
rj45/rj32
a0484913925bebf6459664f72ac3f8cbfa6002e9
[ "MIT" ]
4
2021-11-01T22:23:19.000Z
2022-03-18T01:38:39.000Z
#bits 32 HALT = 1 << 0 ERROR = 1 << 1 JUMP = 1 << 2 ; alu ops ADD = 0 << 3 SUB = 1 << 3 SHR = 2 << 3 SHL = 3 << 3 ASR = 4 << 3 XOR = 5 << 3 AND = 6 << 3 OR = 7 << 3 ; mem ops MEM = 1 << 6 STORE = 1 << 7 ; reg write WRITE = 1 << 8 ; wrmux -- write mux WM_RESULT = 0 << 9 WM_L = 1 << 9 WM_MEMDATA = 2 << 9 WM_R = 3 << 9 ; cond EQ = 1 << 11 NE = 2 << 11 LT = 3 << 11 GE = 4 << 11 LO = 5 << 11 HS = 6 << 11 ; imm bit IMM = 1 << 14 ; flags FL_ACK = 1 << 0 FL_NOP1 = 1 << 1 FL_NOP2 = 1 << 2 #ruledef { done {value} => le( 0`5 @ 0`5 @ 0`3 @ value`19) done => le( 0`5 @ 0`5 @ 0`3 @ 0`19) next {value}, {flags}, {nextt}, {nextf} => le(nextf`5 @ nextt`5 @ flags`3 @ value`19) loop {value}, {nextt} => le(nextt`5 @ nextt`5 @ 0`3 @ value`19) } nop: done rets: done error: loop ERROR, infinierror halt: loop HALT, infinihalt #addr 0b00110 move: done WM_R | WRITE #addr 0b01000 jump: done JUMP | ADD imm: done IMM call: done JUMP | ADD | WM_L | WRITE imm2: done IMM #addr 0b01100 load: next MEM | ADD, FL_ACK, loaddone, loadwait store: next MEM | ADD | STORE, FL_ACK, storedone, storewait loadb: done WM_MEMDATA | MEM | ADD | WRITE storeb: done ADD | MEM | STORE #addr 0b10000 add: done ADD | WRITE sub: done SUB | WRITE addc: done ADD | WRITE subc: done SUB | WRITE xor: done XOR | WRITE and: done AND | WRITE or: done OR | WRITE shl: done SHL | WRITE shr: done SHR | WRITE asr: done ASR | WRITE ifeq: done SUB | EQ ifne: done SUB | NE iflt: done SUB | LT ifge: done SUB | GE iflo: done SUB | LO ifhs: done SUB | HS #addr 0b100001 infinierror: loop ERROR, infinierror infinihalt: loop HALT, infinihalt loaddone: done WRITE | WM_MEMDATA loadwait: next MEM | ADD, FL_ACK, loaddone, loadwait storedone: done storewait: next MEM | ADD | STORE, FL_ACK, storedone, storewait
15.112782
87
0.548756
c34dd60a29ed0b0eb006c1339c0c848a89cc05a9
692
asm
Assembly
oeis/091/A091056.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/091/A091056.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/091/A091056.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A091056: Expansion of x^2/((1-x)*(1+2*x)*(1-6*x)). ; Submitted by Jon Maiga ; 0,0,1,5,33,193,1169,6993,42001,251921,1511697,9069841,54419729,326517009,1959104785,11754623249,70527750417,423166480657,2538998927633,15233993478417,91403961045265,548423765922065,3290542596231441,19743255575990545,118459533458739473,710757200746844433,4264543204492251409,25587259226931138833,153523555361631572241,921141332169699954961,5526847993018378686737,33161087958109914206481,198966527748660201066769,1193799166491959774744849,7162794998951761511780625,42976769993710563344060689 lpb $0 sub $0,1 mul $2,3 mov $3,$2 sub $3,1 mul $4,4 add $4,1 mov $2,$4 add $4,$3 lpe mov $0,$4 div $0,3
40.705882
491
0.806358
052af40523949be107904f0abe9e467f90b3179e
723
asm
Assembly
oeis/020/A020977.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/020/A020977.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/020/A020977.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A020977: Expansion of 1/((1-8*x)*(1-9*x)*(1-11*x)). ; Submitted by Jon Maiga ; 1,28,525,8240,116921,1555428,19795525,244020280,2937425841,34724726828,404763120125,4666104381120,53319258206761,604990586218228,6825603208406325,76653180504610760,857610367436699681,9565794278591213628,106430473594100486125,1181739953489555429200,13099335105479767304601,145003670086166213377028,1603313013257122142591525,17711487222422346433156440,195506478502474706191781521,2156730113961544784114852428,23779763138940803426604354525,262081399348262364163066112480,2887450779023221578094286450441 add $0,2 lpb $0 sub $0,1 add $2,2 mul $2,8 sub $2,9 mul $3,11 add $3,$1 mul $1,9 add $1,1 add $1,$2 lpe mov $0,$3 div $0,8
38.052632
501
0.811895
6afa4da58d16b0f9014b13975182807c7fc9447c
410
asm
Assembly
oeis/158/A158280.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/158/A158280.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/158/A158280.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A158280: Octosection: A145511(8n+4) or A145501(8n+4). ; Submitted by Jon Maiga ; 7,21,21,21,42,21,21,63,21,21,63,21,42,70,21,21,63,63,21,63,21,21,126,21,42,63,21,63,63,21,21,126,63,21,63,21,21,126,63,21,105,21,63,63,21,63,63,63,21,126,21,21,189,21,21,63,21,63,126,63,42,63,70,21,63,21,63,210,21,21 mul $0,2 seq $0,7425 ; d_3(n), or tau_3(n), the number of ordered factorizations of n as n = r s t. mul $0,7
51.25
218
0.67561
5f25d4e17f794f99c9dc4b30f189f06c0861c98b
4,531
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_742.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_742.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_742.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 %r8 push %r9 push %rdx lea addresses_D_ht+0x1b5f7, %r10 dec %rdx mov $0x6162636465666768, %r15 movq %r15, %xmm7 movups %xmm7, (%r10) nop nop nop nop nop xor %r8, %r8 lea addresses_WT_ht+0x8c9f, %r9 nop nop nop nop nop cmp $32304, %r15 movb $0x61, (%r9) nop nop nop and %r9, %r9 lea addresses_UC_ht+0x14d6f, %r9 nop nop nop nop nop add %r8, %r8 movw $0x6162, (%r9) nop nop nop nop nop and %r15, %r15 pop %rdx pop %r9 pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %r9 push %rbx push %rdi push %rsi // Faulty Load lea addresses_WT+0x2d9f, %rbx nop nop nop nop cmp $7926, %r13 mov (%rbx), %r8 lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rsi pop %rdi pop %rbx pop %r9 pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
48.202128
2,999
0.659457
36cec9c2c43f9b18325e575382fedbdee2a039de
924
asm
Assembly
programs/oeis/125/A125836.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/125/A125836.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/125/A125836.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A125836: Numbers whose base 8 or octal representation is 555555555......5. ; 0,5,45,365,2925,23405,187245,1497965,11983725,95869805,766958445,6135667565,49085340525,392682724205,3141461793645,25131694349165,201053554793325,1608428438346605,12867427506772845,102939420054182765,823515360433462125,6588122883467697005,52704983067741576045,421639864541932608365,3373118916335460866925,26984951330683686935405,215879610645469495483245,1727036885163755963865965,13816295081310047710927725,110530360650480381687421805,884242885203843053499374445,7073943081630744427994995565,56591544653045955423959964525,452732357224367643391679716205,3621858857794941147133437729645,28974870862359529177067501837165,231798966898876233416540014697325,1854391735191009867332320117578605,14835133881528078938658560940628845,118681071052224631509268487525030765,949448568417797052074147900200246125 mov $1,8 pow $1,$0 div $1,7 mul $1,5 mov $0,$1
102.666667
798
0.906926
a7e3fd94fe1eb34a48b8ac1a1cba59b4d8390238
1,017
asm
Assembly
data/phone/text/erin_caller.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
data/phone/text/erin_caller.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
data/phone/text/erin_caller.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
UnknownText_0x6717a: text_ram wStringBuffer3 text "'s @" text_ram wStringBuffer4 text_start line "is much stronger" cont "than before!" done UnknownText_0x671a4: text "And, and…" line "I just battled and" cont "beat @" text_ram wStringBuffer4 text "!" para "I've raised my" line "#MON properly!" done UnknownText_0x671eb: text "But, but…" para "A wild @" text_ram wStringBuffer4 text_start line "got away from me" para "again. It's just" line "not fair!" done UnknownText_0x6722e: text "I'm ERIN. Want to" line "battle me again?" para "I won't lose this" line "time!" para "I'll be waiting on" line "@" text_ram wStringBuffer5 text "!" done UnknownText_0x67281: text "See you. Bye-bye!" done ErinWorkingHardText: text "I'm working hard" line "to raise my" cont "#MON!" para "Come back for" line "another battle!" done ErinComeBattleText: text "Oh, <PLAY_G>!" line "Come battle ERIN!" para "I'll be waiting on" line "@" text_ram wStringBuffer5 text "!" done
14.955882
26
0.696165
ecb08e186be295c05efe414603e26cd016bb68b6
214
asm
Assembly
Laburi/Lab11/6-optimize-assembly/optimize.asm
DanBrezeanu/IOCLA
1a22cc2949afc72818289f47288e32004f633fd1
[ "MIT" ]
2
2019-11-18T15:56:21.000Z
2020-01-18T01:22:37.000Z
Laburi/Lab11/6-optimize-assembly/optimize.asm
zatbogdan99/IOCLA
3d499ad18624f571e6c49ff891649a05ac9908e4
[ "MIT" ]
null
null
null
Laburi/Lab11/6-optimize-assembly/optimize.asm
zatbogdan99/IOCLA
3d499ad18624f571e6c49ff891649a05ac9908e4
[ "MIT" ]
null
null
null
global runAssemblyCode section .text runAssemblyCode: xor eax, eax mov ecx, [esp + 8] mov edx, [esp + 4] L: mov edi, [edx + (ecx - 1) * 4] lea eax, [eax + edi] dec ecx jnz L ret
12.588235
34
0.542056
15a9b86fc7a31a52cf374bdd1feab95bc2e97735
3,625
asm
Assembly
programs/oeis/024/A024004.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/024/A024004.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/024/A024004.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A024004: a(n) = 1 - n^6. ; 1,0,-63,-728,-4095,-15624,-46655,-117648,-262143,-531440,-999999,-1771560,-2985983,-4826808,-7529535,-11390624,-16777215,-24137568,-34012223,-47045880,-63999999,-85766120,-113379903,-148035888,-191102975,-244140624,-308915775,-387420488,-481890303,-594823320,-728999999,-887503680,-1073741823,-1291467968,-1544804415,-1838265624,-2176782335,-2565726408,-3010936383,-3518743760,-4095999999,-4750104240,-5489031743,-6321363048,-7256313855,-8303765624,-9474296895,-10779215328,-12230590463,-13841287200,-15624999999,-17596287800,-19770609663,-22164361128,-24794911295,-27680640624,-30840979455,-34296447248,-38068692543,-42180533640,-46655999999,-51520374360,-56800235583,-62523502208,-68719476735,-75418890624,-82653950015,-90458382168,-98867482623,-107918163080,-117648999999,-128100283920,-139314069503,-151334226288,-164206490175,-177978515624,-192699928575,-208422380088,-225199600703,-243087455520,-262143999999,-282429536480,-304006671423,-326940373368,-351298031615,-377149515624,-404567235135,-433626201008,-464404086783,-496981290960,-531440999999,-567869252040,-606355001343,-646990183448,-689869781055,-735091890624,-782757789695,-832972004928,-885842380863,-941480149400,-999999999999,-1061520150600,-1126162419263,-1194052296528,-1265319018495,-1340095640624,-1418519112255,-1500730351848,-1586874322943,-1677100110840,-1771560999999,-1870414552160,-1973822685183,-2081951752608,-2194972623935,-2313060765624,-2436396322815,-2565164201768,-2699554153023,-2839760855280,-2985983999999,-3138428376720,-3297303959103,-3462825991688,-3635215077375,-3814697265624,-4001504141375,-4195872914688,-4398046511103,-4608273662720,-4826808999999,-5053913144280,-5289852801023,-5534900853768,-5789336458815,-6053445140624,-6327518887935,-6611856250608,-6906762437183,-7212549413160,-7529535999999,-7858047974840,-8198418170943,-8550986578848,-8916100448255,-9294114390624,-9685390482495,-10090298369528,-10509215371263,-10942526586600,-11390624999999,-11853911588400,-12332795428863,-12827693806928,-13339032325695,-13867245015624,-14412774445055,-14976071831448,-15557597153343,-16157819263040,-16777215999999,-17416274304960,-18075490334783,-18755369578008,-19456426971135,-20179187015624,-20924183895615,-21691961596368,-22483074023423,-23298085122480,-24137568999999,-25002110044520,-25892303048703,-26808753332088,-27752076864575,-28722900390624,-29721861554175,-30749609024288,-31806802621503,-32894113444920,-34012223999999,-35161828327080,-36343632130623,-37558352909168,-38806720086015,-40089475140624,-41407371740735,-42761175875208,-44151665987583,-45579633110360,-47045880999999,-48551226272640,-50096498540543,-51682540549248,-53310208315455,-54980371265624,-56693912375295,-58451728309128,-60254729561663,-62103840598800,-63999999999999,-65944160601200,-67937289638463,-69980368892328,-72074394832895,-74220378765624,-76419346977855,-78672340886048,-80980417183743,-83344647990240,-85766120999999,-88245939632760,-90785223184383,-93385106978408,-96046742518335,-98771297640624,-101559956668415,-104413920565968,-107334407093823,-110322650964680,-113379903999999,-116507435287320,-119706531338303,-122978496247488,-126324651851775,-129746337890624,-133244912166975,-136821750708888,-140478247931903,-144215816802120,-148035888999999,-151939915084880,-155929364660223,-160005726539568,-164170508913215,-168425239515624,-172771465793535,-177210755074808,-181744694737983,-186374892382560,-191102975999999,-195930594145440,-200859416110143,-205891132094648,-211027453382655,-216270112515624,-221620863468095,-227081481823728,-232653764952063,-238339532186000 pow $0,6 mov $1,1 sub $1,$0
517.857143
3,568
0.854069
5d97e30b2eef7007c57eb8cdf28bc0523e32e72f
1,196
asm
Assembly
src/main/c/doc/assembly/debug/pch.asm
JackDMenendez/bvsystem
9dafcaf862e85c9d5b27c83368067a68ef3f4eed
[ "Unlicense" ]
null
null
null
src/main/c/doc/assembly/debug/pch.asm
JackDMenendez/bvsystem
9dafcaf862e85c9d5b27c83368067a68ef3f4eed
[ "Unlicense" ]
null
null
null
src/main/c/doc/assembly/debug/pch.asm
JackDMenendez/bvsystem
9dafcaf862e85c9d5b27c83368067a68ef3f4eed
[ "Unlicense" ]
null
null
null
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.28.29336.0 include listing.inc INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES PUBLIC __@@_PchSym_@00@UfhvihUqzxpwUvxorkhvRdliphkzxvUhbhgvnUhixUnzrmUxUgvnkxUdrmwldhUwvyftUkxsOlyq@4B2008FD98C1DD4 ; COMDAT __@@_PchSym_@00@UfhvihUqzxpwUvxorkhvRdliphkzxvUhbhgvnUhixUnzrmUxUgvnkxUdrmwldhUwvyftUkxsOlyq@4B2008FD98C1DD4 _BSS SEGMENT __@@_PchSym_@00@UfhvihUqzxpwUvxorkhvRdliphkzxvUhbhgvnUhixUnzrmUxUgvnkxUdrmwldhUwvyftUkxsOlyq@4B2008FD98C1DD4 DD 01H DUP (?) _BSS ENDS msvcjmc SEGMENT __6CB86619_windows@pch DB 01H __DA35BBA3_ctype@h DB 01H __BDBF452D_basetsd@h DB 01H __5ABB868E_corecrt_memcpy_s@h DB 01H __813D228D_corecrt_memory@h DB 01H __1D4384B7_corecrt_wstring@h DB 01H __7989C355_string@h DB 01H __113D6439_guiddef@h DB 01H __D251E792_winnt@h DB 01H __CCD5E0DD_processthreadsapi@h DB 01H __C8C7AF0C_memoryapi@h DB 01H __6457B4EF_winerror@h DB 01H __DB0A31F1_winbase@h DB 01H __B3E27A86_winuser@h DB 01H __110C0647_stralign@h DB 01H msvcjmc ENDS PUBLIC __JustMyCode_Default ; Function compile flags: /Odt ; COMDAT __JustMyCode_Default _TEXT SEGMENT __JustMyCode_Default PROC ; COMDAT ret 0 __JustMyCode_Default ENDP _TEXT ENDS END
30.666667
123
0.869565
6c838a9fc1346d610230ea5f3313fadc100e02cf
227
asm
Assembly
libsrc/stdio/pc6001/getk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/stdio/pc6001/getk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/stdio/pc6001/getk.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; PC-6001 Stdio ; ; getk() Read key status ; ; Stefano Bodrato, 2013 ; ; ; $Id: getk.asm,v 1.2 2015/01/19 01:33:21 pauloscustodio Exp $ ; PUBLIC getk .getk call $0FBC jr nz, key_got xor a key_got: ld l, a ld h,0 ret
10.318182
62
0.634361
9bcbeda1606fdd9d29ebcbab130f533bdddd58c5
4,018
asm
Assembly
arcade-romhacking-framework/src/proj/dino/c/test1.c.asm
zengfr/arcade-romhacking-framework
e2ed09aa40dd9dd543728a19fe6ba365989786e7
[ "Apache-2.0" ]
2
2021-03-03T07:34:07.000Z
2021-03-22T01:45:37.000Z
arcade-romhacking-framework/src/proj/dino/c/test1.c.asm
zengfr/arcade-romhacking-framework
e2ed09aa40dd9dd543728a19fe6ba365989786e7
[ "Apache-2.0" ]
null
null
null
arcade-romhacking-framework/src/proj/dino/c/test1.c.asm
zengfr/arcade-romhacking-framework
e2ed09aa40dd9dd543728a19fe6ba365989786e7
[ "Apache-2.0" ]
null
null
null
.file "test1.c" | GNU C (GCC) version 4.8.0 (m68k-elf) | compiled by GNU C version 4.7.2, GMP version 4.2.4, MPFR version 2.4.1, MPC version 0.8 | GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 | options passed: -imultilib m68000 | -iprefix d:\sysgcc\m68k-elf\bin\../lib/gcc/m68k-elf/4.8.0/ | C:/Users/zengfr/Desktop/c/test/make/../src/proj/dino/c/test1.c | -mcpu=68000 | -auxbase-strip C:/Users/zengfr/Desktop/c/test/make/../src/proj/dino/c/test1.c.asm | -O0 -Winline -Wall -std=c99 -fomit-frame-pointer -fverbose-asm | options enabled: -faggressive-loop-optimizations -fauto-inc-dec | -fbranch-count-reg -fcommon -fdelete-null-pointer-checks -fdwarf2-cfi-asm | -fearly-inlining -feliminate-unused-debug-types -ffunction-cse -fgcse-lm | -fgnu-runtime -fident -finline-atomics -fira-hoist-pressure | -fira-share-save-slots -fira-share-spill-slots -fivopts | -fkeep-static-consts -fleading-underscore -fmath-errno | -fmerge-debug-strings -fmove-loop-invariants -fomit-frame-pointer | -fpeephole -fprefetch-loop-arrays -freg-struct-return | -fsched-critical-path-heuristic -fsched-dep-count-heuristic | -fsched-group-heuristic -fsched-interblock -fsched-last-insn-heuristic | -fsched-rank-heuristic -fsched-spec -fsched-spec-insn-heuristic | -fsched-stalled-insns-dep -fshow-column -fsigned-zeros | -fsplit-ivs-in-unroller -fstrict-volatile-bitfields -fsync-libcalls | -ftrapping-math -ftree-coalesce-vars -ftree-forwprop | -ftree-loop-if-convert -ftree-loop-im -ftree-loop-ivcanon | -ftree-loop-optimize -ftree-parallelize-loops= -ftree-phiprop -ftree-pta | -ftree-reassoc -ftree-scev-cprop -ftree-slp-vectorize | -ftree-vect-loop-version -funit-at-a-time -fverbose-asm | -fzero-initialized-in-bss -mstrict-align .text .align 2 .globl show_menu .type show_menu, @function show_menu: subq.l #8,%sp |, move.l %d2,-(%sp) |, move.l 16(%sp),%a0 | x, tmp34 move.l 20(%sp),%d1 | y, tmp35 move.l 24(%sp),%d0 | palette, tmp36 move.w %a0,%d2 |, move.b %d2,10(%sp) |, x move.b %d1,8(%sp) | tmp35, y move.b %d0,6(%sp) | tmp36, palette moveq #0,%d0 | move.b 6(%sp),%d0 | palette, move.l %d0,%a0 |, D.1310 moveq #0,%d1 | D.1310 move.b 8(%sp),%d1 | y, D.1310 moveq #0,%d0 | D.1310 move.b 10(%sp),%d0 | x, D.1310 move.l 28(%sp),-(%sp) | s, move.l %a0,-(%sp) | D.1310, move.l %d1,-(%sp) | D.1310, move.l %d0,-(%sp) | D.1310, jsr show_string | lea (16,%sp),%sp |, move.l (%sp)+,%d2 |, addq.l #8,%sp |, rts .size show_menu, .-show_menu .align 2 .globl action .type action, @function action: rts .size action, .-action .section .rodata .LC0: .string "MENU-stage" .LC1: .string "MENU-live" .LC2: .string "MENU-hit" .LC3: .string "MENU-color" .LC4: .string "MENU-enemy" .LC5: .string "MENU-boss" .LC6: .string "EXIT" .text .align 2 .globl showMenu .type showMenu, @function showMenu: subq.l #8,%sp |, move.l #action,4(%sp) |, p move.l 4(%sp),(%sp) | p, act move.l (%sp),-(%sp) | act, pea .LC0 | clr.l -(%sp) | pea 10.w | pea 8.w | jsr show_menu | lea (20,%sp),%sp |, move.l (%sp),-(%sp) | act, pea .LC1 | clr.l -(%sp) | pea 11.w | pea 8.w | jsr show_menu | lea (20,%sp),%sp |, move.l (%sp),-(%sp) | act, pea .LC2 | clr.l -(%sp) | pea 12.w | pea 8.w | jsr show_menu | lea (20,%sp),%sp |, move.l (%sp),-(%sp) | act, pea .LC3 | clr.l -(%sp) | pea 13.w | pea 8.w | jsr show_menu | lea (20,%sp),%sp |, move.l (%sp),-(%sp) | act, pea .LC4 | clr.l -(%sp) | pea 14.w | pea 8.w | jsr show_menu | lea (20,%sp),%sp |, move.l (%sp),-(%sp) | act, pea .LC5 | clr.l -(%sp) | pea 15.w | pea 8.w | jsr show_menu | lea (20,%sp),%sp |, move.l (%sp),-(%sp) | act, pea .LC6 | clr.l -(%sp) | pea 16.w | pea 8.w | jsr show_menu | lea (20,%sp),%sp |, pea 14.w | pea 14.w | pea 8.w | pea 6.w | jsr show_rectangle | lea (16,%sp),%sp |, addq.l #8,%sp |, rts .size showMenu, .-showMenu .align 2 .globl main .type main, @function main: jsr showMenu | moveq #0,%d0 | D.1318 rts .size main, .-main .ident "GCC: (GNU) 4.8.0"
25.43038
89
0.636884
c9209c611a298b10426d9f41b851f61e82eedea0
5,467
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1970.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_1970.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_1970.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x14292, %rsi nop nop and %r13, %r13 movb $0x61, (%rsi) nop nop nop nop sub $17878, %rsi lea addresses_WT_ht+0x1b968, %rbx nop nop nop nop nop cmp $60190, %r15 movl $0x61626364, (%rbx) nop nop nop and $33338, %rsi lea addresses_UC_ht+0x8526, %rsi lea addresses_D_ht+0x12006, %rdi nop nop nop nop nop add $65513, %r14 mov $80, %rcx rep movsq nop nop nop nop nop xor %r13, %r13 lea addresses_WC_ht+0x1cab8, %rsi lea addresses_WT_ht+0x139d0, %rdi nop nop and $24395, %r10 mov $30, %rcx rep movsb nop dec %r14 lea addresses_UC_ht+0x6bb8, %rsi clflush (%rsi) and %r15, %r15 vmovups (%rsi), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %rbx nop nop nop nop inc %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r8 push %rax push %rdi push %rdx // Store lea addresses_US+0xed18, %r8 clflush (%r8) nop nop nop cmp %rdx, %rdx movb $0x51, (%r8) nop nop sub %rdx, %rdx // Faulty Load lea addresses_UC+0x142b8, %rdx nop nop nop nop inc %r14 mov (%rdx), %r10d lea oracles, %rdi and $0xff, %r10 shlq $12, %r10 mov (%rdi,%r10,1), %r10 pop %rdx pop %rdi pop %rax pop %r8 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
39.615942
2,999
0.659777
1e447c02839cb7dabf17dd3bca68a26e86435c13
285
asm
Assembly
libsrc/msx/msx_text.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
1
2018-09-04T23:07:24.000Z
2018-09-04T23:07:24.000Z
libsrc/msx/msx_text.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/msx/msx_text.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; MSX specific routines ; by Stefano Bodrato, 30/11/2007 ; ; int msx_text(); ; ; Switch to text mode ; ; $Id: msx_text.asm,v 1.2 2007/12/07 11:28:59 stefano Exp $ ; XLIB msx_text LIB msxbios INCLUDE "#msxbios.def" msx_text: ld ix,TOTEXT jp msxbios
14.25
60
0.617544
f3d0d00cec88b4f7642b070637ced2afde53e2a3
4,783
asm
Assembly
Transynther/x86/_processed/US/_st_zr_un_/i7-7700_9_0xca_notsx.log_101_1603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_st_zr_un_/i7-7700_9_0xca_notsx.log_101_1603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_st_zr_un_/i7-7700_9_0xca_notsx.log_101_1603.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x16b2d, %r13 nop nop and %r14, %r14 movb (%r13), %r15b nop nop xor %r9, %r9 lea addresses_A_ht+0x1b70f, %rsi lea addresses_D_ht+0x56d5, %rdi nop nop nop nop nop add $62338, %r9 mov $76, %rcx rep movsw nop nop nop nop and $31690, %r14 lea addresses_WC_ht+0x10387, %rcx dec %r13 mov $0x6162636465666768, %rdi movq %rdi, (%rcx) and $21511, %rcx lea addresses_WT_ht+0x1263f, %rsi lea addresses_WC_ht+0x423f, %rdi sub %r13, %r13 mov $126, %rcx rep movsw nop nop nop nop xor %rsi, %rsi lea addresses_A_ht+0xad3f, %rcx nop nop nop nop nop sub %rdi, %rdi movups (%rcx), %xmm3 vpextrq $0, %xmm3, %r9 nop nop nop nop nop inc %rcx lea addresses_WC_ht+0x473f, %rsi lea addresses_A_ht+0x15813, %rdi and $22607, %r11 mov $23, %rcx rep movsq and $27937, %r11 lea addresses_D_ht+0x23f, %r14 add %rdi, %rdi mov (%r14), %r15 xor %r15, %r15 lea addresses_A_ht+0xb03f, %r9 nop nop inc %r14 mov (%r9), %esi nop add $22436, %rsi lea addresses_WC_ht+0x1669f, %r13 nop nop nop nop xor $23701, %r15 movb $0x61, (%r13) and $26024, %rcx lea addresses_UC_ht+0x8f2f, %r11 clflush (%r11) nop and $30905, %r9 movb $0x61, (%r11) nop sub $22790, %r13 lea addresses_normal_ht+0x1da93, %rsi lea addresses_normal_ht+0x1e93f, %rdi nop nop nop sub %r11, %r11 mov $68, %rcx rep movsb nop cmp %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %r9 pop %r15 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r9 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi // Store lea addresses_normal+0x16237, %r12 nop nop nop nop nop add %r14, %r14 movw $0x5152, (%r12) nop nop nop nop add $63224, %rax // Store lea addresses_D+0x9e3f, %r12 nop nop nop add $48689, %rdx mov $0x5152535455565758, %r14 movq %r14, (%r12) nop nop cmp %r12, %r12 // REPMOV lea addresses_A+0x1373f, %rsi lea addresses_WC+0x7e3f, %rdi and $57833, %rbx mov $98, %rcx rep movsb nop xor %rcx, %rcx // Faulty Load lea addresses_US+0x1de3f, %rsi cmp $7345, %rbx movb (%rsi), %r11b lea oracles, %rdx and $0xff, %r11 shlq $12, %r11 mov (%rdx,%r11,1), %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_A'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'c0': 17, '00': 49, '35': 35} 00 00 00 00 00 c0 c0 00 35 00 c0 00 00 00 00 00 35 35 c0 00 c0 00 00 35 00 00 00 c0 00 c0 35 00 c0 00 35 35 35 00 35 35 35 c0 00 35 00 00 c0 c0 00 35 00 00 35 35 00 00 35 00 c0 00 c0 00 00 00 00 35 35 00 00 35 00 c0 35 35 00 c0 35 00 00 00 35 00 00 00 00 35 c0 c0 00 35 35 35 35 35 35 35 35 35 35 35 00 */
22.885167
302
0.647083
e938c8aa0d9007727c98bff752504803ce922f39
407
asm
Assembly
programs/oeis/062/A062005.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/062/A062005.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/062/A062005.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A062005: Floor of arithmetic-geometric mean of n and 2n. ; 0,1,2,4,5,7,8,10,11,13,14,16,17,18,20,21,23,24,26,27,29,30,32,33,34,36,37,39,40,42,43,45,46,48,49,50,52,53,55,56,58,59,61,62,64,65,67,68,69,71,72,74,75,77,78,80,81,83,84,85,87,88,90,91,93,94,96,97,99,100,101,103,104,106,107,109,110,112,113,115,116,118,119,120,122,123,125,126,128,129,131,132,134,135,136,138,139,141,142,144 mul $0,118 div $0,81
67.833333
325
0.692875
7622fcd13071391c90b3ed7b15541f24a15678fb
493
asm
Assembly
Chapter 2/2.1 - First Kernel/bootloader/long_mode/clear.asm
gmarino2048/64bit-os-tutorial
2e297d04d5a2e0f7fead84ad057e6b283a8c6972
[ "MIT" ]
87
2020-12-04T23:18:31.000Z
2022-03-20T11:05:57.000Z
Chapter 3/3.1 - The IDT/bootloader/long_mode/clear.asm
limpingstone/64bit-os-tutorial
94f0582b9a3ecf80dfcc82278449654351e73730
[ "MIT" ]
6
2021-01-28T17:58:36.000Z
2022-03-26T01:43:53.000Z
Chapter 3/3.1 - The IDT/bootloader/long_mode/clear.asm
limpingstone/64bit-os-tutorial
94f0582b9a3ecf80dfcc82278449654351e73730
[ "MIT" ]
9
2020-12-04T22:18:03.000Z
2022-03-26T17:53:17.000Z
; ; Long Mode ; ; clear.asm ; [bits 64] ; Clear the VGA memory. (AKA write blank spaces to every character slot) ; Style in rdi clear_long: ; The pusha command stores the values of all ; registers so we don't have to worry about them push rdi push rax push rcx shl rdi, 8 mov rax, rdi mov al, space_char mov rdi, vga_start mov rcx, vga_extent / 2 rep stosw pop rcx pop rax pop rdi ret space_char: equ ` `
14.5
72
0.600406
14b0ccb960fcb9ef8a7350ca2bea2256f1372e69
2,505
asm
Assembly
assembler/tests/t_olms50/t_olms50.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_olms50/t_olms50.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
assembler/tests/t_olms50/t_olms50.asm
paulscottrobson/RCA-Cosmac-VIP-III
5d3fcea325aacb7c99269f266bc14e30439cdc2b
[ "MIT" ]
null
null
null
cpu msm5054 pagesize 0 ; PAGE is a machine insn on OLMS50 org 0 assume p:1 add acc,03h add #6,13h sub acc,14h sub #7,04h cmp acc,05h cmp #8,15h xor acc,16h xor #9,06h bit acc,07h bit #10,17h bis acc,18h bis #11,08h bic acc,09h bic #12,19h adjust 7,1fh inc 15h dec 16h asr 17h asl 18h switch 19h kswitch 1ah intmode 1bh rate 1ch clz clc cla sez sec sea bso halt rstrate nop mov acc,02h ; may encode as AX or AP (results in same machine instr) mov acc,12h mov acc,22h mov #-3,03h mov #-3,13h mov 04h,acc ; ditto mov 14h,acc mov 24h,acc jmp 123h jmp @0ah jmp @1ah jmpio @0bh jmpio @1bh beq $+2 ;bze $-2 bne $+3 ;bnz $-3 bcs $+4 ;bcc $-4 matrix 0bh matrix 1bh matrix #6 format 0ch format 1ch format #7 page 0dh page #8 dsp 7,0eh dsp 8,1eh dspf 9,0fh dspf 10,1fh intenab intdsab lamp off lamp on backup off backup on buzzer 3,1 cpu msm5055 xtcp on xtcp off freq 7 buzzer 1 dsph 7,0eh dsph 8,1eh dspfh 9,0fh dspfh 10,1fh adrs #11 adrs 01h adrs 11h cpu msm5056 adc 05h adc 15h sbc 06h sbc 16h chg 07h chg 17h chg 47h bcs $+5 ; different opcode on 5056++ blt $+6 bcc $+7 ; ditto bge $+8 bgt $+9 ble $+10 inp 6,09h inp 6,19h out 0ah,7 out 1ah,7 out #5,7 cpu msm6051 adc0 03h adc2 13h sbc4 04h sbc14 14h inc 05h ; INC/DEC knows AX + AP on MSM60xx inc 15h inc 25h dec 06h dec 16h dec 36h ror 07h ror 17h rol 08h rol 18h clg seg call 123h ret rti beq $+1 ; allows plus and minus displacement, some other opcodes beq $+0 bze $+2 bze $-1 bne $+3 bne $-2 bnz $+4 bnz $-3 bcs $+5 bcs $-4 bcc $+6 bcc $-5 bgt $+7 bgt $-6 ble $+8 ble $-7 bge $+9 bge $-8 blt $+10 blt $-9 pitch 9 msa 123h mso activate kenab kdsab status 0ah status 1ah flagin 0bh flagin 1bh s1rate 0ch s1rate 1ch s2rate 0dh s2rate 1dh cpu msm6052 rdar rdar + rdar - rdar +,z rdar -,z rdar +,n rdar -,n rdar +,z,l rdar -,z,l rdar +,n,l rdar -,n,l mvar mvar + mvar - mvar +,z mvar -,z mvar +,n mvar -,n mvar +,l mvar -,l mvar +,z,l mvar -,z,l mvar +,n,l mvar -,n,l beq $+1 ; completely different machine codes on 6052 beq $-0 bze $+2 bze $-1 bne $+3 bne $-2 bnz $+4 bnz $-3 bcs $+5 bcs $-4 bcc $+6 bcc $-5 bgt $+7 bgt $-6 ble $+8 ble $-7 bge $+9 bge $-8 blt $+10 blt $-9 in 7,0fh in 7,1fh out 0eh,12 out 1eh,12 out 0dh,30 out 1dh,30 out #0dh,12 out #0dh,30 stop halt act ei di et dt ec dc om im rst
9.862205
70
0.613972
57d23eb40c8b27b424810e793edf9e9198834562
464
asm
Assembly
libsrc/_DEVELOPMENT/arch/zx/display/z80/asm_zx_saddr2aaddr.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/_DEVELOPMENT/arch/zx/display/z80/asm_zx_saddr2aaddr.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/_DEVELOPMENT/arch/zx/display/z80/asm_zx_saddr2aaddr.asm
teknoplop/z88dk
bb03fbfd6b2ab0f397a1358559089f9cd3706485
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; =============================================================== ; Jun 2007 ; =============================================================== ; ; void *zx_saddr2aaddr(void *saddr) ; ; Attribute address corresponding to screen address. ; ; =============================================================== SECTION code_clib SECTION code_arch PUBLIC asm_zx_saddr2aaddr asm_zx_saddr2aaddr: ld a,h rra rra rra and $03 or $58 ld h,a ret
16.571429
65
0.390086
46eb10eb7ac15fc5219104acd76ee5b306f3703e
4,282
asm
Assembly
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_sse_float.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
2
2020-10-14T21:07:10.000Z
2021-03-06T12:40:08.000Z
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_sse_float.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
null
null
null
packages/external/libmpg123-1.22.x/src/asm_nasm/synth_sse_float.asm
sezero/SDL2-OS2
795968f1bae0ecf4a3bfa9ea376a184a1ee7f220
[ "Zlib" ]
null
null
null
; 1 "synth_sse_float.S" ; 1 "<built-in>" ; 1 "<command line>" ; 1 "synth_sse_float.S" ; 9 "synth_sse_float.S" ; 1 "mangle.h" 1 ; 13 "mangle.h" ; 1 "config.h" 1 ; 14 "mangle.h" 2 ; 1 "intsym.h" 1 ; 15 "mangle.h" 2 ; 10 "synth_sse_float.S" 2 ; 26 "synth_sse_float.S" %include "asm_nasm.inc" _sym_mangle synth_1to1_real_sse_asm SECTION .data align 32 scale_sse: dd 939524096 dd 939524096 dd 939524096 dd 939524096 SECTION .text align 16 GLOBAL synth_1to1_real_sse_asm synth_1to1_real_sse_asm: push dword ebp mov dword ebp, esp push dword ebx push dword esi mov dword ebx, [ebp+8] mov dword edx, [ebp+12] mov dword esi, [ebp+16] mov dword eax, [ebp+20] shl dword eax, 2 lea dword ebx, [ebx+64] sub dword ebx, eax mov dword ecx, 4 align 16 Loop_start_1: movups xmm0, [ebx] movups xmm1, [ebx+16] movups xmm2, [ebx+32] movups xmm3, [ebx+48] movups xmm4, [ebx+128] movups xmm5, [ebx+144] movups xmm6, [ebx+160] movups xmm7, [ebx+176] mulps xmm0, [edx+0] mulps xmm1, [edx+16] mulps xmm2, [edx+32] mulps xmm3, [edx+48] mulps xmm4, [edx+64] mulps xmm5, [edx+80] mulps xmm6, [edx+96] mulps xmm7, [edx+112] addps xmm0, xmm1 addps xmm2, xmm3 addps xmm4, xmm5 addps xmm6, xmm7 addps xmm0, xmm2 addps xmm4, xmm6 movaps xmm5, xmm4 movaps xmm4, xmm0 lea dword ebx, [ebx+256] lea dword edx, [edx+128] movups xmm0, [ebx] movups xmm1, [ebx+16] movups xmm2, [ebx+32] movups xmm3, [ebx+48] movups xmm6, [ebx+128] movups xmm7, [ebx+144] mulps xmm0, [edx] mulps xmm1, [edx+16] mulps xmm2, [edx+32] mulps xmm3, [edx+48] mulps xmm6, [edx+64] mulps xmm7, [edx+80] addps xmm0, xmm1 addps xmm2, xmm3 addps xmm6, xmm7 movups xmm1, [ebx+160] movups xmm3, [ebx+176] mulps xmm1, [edx+96] mulps xmm3, [edx+112] addps xmm0, xmm2 addps xmm1, xmm3 addps xmm6, xmm1 movaps xmm7, xmm6 movaps xmm6, xmm0 lea dword ebx, [ebx+256] lea dword edx, [edx+128] movaps xmm0, xmm4 movaps xmm1, xmm6 unpcklps xmm4, xmm5 unpcklps xmm6, xmm7 unpckhps xmm0, xmm5 unpckhps xmm1, xmm7 movaps xmm2, xmm4 movaps xmm3, xmm0 movlhps xmm4, xmm6 movhlps xmm6, xmm2 movlhps xmm0, xmm1 movhlps xmm1, xmm3 subps xmm4, xmm6 subps xmm0, xmm1 addps xmm0, xmm4 movups xmm1, [esi] movups xmm2, [esi+16] mulps xmm0, [scale_sse] shufps xmm1, xmm2, 0xdd movaps xmm2, xmm0 unpcklps xmm0, xmm1 unpckhps xmm2, xmm1 movups [esi], xmm0 movups [esi+16], xmm2 lea dword esi, [esi+32] dec dword ecx jnz Loop_start_1 mov dword ecx, 4 align 16 Loop_start_2: movups xmm0, [ebx] movups xmm1, [ebx+16] movups xmm2, [ebx+32] movups xmm3, [ebx+48] movups xmm4, [ebx+128] movups xmm5, [ebx+144] movups xmm6, [ebx+160] movups xmm7, [ebx+176] mulps xmm0, [edx+0] mulps xmm1, [edx+16] mulps xmm2, [edx+32] mulps xmm3, [edx+48] mulps xmm4, [edx+-64] mulps xmm5, [edx+-48] mulps xmm6, [edx+-32] mulps xmm7, [edx+-16] addps xmm0, xmm1 addps xmm2, xmm3 addps xmm4, xmm5 addps xmm6, xmm7 addps xmm0, xmm2 addps xmm4, xmm6 movaps xmm5, xmm4 movaps xmm4, xmm0 lea dword ebx, [ebx+256] lea dword edx, [edx+-128] movups xmm0, [ebx] movups xmm1, [ebx+16] movups xmm2, [ebx+32] movups xmm3, [ebx+48] movups xmm6, [ebx+128] movups xmm7, [ebx+144] mulps xmm0, [edx] mulps xmm1, [edx+16] mulps xmm2, [edx+32] mulps xmm3, [edx+48] mulps xmm6, [edx+-64] mulps xmm7, [edx+-48] addps xmm0, xmm1 addps xmm2, xmm3 addps xmm6, xmm7 movups xmm1, [ebx+160] movups xmm3, [ebx+176] mulps xmm1, [edx+-32] mulps xmm3, [edx+-16] addps xmm0, xmm2 addps xmm1, xmm3 addps xmm6, xmm1 movaps xmm7, xmm6 movaps xmm6, xmm0 lea dword ebx, [ebx+256] lea dword edx, [edx+-128] movaps xmm0, xmm4 movaps xmm1, xmm6 unpcklps xmm4, xmm5 unpcklps xmm6, xmm7 unpckhps xmm0, xmm5 unpckhps xmm1, xmm7 movaps xmm2, xmm4 movaps xmm3, xmm0 movlhps xmm4, xmm6 movhlps xmm6, xmm2 movlhps xmm0, xmm1 movhlps xmm1, xmm3 addps xmm4, xmm6 addps xmm0, xmm1 addps xmm0, xmm4 movups xmm1, [esi] movups xmm2, [esi+16] mulps xmm0, [scale_sse] shufps xmm1, xmm2, 0xdd movaps xmm2, xmm0 unpcklps xmm0, xmm1 unpckhps xmm2, xmm1 movups [esi], xmm0 movups [esi+16], xmm2 lea dword esi, [esi+32] dec dword ecx jnz Loop_start_2 xor dword eax, eax pop dword esi pop dword ebx mov dword esp, ebp pop dword ebp ret
18.144068
35
0.683793
2951d1db2d0300a9b551335e3348ba2718659f42
2,654
asm
Assembly
libsrc/sprites/software/sp1/ts2068hr/sprites/SP1AddSprChar.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/sprites/software/sp1/ts2068hr/sprites/SP1AddSprChar.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/sprites/software/sp1/ts2068hr/sprites/SP1AddSprChar.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
XLIB SP1AddSprChar ; ///////////////////////////////////////////////////////////////////////////////// ; Adds a sprite char to the linked list of sprites in a ; struct sp1_update at the correct position dependant on plane. ; ; enter : a = plane ; hl = & struct update.slist ; bc = & sp1_cs.ss_draw of sprite char being added ; uses : f, bc, de, hl ; ; 98n - 26 + 197 = 98n + 171 (n = # sprites in char; n=3: 465, n=1: 130) .SP1AddSprChar ; hl = prev sprite's & sp1_cs.next_in_upd (pending point to add current sprite after) ld d,(hl) inc hl inc d dec d jr z, donesearch1 ; if no next sprite, we add this sprite to end of list ld e,(hl) dec de dec de ex de,hl ; hl = the next sprite's & sp1_cs.plane, de = prev sprite's & sp1_cs.next_in_upd + 1b cp (hl) jr nc, donesearch0 ; if plane >= this sprite's plane, place before it ld de,14 add hl,de ; hl = the next sprite's & sp1_cs.next_in_upd jp SP1AddSprChar .donesearch1 ; no next sprite ld (hl),c ; hl = & prev sprite's sp1_cs.next_in_upd + 1b dec hl ld (hl),b ; write new sprite char into next ptr ex de,hl ; de = & prev sprite's sp1_cs.next_in_upd ld hl,12 add hl,bc ; hl = & sp1_cs.next_in_upd of spr char to add ld (hl),0 ; no sprite chars follow this one in list inc hl inc hl ld (hl),d ; write prev sprite into prev spr ptr inc hl ld (hl),e ret .donesearch0 ; there is a next sprite inc hl inc hl ex de,hl ; hl = & prev sprite's sp1_cs.next_in_upd + 1b, de = next sprite's & sp1_cs.ss_draw ld (hl),c dec hl ld (hl),b ; prev sprite's next ptr points at new sprite char push hl ; stack = prev sprite's & sp1_cs.next_in_upd ld hl,12 add hl,bc ; hl = new sprite's & sp1_cs.next_in_upd ld (hl),d inc hl ld (hl),e ; new sprite's next ptr points at next sprite inc hl ; hl = new sprite's & sp1_cs.prev_in_upd pop bc ; bc = prev sprite's & sp1_cs.next_in_upd ld (hl),b inc hl ld (hl),c ; new sprite's prev ptr points at prev sprite dec hl dec hl dec hl ex de,hl ; de = new sprite's & sp1_cs.next_in_upd ld bc,14 add hl,bc ; hl = next sprite's & sp1_cs.prev_in_upd ld (hl),d inc hl ld (hl),e ; next sprite's prev ptr points at new sprite ret
31.595238
114
0.527882
4610a3a9645cd60a7cfbb626c3b0a6d789527ad5
1,979
asm
Assembly
asm/hw_init.asm
mlndz28/selector-623
f50c294c56f8e43706ceda7fe9a8862d4d6bb866
[ "MIT" ]
null
null
null
asm/hw_init.asm
mlndz28/selector-623
f50c294c56f8e43706ceda7fe9a8862d4d6bb866
[ "MIT" ]
null
null
null
asm/hw_init.asm
mlndz28/selector-623
f50c294c56f8e43706ceda7fe9a8862d4d6bb866
[ "MIT" ]
null
null
null
;****************************************************************** ;* Hardware configuration ;****************************************************************** #include registers.inc org UserRTI dw #RTI_ISR ; set user routine for RTI interruptions org UserPortH dw #CALCULAR ; set user routine for port H interruptions org UserTimerCh3 dw #OC3_ISR org UserTimerCh4 dw #OC4_ISR ; set user routines for timer org UserTimerCh5 dw #TCNT_ISR org UserAtoD0 dw #ATD_ISR org $1F00 HW_INIT: movb #$F0, DDRA ; configure first nibble for output and the second one for input bset PUCR,$01 ; port A is set for pull up operation bset DDRB,$FF ; configure port B for output bset DDRJ,$02 ; configure PJ1 pin for output movb $F0,DDRP ; configure port P for output (7 seg display mux) bset PTP,$0F bclr PIEH,$09 ; disable interrupts on port H (initially) bclr PPSH,$09 ; set polarity to use falling edge movb #$40,RTICTL ; interruption check interval set to about 1ms bset CRGINT,$80 ; enable rti bset TSCR1,$90 ; enable the timer module bset TSCR2,$03 ; set prescaler to 3 bset TIOS,$38 ; set timer channel 4 and 5 as output bset TIE,$18 ; enable interruptions for channel 4 cli bset ATD0CTL2,$C2 ; enable ATD interruptions with automatic flag clearing movb D5mS,Cont_Delay jsr DELAY movb D5mS,Cont_Delay jsr DELAY movb #$28,ATD0CTL3 ; 5 conversion cycles movb #$97,ATD0CTL4 ; 8 bit resolution, 2 clock cycles per sample, minimum conversion frequency (500 kHz:PRS=23) bset DDRE,$04 ; port E as output for relay jsr LCD_INIT rts LCD_INIT: bset DDRK,$FF ; enable LCD screen ports clr PORTK ldx #IniDsp loc loop`: ldaa 1,X+ beq continue` jsr Send_Command movb D60uS,Cont_Delay jsr DELAY bra loop` continue`: ldaa Clear_LCD jsr Send_Command movb D2mS,Cont_Delay jsr DELAY rts
27.873239
114
0.63618
a10c438a79191d85101aa637792f9b3403703e88
312
asm
Assembly
oeis/052/A052652.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/052/A052652.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/052/A052652.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A052652: E.g.f. x^4/(1-2x). ; 0,0,0,0,24,240,2880,40320,645120,11612160,232243200,5109350400,122624409600,3188234649600,89270570188800,2678117105664000,85699747381248000,2913791410962432000,104896490794647552000 mov $1,$0 lpb $1 mul $0,2 trn $1,4 add $1,3 mov $2,$0 mul $0,$1 lpe mov $0,$2 mul $0,3
22.285714
183
0.721154
00df985bb4bb5c8834d0463ce8d6e600c3d1c277
632
asm
Assembly
programs/oeis/157/A157363.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/157/A157363.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/157/A157363.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A157363: 686n - 14. ; 672,1358,2044,2730,3416,4102,4788,5474,6160,6846,7532,8218,8904,9590,10276,10962,11648,12334,13020,13706,14392,15078,15764,16450,17136,17822,18508,19194,19880,20566,21252,21938,22624,23310,23996,24682,25368,26054,26740,27426,28112,28798,29484,30170,30856,31542,32228,32914,33600,34286,34972,35658,36344,37030,37716,38402,39088,39774,40460,41146,41832,42518,43204,43890,44576,45262,45948,46634,47320,48006,48692,49378,50064,50750,51436,52122,52808,53494,54180,54866,55552,56238,56924,57610,58296,58982,59668,60354,61040,61726,62412,63098,63784,64470,65156,65842,66528,67214,67900,68586 mul $0,686 add $0,672
105.333333
586
0.810127
55b63f44ed8e78d848720b873d71b63ba9b5849c
524
asm
Assembly
data/baseStats/muk.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/baseStats/muk.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/baseStats/muk.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
db DEX_MUK ; pokedex id db 105 ; base hp db 105 ; base attack db 75 ; base defense db 50 ; base speed db 65 ; base special db POISON ; species type 1 db POISON ; species type 2 db 36 ; catch rate db 157 ; base exp yield INCBIN "pic/ymon/muk.pic",0,1 ; 77, sprite dimensions dw MukPicFront dw MukPicBack ; attacks known at lvl 0 db POUND db DISABLE db POISON_GAS db 0 db 0 ; growth rate ; learnset tmlearn 6,8 tmlearn 15 tmlearn 20,21,24 tmlearn 25,31,32 tmlearn 34,36,38 tmlearn 44,47 tmlearn 50 db BANK(MukPicFront)
18.068966
53
0.734733
920f6b01f7bbb0273fef8feae83c2e46a5a3a4d7
409
asm
Assembly
oeis/088/A088172.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/088/A088172.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/088/A088172.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A088172: First differences of A019300. ; Submitted by Christian Krause ; 1,2,3,7,13,26,53,106,211,422,845,1689,3379,6758,13515,27031,54061,108122,216245,432489,864979,1729958,3459915,6919830,13839661,27679322,55358643,110717287,221434573,442869146,885738293,1771476586,3542953171 add $0,1 seq $0,19300 ; First n elements of Thue-Morse sequence A010060 read as a binary number. add $0,33 div $0,2 sub $0,16
40.9
208
0.787286
a6319414a3d05dae2e90a77ebbdc6a9b3ea879fb
147
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/日本_Ver3/asm/zel_gover.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/日本_Ver3/asm/zel_gover.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/日本_Ver3/asm/zel_gover.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: zel_gover.asm Type: file Size: 21921 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 209880FAA32D94EAA6AAC1D02267A661A0797A69 Description: null
21
47
0.816327
e8ef05844a9027d547856d98b986cf881c9caec3
1,282
asm
Assembly
uw1/eop-enqueueGridCoords.asm
JohnGlassmyer/UltimaHacks
f9a114e00c4a1edf1ac7792b465feff2c9b88ced
[ "MIT" ]
68
2018-03-04T22:34:22.000Z
2022-03-10T15:18:32.000Z
uw1/eop-enqueueGridCoords.asm
ptrie/UltimaHacks
2c3557a86d94ad8b54b26bc395b9aed1604f8be1
[ "MIT" ]
19
2018-11-20T04:06:49.000Z
2021-11-08T16:37:10.000Z
uw1/eop-enqueueGridCoords.asm
ptrie/UltimaHacks
2c3557a86d94ad8b54b26bc395b9aed1604f8be1
[ "MIT" ]
4
2020-09-01T17:57:36.000Z
2022-01-04T20:51:11.000Z
%ifndef EXE_LENGTH %include "../UltimaPatcher.asm" %include "include/uw1.asm" %include "include/uw1-eop.asm" %endif [bits 16] startPatch EXE_LENGTH, \ expanded overlay procedure: enqueueGridCoords startBlockAt addr_eop_enqueueGridCoords push bp mov bp, sp ; bp-based stack frame: %assign arg_height 0x08 %assign arg_row 0x06 %assign arg_column 0x04 %assign ____callerIp 0x02 %assign ____callerBp 0x00 push si push di cmp byte [dseg_isDrawingBehindPlayer], 1 jz isDrawingBehindPlayer isDrawingAheadOfPlayer: push word [bp+arg_height] push word [bp+arg_row] push word [bp+arg_column] callFromOverlay enqueueGridCoords add sp, 6 jmp endProc isDrawingBehindPlayer: ; call original proc with coords rotated 180 degrees push word [bp+arg_height] movsx ax, byte [bp+arg_row] neg ax inc ax push ax movsx ax, byte [bp+arg_column] sub ax, 16 neg ax inc ax add ax, 16 push ax callFromOverlay enqueueGridCoords add sp, 6 jmp endProc endProc: ; preserve return value of enqueueGridCoords in ax pop di pop si mov sp, bp pop bp retn endBlockAt off_eop_enqueueGridCoords_end endPatch
19.134328
54
0.672387
8ad57640ce8524b0b5eb6aaef0bfca5b08582fb8
459
asm
Assembly
programs/oeis/120/A120523.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/120/A120523.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/120/A120523.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A120523: First differences of successive meta-Fibonacci numbers A120501. ; 1,0,0,1,0,0,0,1,1,0,0,0,0,1,1,0,1,1,0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,0,0,0,0,0 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,120501 ; Meta-Fibonacci sequence a(n) with parameters s=2. mov $2,$3 mul $2,$0 add $1,$2 mov $4,$0 lpe min $5,1 mul $5,$4 sub $1,$5 mov $0,$1
21.857143
151
0.572985
334909d37cfe50054fe60aa175d11c51850752f3
50,360
asm
Assembly
pbs.asm
anishkasachdeva/XV6_Operating_System
7bb874de6900f6f1ba72c0f27ed96c470d566f1d
[ "MIT-0" ]
null
null
null
pbs.asm
anishkasachdeva/XV6_Operating_System
7bb874de6900f6f1ba72c0f27ed96c470d566f1d
[ "MIT-0" ]
null
null
null
pbs.asm
anishkasachdeva/XV6_Operating_System
7bb874de6900f6f1ba72c0f27ed96c470d566f1d
[ "MIT-0" ]
null
null
null
_pbs: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" #include "fs.h" int main(int argc , char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 57 push %edi e: 56 push %esi f: 53 push %ebx 10: 51 push %ecx 11: 83 ec 28 sub $0x28,%esp 14: 8b 19 mov (%ecx),%ebx 16: 8b 71 04 mov 0x4(%ecx),%esi int k , n , id; double z , d; if(argc < 2) 19: 83 fb 01 cmp $0x1,%ebx 1c: 0f 8e 9e 00 00 00 jle c0 <main+0xc0> { n = 1; } else { n = atoi(argv[1]); 22: 83 ec 0c sub $0xc,%esp 25: ff 76 04 pushl 0x4(%esi) 28: e8 c3 02 00 00 call 2f0 <atoi> } if(argc < 3) 2d: 83 c4 10 add $0x10,%esp 30: 83 fb 02 cmp $0x2,%ebx { n = 1; } else { n = atoi(argv[1]); 33: 89 c7 mov %eax,%edi } if(argc < 3) 35: 74 7e je b5 <main+0xb5> { d = 0.01; } else { d = atoi(argv[2]); 37: 83 ec 0c sub $0xc,%esp 3a: ff 76 08 pushl 0x8(%esi) 3d: e8 ae 02 00 00 call 2f0 <atoi> 42: 89 45 d0 mov %eax,-0x30(%ebp) 45: 83 c4 10 add $0x10,%esp 48: db 45 d0 fildl -0x30(%ebp) 4b: dd 5d d0 fstpl -0x30(%ebp) } volatile double x = 0; 4e: d9 ee fldz id = 0; for ( k = 0; k < n; k++) 50: 85 ff test %edi,%edi } else { d = atoi(argv[2]); } volatile double x = 0; 52: dd 5d e0 fstpl -0x20(%ebp) id = 0; for ( k = 0; k < n; k++) 55: 7e 59 jle b0 <main+0xb0> { n = atoi(argv[1]); } if(argc < 3) { d = 0.01; 57: 31 db xor %ebx,%ebx 59: eb 29 jmp 84 <main+0x84> 5b: 90 nop 5c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi id = fork(); if( id < 0) { printf(1, "%d failed in fork\n",getpid()); } else if(id > 0) 60: 74 73 je d5 <main+0xd5> { printf(1, "Parent %d creating child %d\n", getpid(),id); 62: e8 7b 03 00 00 call 3e2 <getpid> 67: 56 push %esi 68: 50 push %eax { d = atoi(argv[2]); } volatile double x = 0; id = 0; for ( k = 0; k < n; k++) 69: 83 c3 01 add $0x1,%ebx { printf(1, "%d failed in fork\n",getpid()); } else if(id > 0) { printf(1, "Parent %d creating child %d\n", getpid(),id); 6c: 68 f3 07 00 00 push $0x7f3 71: 6a 01 push $0x1 73: e8 48 04 00 00 call 4c0 <printf> wait(); 78: e8 ed 02 00 00 call 36a <wait> 7d: 83 c4 10 add $0x10,%esp { d = atoi(argv[2]); } volatile double x = 0; id = 0; for ( k = 0; k < n; k++) 80: 39 fb cmp %edi,%ebx 82: 7d 2c jge b0 <main+0xb0> { id = fork(); 84: e8 d1 02 00 00 call 35a <fork> if( id < 0) 89: 85 c0 test %eax,%eax } volatile double x = 0; id = 0; for ( k = 0; k < n; k++) { id = fork(); 8b: 89 c6 mov %eax,%esi if( id < 0) 8d: 79 d1 jns 60 <main+0x60> { printf(1, "%d failed in fork\n",getpid()); 8f: e8 4e 03 00 00 call 3e2 <getpid> 94: 83 ec 04 sub $0x4,%esp { d = atoi(argv[2]); } volatile double x = 0; id = 0; for ( k = 0; k < n; k++) 97: 83 c3 01 add $0x1,%ebx { id = fork(); if( id < 0) { printf(1, "%d failed in fork\n",getpid()); 9a: 50 push %eax 9b: 68 e0 07 00 00 push $0x7e0 a0: 6a 01 push $0x1 a2: e8 19 04 00 00 call 4c0 <printf> a7: 83 c4 10 add $0x10,%esp { d = atoi(argv[2]); } volatile double x = 0; id = 0; for ( k = 0; k < n; k++) aa: 39 fb cmp %edi,%ebx ac: 7c d6 jl 84 <main+0x84> ae: 66 90 xchg %ax,%ax //break; } break; } } exit(); b0: e8 ad 02 00 00 call 362 <exit> { n = atoi(argv[1]); } if(argc < 3) { d = 0.01; b5: dd 05 28 08 00 00 fldl 0x828 bb: dd 5d d0 fstpl -0x30(%ebp) be: eb 8e jmp 4e <main+0x4e> } else { d = atoi(argv[2]); } volatile double x = 0; c0: d9 ee fldz int k , n , id; double z , d; if(argc < 2) { n = 1; c2: bf 01 00 00 00 mov $0x1,%edi } else { d = atoi(argv[2]); } volatile double x = 0; c7: dd 5d e0 fstpl -0x20(%ebp) { n = atoi(argv[1]); } if(argc < 3) { d = 0.01; ca: dd 05 28 08 00 00 fldl 0x828 d0: dd 5d d0 fstpl -0x30(%ebp) d3: eb 82 jmp 57 <main+0x57> printf(1, "Parent %d creating child %d\n", getpid(),id); wait(); } else { printf(1, "Child %d created\n",getpid()); d5: e8 08 03 00 00 call 3e2 <getpid> da: 52 push %edx db: 50 push %eax dc: 68 10 08 00 00 push $0x810 e1: 6a 01 push $0x1 e3: e8 d8 03 00 00 call 4c0 <printf> for(z = 0; z < 8000000.0 ; z += d) e8: d9 ee fldz printf(1, "Parent %d creating child %d\n", getpid(),id); wait(); } else { printf(1, "Child %d created\n",getpid()); ea: 83 c4 10 add $0x10,%esp for(z = 0; z < 8000000.0 ; z += d) { x = x + 3.14 * 89.64; // useless calcs ed: dd 05 30 08 00 00 fldl 0x830 f3: eb 05 jmp fa <main+0xfa> f5: 8d 76 00 lea 0x0(%esi),%esi f8: d9 c9 fxch %st(1) fa: dd 45 e0 fldl -0x20(%ebp) fd: d8 c1 fadd %st(1),%st ff: dd 5d e0 fstpl -0x20(%ebp) 102: d9 c9 fxch %st(1) wait(); } else { printf(1, "Child %d created\n",getpid()); for(z = 0; z < 8000000.0 ; z += d) 104: dc 45 d0 faddl -0x30(%ebp) 107: d9 05 38 08 00 00 flds 0x838 10d: df e9 fucomip %st(1),%st 10f: 77 e7 ja f8 <main+0xf8> 111: dd d8 fstp %st(0) 113: dd d8 fstp %st(0) 115: eb 99 jmp b0 <main+0xb0> 117: 66 90 xchg %ax,%ax 119: 66 90 xchg %ax,%ax 11b: 66 90 xchg %ax,%ax 11d: 66 90 xchg %ax,%ax 11f: 90 nop 00000120 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 120: 55 push %ebp 121: 89 e5 mov %esp,%ebp 123: 53 push %ebx 124: 8b 45 08 mov 0x8(%ebp),%eax 127: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 12a: 89 c2 mov %eax,%edx 12c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 130: 83 c1 01 add $0x1,%ecx 133: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 137: 83 c2 01 add $0x1,%edx 13a: 84 db test %bl,%bl 13c: 88 5a ff mov %bl,-0x1(%edx) 13f: 75 ef jne 130 <strcpy+0x10> ; return os; } 141: 5b pop %ebx 142: 5d pop %ebp 143: c3 ret 144: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 14a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000150 <strcmp>: int strcmp(const char *p, const char *q) { 150: 55 push %ebp 151: 89 e5 mov %esp,%ebp 153: 56 push %esi 154: 53 push %ebx 155: 8b 55 08 mov 0x8(%ebp),%edx 158: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 15b: 0f b6 02 movzbl (%edx),%eax 15e: 0f b6 19 movzbl (%ecx),%ebx 161: 84 c0 test %al,%al 163: 75 1e jne 183 <strcmp+0x33> 165: eb 29 jmp 190 <strcmp+0x40> 167: 89 f6 mov %esi,%esi 169: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 170: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 173: 0f b6 02 movzbl (%edx),%eax p++, q++; 176: 8d 71 01 lea 0x1(%ecx),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 179: 0f b6 59 01 movzbl 0x1(%ecx),%ebx 17d: 84 c0 test %al,%al 17f: 74 0f je 190 <strcmp+0x40> 181: 89 f1 mov %esi,%ecx 183: 38 d8 cmp %bl,%al 185: 74 e9 je 170 <strcmp+0x20> p++, q++; return (uchar)*p - (uchar)*q; 187: 29 d8 sub %ebx,%eax } 189: 5b pop %ebx 18a: 5e pop %esi 18b: 5d pop %ebp 18c: c3 ret 18d: 8d 76 00 lea 0x0(%esi),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 190: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; 192: 29 d8 sub %ebx,%eax } 194: 5b pop %ebx 195: 5e pop %esi 196: 5d pop %ebp 197: c3 ret 198: 90 nop 199: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000001a0 <strlen>: uint strlen(const char *s) { 1a0: 55 push %ebp 1a1: 89 e5 mov %esp,%ebp 1a3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 1a6: 80 39 00 cmpb $0x0,(%ecx) 1a9: 74 12 je 1bd <strlen+0x1d> 1ab: 31 d2 xor %edx,%edx 1ad: 8d 76 00 lea 0x0(%esi),%esi 1b0: 83 c2 01 add $0x1,%edx 1b3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 1b7: 89 d0 mov %edx,%eax 1b9: 75 f5 jne 1b0 <strlen+0x10> ; return n; } 1bb: 5d pop %ebp 1bc: c3 ret uint strlen(const char *s) { int n; for(n = 0; s[n]; n++) 1bd: 31 c0 xor %eax,%eax ; return n; } 1bf: 5d pop %ebp 1c0: c3 ret 1c1: eb 0d jmp 1d0 <memset> 1c3: 90 nop 1c4: 90 nop 1c5: 90 nop 1c6: 90 nop 1c7: 90 nop 1c8: 90 nop 1c9: 90 nop 1ca: 90 nop 1cb: 90 nop 1cc: 90 nop 1cd: 90 nop 1ce: 90 nop 1cf: 90 nop 000001d0 <memset>: void* memset(void *dst, int c, uint n) { 1d0: 55 push %ebp 1d1: 89 e5 mov %esp,%ebp 1d3: 57 push %edi 1d4: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 1d7: 8b 4d 10 mov 0x10(%ebp),%ecx 1da: 8b 45 0c mov 0xc(%ebp),%eax 1dd: 89 d7 mov %edx,%edi 1df: fc cld 1e0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 1e2: 89 d0 mov %edx,%eax 1e4: 5f pop %edi 1e5: 5d pop %ebp 1e6: c3 ret 1e7: 89 f6 mov %esi,%esi 1e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000001f0 <strchr>: char* strchr(const char *s, char c) { 1f0: 55 push %ebp 1f1: 89 e5 mov %esp,%ebp 1f3: 53 push %ebx 1f4: 8b 45 08 mov 0x8(%ebp),%eax 1f7: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 1fa: 0f b6 10 movzbl (%eax),%edx 1fd: 84 d2 test %dl,%dl 1ff: 74 1d je 21e <strchr+0x2e> if(*s == c) 201: 38 d3 cmp %dl,%bl 203: 89 d9 mov %ebx,%ecx 205: 75 0d jne 214 <strchr+0x24> 207: eb 17 jmp 220 <strchr+0x30> 209: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 210: 38 ca cmp %cl,%dl 212: 74 0c je 220 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 214: 83 c0 01 add $0x1,%eax 217: 0f b6 10 movzbl (%eax),%edx 21a: 84 d2 test %dl,%dl 21c: 75 f2 jne 210 <strchr+0x20> if(*s == c) return (char*)s; return 0; 21e: 31 c0 xor %eax,%eax } 220: 5b pop %ebx 221: 5d pop %ebp 222: c3 ret 223: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 229: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000230 <gets>: char* gets(char *buf, int max) { 230: 55 push %ebp 231: 89 e5 mov %esp,%ebp 233: 57 push %edi 234: 56 push %esi 235: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 236: 31 f6 xor %esi,%esi cc = read(0, &c, 1); 238: 8d 7d e7 lea -0x19(%ebp),%edi return 0; } char* gets(char *buf, int max) { 23b: 83 ec 1c sub $0x1c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 23e: eb 29 jmp 269 <gets+0x39> cc = read(0, &c, 1); 240: 83 ec 04 sub $0x4,%esp 243: 6a 01 push $0x1 245: 57 push %edi 246: 6a 00 push $0x0 248: e8 2d 01 00 00 call 37a <read> if(cc < 1) 24d: 83 c4 10 add $0x10,%esp 250: 85 c0 test %eax,%eax 252: 7e 1d jle 271 <gets+0x41> break; buf[i++] = c; 254: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 258: 8b 55 08 mov 0x8(%ebp),%edx 25b: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') 25d: 3c 0a cmp $0xa,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 25f: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 263: 74 1b je 280 <gets+0x50> 265: 3c 0d cmp $0xd,%al 267: 74 17 je 280 <gets+0x50> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 269: 8d 5e 01 lea 0x1(%esi),%ebx 26c: 3b 5d 0c cmp 0xc(%ebp),%ebx 26f: 7c cf jl 240 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 271: 8b 45 08 mov 0x8(%ebp),%eax 274: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 278: 8d 65 f4 lea -0xc(%ebp),%esp 27b: 5b pop %ebx 27c: 5e pop %esi 27d: 5f pop %edi 27e: 5d pop %ebp 27f: c3 ret break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 280: 8b 45 08 mov 0x8(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 283: 89 de mov %ebx,%esi break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 285: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 289: 8d 65 f4 lea -0xc(%ebp),%esp 28c: 5b pop %ebx 28d: 5e pop %esi 28e: 5f pop %edi 28f: 5d pop %ebp 290: c3 ret 291: eb 0d jmp 2a0 <stat> 293: 90 nop 294: 90 nop 295: 90 nop 296: 90 nop 297: 90 nop 298: 90 nop 299: 90 nop 29a: 90 nop 29b: 90 nop 29c: 90 nop 29d: 90 nop 29e: 90 nop 29f: 90 nop 000002a0 <stat>: int stat(const char *n, struct stat *st) { 2a0: 55 push %ebp 2a1: 89 e5 mov %esp,%ebp 2a3: 56 push %esi 2a4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 2a5: 83 ec 08 sub $0x8,%esp 2a8: 6a 00 push $0x0 2aa: ff 75 08 pushl 0x8(%ebp) 2ad: e8 f0 00 00 00 call 3a2 <open> if(fd < 0) 2b2: 83 c4 10 add $0x10,%esp 2b5: 85 c0 test %eax,%eax 2b7: 78 27 js 2e0 <stat+0x40> return -1; r = fstat(fd, st); 2b9: 83 ec 08 sub $0x8,%esp 2bc: ff 75 0c pushl 0xc(%ebp) 2bf: 89 c3 mov %eax,%ebx 2c1: 50 push %eax 2c2: e8 f3 00 00 00 call 3ba <fstat> 2c7: 89 c6 mov %eax,%esi close(fd); 2c9: 89 1c 24 mov %ebx,(%esp) 2cc: e8 b9 00 00 00 call 38a <close> return r; 2d1: 83 c4 10 add $0x10,%esp 2d4: 89 f0 mov %esi,%eax } 2d6: 8d 65 f8 lea -0x8(%ebp),%esp 2d9: 5b pop %ebx 2da: 5e pop %esi 2db: 5d pop %ebp 2dc: c3 ret 2dd: 8d 76 00 lea 0x0(%esi),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 2e0: b8 ff ff ff ff mov $0xffffffff,%eax 2e5: eb ef jmp 2d6 <stat+0x36> 2e7: 89 f6 mov %esi,%esi 2e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000002f0 <atoi>: return r; } int atoi(const char *s) { 2f0: 55 push %ebp 2f1: 89 e5 mov %esp,%ebp 2f3: 53 push %ebx 2f4: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 2f7: 0f be 11 movsbl (%ecx),%edx 2fa: 8d 42 d0 lea -0x30(%edx),%eax 2fd: 3c 09 cmp $0x9,%al 2ff: b8 00 00 00 00 mov $0x0,%eax 304: 77 1f ja 325 <atoi+0x35> 306: 8d 76 00 lea 0x0(%esi),%esi 309: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 310: 8d 04 80 lea (%eax,%eax,4),%eax 313: 83 c1 01 add $0x1,%ecx 316: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 31a: 0f be 11 movsbl (%ecx),%edx 31d: 8d 5a d0 lea -0x30(%edx),%ebx 320: 80 fb 09 cmp $0x9,%bl 323: 76 eb jbe 310 <atoi+0x20> n = n*10 + *s++ - '0'; return n; } 325: 5b pop %ebx 326: 5d pop %ebp 327: c3 ret 328: 90 nop 329: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000330 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 330: 55 push %ebp 331: 89 e5 mov %esp,%ebp 333: 56 push %esi 334: 53 push %ebx 335: 8b 5d 10 mov 0x10(%ebp),%ebx 338: 8b 45 08 mov 0x8(%ebp),%eax 33b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 33e: 85 db test %ebx,%ebx 340: 7e 14 jle 356 <memmove+0x26> 342: 31 d2 xor %edx,%edx 344: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 348: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 34c: 88 0c 10 mov %cl,(%eax,%edx,1) 34f: 83 c2 01 add $0x1,%edx char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 352: 39 da cmp %ebx,%edx 354: 75 f2 jne 348 <memmove+0x18> *dst++ = *src++; return vdst; } 356: 5b pop %ebx 357: 5e pop %esi 358: 5d pop %ebp 359: c3 ret 0000035a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 35a: b8 01 00 00 00 mov $0x1,%eax 35f: cd 40 int $0x40 361: c3 ret 00000362 <exit>: SYSCALL(exit) 362: b8 02 00 00 00 mov $0x2,%eax 367: cd 40 int $0x40 369: c3 ret 0000036a <wait>: SYSCALL(wait) 36a: b8 03 00 00 00 mov $0x3,%eax 36f: cd 40 int $0x40 371: c3 ret 00000372 <pipe>: SYSCALL(pipe) 372: b8 04 00 00 00 mov $0x4,%eax 377: cd 40 int $0x40 379: c3 ret 0000037a <read>: SYSCALL(read) 37a: b8 05 00 00 00 mov $0x5,%eax 37f: cd 40 int $0x40 381: c3 ret 00000382 <write>: SYSCALL(write) 382: b8 10 00 00 00 mov $0x10,%eax 387: cd 40 int $0x40 389: c3 ret 0000038a <close>: SYSCALL(close) 38a: b8 15 00 00 00 mov $0x15,%eax 38f: cd 40 int $0x40 391: c3 ret 00000392 <kill>: SYSCALL(kill) 392: b8 06 00 00 00 mov $0x6,%eax 397: cd 40 int $0x40 399: c3 ret 0000039a <exec>: SYSCALL(exec) 39a: b8 07 00 00 00 mov $0x7,%eax 39f: cd 40 int $0x40 3a1: c3 ret 000003a2 <open>: SYSCALL(open) 3a2: b8 0f 00 00 00 mov $0xf,%eax 3a7: cd 40 int $0x40 3a9: c3 ret 000003aa <mknod>: SYSCALL(mknod) 3aa: b8 11 00 00 00 mov $0x11,%eax 3af: cd 40 int $0x40 3b1: c3 ret 000003b2 <unlink>: SYSCALL(unlink) 3b2: b8 12 00 00 00 mov $0x12,%eax 3b7: cd 40 int $0x40 3b9: c3 ret 000003ba <fstat>: SYSCALL(fstat) 3ba: b8 08 00 00 00 mov $0x8,%eax 3bf: cd 40 int $0x40 3c1: c3 ret 000003c2 <link>: SYSCALL(link) 3c2: b8 13 00 00 00 mov $0x13,%eax 3c7: cd 40 int $0x40 3c9: c3 ret 000003ca <mkdir>: SYSCALL(mkdir) 3ca: b8 14 00 00 00 mov $0x14,%eax 3cf: cd 40 int $0x40 3d1: c3 ret 000003d2 <chdir>: SYSCALL(chdir) 3d2: b8 09 00 00 00 mov $0x9,%eax 3d7: cd 40 int $0x40 3d9: c3 ret 000003da <dup>: SYSCALL(dup) 3da: b8 0a 00 00 00 mov $0xa,%eax 3df: cd 40 int $0x40 3e1: c3 ret 000003e2 <getpid>: SYSCALL(getpid) 3e2: b8 0b 00 00 00 mov $0xb,%eax 3e7: cd 40 int $0x40 3e9: c3 ret 000003ea <sbrk>: SYSCALL(sbrk) 3ea: b8 0c 00 00 00 mov $0xc,%eax 3ef: cd 40 int $0x40 3f1: c3 ret 000003f2 <sleep>: SYSCALL(sleep) 3f2: b8 0d 00 00 00 mov $0xd,%eax 3f7: cd 40 int $0x40 3f9: c3 ret 000003fa <waitx>: SYSCALL(waitx) 3fa: b8 16 00 00 00 mov $0x16,%eax 3ff: cd 40 int $0x40 401: c3 ret 00000402 <getpinfo>: SYSCALL(getpinfo) 402: b8 17 00 00 00 mov $0x17,%eax 407: cd 40 int $0x40 409: c3 ret 0000040a <cps>: SYSCALL(cps) 40a: b8 18 00 00 00 mov $0x18,%eax 40f: cd 40 int $0x40 411: c3 ret 00000412 <set_priority>: 412: b8 19 00 00 00 mov $0x19,%eax 417: cd 40 int $0x40 419: c3 ret 41a: 66 90 xchg %ax,%ax 41c: 66 90 xchg %ax,%ax 41e: 66 90 xchg %ax,%ax 00000420 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 420: 55 push %ebp 421: 89 e5 mov %esp,%ebp 423: 57 push %edi 424: 56 push %esi 425: 53 push %ebx 426: 89 c6 mov %eax,%esi 428: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 42b: 8b 5d 08 mov 0x8(%ebp),%ebx 42e: 85 db test %ebx,%ebx 430: 74 7e je 4b0 <printint+0x90> 432: 89 d0 mov %edx,%eax 434: c1 e8 1f shr $0x1f,%eax 437: 84 c0 test %al,%al 439: 74 75 je 4b0 <printint+0x90> neg = 1; x = -xx; 43b: 89 d0 mov %edx,%eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 43d: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) x = -xx; 444: f7 d8 neg %eax 446: 89 75 c0 mov %esi,-0x40(%ebp) } else { x = xx; } i = 0; 449: 31 ff xor %edi,%edi 44b: 8d 5d d7 lea -0x29(%ebp),%ebx 44e: 89 ce mov %ecx,%esi 450: eb 08 jmp 45a <printint+0x3a> 452: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 458: 89 cf mov %ecx,%edi 45a: 31 d2 xor %edx,%edx 45c: 8d 4f 01 lea 0x1(%edi),%ecx 45f: f7 f6 div %esi 461: 0f b6 92 44 08 00 00 movzbl 0x844(%edx),%edx }while((x /= base) != 0); 468: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 46a: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 46d: 75 e9 jne 458 <printint+0x38> if(neg) 46f: 8b 45 c4 mov -0x3c(%ebp),%eax 472: 8b 75 c0 mov -0x40(%ebp),%esi 475: 85 c0 test %eax,%eax 477: 74 08 je 481 <printint+0x61> buf[i++] = '-'; 479: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) 47e: 8d 4f 02 lea 0x2(%edi),%ecx 481: 8d 7c 0d d7 lea -0x29(%ebp,%ecx,1),%edi 485: 8d 76 00 lea 0x0(%esi),%esi 488: 0f b6 07 movzbl (%edi),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 48b: 83 ec 04 sub $0x4,%esp 48e: 83 ef 01 sub $0x1,%edi 491: 6a 01 push $0x1 493: 53 push %ebx 494: 56 push %esi 495: 88 45 d7 mov %al,-0x29(%ebp) 498: e8 e5 fe ff ff call 382 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 49d: 83 c4 10 add $0x10,%esp 4a0: 39 df cmp %ebx,%edi 4a2: 75 e4 jne 488 <printint+0x68> putc(fd, buf[i]); } 4a4: 8d 65 f4 lea -0xc(%ebp),%esp 4a7: 5b pop %ebx 4a8: 5e pop %esi 4a9: 5f pop %edi 4aa: 5d pop %ebp 4ab: c3 ret 4ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; } else { x = xx; 4b0: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 4b2: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 4b9: eb 8b jmp 446 <printint+0x26> 4bb: 90 nop 4bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000004c0 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 4c0: 55 push %ebp 4c1: 89 e5 mov %esp,%ebp 4c3: 57 push %edi 4c4: 56 push %esi 4c5: 53 push %ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 4c6: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 4c9: 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++){ 4cc: 8b 75 0c mov 0xc(%ebp),%esi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 4cf: 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++){ 4d2: 89 45 d0 mov %eax,-0x30(%ebp) 4d5: 0f b6 1e movzbl (%esi),%ebx 4d8: 83 c6 01 add $0x1,%esi 4db: 84 db test %bl,%bl 4dd: 0f 84 b0 00 00 00 je 593 <printf+0xd3> 4e3: 31 d2 xor %edx,%edx 4e5: eb 39 jmp 520 <printf+0x60> 4e7: 89 f6 mov %esi,%esi 4e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 4f0: 83 f8 25 cmp $0x25,%eax 4f3: 89 55 d4 mov %edx,-0x2c(%ebp) state = '%'; 4f6: 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 == '%'){ 4fb: 74 18 je 515 <printf+0x55> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4fd: 8d 45 e2 lea -0x1e(%ebp),%eax 500: 83 ec 04 sub $0x4,%esp 503: 88 5d e2 mov %bl,-0x1e(%ebp) 506: 6a 01 push $0x1 508: 50 push %eax 509: 57 push %edi 50a: e8 73 fe ff ff call 382 <write> 50f: 8b 55 d4 mov -0x2c(%ebp),%edx 512: 83 c4 10 add $0x10,%esp 515: 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++){ 518: 0f b6 5e ff movzbl -0x1(%esi),%ebx 51c: 84 db test %bl,%bl 51e: 74 73 je 593 <printf+0xd3> c = fmt[i] & 0xff; if(state == 0){ 520: 85 d2 test %edx,%edx uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 522: 0f be cb movsbl %bl,%ecx 525: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 528: 74 c6 je 4f0 <printf+0x30> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 52a: 83 fa 25 cmp $0x25,%edx 52d: 75 e6 jne 515 <printf+0x55> if(c == 'd'){ 52f: 83 f8 64 cmp $0x64,%eax 532: 0f 84 f8 00 00 00 je 630 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 538: 81 e1 f7 00 00 00 and $0xf7,%ecx 53e: 83 f9 70 cmp $0x70,%ecx 541: 74 5d je 5a0 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 543: 83 f8 73 cmp $0x73,%eax 546: 0f 84 84 00 00 00 je 5d0 <printf+0x110> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 54c: 83 f8 63 cmp $0x63,%eax 54f: 0f 84 ea 00 00 00 je 63f <printf+0x17f> putc(fd, *ap); ap++; } else if(c == '%'){ 555: 83 f8 25 cmp $0x25,%eax 558: 0f 84 c2 00 00 00 je 620 <printf+0x160> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 55e: 8d 45 e7 lea -0x19(%ebp),%eax 561: 83 ec 04 sub $0x4,%esp 564: c6 45 e7 25 movb $0x25,-0x19(%ebp) 568: 6a 01 push $0x1 56a: 50 push %eax 56b: 57 push %edi 56c: e8 11 fe ff ff call 382 <write> 571: 83 c4 0c add $0xc,%esp 574: 8d 45 e6 lea -0x1a(%ebp),%eax 577: 88 5d e6 mov %bl,-0x1a(%ebp) 57a: 6a 01 push $0x1 57c: 50 push %eax 57d: 57 push %edi 57e: 83 c6 01 add $0x1,%esi 581: e8 fc fd ff ff call 382 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 586: 0f b6 5e ff movzbl -0x1(%esi),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 58a: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 58d: 31 d2 xor %edx,%edx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 58f: 84 db test %bl,%bl 591: 75 8d jne 520 <printf+0x60> putc(fd, c); } state = 0; } } } 593: 8d 65 f4 lea -0xc(%ebp),%esp 596: 5b pop %ebx 597: 5e pop %esi 598: 5f pop %edi 599: 5d pop %ebp 59a: c3 ret 59b: 90 nop 59c: 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); 5a0: 83 ec 0c sub $0xc,%esp 5a3: b9 10 00 00 00 mov $0x10,%ecx 5a8: 6a 00 push $0x0 5aa: 8b 5d d0 mov -0x30(%ebp),%ebx 5ad: 89 f8 mov %edi,%eax 5af: 8b 13 mov (%ebx),%edx 5b1: e8 6a fe ff ff call 420 <printint> ap++; 5b6: 89 d8 mov %ebx,%eax 5b8: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 5bb: 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++; 5bd: 83 c0 04 add $0x4,%eax 5c0: 89 45 d0 mov %eax,-0x30(%ebp) 5c3: e9 4d ff ff ff jmp 515 <printf+0x55> 5c8: 90 nop 5c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; 5d0: 8b 45 d0 mov -0x30(%ebp),%eax 5d3: 8b 18 mov (%eax),%ebx ap++; 5d5: 83 c0 04 add $0x4,%eax 5d8: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) s = "(null)"; 5db: b8 3c 08 00 00 mov $0x83c,%eax 5e0: 85 db test %ebx,%ebx 5e2: 0f 44 d8 cmove %eax,%ebx while(*s != 0){ 5e5: 0f b6 03 movzbl (%ebx),%eax 5e8: 84 c0 test %al,%al 5ea: 74 23 je 60f <printf+0x14f> 5ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 5f0: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 5f3: 8d 45 e3 lea -0x1d(%ebp),%eax 5f6: 83 ec 04 sub $0x4,%esp 5f9: 6a 01 push $0x1 ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; 5fb: 83 c3 01 add $0x1,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 5fe: 50 push %eax 5ff: 57 push %edi 600: e8 7d fd ff ff call 382 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 605: 0f b6 03 movzbl (%ebx),%eax 608: 83 c4 10 add $0x10,%esp 60b: 84 c0 test %al,%al 60d: 75 e1 jne 5f0 <printf+0x130> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 60f: 31 d2 xor %edx,%edx 611: e9 ff fe ff ff jmp 515 <printf+0x55> 616: 8d 76 00 lea 0x0(%esi),%esi 619: 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); 620: 83 ec 04 sub $0x4,%esp 623: 88 5d e5 mov %bl,-0x1b(%ebp) 626: 8d 45 e5 lea -0x1b(%ebp),%eax 629: 6a 01 push $0x1 62b: e9 4c ff ff ff jmp 57c <printf+0xbc> } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 630: 83 ec 0c sub $0xc,%esp 633: b9 0a 00 00 00 mov $0xa,%ecx 638: 6a 01 push $0x1 63a: e9 6b ff ff ff jmp 5aa <printf+0xea> 63f: 8b 5d d0 mov -0x30(%ebp),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 642: 83 ec 04 sub $0x4,%esp 645: 8b 03 mov (%ebx),%eax 647: 6a 01 push $0x1 649: 88 45 e4 mov %al,-0x1c(%ebp) 64c: 8d 45 e4 lea -0x1c(%ebp),%eax 64f: 50 push %eax 650: 57 push %edi 651: e8 2c fd ff ff call 382 <write> 656: e9 5b ff ff ff jmp 5b6 <printf+0xf6> 65b: 66 90 xchg %ax,%ax 65d: 66 90 xchg %ax,%ax 65f: 90 nop 00000660 <free>: static Header base; static Header *freep; void free(void *ap) { 660: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 661: a1 e8 0a 00 00 mov 0xae8,%eax static Header base; static Header *freep; void free(void *ap) { 666: 89 e5 mov %esp,%ebp 668: 57 push %edi 669: 56 push %esi 66a: 53 push %ebx 66b: 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)) 66e: 8b 10 mov (%eax),%edx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 670: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 673: 39 c8 cmp %ecx,%eax 675: 73 19 jae 690 <free+0x30> 677: 89 f6 mov %esi,%esi 679: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 680: 39 d1 cmp %edx,%ecx 682: 72 1c jb 6a0 <free+0x40> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 684: 39 d0 cmp %edx,%eax 686: 73 18 jae 6a0 <free+0x40> static Header base; static Header *freep; void free(void *ap) { 688: 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) 68a: 39 c8 cmp %ecx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 68c: 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) 68e: 72 f0 jb 680 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 690: 39 d0 cmp %edx,%eax 692: 72 f4 jb 688 <free+0x28> 694: 39 d1 cmp %edx,%ecx 696: 73 f0 jae 688 <free+0x28> 698: 90 nop 699: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(bp + bp->s.size == p->s.ptr){ 6a0: 8b 73 fc mov -0x4(%ebx),%esi 6a3: 8d 3c f1 lea (%ecx,%esi,8),%edi 6a6: 39 d7 cmp %edx,%edi 6a8: 74 19 je 6c3 <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; 6aa: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 6ad: 8b 50 04 mov 0x4(%eax),%edx 6b0: 8d 34 d0 lea (%eax,%edx,8),%esi 6b3: 39 f1 cmp %esi,%ecx 6b5: 74 23 je 6da <free+0x7a> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 6b7: 89 08 mov %ecx,(%eax) freep = p; 6b9: a3 e8 0a 00 00 mov %eax,0xae8 } 6be: 5b pop %ebx 6bf: 5e pop %esi 6c0: 5f pop %edi 6c1: 5d pop %ebp 6c2: 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; 6c3: 03 72 04 add 0x4(%edx),%esi 6c6: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 6c9: 8b 10 mov (%eax),%edx 6cb: 8b 12 mov (%edx),%edx 6cd: 89 53 f8 mov %edx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 6d0: 8b 50 04 mov 0x4(%eax),%edx 6d3: 8d 34 d0 lea (%eax,%edx,8),%esi 6d6: 39 f1 cmp %esi,%ecx 6d8: 75 dd jne 6b7 <free+0x57> p->s.size += bp->s.size; 6da: 03 53 fc add -0x4(%ebx),%edx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; 6dd: a3 e8 0a 00 00 mov %eax,0xae8 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; 6e2: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 6e5: 8b 53 f8 mov -0x8(%ebx),%edx 6e8: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } 6ea: 5b pop %ebx 6eb: 5e pop %esi 6ec: 5f pop %edi 6ed: 5d pop %ebp 6ee: c3 ret 6ef: 90 nop 000006f0 <malloc>: return freep; } void* malloc(uint nbytes) { 6f0: 55 push %ebp 6f1: 89 e5 mov %esp,%ebp 6f3: 57 push %edi 6f4: 56 push %esi 6f5: 53 push %ebx 6f6: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 6f9: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 6fc: 8b 15 e8 0a 00 00 mov 0xae8,%edx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 702: 8d 78 07 lea 0x7(%eax),%edi 705: c1 ef 03 shr $0x3,%edi 708: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 70b: 85 d2 test %edx,%edx 70d: 0f 84 a3 00 00 00 je 7b6 <malloc+0xc6> 713: 8b 02 mov (%edx),%eax 715: 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){ 718: 39 cf cmp %ecx,%edi 71a: 76 74 jbe 790 <malloc+0xa0> 71c: 81 ff 00 10 00 00 cmp $0x1000,%edi 722: be 00 10 00 00 mov $0x1000,%esi 727: 8d 1c fd 00 00 00 00 lea 0x0(,%edi,8),%ebx 72e: 0f 43 f7 cmovae %edi,%esi 731: ba 00 80 00 00 mov $0x8000,%edx 736: 81 ff ff 0f 00 00 cmp $0xfff,%edi 73c: 0f 46 da cmovbe %edx,%ebx 73f: eb 10 jmp 751 <malloc+0x61> 741: 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){ 748: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 74a: 8b 48 04 mov 0x4(%eax),%ecx 74d: 39 cf cmp %ecx,%edi 74f: 76 3f jbe 790 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 751: 39 05 e8 0a 00 00 cmp %eax,0xae8 757: 89 c2 mov %eax,%edx 759: 75 ed jne 748 <malloc+0x58> char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); 75b: 83 ec 0c sub $0xc,%esp 75e: 53 push %ebx 75f: e8 86 fc ff ff call 3ea <sbrk> if(p == (char*)-1) 764: 83 c4 10 add $0x10,%esp 767: 83 f8 ff cmp $0xffffffff,%eax 76a: 74 1c je 788 <malloc+0x98> return 0; hp = (Header*)p; hp->s.size = nu; 76c: 89 70 04 mov %esi,0x4(%eax) free((void*)(hp + 1)); 76f: 83 ec 0c sub $0xc,%esp 772: 83 c0 08 add $0x8,%eax 775: 50 push %eax 776: e8 e5 fe ff ff call 660 <free> return freep; 77b: 8b 15 e8 0a 00 00 mov 0xae8,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 781: 83 c4 10 add $0x10,%esp 784: 85 d2 test %edx,%edx 786: 75 c0 jne 748 <malloc+0x58> return 0; 788: 31 c0 xor %eax,%eax 78a: eb 1c jmp 7a8 <malloc+0xb8> 78c: 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) 790: 39 cf cmp %ecx,%edi 792: 74 1c je 7b0 <malloc+0xc0> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 794: 29 f9 sub %edi,%ecx 796: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 799: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 79c: 89 78 04 mov %edi,0x4(%eax) } freep = prevp; 79f: 89 15 e8 0a 00 00 mov %edx,0xae8 return (void*)(p + 1); 7a5: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 7a8: 8d 65 f4 lea -0xc(%ebp),%esp 7ab: 5b pop %ebx 7ac: 5e pop %esi 7ad: 5f pop %edi 7ae: 5d pop %ebp 7af: 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; 7b0: 8b 08 mov (%eax),%ecx 7b2: 89 0a mov %ecx,(%edx) 7b4: eb e9 jmp 79f <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; 7b6: c7 05 e8 0a 00 00 ec movl $0xaec,0xae8 7bd: 0a 00 00 7c0: c7 05 ec 0a 00 00 ec movl $0xaec,0xaec 7c7: 0a 00 00 base.s.size = 0; 7ca: b8 ec 0a 00 00 mov $0xaec,%eax 7cf: c7 05 f0 0a 00 00 00 movl $0x0,0xaf0 7d6: 00 00 00 7d9: e9 3e ff ff ff jmp 71c <malloc+0x2c>
29.536657
68
0.407427
f56c498d2a3a15ecc04e1484a613d2326b1a7e0d
5,666
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_13869_1478.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_13869_1478.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_13869_1478.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 %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x73ed, %r8 dec %rdx movups (%r8), %xmm3 vpextrq $0, %xmm3, %r11 sub $32070, %rbp lea addresses_WC_ht+0xb8ed, %rsi lea addresses_normal_ht+0x1ea6d, %rdi nop nop add $3299, %rbp mov $30, %rcx rep movsw nop nop xor $58827, %r11 lea addresses_D_ht+0x13ed, %rdx nop nop nop nop xor %rcx, %rcx mov $0x6162636465666768, %r11 movq %r11, (%rdx) nop nop nop nop inc %rbp lea addresses_WC_ht+0x3d4d, %rdi nop nop nop xor %rsi, %rsi mov (%rdi), %r11d nop nop and %r8, %r8 lea addresses_WC_ht+0x16fed, %r11 nop nop and %rdi, %rdi mov $0x6162636465666768, %rcx movq %rcx, (%r11) nop and %rdx, %rdx lea addresses_D_ht+0xb38d, %rsi lea addresses_WC_ht+0xa9bd, %rdi clflush (%rdi) xor %r13, %r13 mov $72, %rcx rep movsq dec %rbp lea addresses_D_ht+0x1171d, %rcx clflush (%rcx) nop nop nop and $60541, %rdi movl $0x61626364, (%rcx) nop nop nop sub %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %rax push %rbp push %rdi push %rdx // Faulty Load lea addresses_PSE+0x1f0ed, %rdi nop and $17651, %r13 movups (%rdi), %xmm2 vpextrq $1, %xmm2, %r10 lea oracles, %r13 and $0xff, %r10 shlq $12, %r10 mov (%r13,%r10,1), %r10 pop %rdx pop %rdi pop %rbp pop %rax pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': True, 'NT': True, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'33': 13869} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
44.265625
2,999
0.659901
5092c8552f60775b5729758c19c5a52bb2c7cef9
6,476
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2586.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_2586.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_2586.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x18a59, %r8 xor $56472, %r9 mov $0x6162636465666768, %r10 movq %r10, (%r8) nop nop nop cmp $43773, %r10 lea addresses_WC_ht+0x181f5, %rbx nop nop nop nop nop cmp %r14, %r14 movb $0x61, (%rbx) and %rbp, %rbp lea addresses_normal_ht+0x9f59, %rsi lea addresses_A_ht+0xdb79, %rdi nop nop nop nop sub %rbx, %rbx mov $37, %rcx rep movsb sub %rsi, %rsi lea addresses_WT_ht+0x1a6cd, %rsi lea addresses_WC_ht+0x32d9, %rdi nop nop nop nop and %r8, %r8 mov $76, %rcx rep movsb nop nop nop nop nop dec %rdi lea addresses_normal_ht+0x8759, %rsi lea addresses_A_ht+0x12559, %rdi nop cmp %r14, %r14 mov $116, %rcx rep movsb nop nop nop nop and $56670, %rdi lea addresses_UC_ht+0x10585, %r14 nop nop cmp %r9, %r9 movups (%r14), %xmm4 vpextrq $1, %xmm4, %r8 nop nop nop cmp $40091, %rsi lea addresses_WC_ht+0x9359, %r8 clflush (%r8) nop nop nop nop and $46224, %rbp movups (%r8), %xmm1 vpextrq $1, %xmm1, %rsi xor %rsi, %rsi lea addresses_WC_ht+0x1cd59, %rbp nop nop nop sub $30288, %rbx movb (%rbp), %cl nop cmp %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %rax push %rbp push %rdx // Store lea addresses_PSE+0x759, %r12 and %rax, %rax movw $0x5152, (%r12) nop cmp %rbp, %rbp // Store lea addresses_WC+0x2320, %rax nop nop nop nop nop sub %r10, %r10 movb $0x51, (%rax) cmp %r15, %r15 // Faulty Load lea addresses_normal+0x12b59, %r15 nop nop cmp $38459, %rdx movups (%r15), %xmm4 vpextrq $1, %xmm4, %r10 lea oracles, %rbp and $0xff, %r10 shlq $12, %r10 mov (%rbp,%r10,1), %r10 pop %rdx pop %rbp pop %rax pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_normal', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
37.651163
2,999
0.656578
7ddabc4c6011047d0405731381ff267dec64578b
3,810
asm
Assembly
boot_image/bootloader/bootloader.asm
moneytech/lai_tools
89733e868830126cbcff0dc4124a3487bae9a09e
[ "MIT" ]
null
null
null
boot_image/bootloader/bootloader.asm
moneytech/lai_tools
89733e868830126cbcff0dc4124a3487bae9a09e
[ "MIT" ]
null
null
null
boot_image/bootloader/bootloader.asm
moneytech/lai_tools
89733e868830126cbcff0dc4124a3487bae9a09e
[ "MIT" ]
null
null
null
org 0x7c00 bits 16 cli jmp 0x0000:initialise_cs initialise_cs: xor ax, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov sp, 0x7c00 sti ; load rest of bootloader mov eax, 1 mov ebx, 0x7e00 mov ecx, 1 call read_sectors jc err mov si, LoadingMsg call simple_print ; ***** A20 ***** mov si, A20Msg call simple_print call enable_a20 jc err mov si, DoneMsg call simple_print ; ***** Unreal Mode ***** mov si, UnrealMsg call simple_print lgdt [gdt_ptr] ; enter unreal mode cli mov eax, cr0 or eax, 00000001b mov cr0, eax mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov eax, cr0 and eax, 11111110b mov cr0, eax xor ax, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax sti mov si, DoneMsg call simple_print ; ***** Kernel ***** ; Load the kernel at 0x100000 (1 MiB) mov si, KernelMsg call simple_print mov eax, 2 mov ebx, 0x100000 mov ecx, 510 call read_sectors jc err mov si, DoneMsg call simple_print ; 80x50 text mode pusha mov ax, 0x1112 xor bx, bx int 0x10 popa call get_e820 call flush_irqs ; enter pmode cli mov eax, cr0 or eax, 00000001b mov cr0, eax jmp 0x18:pmode bits 32 pmode: mov ax, 0x20 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov esp, 0xeffff0 jmp 0x100000 ; jump to kernel bits 16 err: mov si, ErrMsg call simple_print halt: hlt jmp halt ErrMsg db 0x0d, 0x0a, 'Err system halted', 0 %include 'includes/disk.inc' %include 'includes/simple_print.inc' ; Add a fake MBR because some motherboards won't boot otherwise times 0x1b8-($-$$) db 0 mbr: .signature: dd 0xdeadbeef times 2 db 0 .p1: db 0x80 ; status (active) db 0x20, 0x21, 0x00 ; CHS start db 0x83 ; partition type (Linux) db 0xb6, 0x25, 0x51 ; CHS end dd disk_start/512 ; LBA start dd disk_size/512 ; size in sectors .p2: db 0x00 ; status (invalid) times 3 db 0 ; CHS start db 0x00 ; partition type times 3 db 0 ; CHS end dd 00 ; LBA start dd 00 ; size in sectors .p3: db 0x00 ; status (invalid) times 3 db 0 ; CHS start db 0x00 ; partition type times 3 db 0 ; CHS end dd 00 ; LBA start dd 00 ; size in sectors .p4: db 0x00 ; status (invalid) times 3 db 0 ; CHS start db 0x00 ; partition type times 3 db 0 ; CHS end dd 00 ; LBA start dd 00 ; size in sectors times 510-($-$$) db 0x00 dw 0xaa55 ; start of LBA sector 1 ; grab e820 and put it at 0x500 get_e820: pushad xor ebx, ebx mov edi, 0x500 .loop: mov eax, 0xe820 mov ecx, 24 mov edx, 0x534d4150 push edi int 0x15 pop edi jc .done add edi, 24 test ebx, ebx jz .done jmp .loop .done: xor al, al mov cx, 24 rep stosb popad ret flush_irqs: pusha cli mov al, 0xff out 0x21, al out 0xa1, al sti xor al, al mov cx, 0x1000 .loop: out 0x80, al loop .loop popa ret %include 'includes/a20_enabler.inc' %include 'includes/gdt.inc' LoadingMsg db 0x0d, 0x0a, 'Loading...', 0x0d, 0x0a, 0x0a, 0 A20Msg db 'Enabling A20 line...', 0 UnrealMsg db 'Entering Unreal Mode...', 0 KernelMsg db 'Loading kernel...', 0 DoneMsg db ' DONE', 0x0d, 0x0a, 0 times 1024-($-$$) db 0 ; start of LBA sector 2 incbin '../kernel/kernel.bin' ; bootloader is 256kb / 512 sectors times (512*512)-($-$$) db 0x00 ; padding for partition alignment times (2048*512)-($-$$) db 0x00 ; start of primary partition disk_start equ ($ - $$) disk_size equ (disk_end - disk_start) times (4096*512)-($-$$) db 0x00 disk_end equ ($ - $$)
15.487805
63
0.604199
55761b3343328b991165f61ceb19188cc0d85715
269
asm
Assembly
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshr_saddrpright_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshr_saddrpright_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/ts2068/display/c/sdcc/tshr_saddrpright_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *tshr_saddrpright(void *saddr, uchar bitmask) SECTION code_clib SECTION code_arch PUBLIC _tshr_saddrpright_callee EXTERN asm_tshr_saddrpright _tshr_saddrpright_callee: pop af pop hl dec sp pop de push af ld e,d jp asm_tshr_saddrpright
13.45
52
0.762082
ed3069dbc8458c458321452d70b509c5c550ed85
1,948
asm
Assembly
programs/oeis/016/A016832.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016832.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016832.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016832: a(n) = (4*n + 2)^8. ; 256,1679616,100000000,1475789056,11019960576,54875873536,208827064576,656100000000,1785793904896,4347792138496,9682651996416,20047612231936,39062500000000,72301961339136,128063081718016,218340105584896,360040606269696,576480100000000,899194740203776,1370114370683136,2044140858654976,2992179271065856,4304672100000000,6095689385410816,8507630225817856,11716593810022656,15938480745308416,21435888100000000,28525864220672256,37588592026706176,49077072127303936,63527879748485376,81573072100000000,103953325454500096,131532383853732096,165312903998914816,206453783524884736,256289062500000000,316348490636206336,388379855336079616,474373168346071296,576586811427594496,697575744100000000,840221879151902976,1007766734259732736,1203846470694789376,1432529432742502656,1698356304100000000,2006383000160502016,2362226417735475456,2772113166407885056,3242931408352297216,3782285936100000000,4398556620369715456,5100960362726891776,5899616690476974336,6805617133840466176,7831098528100000000,8989320386052055296,10294746488738365696,11763130845074473216,13411608173635297536,15258789062500000000,17324859965700833536,19631688197463081216,22202932088065597696,25064156467793879296,28242953648100000000,31769070071726162176,35674538806191022336,39993818057680363776,44763935885026099456,50024641296100000000,55818561911590953216,62191368383776973056,69191945760545587456,76872571987558646016,85289103744100000000,94501169810786918656,104572372169968517376,115570495042276884736,127567722065439006976,140640861824100000000,154871581942050570496,170346651950894039296,187158195151830671616,205403949689879470336,225187539062500000000,246618752287219220736,269813833955510722816,294895784402816164096,321994670227241124096,351247945392100000000,382800783150126981376,416806419029812551936,453426505126967378176,492831475947257856256,535200926048100000000,580723999730940764416,629599793037598310656 mul $0,4 add $0,2 pow $0,8
278.285714
1,888
0.931725
9e55e43d53988f2502b5231e93702c0e15f87598
8,356
asm
Assembly
src/forbes.asm
menshiva/forbes
e5af650b64a6d56a8814c1a3c882009b7a75c6c0
[ "Apache-2.0" ]
null
null
null
src/forbes.asm
menshiva/forbes
e5af650b64a6d56a8814c1a3c882009b7a75c6c0
[ "Apache-2.0" ]
null
null
null
src/forbes.asm
menshiva/forbes
e5af650b64a6d56a8814c1a3c882009b7a75c6c0
[ "Apache-2.0" ]
null
null
null
;************************************************************************ ; ; Forbes ; ;************************************************************************ .cseg ;--------------------------------- ; Definition file for ATmega169 .include "m169def.inc" ;--------------------------------- ; Display workflow .org 0x1000 .include "utils\print.inc" .def displayChar = R16 ; Char to show on display .def displayCharPos = R17 ; Position of char on display .def seed = R18 ; Seed for random function .def randNum = R19 ; Random number .def pressedButton = R20 ; Pressed button id .def buttonLocker = R21 ; "Boolean" locker for preventing button signal on hold .def mode = R22 ; Gamemode .def lastChar = R23 ; Last char showed on display .def gameResult = R24 ; The result of the game .def tmp = R25 .org 0 RJMP start .org 0x100 ; 0 HARD, 1 EASY gamemode: .db 1 ; Read-only constant definition ;--------------------------------- ; Main logic start: ; Stack init LDI displayChar, 0xFF OUT SPL, displayChar LDI displayChar, 0x04 OUT SPH, displayChar ; Display init CALL displayInit ; Joystick init CALL init_joy ; Save gamemode to mode LDI R30, low(2 * gamemode) LDI R31, high(2 * gamemode) LPM mode, Z ; Print 'Start' on display CALL clearDisplay CALL print_start LDI buttonLocker, 1 ;--------------------------------- ; Waits for user to push center ; button to start a new game start_loop: INC seed ; Read center button status CALL read_joy CPI pressedButton, 1 ; If center button is pressed BRNE startCenterBtnNotPressed ; If buttonLocker == 0 then buttonLocker = 1 and break loop ; Else continue loop CPI buttonLocker, 0 BRNE start_loop INC buttonLocker RJMP endStartCheckButton ; If center button is not pressed startCenterBtnNotPressed: ; If buttonLocker == 1 then buttonLocker = 0 ; Else continue loop CPI buttonLocker, 1 BRNE start_loop DEC buttonLocker RJMP start_loop endStartCheckButton: CALL clearDisplay CALL forbes_diplay_init LDI displayCharPos, 6 ;--------------------------------- ; Rolling current slot roll_loop: INC seed CALL getRandFromSeed ; Store random number in randNum MOV displayChar, randNum CALL showChar ; Check if button is pressed and wait for delay ; Delay is longer when gamemode is 1 LDI R26, 0x10 CPI mode, 1 BRNE wait SUBI R26, -0xEF wait: ; Read center button status CALL read_joy CPI pressedButton, 1 ; If center button is pressed BRNE centerBtnNotPressed ; If buttonLocker == 0 then buttonLocker = 1 and displayCharPos -= 1 to set the next reel ; Else continue loop CPI buttonLocker, 0 BRNE endCheckButton INC buttonLocker ; Compare last char with current. ; If they are the same - set gameResult to 1 ; Else set gameResult to 0. ; And copy current char to lastChar CP displayChar, lastChar BRNE setZeroResult LDI gameResult, 1 RJMP endSetResult setZeroResult: LDI gameResult, 0 endSetResult: MOV lastChar, displayChar DEC displayCharPos ; If displayCharPos == 3 then break loop CPI displayCharPos, 3 BREQ printResult RJMP roll_loop ; If center button is not pressed centerBtnNotPressed: ; If buttonLocker == 1 then buttonLocker = 0 ; Else continue loop CPI buttonLocker, 1 BRNE endCheckButton DEC buttonLocker endCheckButton: DEC R26 BRNE wait RJMP roll_loop ;--------------------------------- ; Print game result ; ; If gameResult == 1 then blink_winner() ; else blink_loser() printResult: CPI gameResult, 1 BREQ win CALL blink_loser RJMP final_loop win: CALL blink_winner ;--------------------------------- ; Waits for user to push center button ; to accept game result final_loop: ; Read center button status CALL read_joy CPI pressedButton, 1 ; If center button is pressed BRNE finalCenterBtnNotPressed ; If buttonLocker == 0 then buttonLocker = 1 and goto start ; Else continue loop CPI buttonLocker, 0 BRNE start_loop INC buttonLocker RJMP start ; If center button is not pressed finalCenterBtnNotPressed: ; If buttonLocker == 1 then buttonLocker = 0 ; Else continue loop CPI buttonLocker, 1 BRNE final_loop DEC buttonLocker RJMP final_loop ;--------------------------------- ; Infinite loop end: RJMP end ;--------------------------------- ; Generate a random number getRandFromSeed: ADD randNum, seed SWAP seed CLC ; while (randNum > 15) randNum -= 16 normalizeRandomNumber: CPI randNum,16 BRLO finishNormalize SUBI randNum, 16 RJMP normalizeRandomNumber ; Convert randNum to char finishNormalize: SUBI randNum, -'0' ; If randNum is < ('9' + 1), then goto first_skip. ; Else randNum += ('A' - ('9' + 1)) (to get 'A', 'B', 'C', etc.) CPI randNum, 58 BRLO endConvertingChar SUBI randNum, -7 endConvertingChar: RET ;--------------------------------- ; Blink 'WINNER' 3 times blink_winner: LDI tmp, 0 blinkWin: CALL clearDisplay CALL waitHalfSec CALL print_winner CALL waitHalfSec INC tmp CPI tmp, 3 BRNE blinkWin RET ;--------------------------------- ; Blink 'LOSER' 3 times blink_loser: LDI tmp, 0 blinkLose: CALL clearDisplay CALL waitHalfSec CALL print_loser CALL waitHalfSec INC tmp CPI tmp, 3 BRNE blinkLose RET ;--------------------------------- ; Print 'START' on display print_start: LDI displayCharPos, 2 LDI displayChar, 'S' CALL showChar INC displayCharPos LDI displayChar, 'T' CALL showChar INC displayCharPos LDI displayChar, 'A' CALL showChar INC displayCharPos LDI displayChar, 'R' CALL showChar INC displayCharPos LDI displayChar, 'T' CALL showChar RET ;--------------------------------- ; Print 'WINNER' on display print_winner: LDI displayCharPos, 2 LDI displayChar, 'W' CALL showChar INC displayCharPos LDI displayChar, 'I' CALL showChar INC displayCharPos LDI displayChar, 'N' CALL showChar INC displayCharPos LDI displayChar, 'N' CALL showChar INC displayCharPos LDI displayChar, 'E' CALL showChar INC displayCharPos LDI displayChar, 'R' CALL showChar RET ;--------------------------------- ; Print 'LOSER' on display print_loser: LDI displayCharPos, 2 LDI displayChar, 'L' CALL showChar INC displayCharPos LDI displayChar, 'O' CALL showChar INC displayCharPos LDI displayChar, 'S' CALL showChar INC displayCharPos LDI displayChar, 'E' CALL showChar INC displayCharPos LDI displayChar, 'R' CALL showChar RET ;--------------------------------- ; Print reels initial values (0 0 0) forbes_diplay_init: LDI displayCharPos, 4 LDI displayChar, '0' CALL showChar INC displayCharPos LDI displayChar, '0' CALL showChar INC displayCharPos LDI displayChar, '0' CALL showChar RET ;--------------------------------- ; Clear display clearDisplay: LDI displayCharPos, 2 LDI displayChar, ' ' startClear: CALL showChar INC displayCharPos CPI displayCharPos, 8 BREQ endClear RJMP startClear endClear: RET ;--------------------------------- ; Joystick initialization init_joy: IN R17, DDRE ANDI R17, 0xF3 IN R16, PORTE ORI R16, 0xC OUT DDRE, R17 OUT PORTE, R16 LDI R16, 0x0 STS DIDR1, R16 IN R17, DDRB ANDI R17, 0x2F IN R16, PORTB ORI R16, 0xD0 OUT DDRB, R17 OUT PORTB, R16 RET ;--------------------------------- ; Store joystick pressed button in R20 read_joy: PUSH R16 PUSH R17 joy_reread: IN R16, PINB LDI pressedButton, 255 joy_wait: DEC pressedButton BRNE joy_wait IN R17, PINB ANDI R16, 0x10 ANDI R17, 0x10 CP R16, R17 BRNE joy_reread LDI R20, 0 CPI R16, 0 BRNE joy_no_enter LDI pressedButton, 1 joy_no_enter: POP R17 POP R16 RET ;--------------------------------- ; Sleep for 500 ms. ; ; CPU frequency = 2 MHz = 2*10^6 ticks. ; 2*10^6 ticks ~ 3 ticks * 10 * 255 * 255 instructions. waitHalfSec: LDI R28, 0xFF waitHalf2: LDI R27, 0xFF waitHalf: DEC R27 BRNE waitHalf DEC R28 BRNE waitHalf2 RET
21.48072
91
0.619315
dc463fdc4ba7282922c4c9b88fb8679dbc765d95
756
asm
Assembly
oeis/052/A052852.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/052/A052852.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/052/A052852.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A052852: Expansion of e.g.f.: (x/(1-x))*exp(x/(1-x)). ; Submitted by Jon Maiga ; 0,1,4,21,136,1045,9276,93289,1047376,12975561,175721140,2581284541,40864292184,693347907421,12548540320876,241253367679185,4909234733857696,105394372192969489,2380337795595885156,56410454014314490981,1399496554158060983080,36271084122927079387941,980149217579244660514204,27567930377271475039277881,805741871227189621133838576,24435533594428382909107147225,767864819264509587686056384276,24970715064044359271399720374029,839354455161921139362935293192696,29130488504244692773544265952311661 mov $3,$0 mov $4,1 lpb $3 mul $1,$3 add $1,$4 mul $1,$3 add $2,$1 cmp $4,0 add $5,$4 mov $6,$5 cmp $6,0 add $5,$6 div $1,$5 sub $3,1 div $4,$5 lpe mov $0,$2
34.363636
492
0.783069
7ef84b357a9cf567e6cf79404eee166638031add
2,200
asm
Assembly
tests/i8008.asm
dimitrit/uz80as
b4fd490c9ce89ac30c5b130d951a1ed4288233d0
[ "MIT" ]
8
2017-05-03T10:49:20.000Z
2022-02-03T02:55:21.000Z
tests/i8008.asm
vipoo/uz80as
7cf5c353a5c1ceeaf5ba7b502e220fb41e7d9fb0
[ "MIT" ]
1
2020-02-25T06:28:30.000Z
2020-03-30T17:09:50.000Z
tests/i8008.asm
vipoo/uz80as
7cf5c353a5c1ceeaf5ba7b502e220fb41e7d9fb0
[ "MIT" ]
2
2020-02-26T21:12:55.000Z
2022-02-02T17:51:03.000Z
; =========================================================================== ; uz80as, an assembler for the Zilog Z80 and several other microprocessors. ; ; Intel 8008. ; =========================================================================== #define equ .equ #define end .end n: equ 20h nn: equ 0584h dddd: equ 07h a16: equ $1234 hi8: equ $ff11 port: equ 3 imm8: equ 56h ;immediate data (8 bits) offset: equ 7 offset_neg: equ -7 ; 0x ; HLT ; HLT RLC RFC ADI n RST 0 LAI n RET INB DCB RRC RFZ ACI n RST 1 LBI n ; RET ; 1x INC DCC RAL RFS SUI n RST 2 LCI n ; RET IND DCD RAR RFP SBI n RST 3 LDI n ; RET ; 2x INE DCE ; 2 RTC NDI n RST 4 LEI n ; RET INH DCH ; A RTZ XRI n RST 5 LHI n ; RET ; 3x INL DCL ; 2 RTS ORI n RST 6 LLI n ; RET ; 8 ; 9 ; A RTP CPI n RST 7 LMI n ; RET ; 4x JFC a16 INP 0 CFC a16 INP 1 JMP a16 INP 2 CAL a16 INP 3 JFZ a16 INP 4 CFZ a16 INP 5 ; JMP a16 INP 6 ; CAL a16 INP 7 ; 5x JFS a16 OUT 8 CFS a16 OUT 9 ; JMP a16 OUT 10 ; CAL a16 OUT 11 JFP a16 OUT 12 CFP a16 OUT 13 ; JMP a16 OUT 14 ; CAL a16 OUT 15 ; 6x JTC a16 OUT 16 CTC a16 OUT 17 ; JMP a16 OUT 18 ; CAL a16 OUT 19 JTZ a16 OUT 20 CTZ a16 OUT 21 ; JMP a16 OUT 22 ; CAL a16 OUT 23 ; 7x JTS a16 OUT 24 CTS a16 OUT 25 ; JMP a16 OUT 26 ; CAL a16 OUT 27 JTP a16 OUT 28 CTP a16 OUT 29 ; JMP a16 OUT 30 ; CAL a16 OUT 31 ; 8x ADA ADB ADC ADD ADE ADH ADL ADM ACA ACB ACC ACD ACE ACH ACL ACM ; 9x SUA SUB SUC SUD SUE SUH SUL SUM SBA SBB SBC SBD SBE SBH SBL SBM ; Ax NDA NDB NDC NDD NDE NDH NDL NDM XRA XRB XRC XRD XRE XRH XRL XRM ; Bx ORA ORB ORC ORD ORE ORH ORL ORM CPA CPB CPC CPD CPE CPH CPL CPM ; Cx NOP LAB LAC LAD LAE LAH LAL LAM LBA LBB LBC LBD LBE LBH LBL LBM ; Dx LCA LCB LCC LCD LCE LCH LCL LCM LDA LDB LDC LDD LDE LDH LDL LDM ; Ex LEA LEB LEC LED LEE LEH LEL LEM LHA LHB LHC LHD LHE LHH LHL LHM ; Fx LLA LLB LLC LLD LLE LLH LLL LLM LMA LMB LMC LMD LME LMH LML HLT end
6.769231
77
0.53
613b2f7e7a6a15eff3ac7a3b15251dc5922e7cb8
580
asm
Assembly
oeis/062/A062561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/062/A062561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/062/A062561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A062561: a(n) = 3*binomial(2*n, n-1). ; 0,3,12,45,168,630,2376,9009,34320,131274,503880,1939938,7488432,28973100,112326480,436268025,1697168160,6611884290,25792489800,100734001830,393847225200,1541374822260,6037849200240,23671113341850,92873098607328,364645980108900,1432653539627856,5632217624196324,22154827947030240,87195072848669016,343348785188307360,1352651151648102537,5331270228196627008,21021276910812067890,82920292299272537928,327209976965266632510,1291658225672928977136,5100539280033013402404,20147660357718763959600 mov $1,$0 mul $0,2 sub $1,1 bin $0,$1 mul $0,3
64.444444
491
0.858621
533727b9367333786fd18ca4938e3b84969b84cd
848
asm
Assembly
libsrc/cpc/bios_msg.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/cpc/bios_msg.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/cpc/bios_msg.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Amstrad CPC library ; Show/hide error messages ; ; void bios_msg(int status) ; ; $Id: bios_msg.asm,v 1.4 2016-06-10 21:12:36 dom Exp $ ; SECTION code_clib PUBLIC bios_msg PUBLIC _bios_msg INCLUDE "target/cpc/def/cpcfirm.def" .bios_msg ._bios_msg push hl ld hl,cmd_biosmsg call firmware defw kl_find_command pop de ret nc ld (biosmsg_command),hl ; store address of function ld a,c ld (biosmsg_command+2),a ; store "rom select" of function ld a,e ; 0=enable, $FF=disable rst $18 ; KL FAR CALL defw biosmsg_command ret .biosmsg_command defw 0 defb 0 .cmd_biosmsg defb '1'+$80
18.844444
71
0.512972
cce54f2ecf56e7255e8473a14b089ab5326a849b
973
asm
Assembly
bench/vpermilpd.asm
dsprenkels/curve13318-haswell
8f281e2dd5938bf8b7f0e246c99491739cbd8090
[ "CC0-1.0" ]
1
2019-10-12T17:52:30.000Z
2019-10-12T17:52:30.000Z
bench/vpermilpd.asm
dsprenkels/curve13318-haswell
8f281e2dd5938bf8b7f0e246c99491739cbd8090
[ "CC0-1.0" ]
null
null
null
bench/vpermilpd.asm
dsprenkels/curve13318-haswell
8f281e2dd5938bf8b7f0e246c99491739cbd8090
[ "CC0-1.0" ]
null
null
null
; Benchmarks for some shuffling ops ; ; Author: Daan Sprenkels <hello@dsprenkels.com> %include "bench.asm" _bench1_name: db `vpermilpd_vpextrq\0` _bench2_name: db `vpermilpd_vpermilpd\0` align 8, db 0 _bench_fns_arr: dq vpermilpd_vpextrq, vpermilpd_vpermilpd _bench_names_arr: dq _bench1_name, _bench2_name _bench_fns: dq _bench_fns_arr _bench_names: dq _bench_names_arr _bench_fns_n: dd 2 section .bss align 32 scratch_space: resb 1536 section .text vpermilpd_vpextrq: bench_prologue %assign i 0 %rep 1000 vpextrq rax, xmm%[i], 1 vmovq r8, xmm%[i] add rax, r8 %assign i (i + 1) % 10 %endrep bench_epilogue ret vpermilpd_vpermilpd: bench_prologue vpxor ymm15, ymm15, ymm15 %assign i 0 %rep 1000 vpermilpd xmm15, xmm%[i], 0b11 vpaddq xmm%[i], xmm%[i], xmm15 vmovq qword [rel scratch_space], xmm%[i] %assign i (i + 1) % 10 %endrep bench_epilogue ret
19.078431
48
0.675231
ffbe0812244901aec83b027fbc3373a1db32541a
589
asm
Assembly
PRG/objects/5-5.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/5-5.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
PRG/objects/5-5.asm
narfman0/smb3_pp1
38a58adafff67a403591e38875e9fae943a5fe76
[ "Unlicense" ]
null
null
null
.byte $01 ; Unknown purpose .byte OBJ_BONUSCONTROLLER, $00, $1C .byte OBJ_PARATROOPAGREENHOP, $12, $15 .byte OBJ_PARATROOPAGREENHOP, $17, $15 .byte OBJ_PARAGOOMBAWITHMICROS, $14, $17 .byte OBJ_PARATROOPAGREENHOP, $2D, $16 .byte OBJ_VENUSFIRETRAP_CEIL, $30, $11 .byte OBJ_VENUSFIRETRAP, $37, $17 .byte OBJ_PARAGOOMBAWITHMICROS, $4E, $17 .byte OBJ_FIRECHOMP, $52, $13 .byte OBJ_REDPIRANHA, $54, $17 .byte OBJ_VENUSFIRETRAP_CEIL, $69, $10 .byte OBJ_PARATROOPAGREENHOP, $70, $15 .byte OBJ_PARAGOOMBAWITHMICROS, $78, $17 .byte OBJ_ENDLEVELCARD, $98, $15 .byte $FF ; Terminator
32.722222
41
0.731749
a29bf1f5cbc170ee2f4ae24fe9b35120b33f533e
104
asm
Assembly
MIPS/Pre/1.asm
JJLeo/BUAA-CO-2020
1d1a3797f7188530464a1dfbe8a017dd01bb817a
[ "MIT" ]
9
2021-03-04T07:22:24.000Z
2021-11-30T02:56:08.000Z
MIPS/Pre/1.asm
johnnyamazing/BUAA-CO-2020
1d1a3797f7188530464a1dfbe8a017dd01bb817a
[ "MIT" ]
null
null
null
MIPS/Pre/1.asm
johnnyamazing/BUAA-CO-2020
1d1a3797f7188530464a1dfbe8a017dd01bb817a
[ "MIT" ]
3
2021-09-28T07:41:35.000Z
2021-12-14T08:55:28.000Z
.data str: .asciiz "Hello World" .text la $a0,str li $v0,4 syscall li $v0,10 syscall
10.4
26
0.567308
de639d8ef495521db2582ff1cb8252ae7a19fe04
442
asm
Assembly
programs/oeis/007/A007318.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/007/A007318.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/007/A007318.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A007318: Pascal's triangle read by rows: C(n,k) = binomial(n,k) = n!/(k!*(n-k)!), 0 <= k <= n. ; 1,1,1,1,2,1,1,3,3,1,1,4,6,4,1,1,5,10,10,5,1,1,6,15,20,15,6,1,1,7,21,35,35,21,7,1,1,8,28,56,70,56,28,8,1,1,9,36,84,126,126,84,36,9,1,1,10,45,120,210,252,210,120,45,10,1,1,11,55,165,330,462,462,330,165,55,11,1,1,12,66,220,495,792,924,792,495,220,66,12,1,1,13,78,286,715,1287,1716,1716,1287 lpb $0 add $1,1 sub $0,$1 lpe bin $1,$0 mov $0,$1
44.2
289
0.604072
b998709c7aeffeca97f20b7592c20e0876dabdfe
789
asm
Assembly
zx81/xorshift_test.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
20
2016-06-22T10:04:48.000Z
2022-03-13T23:16:10.000Z
zx81/xorshift_test.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
null
null
null
zx81/xorshift_test.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
2
2016-12-19T02:31:06.000Z
2020-02-04T02:56:27.000Z
;; First, reset the RNG seed ld hl, 1 ld (rnd_x), hl ld (rnd_y), hl ;; Then print out 64 numbers from it ld b, 64 m_0: push bc call rnd call hexout_16 xor a, a rst $10 rst $10 rst $10 rst $10 pop bc djnz m_0 ret hexout_16: push hl ld a, h call hexout_8 pop hl ld a, l ;; Fall through hexout_8: push af rra rra rra rra call hexout_4 pop af ;; Fall through hexout_4: and 15 add 28 rst $10 ret INCLUDE "xorshift.asm"
18.785714
44
0.371356
77383d57ea9b559f07fdb6b28e00b4963a0a150a
844
asm
Assembly
programs/oeis/022/A022347.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022347.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022347.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A022347: Fibonacci sequence beginning 0, 13. ; 0,13,13,26,39,65,104,169,273,442,715,1157,1872,3029,4901,7930,12831,20761,33592,54353,87945,142298,230243,372541,602784,975325,1578109,2553434,4131543,6684977,10816520,17501497,28318017,45819514,74137531,119957045,194094576,314051621,508146197,822197818,1330344015,2152541833,3482885848,5635427681,9118313529,14753741210,23872054739,38625795949,62497850688,101123646637,163621497325,264745143962,428366641287,693111785249,1121478426536,1814590211785,2936068638321,4750658850106,7686727488427,12437386338533,20124113826960,32561500165493,52685613992453,85247114157946,137932728150399,223179842308345,361112570458744,584292412767089,945404983225833,1529697395992922,2475102379218755,4004799775211677,6479902154430432 mov $3,1 lpb $0,1 sub $0,1 mov $2,$1 mov $1,$3 add $3,$2 lpe mul $1,13
70.333333
716
0.849526
fd1d6afbcd40c2564fdb9902f1ea673737ac0d6b
190
asm
Assembly
_incObj/19.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
9
2021-01-15T13:47:53.000Z
2022-01-17T15:33:55.000Z
_incObj/19.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
7
2021-01-14T02:18:48.000Z
2021-03-24T15:44:30.000Z
_incObj/19.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
2
2021-01-14T13:14:26.000Z
2021-01-29T17:46:04.000Z
; --------------------------------------------------------------------------- ; Object 19 - blank ; --------------------------------------------------------------------------- Obj19: rts
31.666667
77
0.110526
11baf74fd4193c2d902f009208fe0615279a2d00
478
asm
Assembly
oeis/099/A099271.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/099/A099271.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/099/A099271.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A099271: Unsigned member r=-13 of the family of Chebyshev sequences S_r(n) defined in A092184. ; Submitted by Christian Krause ; 0,1,13,196,2925,43681,652288,9740641,145457325,2172119236,32436331213,484372848961,7233156403200,108012973199041,1612961441582413,24086408650537156,359683168316474925,5371161116096586721 mov $2,1 lpb $0 sub $0,1 mov $1,$2 mul $2,2 add $2,$1 mul $2,4 add $3,$4 add $4,$2 add $4,$1 mov $2,$4 add $2,$3 mov $3,$1 lpe mov $0,$3
23.9
188
0.715481
3c4ceed9416bc7993736bff9bc17817815eed203
375
asm
Assembly
oeis/141/A141752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/141/A141752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/141/A141752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A141752: a(n) = Sum_{k=0..n} ( Fibonacci(2*k-1) + (n-k)*Fibonacci(2*k) ). ; 1,2,5,14,39,106,283,748,1967,5160,13521,35412,92725,242774,635609,1664066,4356603,11405758,29860687,78176320,204668291,535828572,1402817445,3672623784,9615053929,25172538026,65902560173,172535142518 mov $2,1 lpb $0 sub $0,1 add $1,$2 add $3,$2 add $3,1 add $2,$3 lpe add $1,1 mov $0,$1
26.785714
200
0.690667
bd86ab56d35541541ac7c2e1fa2365f7922b6c16
2,501
asm
Assembly
programs/oeis/179/A179058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/179/A179058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/179/A179058.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A179058: Number of non-attacking placements of 3 rooks on an n X n board. ; 0,0,6,96,600,2400,7350,18816,42336,86400,163350,290400,490776,794976,1242150,1881600,2774400,3995136,5633766,7797600,10613400,14229600,18818646,24579456,31740000,40560000,51333750,64393056,80110296,98901600,121230150,147609600,178607616,214849536,257022150,305877600,362237400,426996576,501127926,585686400,681813600,790742400,913801686,1052421216,1208136600,1382594400,1577557350,1794909696,2036662656,2304960000,2602083750,2930460000,3292664856,3691430496,4129651350,4610390400,5136885600,5712556416,6341010486,7026050400,7771680600,8582114400,9461781126,10415333376,11447654400,12563865600,13769334150,15069680736,16470787416,17978805600,19600164150,21341577600,23210054496,25212905856,27357753750,29652540000,32105535000,34725346656,37520929446,40501593600,43677014400,47057241600,50652708966,54474243936,58533077400,62840853600,67409640150,72251938176,77380692576,82809302400,88551631350,94622018400,101035288536,107806763616,114952273350,122488166400,130431321600,138799159296,147609652806,156881340000,166633335000,176885340000,187657657206,198971200896,210847509600,223308758400,236377771350,250078034016,264433706136,279469634400,295211365350,311685158400,328917998976,346937611776,365772474150,385451829600,406005701400,427464906336,449861068566,473226633600,497594882400,522999945600,549476817846,577061372256,605790375000,635701500000,666833343750,699225440256,732918276096,767953305600,804372966150,842220693600,881540937816,922379178336,964781940150,1008796809600,1054472450400,1101858619776,1151006184726,1201967138400,1254794616600,1309542914400,1366267502886,1425025046016,1485873417600,1548871718400,1614080293350,1681560748896,1751375970456,1823590140000,1898268753750,1975478640000,2055287977056,2137766311296,2222984575350,2311015106400,2401931664600,2495809451616,2592725129286,2692756838400,2795984217600,2902488422400,3012352144326,3125659630176,3242496701400,3362950773600,3487110876150,3615067671936,3746913477216,3882742281600,4022649768150,4166733333600,4315092108696,4467826978656,4625040603750,4786837440000,4953323760000,5124607673856,5300799150246,5482010037600,5668354085400,5859946965600,6056906294166,6259351652736,6467404610400,6681188745600,6900829668150,7126455041376,7358194604376,7596180194400,7840545769350,8091427430400,8348963444736,8613294268416,8884562569350,9162913250400,9448493472600,9741452678496,10041942615606,10350117360000 add $0,1 mov $1,$0 bin $1,3 pow $1,2 mul $1,6
277.888889
2,377
0.902839
7d43795bc0554e779324b7db14921a391ddf1e1c
22,840
asm
Assembly
Assembly/portal_snake.asm
n0rel/self
f9f44af42aa652f9a72279e44ffd8d4387a4bdae
[ "MIT" ]
null
null
null
Assembly/portal_snake.asm
n0rel/self
f9f44af42aa652f9a72279e44ffd8d4387a4bdae
[ "MIT" ]
null
null
null
Assembly/portal_snake.asm
n0rel/self
f9f44af42aa652f9a72279e44ffd8d4387a4bdae
[ "MIT" ]
null
null
null
; Norel Glick's Portal Snake coded in 86x assembly. ; Project was made as the 30% of my Bagrut in Computer Science ; Teacher: Inon Barnea IDEAL MODEL small STACK 1000h DATASEG ; var for delay Clock equ es:6Ch ; score text endText db "YOU DIED$" endText2 db " Apples Eaten$" endText3 db "Press 1 to Exit Game$" ; score var score dw 0 ; displayedScore displayedScore dw 0 scoreDisplayed dw 0 ; X and Y for printing dots x dw 0 y dw 0 ; Color for printing dots color db 15 ; variable for storing the direction the snake is looking direction db 0 ; [0] -> North, [1] -> East, [2] -> South, [3] -> West ; variable for storing the snakes length snakeLength dw 1 ; array that will hold apple coords appleX dw 0 appleY dw 0 ; boolean to check if we continue looping infinitely or stop continue db 0 ; placeholders for code snakeHeadX dw 0 snakeHeadY dw 0 ; vars for the random number generator randX dw 0 randY dw 70 ; temp variables to store numbers for loops without using CX temp dw 0 headX dw 0 headY dw 0 ; collision boolean colliding db 1 ; bool to know what random to do randBool db 0 CODESEG ; -= [Random] Function =- proc random ;------------------------------------------------------------------------ ;""" ; Generates a number based on current clock time ; Taken from: Ori Shamir ;""" push ax push dx push cx ; RANDOM X VALUE mov ah, 2Ch int 21h ; dl = millisec ; dh = sec xor dl, dh xor ax, ax ; clear mov al, dl xor dx, dx cmp [randBool], 0 je randomX randomY: mov cx, 199 inc cx div cx ; here dx contains the remainder of the division - from 0 to 2 add dx, 31 mov [randY], dx mov [randBool], 0 jmp finishRandom randomX: mov cx, 299 inc cx div cx ; here dx contains the remainder of the division - from 0 to 2 add dx, 21 mov [randX], dx mov [randBool], 1 finishRandom: pop cx pop dx pop ax ;------------------------------------------------------------------------ ret endp random ; -= [Delay] function =- proc delay ;------------------------------------------------------------------------ ;""" ; Delay function creates a small delay. ; Taken from: Yanir Shmulevitz ;""" push ax mov ax, 40h mov es, ax mov ax, [Clock] FirstTick: cmp ax, [Clock] mov cx, 1 DelayLoop: mov ax, [Clock] Tick: cmp ax, [Clock] je Tick loop DelayLoop pop ax ;------------------------------------------------------------------------ ret endp delay ; -= [Round] function =- proc round ;------------------------------------------------------------------------ ;""" ; The round function will be executed in a loop, to act as the games core ; This function is what holds all other functions together. ; From here, we call all the collisions, inputs, delays and handle the snake ;""" ; Delay call delay ; Get input call random ; this will generate a random number call input ; Move call move ; Collision call appleCollision call borderCollision call snakeCollision ; Draw Screen call drawBorder call printScore call drawApple call drawSnake ;------------------------------------------------------------------------ ret endp round ; -= [Move] Function =- proc move ;------------------------------------------------------------------------ ;""" ; The Move function moves the snakes body. ; This will be achieved by going into the stack and switching the coords of each block untill we reach the head. ; The head will be moved in the direction the user is currently looking ;""" push ax push bx push cx push dx push bp mov bp, sp ; turn the last snake part into black (erase it) mov ax, [bp+14] ; y value of last part mov [y], ax mov ax, [bp+16] ; x value of last part mov [x], ax ; draw the black dot mov [color], 0 dec [y] dec [x] call drawSnakePart mov [color], 2 mov ax, [snakeLength] ; if the only part we have is the head, jump to MoveSnakeHead cmp ax, 1 je MoveSnakeHead dec ax mov cx, ax ; the loop counter will be the snakeLength-1 (length minus the head) MoveSnake: mov ax, [bp+18] ; get the y value of the second to last snake part mov bx, [bp+20] ; get the x value ; update the values of the part after mov [bp+14], ax ; set the y value mov [bp+16], bx ; set the x value add bp, 4; add 4 so that we jump to the next part loop MoveSnake MoveSnakeHead: ; reset bp mov bp, sp ;multiply snakeLength by 4 mov ax, [snakeLength] push cx mov cx, 4 mul cx pop cx add bp, ax ; add the answer of snakeLength*4 to bp sub bp, 2 ; delete 2 cmp [direction], 0 je moveN cmp [direction], 1 je moveE cmp [direction], 2 je moveS cmp [direction], 3 je moveW moveN: ; The North is up, so we decrease the Y value of the head by 1 mov ax, [bp+12] ; snake head's Y sub ax, 3 ;dec ax mov [bp+12], ax ; set it back jmp endMove moveE: ; The East is right, so we increase the X value of the head by 1 mov ax, [bp+14] ; snake head's X add ax, 3 ;inc ax mov [bp+14], ax ; set it back jmp endMove moveS: ; The South is down, so we increase the Y value of the head by 1 mov ax, [bp+12] ; snake head's Y add ax, 3 ;inc ax mov [bp+12], ax ; set it back jmp endMove moveW: ; The West is left, so we decrease the X value of the head by 1 mov ax, [bp+14] ; snake head's X sub ax, 3 ;dec ax mov [bp+14], ax ; set it back endMove: pop bp pop dx pop cx pop bx pop ax ;------------------------------------------------------------------------ ret endp move ; -= [Apple Collision] Function =- proc appleCollision ;------------------------------------------------------------------------ ;""" ; Uses the snakeAppleCollision function to check if a collision has occured ; If occured, we increase the score and snake length ; This function also spawns an apple if there is no apple currently ;""" ; check if apple is eaten push ax push bx ; CHECK IF APPLE EXISTS. IF IT DOESNT, SPAWN ONE IN cmp [appleX], 0 ; x coord is 0 jne appleExists cmp [appleY], 0 ; y coord is 0 je spawnApple ; if both x and y coords are 0, apple does not exist (eaten) jmp appleExists spawnApple: ; random coords (for now it will be [75, 75] mov ax, [randX] mov [appleX], ax mov ax, [randY] mov [appleY], ax call drawApple jmp notColliding appleExists: ; check if head is colliding with the apple coord ; apple head is (snakeLength)*2 + 8 in stack mov bp, sp ;multiply snakeLength by 2 mov ax, [snakeLength] push cx mov cx, 4 mul cx pop cx add bp, ax ; add the answer of snakeLength*2 to bp sub bp, 2 mov ax, [bp+6] ; snake head Y (middle) mov bx, [bp+8] ; snake head X (middle) dec ax dec bx mov [snakeHeadY], ax mov [snakeHeadX], bx call snakeAppleCollision cmp [colliding], 0 jne notColliding detectedCollision: ; delete apple coords mov [appleX], 0 mov [appleY], 0 ; increase score add [score], 1 ; add snake part mov bp, sp ; reset bp mov ax, [bp+6] ; last snake part Y mov bx, [bp+8] ; last snake part X ; depending on the direction of where the snake head is going, we need to add the part differently. ; to do this, we will check a few things with the last snake part and the one after it it cmp ax, [bp+10] ; compare the last snake part Y and second to last snake part Y je YisEqual ; the Y's are parralel ; else the X's are parralel ; if the X is parralel we have to check if the last part is greater or smaller cmp bx, [bp+12] ; compare last part X and second to last part X JC lastPartIsSmallerX ; if last part is smaller ; second to last part is smaller add bx, 3 jmp after lastPartIsSmallerX: sub bx, 3 jmp after YisEqual: cmp ax, [bp+10] ; compare last part Y and second to last part Y JC lastPartIsSmallerY add ax, 3 jmp after lastPartIsSmallerY: sub ax, 3 jmp after after: mov [snakeHeadX], bx mov [snakeHeadY], ax ; pop all things so that we can store the snake part pop bx pop ax pop cx ; pop procedure value into cx pop dx ; pop other procedure value into dx push [snakeHeadX] push [snakeHeadY] inc [snakeLength] push dx push cx jmp ecksdee notColliding: pop bx pop ax ecksdee: ;------------------------------------------------------------------------ ret endp appleCollision ; -= [Snake Collision] Function =- proc snakeCollision ;------------------------------------------------------------------------ ;""" ; Checks if the current snake head is colliding with any of the snakes body parts ;""" push ax push bx ; check if head is colliding with itself ; snake head is (snakeLength)*2 + 8 in stack mov bp, sp ;multiply snakeLength by 2 mov ax, [snakeLength] push cx mov cx, 4 mul cx pop cx add bp, ax ; add the answer of snakeLength*2 to bp sub bp, 2 mov ax, [bp+6] ; snake head Y mov bx, [bp+8] ; snake head X push cx mov cx, [snakeLength] dec cx mov bp, sp checkSnakeCollision: cmp [bp+10], ax ; compare snake part and snake head Y jne noSnakeCollisionYet cmp [bp+12], bx ; compare snake part and snake head X je snakeCollided noSnakeCollisionYet: add bp, 4 loop checkSnakeCollision jmp didNotSnakeCollide snakeCollided: mov [continue], 1 didNotSnakeCollide: pop cx pop bx pop ax ;------------------------------------------------------------------------ ret endp snakeCollision ; -= [Border Collision] Function =- proc borderCollision ;------------------------------------------------------------------------ ;""" ; Checks for collision with the play area border and teleports the snake head ; For example, if we collide with the northern border our head will teleport to the southern border, in the same X ;""" push ax push bx ; check if head is colliding with the apple coord ; snake head is (snakeLength)*2 + 8 in stack mov bp, sp ;multiply snakeLength by 2 mov ax, [snakeLength] push cx mov cx, 4 mul cx pop cx add bp, ax ; add the answer of snakeLength*2 to bp sub bp, 2 mov ax, [bp+6] ; snake head Y mov bx, [bp+8] ; snake head X ; northern border (20, 30) - (300, 30) cmp ax, 30 jle northernBorder ; eastern border (300, 30) - (300, 180) cmp bx, 300 jge easternBorder ; southern border (20, 180) - (200, 180) cmp ax, 179 jge southernBorder ; western border (20, 30) - (20, 180) cmp bx, 20 jle westernBorder jmp finishBorderCollide northernBorder: mov [word ptr bp+6], 177 ; set the Y of the head to the bottom of the play area jmp finishBorderCollide easternBorder: mov [word ptr bp+8], 22 ; set the X of the head to the left of the play area jmp finishBorderCollide southernBorder: mov [word ptr bp+6], 32 ; set the Y of the head to the top of the play area jmp finishBorderCollide westernBorder: mov [word ptr bp+8], 298 ; set the X of the head to the right of the play area finishBorderCollide: pop bx pop ax ;------------------------------------------------------------------------ ret endp borderCollision ; -= [Snake Apple Collision] Function =- proc snakeAppleCollision ;------------------------------------------------------------------------ ;""" ; Checks if the current snake head is colliding with the current apple ;""" push ax push bx mov ax, [snakeHeadY] mov bx, [snakeHeadX] collisionNorth: cmp ax, [appleY] jne collisionEast cmp bx, [appleX] je collisionFound inc bx cmp bx, [appleX] je collisionFound inc bx cmp bx, [appleX] je collisionFound ;jmp noCollision collisionEast: mov bx, [snakeHeadX] inc ax ;cmp bx, [appleX] ;jne noCollision cmp ax, [appleY] jne collisionSouth cmp bx, [appleX] je collisionFound inc bx cmp bx, [appleX] je collisionFound inc bx cmp bx, [appleX] je collisionFound ;jmp noCollision collisionSouth: ;add ax, 2 mov bx, [snakeHeadX] inc ax cmp ax, [appleY] jne noCollision cmp bx, [appleX] je collisionFound inc bx cmp bx, [appleX] je collisionFound inc bx cmp bx, [appleX] je collisionFound jmp noCollision noCollision: mov [colliding], 1 jmp finish collisionFound: mov [colliding], 0 finish: pop bx pop ax ;------------------------------------------------------------------------ ret endp snakeAppleCollision ; -= [Input] Function =- proc input ;------------------------------------------------------------------------ ;""" ; Checks for user input and changes direction ;""" in al, 64h cmp al, 10b in al, 60h cmp al, 11h ; Compare to W key je changeN cmp al, 1Eh ; Compare A key je changeW cmp al, 1Fh ; Compare S key je changeS cmp al, 20h ; Compare D key je changeE jmp finishedInput changeN: mov [direction], 0 ; change direction to north jmp finishedInput changeW: mov [direction], 3 ; change direction to west jmp finishedInput changeS: mov [direction], 2 ; change direction to south jmp finishedInput changeE: mov [direction], 1 ; change direction to east jmp finishedInput finishedInput: ;------------------------------------------------------------------------ ret endp input ; -= [Draw Apple] Function =- proc drawApple ;------------------------------------------------------------------------ ;""" ; Uses the [X] and [Y] variables to draw the apple (1 pixel) ;""" push ax push bx mov ax, [appleX] mov bx, [appleY] mov [x], ax mov [y], bx mov [color], 4 call drawDot pop bx pop ax ;------------------------------------------------------------------------ ret endp drawApple ; -= [Draw Snake] Function =- proc drawSnake ;------------------------------------------------------------------------ ;""" ; Draws the current snake part positions onto the screen ;""" push cx push ax push dx ; Since we pushed 3 things, the snake's position is pushed up by 6 ; change color to green mov [color], 2 mov cx, [snakeLength] mov bp, sp DrawPart: ; get the y value mov ax, [bp+10] mov [y], ax ; get the x value mov ax, [bp+12] mov [x], ax dec [x] dec [y] call drawSnakePart add bp, 4 loop DrawPart ; change color back to white mov [color], 15 pop dx pop ax pop cx ;------------------------------------------------------------------------ ret endp drawSnake ; -= [Draw Snake Part] Function =- proc drawSnakePart ;------------------------------------------------------------------------ ;""" ; Draws one snake part (3x3 cube) where [X] and [Y] are ;""" push ax push bx push dx mov dx, [x] mov ax, [x] add ax, 3 mov bx, [y] add bx, 3 draw_row: cmp [x], ax ; if x == AX: the row is finished. je finished_row ; else: we need to keep drawing call drawDot inc [x] jmp draw_row finished_row: ; compare and check if y == 50 cmp [y], bx je finished_square ; else mov [x], dx inc [y] jmp draw_row finished_square: mov [x], 0 mov [y], 0 pop dx pop bx pop ax ;------------------------------------------------------------------------ ret endp drawSnakePart ; -= [Print Score] Function =- proc printScore ;------------------------------------------------------------------------ ;""" ; Prints the current score (apples eaten) ;""" push ax push dx push cx push bx ; Set cursor position mov dh, 2 mov dl, 19 mov bh, 0 mov ah, 2 int 10h printTheScore: ; print current score (numbers) mov ax, [score] ; CODE TAKEN FROM: @sidon (stackoverflow) ; Link: https://stackoverflow.com/questions/4244624/print-integer-to-console-in-x86-assembly ; ------------------------------------------------------------------------------------------------- mov cx, 0 mov bx, 10 loophere: mov dx, 0 div bx ;divide by ten ; now ax <-- ax/10 ; dx <-- ax % 10 ; print dx ; this is one digit, which we have to convert to ASCII ; the print routine uses dx and ax, so let's push ax ; onto the stack. we clear dx at the beginning of the ; loop anyway, so we don't care if we much around with it push ax add dl, '0' ;convert dl to ascii pop ax ;restore ax push dx ;digits are in reversed order, must use stack inc cx ;remember how many digits we pushed to stack cmp ax, 0 ;if ax is zero, we can quit jnz loophere ;cx is already set mov ah, 2 ;2 is the function number of output char in the DOS Services. loophere2: pop dx ;restore digits from last to first int 21h ;calls DOS Services loop loophere2 ; ------------------------------------------------------------------------------------------------- pop bx pop cx pop dx pop ax ;------------------------------------------------------------------------ ret endp printScore ; -= [Draw Border] Function =- proc drawBorder ;------------------------------------------------------------------------ ;""" ; Draws the play area border ;""" mov [color], 15 ; Draw the left side mov cx, 150 mov [x], 20 mov [y], 30 DrawLeft: call drawDot inc [y] loop DrawLeft ; Draw the right side mov cx, 150 mov [x], 300 mov [y], 30 DrawRight: call drawDot inc [y] loop DrawRight ; Draw the top mov cx, 280 mov [x], 20 mov [y], 30 DrawTop: call drawDot inc [x] loop DrawTop ; Draw the bottom mov cx, 280 mov [x], 20 mov [y], 180 DrawBottom: call drawDot inc [x] loop DrawBottom ;------------------------------------------------------------------------ ret endp drawBorder ; -= [Print Game Over Screen] Function =- proc printGameOverScreen ;------------------------------------------------------------------------ ;""" ; When the player dies, we print the game over screen ;""" push dx push ax push bx push cx ; reset screen (draw a black cube all over the screen) ; code taken from @YonBruchim (Stack Overflow) ; https://stackoverflow.com/questions/23723904/how-to-draw-a-square-int-10h-using-loops ;=================================== mov cx, 0 ;col mov dx, 0 ;row mov al, 0 mov ah, 0ch ; put pixel colcount: inc cx int 10h cmp cx, 320 JNE colcount mov cx, 0 ; reset to start of col inc dx ;next row cmp dx, 200 JNE colcount ;=================================== ; move cursor to (15, 7) and print "YOU DIED" mov dh, 7 mov dl, 15 mov bh, 0 mov ah, 2 int 10h mov ah, 09 mov dx, offset endText ;"YOU DIED$" int 21h xor dx, dx xor bx, bx xor ax, ax ; more cursor to (12, 10) and print "X Apples Eaten" mov dh, 10 mov dl, 12 mov bh, 0 mov ah, 2 int 10h ; print current score (numbers) mov ax, [score] ; CODE TAKEN FROM: @sidon (stackoverflow) ; Link: https://stackoverflow.com/questions/4244624/print-integer-to-console-in-x86-assembly ;=================================================================================================== mov cx, 0 mov bx, 10 loophereSECOND: mov dx, 0 div bx ;divide by ten ; now ax <-- ax/10 ; dx <-- ax % 10 ; print dx ; this is one digit, which we have to convert to ASCII ; the print routine uses dx and ax, so let's push ax ; onto the stack. we clear dx at the beginning of the ; loop anyway, so we don't care if we much around with it push ax add dl, '0' ;convert dl to ascii pop ax ;restore ax push dx ;digits are in reversed order, must use stack inc cx ;remember how many digits we pushed to stack cmp ax, 0 ;if ax is zero, we can quit jnz loophereSECOND ;cx is already set mov ah, 2 ;2 is the function number of output char in the DOS Services. loophere2SECOND: pop dx ;restore digits from last to first int 21h ;calls DOS Services loop loophere2SECOND ;=================================================================================================== mov ah, 09 mov dx, offset endText2 ;" Apples Eaten$" int 21h xor dx, dx xor bx, bx xor ax, ax ; more cursor to (9, 17) and print "press 1 to exit" mov dh, 13 mov dl, 10 mov bh, 0 mov ah, 2 int 10h mov ah, 09 mov dx, offset endText3 int 21h ; wait for key waitForKey: in al, 64h cmp al, 10b je waitForKey in al, 60h cmp al, 2h ; Compare to 1 key jne waitForKey pop cx pop bx pop ax pop dx ;------------------------------------------------------------------------ ret endp printGameOverScreen ; -= [Draw Dot] Function =- proc drawDot ;------------------------------------------------------------------------ ;""" ; Draws one dot where [X] and [Y] are with the color [color] ;""" ; Push all the registers we use during the draw process push bx push cx push dx push ax ; draw the dot mov bh, 0h mov cx, [x] mov dx, [y] mov al, [color] mov ah, 0ch int 10h ; Pop all the registers we used pop ax pop dx pop cx pop bx ;------------------------------------------------------------------------ ret endp drawDot ; -= MAIN FUNCTION =- start: ;------------------------------------------------------------------------ ;""" ; The main function sets up the start of the game. ; We set the snake position, draw the border and score. ; Then, an infinite loop that continues to call the @round function runs. ; The loop constantly compares our [continue] variable to check if the player has lost ; If a loose occurs, we display the game over screen ;""" mov ax,@data mov ds,ax ; Go into graphic mode mov ax, 13h int 10h ; Set the snake body starting position by pushing into stack ; snake head mov ax, 160 push ax mov ax, 100 push ax ; Second snake part mov ax, 160 push ax mov ax, 101 push ax ; third part mov ax, 160 push ax mov ax, 102 push ax ; fourth part mov ax, 160 push ax mov ax, 103 push ax mov [snakeLength], 4 ; Draw border and score call drawBorder call printScore ; infinite loop RoundLoop: ; Call round proc call round ; check if lost cmp [continue], 0 je RoundLoop call printGameOverScreen ; exit graphic mode mov ah, 0 mov al, 2 int 10h ;------------------------------------------------------------------------ exit: mov ax,4c00h int 21h End start
18.985869
115
0.554947
137ad738871c86eed252e4c651506c67731b974a
2,436
asm
Assembly
src/tempo_song6.6502.asm
mrpopogod/nes-fun
80e6af809874f2de89bd52f05f04c451dc29b333
[ "MIT" ]
null
null
null
src/tempo_song6.6502.asm
mrpopogod/nes-fun
80e6af809874f2de89bd52f05f04c451dc29b333
[ "MIT" ]
null
null
null
src/tempo_song6.6502.asm
mrpopogod/nes-fun
80e6af809874f2de89bd52f05f04c451dc29b333
[ "MIT" ]
null
null
null
song6_header: .byte $04 ;4 streams .byte MUSIC_SQ1 ;which stream .byte $01 ;status byte (stream enabled) .byte SQUARE_1 ;which channel .byte $BC ;initial volume (C) and duty (10) .word song6_square1 ;pointer to stream .byte $60 ;tempo .byte MUSIC_SQ2 ;which stream .byte $00 ;this song wants a single clear tone for the melody, so no square 2 .byte MUSIC_TRI ;which stream .byte $01 ;status byte (stream enabled) .byte TRIANGLE ;which channel .byte $81 ;initial volume (on) .word song6_tri ;pointer to stream .byte $60 ;tempo .byte MUSIC_NOI ;which stream .byte $00 ;disabled. Our load routine will skip the ; rest of the reads if the status byte is 0. ; We are disabling Noise because we haven't covered it yet. ; note - in order to get individual notes our eighths need to be dotted sixteenths with thirtysecond rests song6_square1: .byte d_sixteenth, Fs4, thirtysecond, rest, d_sixteenth, Fs4, thirtysecond, rest, d_sixteenth, D4, thirtysecond, rest, d_sixteenth, B3, thirtysecond, rest .byte eighth, rest, d_sixteenth, B3, thirtysecond, rest, eighth, rest, d_sixteenth, E4, thirtysecond, rest .byte eighth, rest, d_sixteenth, E4, thirtysecond, rest, eighth, rest, d_sixteenth, E4, thirtysecond, rest .byte d_sixteenth, Gs4, thirtysecond, rest, d_sixteenth, Gs4, thirtysecond, rest, d_sixteenth, A4, thirtysecond, rest, d_sixteenth, B4, thirtysecond, rest .byte d_sixteenth, A4, thirtysecond, rest, d_sixteenth, A4, thirtysecond, rest, d_sixteenth, A4, thirtysecond, rest, d_sixteenth, E4, thirtysecond, rest .byte eighth, rest, d_sixteenth, D4, thirtysecond, rest, eighth, rest, d_sixteenth, Fs4, thirtysecond, rest .byte eighth, rest, d_sixteenth, Fs4, thirtysecond, rest, eighth, rest, d_sixteenth, Fs4, thirtysecond, rest .byte d_sixteenth, E4, thirtysecond, rest, d_sixteenth, E4, thirtysecond, rest, d_sixteenth, Fs4, thirtysecond, rest, d_sixteenth, E4, thirtysecond, rest .byte $FF song6_tri: .byte quarter, B2, B3, eighth, rest, B2, quarter, B3 .byte E3, E4, eighth, rest, E3, quarter, E4 .byte A2, A3, eighth, rest, A2, quarter, A3 .byte D3, D4, C3, Cs4 .byte $FF
54.133333
158
0.647783
bae97b3262bb89f2840054c7370839173dc92eb3
710
asm
Assembly
vocabulary/console/console.asm
paulscottrobson/m7
35cbda09c6025dd2875e8458957b402e64b25c8e
[ "MIT" ]
null
null
null
vocabulary/console/console.asm
paulscottrobson/m7
35cbda09c6025dd2875e8458957b402e64b25c8e
[ "MIT" ]
1
2019-03-03T21:10:46.000Z
2020-07-02T09:18:41.000Z
vocabulary/console/console.asm
paulscottrobson/m7
35cbda09c6025dd2875e8458957b402e64b25c8e
[ "MIT" ]
null
null
null
; ********************************************************************************* ; ********************************************************************************* ; ; File: con.raw.asm ; Purpose: con.raw words. ; Date : 5th January 2019 ; Author: paul@robsons.org.uk ; ; ********************************************************************************* ; ********************************************************************************* @word con.raw.setmode jp GFXMode @end @word con.raw.char! jp GFXWriteCharacter @end @word con.raw.hex! jp GFXWriteHexWord @end @word con.raw.inkey ex de,hl call IOScanKeyboard ; read keyboard ld l,a ld h,$00 ret @end
22.903226
83
0.330986
4273b0fb6f39514db10dbe0ca3083aa37607f629
8,227
asm
Assembly
Transynther/x86/_processed/NONE/_st_zr_/i9-9900K_12_0xa0_notsx.log_3009_929.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_zr_/i9-9900K_12_0xa0_notsx.log_3009_929.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_zr_/i9-9900K_12_0xa0_notsx.log_3009_929.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1e6ec, %r10 nop xor $35071, %r9 mov (%r10), %r14d nop nop nop cmp %rbx, %rbx lea addresses_D_ht+0x9ec, %rsi lea addresses_WT_ht+0xef2c, %rdi nop nop nop nop sub $5364, %rbx mov $35, %rcx rep movsl nop nop nop nop add $55163, %rdi lea addresses_UC_ht+0x46ec, %rdi nop nop nop add %rbx, %rbx mov (%rdi), %r14w nop nop cmp $17899, %rbx lea addresses_WC_ht+0x3fec, %r9 add $44856, %rcx movups (%r9), %xmm2 vpextrq $1, %xmm2, %rsi nop nop add %rsi, %rsi lea addresses_D_ht+0x134ec, %r14 nop and $28680, %rbx mov $0x6162636465666768, %rsi movq %rsi, (%r14) cmp %r10, %r10 lea addresses_WT_ht+0x17e52, %rsi nop nop nop add %rbx, %rbx mov (%rsi), %rcx nop xor $49952, %rbx lea addresses_A_ht+0x1b3ec, %rsi dec %rdi movw $0x6162, (%rsi) nop nop sub %rdi, %rdi lea addresses_A_ht+0xd16c, %rsi nop nop nop nop inc %rcx movups (%rsi), %xmm0 vpextrq $0, %xmm0, %r9 and %r14, %r14 lea addresses_WC_ht+0x3fec, %r10 nop nop nop nop xor $32890, %r9 mov (%r10), %ebx nop nop nop nop dec %r9 lea addresses_UC_ht+0x1afac, %rsi lea addresses_WC_ht+0x499c, %rdi and %r8, %r8 mov $122, %rcx rep movsw nop nop and $28949, %r9 lea addresses_WC_ht+0x1b940, %rdi xor $53458, %r10 mov $0x6162636465666768, %rbx movq %rbx, %xmm0 vmovups %ymm0, (%rdi) nop dec %r10 lea addresses_WC_ht+0x153ec, %rsi lea addresses_WC_ht+0xabec, %rdi nop nop nop nop and %r9, %r9 mov $102, %rcx rep movsb nop nop nop nop cmp $10820, %r10 lea addresses_WT_ht+0x64a2, %r9 clflush (%r9) nop nop nop inc %rdi mov $0x6162636465666768, %r8 movq %r8, (%r9) nop sub $58693, %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r8 push %r9 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_D+0x91ec, %r8 clflush (%r8) nop nop cmp $61041, %r9 mov $0x5152535455565758, %r13 movq %r13, %xmm5 vmovups %ymm5, (%r8) dec %rcx // Store lea addresses_A+0x53ec, %r10 nop inc %r11 mov $0x5152535455565758, %r8 movq %r8, %xmm7 movups %xmm7, (%r10) xor %rbp, %rbp // Load lea addresses_normal+0x1e9ec, %rbp nop nop nop nop nop cmp $61324, %r9 mov (%rbp), %ecx nop nop nop nop add %rbp, %rbp // REPMOV lea addresses_PSE+0x1b7d4, %rsi lea addresses_RW+0x15946, %rdi nop inc %r9 mov $89, %rcx rep movsw nop nop nop nop nop and %rsi, %rsi // Faulty Load lea addresses_A+0x1efec, %r13 nop xor %rsi, %rsi movups (%r13), %xmm3 vpextrq $1, %xmm3, %r8 lea oracles, %rdi and $0xff, %r8 shlq $12, %r8 mov (%rdi,%r8,1), %r8 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}} {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_PSE', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_RW', 'congruent': 1, 'same': False}} [Faulty Load] {'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 8}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}} {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 8, 'NT': False, 'same': False, 'congruent': 1}} {'00': 4, '33': 3005} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
33.173387
2,999
0.651878
5ff7b04e695afae76a55534be9c96060ede80b7c
15,531
asm
Assembly
snippets/runsnippet.asm
ped7g/ZXSpectrumNextMisc
0148cd8f0529bff4451f089fd7106ea06713e766
[ "MIT" ]
15
2019-04-06T20:38:41.000Z
2022-02-27T16:50:31.000Z
snippets/runsnippet.asm
ped7g/ZXSpectrumNextMisc
0148cd8f0529bff4451f089fd7106ea06713e766
[ "MIT" ]
7
2020-05-01T08:14:54.000Z
2022-03-30T19:54:34.000Z
snippets/runsnippet.asm
ped7g/ZXSpectrumNextMisc
0148cd8f0529bff4451f089fd7106ea06713e766
[ "MIT" ]
1
2020-08-23T17:36:20.000Z
2020-08-23T17:36:20.000Z
; ZX Spectrum Next - assembly snippets, requires ZX Spectrum Next with core3.1.5+ ; © Peter Helcmanovsky 2020, license: https://opensource.org/licenses/MIT ; ; Assembles with sjasmplus - https://github.com/z00m128/sjasmplus (v1.18.2+) ; The Makefile has the full-rebuild instructions ; ; runsnippet.asm: including all snippets into one file, shows addresses for debugging ; purposes and after keypress it runs some of the snippets DEFINE _INCLUDE_COMPARISONS_TESTS_ ; addd rigorous tests: error turns screen red DEFINE _INCLUDE_DIV_10_TESTS_ ; addd rigorous tests: error turns screen red DEFINE _INCLUDE_MOD_320_TESTS_ ; addd rigorous tests: error turns screen red DEFINE _INCLUDE_MOD_192_TESTS_ ; addd rigorous tests: error turns screen red DEFINE _INCLUDE_MOD_40_TESTS_ ; addd rigorous tests: error turns screen red DEFINE _INCLUDE_BIT_FUN_TESTS_ ; addd rigorous tests: error turns screen red DEFINE _INCLUDE_MUL_TESTS_ ; addd partial tests: error turns screen red OPT reset --zxnext --syntax=abfw DEVICE ZXSPECTRUMNEXT INCLUDE "constants.i.asm" ;; include various snippets to the $8000 (16ki Bank2) ORG $8000 INCLUDE "findVLinesCount.i.asm" INCLUDE "comparisons.i.asm" IFDEF _INCLUDE_COMPARISONS_TESTS_ : INCLUDE "comparisons.test.i.asm" : ENDIF INCLUDE "strings5bPacked.i.asm" INCLUDE "detectZ80N.i.asm" INCLUDE "div10.i.asm" IFDEF _INCLUDE_DIV_10_TESTS_ : INCLUDE "div10.test.i.asm" : ENDIF INCLUDE "mod320.i.asm" IFDEF _INCLUDE_MOD_320_TESTS_ : INCLUDE "mod320.test.i.asm" : ENDIF INCLUDE "mod192.i.asm" IFDEF _INCLUDE_MOD_192_TESTS_ : INCLUDE "mod192.test.i.asm" : ENDIF INCLUDE "mod40.i.asm" IFDEF _INCLUDE_MOD_40_TESTS_ : INCLUDE "mod40.test.i.asm" : ENDIF INCLUDE "bit_fun.i.asm" IFDEF _INCLUDE_BIT_FUN_TESTS_ : INCLUDE "bit_fun.test.i.asm" : ENDIF INCLUDE "mul.i.asm" IFDEF _INCLUDE_MUL_TESTS_ : INCLUDE "mul.test.i.asm" : ENDIF ASSERT $ <= $C000 ;; main "test" code displaying snippet addresses and waiting for some key to run few ORG $C000 tile_fnt EQU $4000 ; font is ZX classic "ch8" file, starting at $4100 with space character tile_map EQU $4400 ; leave $400 for font (map is $A00 bytes long 80x32 up to $4E00) test_start: ;; init tilemode, copy font data, print texts nextreg TURBO_CONTROL_NR_07,3 ; force 28MHz nextreg SPRITE_CONTROL_NR_15,0 ; SLU layers, everything default nextreg ULA_CONTROL_NR_68,$80 ,, DISPLAY_CONTROL_NR_69,0 ; ULA off, Layer2 off ; tilemode 80x32x1bpp, no-attribute, first palette, tilemap-over-ULA, 512tileId nextreg TILEMAP_CONTROL_NR_6B,%1110'1011 ,, TILEMAP_DEFAULT_ATTR_NR_6C,0 nextreg TILEMAP_BASE_ADR_NR_6E,high tile_map ,, TILEMAP_GFX_ADR_NR_6F,high tile_fnt nextreg GLOBAL_TRANSPARENCY_NR_14,$E3 ; default "pink" as key-color nextreg TRANSPARENCY_FALLBACK_COL_NR_4A,%000'001'00 ; dark green for fallback/border ; reset clip window to [0,0]->[159,255] nextreg CLIP_WINDOW_CONTROL_NR_1C,$08 nextreg CLIP_TILEMAP_NR_1B,0 ,, CLIP_TILEMAP_NR_1B,159 nextreg CLIP_TILEMAP_NR_1B,0 ,, CLIP_TILEMAP_NR_1B,255 ; reset tilemap scrolling nextreg TILEMAP_XOFFSET_MSB_NR_2F,0 ,, TILEMAP_XOFFSET_LSB_NR_30,0 ,, TILEMAP_YOFFSET_NR_31,0 ; setup first tilemap palette for "text 1bpp" mode with two variants (green/red background) nextreg PALETTE_CONTROL_NR_43,%0'011'0000 ,, PALETTE_INDEX_NR_40,0 nextreg PALETTE_VALUE_NR_41,%000'010'00 ,, PALETTE_VALUE_NR_41,%110'110'11 ; dark green + white nextreg PALETTE_VALUE_NR_41,%010'000'00 ,, PALETTE_VALUE_NR_41,%110'110'11 ; dark red + white .refresh_screen: ; copy font data ld hl,font_data ld de,tile_fnt+$100 ld bc,8*(128-32) + 1 ; copy full font + one space after the font data ldir ; fill screen with space char (here: DE=tile_map+1, [tile_map]==' ') ld hl,tile_map ld bc,80*32-1 ldir ; print texts ld hl,test_texts .texts_loop: xor a or (hl) jr z,.texts_done inc hl ld c,a ldi a,(hl) ; fake ld a,(hl) : inc hl ldi e,(hl) ; fake ld e,(hl) : inc hl ld d,80 mul de add de,tile_map add de,a ldir jr .texts_loop .texts_done: ;; wait for any key call test_wait_for_key ;; run through all the reasonable snippets here .run_selection_of_snippets: ; snippet findVLinesCount from findVLinesCount.i.asm call findVLinesCount ld de,test_findVLinesCount.v call test_HL_to_hex_at_de ; snippet Comparison Examples from comparisons.i.asm call comparisons.run IFDEF _INCLUDE_COMPARISONS_TESTS_ : call comparisons.test : ENDIF ; snippet 5-bit packed strings ld de,str5b.example_Packed ld hl,str5b.example_Unpacked ld b,str5b.numOfExampleStrings .decodeStrings: call str5b.decode djnz .decodeStrings ; snippet detectZ80N call detectZ80N nextreg TILEMAP_DEFAULT_ATTR_NR_6C,a ; will ruin the screen output if A was not zero ; snippets for "E div 10" ; variant "A", 9 bytes, 40T, returns result as 8.5 fixed point in DE, modifies B,DE ld e,69 call div10.eDiv10A ; variant "B", 14 bytes, 60T, returns result as 8.8 fixed point in DE, modifies A,DE ld e,69 call div10.eDiv10B ; variant "C", 7 bytes, 33T, returns 8bit result in D for E=0..127, modifies F,DE ld e,69 call div10.eDiv10C ; rigorous tests doing 0..255/0..255/0..127 for all three variants IFDEF _INCLUDE_DIV_10_TESTS_ : call div10.test : ENDIF ; snippet for "HL mod 320" ld hl,1234 ; expected result for 1234: HL = 274 ($0112) call mod320.hlMod320 ld hl,2345 ; expected result for 2345: HL = 105 ($0069) call mod320.hlMod320_unrolled ld de,3456 ; expected result for 3456: DE = 256 ($0100) call mod320.deMod320_lut ; rigorous tests doing full HL=0..65535 IFDEF _INCLUDE_MOD_320_TESTS_ : call mod320.test : ENDIF ; snippet for "HL mod 192" ld hl,1234 ; expected result for 1234: HL = 82 ($0052) call mod192.hlMod192 ld hl,2345 ; expected result for 2345: HL = 41 ($0029) call mod192.hlMod192_lut ld hl,3456 ; expected result for 3456: A = 0 ($00) call mod192.hlMod192_lut_B ; rigorous tests doing full HL=0..65535 IFDEF _INCLUDE_MOD_192_TESTS_ : call mod192.test : ENDIF ; snippet for "HL mod 40" ld hl,1298 ; expected result for 1298: A = 18 ($0012) call mod40.hlMod40 ; rigorous tests doing full HL=0..65535 IFDEF _INCLUDE_MOD_40_TESTS_ : call mod40.test : ENDIF ; snippet for "bit fun - rotate nibbles right" ld a,$3c call bit_fun.nibrrca_z80n ; rigorous tests doing full A=0..255 IFDEF _INCLUDE_BIT_FUN_TESTS_ : call bit_fun.test : ENDIF ; example values for multiplication snippets .mul_A = $FF11FF .mul_B = $FF ; snippet for "multiplication - 16x8 bits" ld e,high .mul_A ld l,low .mul_A ld a,low .mul_B call mul.mul_16_8_24_HLE ; HLE = A * EL ; subtract expected result from HLE to visually check correctness (HLDE should end zeroed) ld d,0 add hl,-((((.mul_A&$FFFF) * .mul_B)>>8)&$FFFF) add de,-(low ((.mul_A&$FFFF) * .mul_B)) ; snippet for "multiplication - 24x8 bits" ld hl,$FFFF&(.mul_A>>8) ld e,low .mul_A ld a,low .mul_B call mul.mul_24_8_32_DELC ; DELC = A * HLE ld b,l ; result = DEBC ; subtract expected result from DEBC to visually check correctness (DEBC should end zeroed) add bc,-((.mul_A * .mul_B)&$FFFF) add de,-(((.mul_A * .mul_B)>>16)&$FFFF) ; snippet for "multiplication - 32x8 + 8 bits" ; DEHLB = D + C * EHLB ld d,$0A ld c,$AA ld e,$13 ld hl,$579B ld b,$DF call mul.muladd_32_8_8_40_DEHLB ; $0A + $AA * $13579BDF ; expected DEHLB == $0CD82D8220, C preserved as $AA add de,-$0CD8 add hl,-$2D82 add bc,-$20AA ; DE,HL,BC should end zeroed here ; snippet for "multiplication - 32x8 + 8 bits", performance variant ; DEHLB = A + C * HLBE ld a,$0A ld c,$AA ld hl,$1357 ld b,$9B ld e,$DF call mul.muladd_32_8_8_40_DEHLB_perf ; $0A + $AA * $13579BDF ; expected DEHLB == $0CD82D8220, C preserved as $AA add de,-$0CD8 add hl,-$2D82 add bc,-$20AA ; DE,HL,BC should end zeroed here ; snippet for "multiplication - 16x16 = 16 bits" ; AE = HL * DC ld hl,$1357 ld d,$FD ld c,$B9 call mul.mul_16_16_16_AE ; $1357 * $FDB9 ; expected AE == $F4DF ld d,a add de,-$F4DF ; DE should end zeroed here ; snippet for "multiplication - 16x16 = 32 bits" ; DELC = HL * BC ld hl,$1357 ld bc,$FDB9 call mul.mul_16_16_32_DELC ; $1357 * $FDB9 ; expected DELC == $132AF4DF ld b,l ; move result to DEBC add de,-$132A add bc,-$F4DF ; DEBC should end zeroed here ; snippet for "multiplication - signed 8x8 = 16 bits" ; AE = E * D ld de,$AABA call mul.muls_8_8_16_AE ; -86 * -70 ($AA * $BA) ; expected AE == $1784 (+6020) ld d,a ; move result to DE add de,-$1784 ; DE should end zeroed here ; snippet for "multiplication - signed 16x8 = 16 bits" ; AL = DE * L .muls_x: equ $5F7D .muls_y: equ -$64 .muls_r: equ .muls_x*.muls_y ld de,.muls_x ld l,.muls_y call mul.muls_16_8_16_AL ld h,a ; move result to HL add hl,-(.muls_r&$FFFF) ; if result is as expected, HL should end zeroed here ; snippet for "multiplication - signed 16x8 = 24 bits" ; HLE = DE * A ld de,.muls_x ld a,.muls_y call mul.muls_16_8_24_HLE add hl,-(.muls_r>>8) ld a,e sub low(.muls_r) ; if result is as expected, HLA should end zeroed here ; partial tests multiplying some hand-picked values IFDEF _INCLUDE_MUL_TESTS_ : call mul.test : ENDIF ;; refresh screen and snippets texts and wait again for key jp .refresh_screen test_wait_for_key: ld l,$1F ; wait for press call .read_keys xor l ld l,a ; wait for release .read_keys: xor a in a,(ULA_P_FE) xor l and $1F jr z,.read_keys ret test_A_to_hex_at_hl: push af swapnib call .nibble pop af .nibble: and $0F cp 10 sbc a,$69 daa ld (hl),a inc hl ret test_HL_to_hex_at_de: ex de,hl ld a,d call test_A_to_hex_at_hl ld a,e call test_A_to_hex_at_hl ex de,hl ret font_data: INCBIN "Envious Bold.ch8" ; "Envious" font by DamienG https://damieng.com/zx-origins DB ' ' ; add single space char after font data for clear screen DEFARRAY test_hex_digits '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' test_txt_hexadr MACRO imm16?, name? .adr = imm16? ; ok DB '$', test_hex_digits[(.adr>>12)&$F], test_hex_digits[(.adr>>8)&$F] DB test_hex_digits[(.adr>>4)&$F], test_hex_digits[.adr&$F], ' ' DB name? ENDM test_texts: test_t0: DB .e-.s, 10, 2 .s: DB "This is runsnippet.nex including all snippets for debugging." .e: test_t1: DB .e-.s, 5, 4 .s: DB "Enter your debugger and jump to particular snippet address yourself" .e: test_t2: DB .e-.s, 4, 5 .s: DB "or press a key to run some snippets (fixed selection, some output)." .e: test_t3: DB .e-.s, 5, 7 .s: DB "Code snippets:" .e: test_findVLinesCount: DB .e-.s, 4, 9 .s: test_txt_hexadr findVLinesCount, "findVLinesCount [$" .v: DB "????]" .e: test_Comparison: DB .e-.s, 40, 9 .s: test_txt_hexadr comparisons.run, "Comparison examples" .e: test_5bDecode: DB .e-.s, 4, 10 .s: test_txt_hexadr str5b.decode, "19B 5b-packed-string decode" .e: test_detectZ80N: DB .e-.s, 40, 10 .s: test_txt_hexadr detectZ80N, "Detect Z80N CPU" .e: test_div10A: DB .e-.s, 4, 11 .s: test_txt_hexadr div10.eDiv10A, "a) E-Div-10: 9B (FixPt 8.5)" .e: test_div10B: DB .e-.s, 4, 12 .s: test_txt_hexadr div10.eDiv10B, "b) E-Div-10: 14B (FixPt 8.8)" .e: test_div10C: DB .e-.s, 4, 13 .s: test_txt_hexadr div10.eDiv10C, "c) E-Div-10: 7B (0..127)" .e: test_mod320: DB .e-.s, 40, 11 .s: test_txt_hexadr mod320.hlMod320, "a) HL modulo 320" .e: test_mod320_unrolled: DB .e-.s, 40, 12 .s: test_txt_hexadr mod320.hlMod320_unrolled, "b) HL modulo 320 unrolled" .e: test_mod320_lut: DB .e-.s, 40, 13 .s: test_txt_hexadr mod320.deMod320_lut, "c) DE modulo 320 with LUT" .e: test_mod192: DB .e-.s, 40, 14 .s: test_txt_hexadr mod192.hlMod192, "a) HL modulo 192" .e: test_mod192_lut: DB .e-.s, 40, 15 .s: test_txt_hexadr mod192.hlMod192_lut, "b) HL modulo 192 with LUT" .e: test_mod192_lut_B: DB .e-.s, 40, 16 .s: test_txt_hexadr mod192.hlMod192_lut_B, "c) HL modulo 192 LUT => A" .e: test_mod40: DB .e-.s, 4, 14 .s: test_txt_hexadr mod40.hlMod40, "HL modulo 40" .e: test_nibrrca_z80n: DB .e-.s, 4, 15 .s: test_txt_hexadr bit_fun.nibrrca_z80n, "RRCA-like but per nibbles" .e: test_mul16x8_24: DB .e-.s, 4, 16 .s: test_txt_hexadr mul.mul_16_8_24_HLE, "MUL 16x8 bits (24b result)" .e: test_mul24x8_32: DB .e-.s, 4, 17 .s: test_txt_hexadr mul.mul_24_8_32_DELC, "MUL 24x8 bits (32b result)" .e: test_mul32x8_40: DB .e-.s, 4, 18 .s: test_txt_hexadr mul.muladd_32_8_8_40_DEHLB, "a) MULADD bits 32x8+8=40, 17B" .e: test_mul32x8_40_perf: DB .e-.s, 4, 19 .s: test_txt_hexadr mul.muladd_32_8_8_40_DEHLB_perf, "b) MULADD 2x faster, 30B" .e: test_mul16x16_16: DB .e-.s, 4, 20 .s: test_txt_hexadr mul.mul_16_16_16_AE, "MUL 16x16 bits (16b result)" .e: test_mul16x16_32: DB .e-.s, 4, 21 .s: test_txt_hexadr mul.mul_16_16_32_DELC, "MUL 16x16 bits (32b result)" .e: test_muls8x8_16: DB .e-.s, 40, 17 .s: test_txt_hexadr mul.muls_8_8_16_AE, "SMUL 8x8=16 bits, \"S\" as signed" .e: test_muls16x8_16: DB .e-.s, 40, 18 .s: test_txt_hexadr mul.muls_16_8_16_AL, "SMUL 16x8=16 bits" .e: test_muls16x8_24: DB .e-.s, 40, 19 .s: test_txt_hexadr mul.muls_16_8_24_HLE, "a) SMUL 16x8=24 bits, 52B" .e: test_muls16x8_24_compact: DB .e-.s, 40, 20 .s: test_txt_hexadr mul.muls_16_8_24_HLE_compact, "b) SMUL 16x8=24 bits, 30B slower" .e: ; test_texts list terminator DB 0 ASSERT $ < $FF00 ; there should be at least 256B left for stack space test_stack EQU 0 ; put stack at the very end of Bank0 SAVENEX OPEN "runsnippet.nex", test_start, test_stack : SAVENEX CFG 7 SAVENEX BANK 2, 0 SAVENEX CLOSE CSPECTMAP "runsnippet.map" IFNDEF LAUNCH_EMULATOR : DEFINE LAUNCH_EMULATOR 0 : ENDIF IF 0 == __ERRORS__ && 0 == __WARNINGS__ && 1 == LAUNCH_EMULATOR ; SHELLEXEC "runzeseruse show512.nex" SHELLEXEC "( sleep 0.1s ; runCSpect -brk -map=runsnippet.map runsnippet.nex ) &" ENDIF
32.765823
100
0.632155
0b3f83bb6552061624ea4aea0c5bc455c192c629
851
asm
Assembly
src/arch/x86_64/multiboot_header.asm
OWCSX/talk
465eb98040ef8f6c7c9df43c891d5562ccbf8f5d
[ "Apache-2.0", "MIT" ]
1
2019-08-09T10:29:32.000Z
2019-08-09T10:29:32.000Z
src/arch/x86_64/multiboot_header.asm
OWCSX/talk
465eb98040ef8f6c7c9df43c891d5562ccbf8f5d
[ "Apache-2.0", "MIT" ]
null
null
null
src/arch/x86_64/multiboot_header.asm
OWCSX/talk
465eb98040ef8f6c7c9df43c891d5562ccbf8f5d
[ "Apache-2.0", "MIT" ]
1
2022-01-04T21:44:40.000Z
2022-01-04T21:44:40.000Z
; Copyright 2016 Philipp Oppermann. See the README.md ; file at the top-level directory of this distribution. ; ; Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or ; http://www.apache.org/licenses/LICENSE-2.0> or the MIT license ; <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your ; option. This file may not be copied, modified, or distributed ; except according to those terms. section .multiboot_header header_start: dd 0xe85250d6 ; magic number (multiboot 2) dd 0 ; architecture 0 (protected mode i386) dd header_end - header_start ; header length ; checksum dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; insert optional multiboot tags here ; required end tag dw 0 ; type dw 0 ; flags dd 8 ; size header_end:
34.04
71
0.679201
245065f43adf0f729a5f4ae76635f84008f2d3ef
921
asm
Assembly
cards/bn6/ItemCards/137-E005 Yai's Prized Rare Chips.asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
10
2017-12-05T14:25:38.000Z
2022-02-21T04:28:00.000Z
cards/bn6/ItemCards/137-E005 Yai's Prized Rare Chips.asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
cards/bn6/ItemCards/137-E005 Yai's Prized Rare Chips.asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
.include "defaults_item.asm" table_file_jp equ "exe6-utf8.tbl" table_file_en equ "bn6-utf8.tbl" game_code_len equ 3 game_code equ 0x4252354A // BR5J game_code_2 equ 0x42523545 // BR5E game_code_3 equ 0x42523550 // BR5P card_type equ 0 card_id equ 5 card_no equ "005" card_sub equ "Item Card 005" card_sub_x equ 62 card_desc_len equ 2 card_desc_1 equ "Yai's Prized Rare" card_desc_2 equ "Chips" card_desc_3 equ "" card_name_jp_full equ "やいとの自慢のレアチップ" card_name_jp_game equ "やいとのじまんのレアチップ" card_name_en_full equ "Yai's Prized Rare Chips" card_name_en_game equ "Yai's Prized Rare Chips" card_game_desc_jp_len equ 3 card_game_desc_jp_1 equ "やいとのじまんのレアチップ!" card_game_desc_jp_2 equ "リュウセイグン・オジゾウサン" card_game_desc_jp_3 equ "フルカスタム を手に入れた!" card_game_desc_en_len equ 3 card_game_desc_en_1 equ "Yai's prized rare" card_game_desc_en_2 equ "chips! Got Meteors," card_game_desc_en_3 equ "Guardian and FullCust!"
30.7
48
0.801303
ad00aa40a3f00f40517c5f1cbd3cf5c2b7dd4964
4,389
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_119_884.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_119_884.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_119_884.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x4e3f, %rsi lea addresses_WC_ht+0x26ff, %rdi nop nop and %rbx, %rbx mov $103, %rcx rep movsb nop nop xor %r14, %r14 lea addresses_D_ht+0x1cf98, %r9 nop nop nop add $1754, %rdi mov $0x6162636465666768, %rsi movq %rsi, (%r9) nop nop nop nop xor %rbx, %rbx lea addresses_D_ht+0x6eff, %r9 nop cmp %rdx, %rdx mov $0x6162636465666768, %rsi movq %rsi, %xmm1 and $0xffffffffffffffc0, %r9 movaps %xmm1, (%r9) and $1035, %rcx lea addresses_WC_ht+0x1afdf, %rsi lea addresses_WC_ht+0xf6ff, %rdi xor $34491, %r12 mov $32, %rcx rep movsw nop nop nop nop add $50462, %rsi lea addresses_UC_ht+0x12357, %rsi lea addresses_D_ht+0xb7fb, %rdi nop nop cmp $45951, %rdx mov $107, %rcx rep movsq add %rdx, %rdx lea addresses_UC_ht+0x193ff, %rsi nop nop nop cmp $20971, %rbx movw $0x6162, (%rsi) nop and %r12, %r12 lea addresses_WC_ht+0xa2ff, %r9 nop nop nop nop xor $14205, %rcx mov (%r9), %rdx cmp %rsi, %rsi lea addresses_D_ht+0x1327f, %rdi nop and $7855, %r12 movb $0x61, (%rdi) and %rbx, %rbx lea addresses_UC_ht+0x2aff, %r9 nop nop nop nop nop sub $28742, %rcx movb (%r9), %r14b nop nop nop sub %rdx, %rdx lea addresses_normal_ht+0x146ff, %rsi lea addresses_normal_ht+0x1cb3f, %rdi nop inc %r14 mov $33, %rcx rep movsw nop nop xor %rcx, %rcx lea addresses_D_ht+0x2edf, %rdx nop nop nop nop nop inc %rcx vmovups (%rdx), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rsi nop nop nop sub $38156, %rdi lea addresses_WT_ht+0x3ab, %r12 nop nop xor %rdx, %rdx movups (%r12), %xmm2 vpextrq $0, %xmm2, %r9 nop nop nop sub $37658, %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %rcx push %rdi push %rsi // Faulty Load lea addresses_WC+0x1e6ff, %rdi nop nop nop nop cmp $35558, %r8 vmovups (%rdi), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %rsi lea oracles, %rdi and $0xff, %rsi shlq $12, %rsi mov (%rdi,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'38': 119} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
23.596774
356
0.652996
4c3e0675cb6abf43cb97fdd2d51939d5b5fe00f2
3,974
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2699.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_2699.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_2699.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 %r12 push %r13 push %r14 push %r15 push %rcx // Store lea addresses_UC+0x1c444, %r13 nop nop nop cmp %r14, %r14 mov $0x5152535455565758, %r12 movq %r12, %xmm5 vmovups %ymm5, (%r13) nop nop nop nop nop inc %r15 // Faulty Load lea addresses_WC+0x194d6, %r10 cmp $20018, %rcx mov (%r10), %r14 lea oracles, %r12 and $0xff, %r14 shlq $12, %r14 mov (%r12,%r14,1), %r14 pop %rcx pop %r15 pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_WC', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
69.719298
2,999
0.662557
8c99f9b719b00ab96905bcfd8d106a30edca2376
312
asm
Assembly
src/test/resources/data/potests/test42.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
36
2020-06-29T06:52:26.000Z
2022-02-10T19:41:58.000Z
src/test/resources/data/potests/test42.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
39
2020-07-02T18:19:34.000Z
2022-03-27T18:08:54.000Z
src/test/resources/data/potests/test42.asm
cpcitor/mdlz80optimizer
75070d984e1f08474e6d397c7e0eb66d8be0c432
[ "Apache-2.0" ]
7
2020-07-02T06:00:05.000Z
2021-11-28T17:31:13.000Z
; Test case: to make sure dependencies for the daa, rld and rrd are tracked properly ld a,(value) add a,00h ; should not be optimized daa ld (value),a ld hl,value2 ; should not be optimized rld ld hl,value3 ; should be optimized to inc hl rrd loop: jr loop value: db 0 value2: db 0 value3: db 0
14.857143
84
0.698718
ea4edd9515968ad59c33550c767de28312f52577
1,611
asm
Assembly
programs/oeis/274/A274681.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/274/A274681.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/274/A274681.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A274681: Numbers k such that 4*k + 1 is a triangular number. ; 0,5,11,26,38,63,81,116,140,185,215,270,306,371,413,488,536,621,675,770,830,935,1001,1116,1188,1313,1391,1526,1610,1755,1845,2000,2096,2261,2363,2538,2646,2831,2945,3140,3260,3465,3591,3806,3938,4163,4301,4536,4680,4925,5075,5330,5486,5751,5913,6188,6356,6641,6815,7110,7290,7595,7781,8096,8288,8613,8811,9146,9350,9695,9905,10260,10476,10841,11063,11438,11666,12051,12285,12680,12920,13325,13571,13986,14238,14663,14921,15356,15620,16065,16335,16790,17066,17531,17813,18288,18576,19061,19355,19850,20150,20655,20961,21476,21788,22313,22631,23166,23490,24035,24365,24920,25256,25821,26163,26738,27086,27671,28025,28620,28980,29585,29951,30566,30938,31563,31941,32576,32960,33605,33995,34650,35046,35711,36113,36788,37196,37881,38295,38990,39410,40115,40541,41256,41688,42413,42851,43586,44030,44775,45225,45980,46436,47201,47663,48438,48906,49691,50165,50960,51440,52245,52731,53546,54038,54863,55361,56196,56700,57545,58055,58910,59426,60291,60813,61688,62216,63101,63635,64530,65070,65975,66521,67436,67988,68913,69471,70406,70970,71915,72485,73440,74016,74981,75563,76538,77126,78111,78705,79700,80300,81305,81911,82926,83538,84563,85181,86216,86840,87885,88515,89570,90206,91271,91913,92988,93636,94721,95375,96470,97130,98235,98901,100016,100688,101813,102491,103626,104310,105455,106145,107300,107996,109161,109863,111038,111746,112931,113645,114840,115560,116765,117491,118706,119438,120663,121401,122636,123380,124625 mov $4,$0 add $0,1 mov $1,$0 mov $2,$4 mov $3,-1 lpb $0 sub $0,2 sub $1,$3 lpe mul $1,2 add $1,$2 bin $1,2 div $1,4
94.764706
1,426
0.795779
11e976898946534521637110ff63b4097e83675f
1,208
asm
Assembly
code/Forec/t5.asm
KongoHuster/assembly-exercise
1c4a44c60c0e93a1350ed4f887aeaf1414702a51
[ "0BSD" ]
1
2021-08-20T03:57:29.000Z
2021-08-20T03:57:29.000Z
code/Forec/t5.asm
KongoHuster/assembly-exercise
1c4a44c60c0e93a1350ed4f887aeaf1414702a51
[ "0BSD" ]
null
null
null
code/Forec/t5.asm
KongoHuster/assembly-exercise
1c4a44c60c0e93a1350ed4f887aeaf1414702a51
[ "0BSD" ]
null
null
null
;; last edit date: 2016/10/24 ;; author: Forec ;; LICENSE ;; Copyright (c) 2015-2017, Forec <forec@bupt.edu.cn> ;; Permission to use, copy, modify, and/or distribute this code for any ;; purpose with or without fee is hereby granted, provided that the above ;; copyright notice and this permission notice appear in all copies. ;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. title forec_t5 .model small .data lname db 30 dup(?) address db 30 dup(?) city db 15 dup(?) code_list db 1, 7, 8, 3, 2 code_length equ $ - code_list ;; (3) .stack 100h .code start: mov ax, @data mov ds, ax mov ax, offset lname ;; (1) mov si, word ptr code_list ;; (2) mov bx, code_length mov ah, 4ch int 21h end start
32.648649
75
0.706954
81a0152b1e694fd0372e87d90bd72d856c778ba7
407
asm
Assembly
oeis/155/A155460.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/155/A155460.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/155/A155460.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A155460: a(n)=8*a(n-1)+49*a(n-2), n>2 ; a(0)=1, a(1)=1, a(2)=8 . ; Submitted by Christian Krause ; 1,1,8,113,1296,15905,190744,2305297,27788832,335270209,4043814440,48778755761,588376953648,7097174661473,85607868020536,1032624502576465,12455781553617984,150244853055190657,1812292120568806472 mov $3,1 lpb $0 sub $0,1 mul $1,7 mul $2,7 add $3,$1 add $2,$3 mov $1,$2 mov $2,$3 lpe mov $0,$3
25.4375
195
0.692875
c7aeb08f7ea3b5ee3c17cf2b42639f4da593faa6
6,733
asm
Assembly
loader/ksmod.asm
kun1z/ksmod
4375b3f13bb48d2d1f619bd297f631b1b70329ba
[ "Unlicense" ]
1
2021-02-26T22:06:27.000Z
2021-02-26T22:06:27.000Z
loader/ksmod.asm
kun1z/ksmod
4375b3f13bb48d2d1f619bd297f631b1b70329ba
[ "Unlicense" ]
null
null
null
loader/ksmod.asm
kun1z/ksmod
4375b3f13bb48d2d1f619bd297f631b1b70329ba
[ "Unlicense" ]
null
null
null
; Copyright © 2005 - 2021 by Brett Kuntz. All rights reserved. .686p .model flat, stdcall option casemap :none include ksmod.inc .code start:invoke Main ; ########################################################################## Main proc ; 400 local proc_handle:dword invoke CheckForDirectory dbg ttext("Searching for unpatched games...") invoke FindFirstUnpatchedWindow mov proc_handle, eax .if eax == 0 dbg ttext("No unpatched games were found.") invoke OpenAndPatch .else dbg ttext("An unpatched game was found. Patching...") invoke PatchExistingWindow, proc_handle dbg ttext("An existing game has been patched.") .endif dbg ttext("Exiting.") invoke ExitProcess, 0 Main endp ; ########################################################################## OpenAndPatch proc ;300 local Ssi:STARTUPINFO local Spi:PROCESS_INFORMATION local cmd_line[512]:byte local commands[128]:byte invoke RtlZeroMemory, addr Ssi, sizeof STARTUPINFO mov Ssi.cb, sizeof STARTUPINFO dbg ttext("Opening a new game...") invoke GetFullPathNameA, text("Settings.ini"), sizeof cmd_line, addr cmd_line, 0 error 301 invoke GetPrivateProfileStringA, text("KSMod"), text("Command_Line"), 0, addr commands, sizeof commands, addr cmd_line error 302 invoke TrimComment, addr commands, sizeof commands invoke wsprintfA, addr cmd_line, text("%s %s"), text("gw.exe"), addr commands invoke CreateProcessA, 0, addr cmd_line, 0, 0, 0, CREATE_SUSPENDED, 0, 0, addr Ssi, addr Spi error 303 dbg ttext("Opened. Patching a new game...") invoke PatchExistingWindow, Spi.hProcess invoke ResumeThread, Spi.hThread inc eax error 304 invoke CloseHandle, Spi.hThread error 305 dbg ttext("A new game has been opened and patched.") ret OpenAndPatch endp ; ########################################################################## PatchExistingWindow proc proc_handle:dword ;100 local hpid:dword local dllloc[512]:byte local memptr:dword local hndl:dword invoke GetFullPathNameA, text("ksmod.dll"), 512, addr dllloc, 0 error 101 invoke VirtualAllocEx, proc_handle, 0, sizeof dllloc, MEM_COMMIT, PAGE_READWRITE error 102 mov memptr, eax invoke WriteProcessMemory, proc_handle, memptr, addr dllloc, sizeof dllloc, 0 error 103 invoke GetModuleHandleA, text("Kernel32") error 104 invoke GetProcAddress, eax, text("LoadLibraryA") error 105 invoke CreateRemoteThread, proc_handle, 0, 0, eax, memptr, 0, 0 error 106 mov hndl, eax invoke WaitForSingleObject, hndl, 10000 inc eax error 107 invoke VirtualFreeEx, proc_handle, memptr, 0, MEM_RELEASE error 108 invoke CloseHandle, hndl error 109 invoke CloseHandle, proc_handle error 110 dbg ttext("Game patched.") ret PatchExistingWindow endp ; ########################################################################## FindFirstUnpatchedWindow proc ; 200 local hwnd:dword local hpid:dword invoke EnumWindows, addr EnumWindowsProc, addr hwnd .if eax == 0 invoke GetLastError .if eax == ENUM_SUCCEED invoke GetWindowThreadProcessId, hwnd, addr hpid error 201 invoke OpenProcess, PROCESS_ALL_ACCESS, 0, hpid error 202 ret ; Returns PID to caller .else xor eax, eax error 203 .endif .endif xor eax, eax ret FindFirstUnpatchedWindow endp ; ########################################################################## EnumWindowsProc proc hwnd:dword, lParam:dword ; 500 local buffer[512]:byte local hpid:dword local hMods[200]:dword local needed:dword push ebx invoke GetWindowTextA, hwnd, addr buffer, sizeof buffer .if eax == 10 invoke lstrcmpA, addr buffer, text("Guild Wars") .if eax == 0 invoke GetWindowThreadProcessId, hwnd, addr hpid error 501 invoke OpenProcess, PROCESS_ALL_ACCESS, 0, hpid error 502 mov hpid, eax invoke GetProcessImageFileNameA, hpid, addr buffer, sizeof buffer error 503 .if eax != 0 lea ecx, buffer add eax, ecx invoke TrailBack, eax, ecx invoke lstrcmpiA, eax, text("gw.exe") .if eax == 0 invoke EnumProcessModules, hpid, addr hMods, sizeof hMods, addr needed error 504 .if eax != 0 xor ebx, ebx .while ebx != needed invoke GetModuleFileNameExA, hpid, dword ptr [hMods+ebx], addr buffer, sizeof buffer error 505 lea ecx, buffer add eax, ecx invoke TrailBack, eax, ecx invoke lstrcmpiA, eax, text("ksmod.dll") .if eax != 0 add ebx, 4 .else pop ebx or eax, 1 ret .endif .endw mov ecx, lParam mov eax, hwnd mov dword ptr [ecx], eax invoke SetLastError, ENUM_SUCCEED pop ebx xor eax, eax ret .endif .endif .endif .endif .endif pop ebx or eax, 1 ret EnumWindowsProc endp ; ########################################################################## CheckForDirectory proc invoke CreateFileA, text("gw.exe"), 0, 0, 0, OPEN_EXISTING, 0, 0 push eax invoke CloseHandle, eax pop eax .if eax == INVALID_HANDLE_VALUE invoke MessageBoxA, 0, text("KSMod must run from the Guild Wars folder."), text("KSMod"), 1000h invoke ExitProcess, 0 .endif ret CheckForDirectory endp ; ########################################################################## end start
24.219424
123
0.502005
c3a76983f4e36b20a3f7274133ca9c248361e30f
738
asm
Assembly
programs/oeis/053/A053798.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/053/A053798.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/053/A053798.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A053798: Number of basis partitions of n+16 with Durfee square size 4. ; 1,2,4,8,14,22,34,50,70,96,128,166,212,266,328,400,482,574,678,794,922,1064,1220,1390,1576,1778,1996,2232,2486,2758,3050,3362,3694,4048,4424,4822,5244,5690,6160,6656,7178,7726,8302,8906,9538,10200,10892,11614,12368,13154,13972,14824,15710,16630,17586,18578,19606,20672,21776,22918,24100,25322,26584,27888,29234,30622,32054,33530,35050,36616,38228,39886,41592,43346,45148,47000,48902,50854,52858,54914,57022,59184,61400,63670,65996,68378,70816,73312,75866,78478,81150,83882,86674,89528,92444,95422,98464,101570,104740,107976 lpb $0 mov $2,$0 sub $0,1 seq $2,97921 ; G.f.: (1-x^6)*(1-x^8)/((1-x)*(1-x^2)*(1-x^3)^2*(1-x^4)). add $1,$2 lpe add $1,1 mov $0,$1
61.5
524
0.731707
07f30e1ef792773a0d2f0192f2bc45e4ce2c6146
370
asm
Assembly
asm/lib/mul.asm
BenG49/cpu
c76234756b17db0017b722d08cc8162698445a27
[ "MIT" ]
null
null
null
asm/lib/mul.asm
BenG49/cpu
c76234756b17db0017b722d08cc8162698445a27
[ "MIT" ]
null
null
null
asm/lib/mul.asm
BenG49/cpu
c76234756b17db0017b722d08cc8162698445a27
[ "MIT" ]
null
null
null
; 0xf0 = a ; 0xf1 = b ; ret to 0xff ; uses 0xe0 umul: ; b == 0 return 0 (optimization) lda 0xf1 add $0 jz .zero lda $0 sta 0xe0 .loop: lda 0xf0 sub $1 js .end ; if a - 1 < 0: break lda 0xe0 add 0xf1 sta 0xe0 ; out += b lda 0xf0 sub $1 sta 0xf0 jmp .loop .end: lda 0xe0 jmp #0xff ; ret ; return zero .zero: lda $0 jmp #0xff
9.736842
33
0.554054
459a1b4e2e2913b5e7720f3ecd95260bfb60096b
153
asm
Assembly
src/input.asm
ashok-arora/mips
6e166cea0ffe1b71707b68549245ce020c73ace1
[ "MIT" ]
null
null
null
src/input.asm
ashok-arora/mips
6e166cea0ffe1b71707b68549245ce020c73ace1
[ "MIT" ]
null
null
null
src/input.asm
ashok-arora/mips
6e166cea0ffe1b71707b68549245ce020c73ace1
[ "MIT" ]
null
null
null
# Here's a comment # Input file format: instruction <registers seperated by comma _and_ space> addi $t1, $zero, 1 addi $t1, $t1, -2 add $t2, $zero, $zero
30.6
75
0.699346
a93ffcbb76cc838bdf445e0e20edf51434a59d8b
500
asm
Assembly
get_two_numbers_and_multiply.asm
daniyalmarofi/assembly
b0ae19644aa7ac38395497c9962af626fee46ef4
[ "MIT" ]
null
null
null
get_two_numbers_and_multiply.asm
daniyalmarofi/assembly
b0ae19644aa7ac38395497c9962af626fee46ef4
[ "MIT" ]
null
null
null
get_two_numbers_and_multiply.asm
daniyalmarofi/assembly
b0ae19644aa7ac38395497c9962af626fee46ef4
[ "MIT" ]
null
null
null
.ORIG x3000 JSR INPUT ADD R3, R0, #0 ; copy Input to R3 JSR INPUT ADD R4, R0, #0 ; copy Input to R4 JSR MULTIP HALT INPUT ADD R4, R7, #0 IN ; read a character from console (and store it in R0) LD R1, O ADD R0, R0, R1 ; R0=int(IN) ADD R7, R4, #0 ; Copy back R4 to R7 RET O .FILL #-48 MULTIP AND R5, R5, #0 ; empty R5 Loop ADD R5, R5, R3 ; R5=X+X ADD R4, R4, #-1 ; R4=R4-1 BRp Loop RET .END
20
61
0.502
93bbe16539913bccc54bcadadd395fd4545bf660
721
asm
Assembly
My Codes/Lab_1/Lab1.asm
jahinmahbub/CSE331L_Section_7_Summer_2020_NSU
4be780dbad2ab55708bed99e614cbab630e2fc37
[ "MIT" ]
null
null
null
My Codes/Lab_1/Lab1.asm
jahinmahbub/CSE331L_Section_7_Summer_2020_NSU
4be780dbad2ab55708bed99e614cbab630e2fc37
[ "MIT" ]
null
null
null
My Codes/Lab_1/Lab1.asm
jahinmahbub/CSE331L_Section_7_Summer_2020_NSU
4be780dbad2ab55708bed99e614cbab630e2fc37
[ "MIT" ]
null
null
null
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h ; #include<stdio.h> ;Variable declaration ;A DB 10; int a = 10 Data Type: Define Byte (8 bits of space) ;B DW 15; int b = 15 Data Type: Define word (16 Bits of space) ;K EQU 10; Constant ;arrays ;a DB 10,15,10,11,12 ;b DB 10h,15h,10h,11h,12h ; Hex Values ; a b are basically int a[10] = {10,11,12} ;c DB 10 DUP(?) ;d DB 5 DUP(1,2) ;1,2,1,2 ;ARR1 DB DUP(5,10,12) ;MOV BX, offset ARR1 ;MOV [BX],6 ;MOV [BX+1],10 MOV BX,10 ;INC BX; DOING i++ in C Basically. DEC BX;DOING i-- in C Basically. MOV BX, 35H MOV DI, 12H LEA SI, [BX+DI] ret ;return 0
18.025
68
0.635229
aee8399d1c7e79071561de517aa013615640d4ad
1,472
asm
Assembly
languages/x86/arrays.asm
octonion/examples
5d142697b9f781e37c61f32217fdb6d661902d42
[ "MIT" ]
4
2017-12-14T04:00:10.000Z
2018-03-31T07:12:13.000Z
languages/x86/arrays.asm
octonion/examples
5d142697b9f781e37c61f32217fdb6d661902d42
[ "MIT" ]
null
null
null
languages/x86/arrays.asm
octonion/examples
5d142697b9f781e37c61f32217fdb6d661902d42
[ "MIT" ]
null
null
null
section .text global _start _print: mov ebx, 1 mov eax, 4 int 0x80 ret _start: ;print out our byte array. ergo, String. mov edx, sLen mov ecx, sArray call _print mov edx, f_len mov ecx, f_msg call _print mov edx, 6 ;our array members length. xor ecx, ecx mov ecx, 4 ;turnicate through the array and print all it's members. ;At an offset of *4, each array member is referenced ;at 1,2,3 and so on. _out_loops: push ecx mov ecx, [fArray+esi*4] call _print inc esi pop ecx loop _out_loops mov edx, u_len mov ecx, u_msg call _print ;Let's populate 'uArray' with something from sArray. ;mov edi, uArray mov ecx, 4 xor esi, esi _read_loops: push dword [fArray+esi*4] pop dword [uArray+esi*4] inc esi loop _read_loops mov ecx, 4 xor esi, esi _out_loops2: push ecx mov ecx, [uArray+esi*4] call _print inc esi pop ecx loop _out_loops2 push 0x1 mov eax, 1 push eax int 0x80 section .data sArray db 'a','r','r','a','y','s',' ','a','r','e',' ','f','u','n',0xa sLen equ $-sArray crap1 db "crap1",0xa crap2 db "crap2",0xa crap3 db "crap3",0xa crap4 db "crap4",0xa fArray dd crap1,crap2 dd crap3,crap4 f_msg db "fArray contents",0xa,"----------------------",0xa f_len equ $-f_msg u_msg db "uArray now holds fArray contents.. dumping..",0xa,"----------------------",0xa u_len equ $-u_msg section .bss uArray resd 1 resd 1 resd 1 resd 1
18.632911
89
0.626359
53b2c7b87f50010ba0c8e1b1f040b35c42d475ff
561
asm
Assembly
oeis/017/A017339.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017339.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017339.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017339: a(n) = (10*n + 5)^11. ; 48828125,8649755859375,2384185791015625,96549157373046875,1532278301220703125,13931233916552734375,87507831740087890625,422351360321044921875,1673432436896142578125,5688000922764599609375,17103393581163134765625,46523913960640966796875,116415321826934814453125,271438504226343896484375,595728015903604931640625,1240648285957267138671875,2467876294615567236328125,4714314324855804443359375,8687383875950215478515625,15501749869261349560546875,26871534751769943408203125,45375670872618296240234375 mul $0,10 add $0,5 pow $0,11
80.142857
497
0.901961
e77987475436239a825fd39c19b2ebc0172aeecf
694
asm
Assembly
programs/oeis/289/A289134.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/289/A289134.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/289/A289134.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A289134: a(n) = 21*n^2 - 33*n + 13. ; 1,31,103,217,373,571,811,1093,1417,1783,2191,2641,3133,3667,4243,4861,5521,6223,6967,7753,8581,9451,10363,11317,12313,13351,14431,15553,16717,17923,19171,20461,21793,23167,24583,26041,27541,29083,30667,32293,33961,35671,37423,39217,41053,42931,44851,46813,48817,50863,52951,55081,57253,59467,61723,64021,66361,68743,71167,73633,76141,78691,81283,83917,86593,89311,92071,94873,97717,100603,103531,106501,109513,112567,115663,118801,121981,125203,128467,131773,135121,138511,141943,145417,148933,152491,156091,159733,163417,167143,170911,174721,178573,182467,186403,190381,194401,198463,202567,206713 mul $0,7 add $0,2 bin $0,2 div $0,7 mul $0,6 add $0,1
69.4
600
0.788184
3dcbf35a3cbadc27badb6c54404d30f9445ad45f
535
asm
Assembly
programs/oeis/184/A184586.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/184/A184586.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/184/A184586.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A184586: a(n) = floor((n-1/2)*r), where r=sqrt(5); complement of A184587. ; 1,3,5,7,10,12,14,16,19,21,23,25,27,30,32,34,36,39,41,43,45,48,50,52,54,57,59,61,63,65,68,70,72,74,77,79,81,83,86,88,90,92,95,97,99,101,103,106,108,110,112,115,117,119,121,124,126,128,130,133,135,137,139,141,144,146,148,150,153,155,157,159,162,164,166,168,171,173,175,177,180,182,184,186,188,191,193,195,197,200,202,204,206,209,211,213,215,218,220,222 add $0,9 mul $0,2 seq $0,276886 ; Sums-complement of the Beatty sequence for 2 + phi. div $0,2 sub $0,19
59.444444
352
0.691589
e7f057cc89b204a6ff5c07873dfd430e49b857b5
6,601
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1890.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1890.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1890.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 %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0xf561, %rbp nop nop xor %r15, %r15 movups (%rbp), %xmm1 vpextrq $0, %xmm1, %rax nop nop nop nop nop xor $57518, %rsi lea addresses_D_ht+0x18afd, %rsi lea addresses_A_ht+0x146bd, %rdi clflush (%rdi) nop nop nop nop nop cmp $20427, %r8 mov $112, %rcx rep movsb nop nop nop xor %rbp, %rbp lea addresses_WC_ht+0x127fd, %rsi nop nop nop nop nop and $24681, %rcx mov $0x6162636465666768, %rdi movq %rdi, %xmm3 movups %xmm3, (%rsi) nop cmp %rsi, %rsi lea addresses_WT_ht+0x487d, %rsi lea addresses_WC_ht+0xc4dd, %rdi nop nop sub $35137, %r10 mov $86, %rcx rep movsl nop nop nop sub %rbp, %rbp lea addresses_D_ht+0x1debd, %r10 cmp $21428, %rcx and $0xffffffffffffffc0, %r10 vmovntdqa (%r10), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rax nop nop xor $47995, %rbp lea addresses_WT_ht+0x178d, %rsi nop nop dec %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm7 movups %xmm7, (%rsi) nop nop sub $33421, %r10 lea addresses_A_ht+0x1a081, %r10 nop nop inc %rdi mov $0x6162636465666768, %r15 movq %r15, %xmm3 vmovups %ymm3, (%r10) and $49951, %rax lea addresses_A_ht+0x19d, %rsi lea addresses_WT_ht+0xb2bd, %rdi nop nop cmp %r8, %r8 mov $65, %rcx rep movsb nop nop sub $47558, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r8 push %r9 push %rax push %rbp push %rbx push %rcx push %rsi // Store lea addresses_RW+0x12b3d, %rax nop sub %rbx, %rbx movb $0x51, (%rax) nop nop nop sub $14242, %rax // Store mov $0xebd, %rcx nop nop nop nop nop cmp %rbp, %rbp mov $0x5152535455565758, %r9 movq %r9, (%rcx) nop nop nop nop dec %rcx // Faulty Load lea addresses_D+0x62bd, %r8 sub $29973, %rbx movb (%r8), %cl lea oracles, %r9 and $0xff, %rcx shlq $12, %rcx mov (%r9,%rcx,1), %rcx pop %rsi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r8 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_RW', 'size': 1, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_P', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}} {'src': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'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.469613
2,999
0.657931
923163f9bc77e750c6dce10437cbb920a8e933fd
559
asm
Assembly
programs/oeis/118/A118649.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/118/A118649.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/118/A118649.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A118649: Row sums for A106597. ; 1,2,5,12,30,74,184,456,1132,2808,6968,17288,42896,106432,264080,655232,1625760,4033824,10008704,24833536,61616832,152883328,379333248,941199488,2335298816,5794330112,14376858880,35671780352,88508618240 mov $30,$0 mov $32,$0 lpb $32 clr $0,30 mov $0,$30 sub $32,1 sub $0,$32 mov $27,$0 mov $29,$0 add $29,1 lpb $29 mov $0,$27 sub $29,1 sub $0,$29 mov $1,$0 cal $1,52528 ; Expansion of (1 - x)/(1 - 2*x - 2*x^2 + 2*x^3). add $28,$1 lpe add $31,$28 lpe mov $1,$31 div $1,2 add $1,1
20.703704
203
0.626118
b8a674a5d2b9071a492ce89f1908e094c80d9df6
38,477
asm
Assembly
coverage/IN_CTS/0497-COVERAGE-brw-shader-422-426/work/variant/2_spirv_opt_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
null
null
null
coverage/IN_CTS/0497-COVERAGE-brw-shader-422-426/work/variant/2_spirv_opt_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
47
2021-03-11T07:42:51.000Z
2022-03-14T06:30:14.000Z
coverage/IN_CTS/0497-COVERAGE-brw-shader-422-426/work/variant/2_spirv_opt_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
4
2021-03-09T13:37:19.000Z
2022-02-25T07:32:11.000Z
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 2564 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %16 %20 OpExecutionMode %4 OriginUpperLeft OpSource ESSL 320 OpName %4 "main" OpName %16 "gl_FragCoord" OpName %20 "_GLF_color" OpDecorate %16 BuiltIn FragCoord OpDecorate %20 Location 0 %2 = OpTypeVoid %3 = OpTypeFunction %2 %6 = OpTypeInt 32 1 %9 = OpConstant %6 0 %10 = OpTypeFloat 32 %14 = OpTypeVector %10 4 %15 = OpTypePointer Input %14 %16 = OpVariable %15 Input %19 = OpTypePointer Output %14 %20 = OpVariable %19 Output %22 = OpConstant %10 0 %23 = OpConstant %10 1 %36 = OpConstant %6 5 %37 = OpTypeBool %40 = OpConstant %6 10 %461 = OpTypeInt 32 0 %462 = OpConstant %461 0 %463 = OpTypePointer Input %10 %471 = OpConstant %6 1 %716 = OpConstant %6 48 %721 = OpConstantComposite %14 %23 %22 %22 %23 %723 = OpConstantComposite %14 %22 %22 %22 %22 %726 = OpConstantFalse %37 %729 = OpConstantTrue %37 %4 = OpFunction %2 None %3 %5 = OpLabel OpSelectionMerge %724 None OpSwitch %462 %725 %725 = OpLabel %17 = OpLoad %14 %16 %24 = OpCompositeExtract %10 %17 0 %25 = OpCompositeExtract %10 %17 1 %26 = OpCompositeConstruct %14 %24 %25 %22 %23 OpStore %20 %26 OpBranch %30 %30 = OpLabel %966 = OpPhi %37 %726 %725 %2483 %33 %926 = OpPhi %6 %9 %725 %704 %33 %811 = OpPhi %6 %9 %725 %702 %33 %810 = OpPhi %6 %9 %725 %700 %33 %38 = OpSLessThan %37 %810 %36 %41 = OpSLessThan %37 %811 %40 %42 = OpLogicalAnd %37 %38 %41 OpLoopMerge %32 %33 None OpBranchConditional %42 %31 %32 %31 = OpLabel OpBranch %44 %44 = OpLabel %965 = OpPhi %37 %966 %31 %2406 %47 %925 = OpPhi %6 %926 %31 %698 %47 %813 = OpPhi %6 %811 %31 %696 %47 %812 = OpPhi %6 %9 %31 %694 %47 %50 = OpSLessThan %37 %812 %36 %52 = OpSLessThan %37 %813 %40 %53 = OpLogicalAnd %37 %50 %52 OpLoopMerge %46 %47 None OpBranchConditional %53 %45 %46 %45 = OpLabel OpBranch %55 %55 = OpLabel %964 = OpPhi %37 %965 %45 %2331 %58 %924 = OpPhi %6 %925 %45 %692 %58 %815 = OpPhi %6 %813 %45 %690 %58 %814 = OpPhi %6 %9 %45 %688 %58 %61 = OpSLessThan %37 %814 %36 %63 = OpSLessThan %37 %815 %40 %64 = OpLogicalAnd %37 %61 %63 OpLoopMerge %57 %58 None OpBranchConditional %64 %56 %57 %56 = OpLabel OpBranch %66 %66 = OpLabel %963 = OpPhi %37 %964 %56 %2258 %69 %923 = OpPhi %6 %924 %56 %686 %69 %817 = OpPhi %6 %815 %56 %684 %69 %816 = OpPhi %6 %9 %56 %682 %69 %72 = OpSLessThan %37 %816 %36 %74 = OpSLessThan %37 %817 %40 %75 = OpLogicalAnd %37 %72 %74 OpLoopMerge %68 %69 None OpBranchConditional %75 %67 %68 %67 = OpLabel OpBranch %77 %77 = OpLabel %962 = OpPhi %37 %963 %67 %2187 %80 %922 = OpPhi %6 %923 %67 %680 %80 %819 = OpPhi %6 %817 %67 %678 %80 %818 = OpPhi %6 %9 %67 %676 %80 %83 = OpSLessThan %37 %818 %36 %85 = OpSLessThan %37 %819 %40 %86 = OpLogicalAnd %37 %83 %85 OpLoopMerge %79 %80 None OpBranchConditional %86 %78 %79 %78 = OpLabel OpBranch %88 %88 = OpLabel %961 = OpPhi %37 %962 %78 %2118 %91 %921 = OpPhi %6 %922 %78 %674 %91 %821 = OpPhi %6 %819 %78 %672 %91 %820 = OpPhi %6 %9 %78 %670 %91 %94 = OpSLessThan %37 %820 %36 %96 = OpSLessThan %37 %821 %40 %97 = OpLogicalAnd %37 %94 %96 OpLoopMerge %90 %91 None OpBranchConditional %97 %89 %90 %89 = OpLabel OpBranch %99 %99 = OpLabel %960 = OpPhi %37 %961 %89 %2051 %102 %920 = OpPhi %6 %921 %89 %668 %102 %823 = OpPhi %6 %821 %89 %666 %102 %822 = OpPhi %6 %9 %89 %664 %102 %105 = OpSLessThan %37 %822 %36 %107 = OpSLessThan %37 %823 %40 %108 = OpLogicalAnd %37 %105 %107 OpLoopMerge %101 %102 None OpBranchConditional %108 %100 %101 %100 = OpLabel OpBranch %110 %110 = OpLabel %959 = OpPhi %37 %960 %100 %1986 %113 %919 = OpPhi %6 %920 %100 %662 %113 %825 = OpPhi %6 %823 %100 %660 %113 %824 = OpPhi %6 %9 %100 %658 %113 %116 = OpSLessThan %37 %824 %36 %118 = OpSLessThan %37 %825 %40 %119 = OpLogicalAnd %37 %116 %118 OpLoopMerge %112 %113 None OpBranchConditional %119 %111 %112 %111 = OpLabel OpBranch %121 %121 = OpLabel %958 = OpPhi %37 %959 %111 %1923 %124 %918 = OpPhi %6 %919 %111 %656 %124 %827 = OpPhi %6 %825 %111 %654 %124 %826 = OpPhi %6 %9 %111 %652 %124 %127 = OpSLessThan %37 %826 %36 %129 = OpSLessThan %37 %827 %40 %130 = OpLogicalAnd %37 %127 %129 OpLoopMerge %123 %124 None OpBranchConditional %130 %122 %123 %122 = OpLabel OpBranch %132 %132 = OpLabel %957 = OpPhi %37 %958 %122 %1862 %135 %917 = OpPhi %6 %918 %122 %650 %135 %829 = OpPhi %6 %827 %122 %648 %135 %828 = OpPhi %6 %9 %122 %646 %135 %138 = OpSLessThan %37 %828 %36 %140 = OpSLessThan %37 %829 %40 %141 = OpLogicalAnd %37 %138 %140 OpLoopMerge %134 %135 None OpBranchConditional %141 %133 %134 %133 = OpLabel OpBranch %143 %143 = OpLabel %956 = OpPhi %37 %957 %133 %1803 %146 %916 = OpPhi %6 %917 %133 %644 %146 %831 = OpPhi %6 %829 %133 %642 %146 %830 = OpPhi %6 %9 %133 %640 %146 %149 = OpSLessThan %37 %830 %36 %151 = OpSLessThan %37 %831 %40 %152 = OpLogicalAnd %37 %149 %151 OpLoopMerge %145 %146 None OpBranchConditional %152 %144 %145 %144 = OpLabel OpBranch %154 %154 = OpLabel %955 = OpPhi %37 %956 %144 %1746 %157 %915 = OpPhi %6 %916 %144 %638 %157 %833 = OpPhi %6 %831 %144 %636 %157 %832 = OpPhi %6 %9 %144 %634 %157 %160 = OpSLessThan %37 %832 %36 %162 = OpSLessThan %37 %833 %40 %163 = OpLogicalAnd %37 %160 %162 OpLoopMerge %156 %157 None OpBranchConditional %163 %155 %156 %155 = OpLabel OpBranch %165 %165 = OpLabel %954 = OpPhi %37 %955 %155 %1691 %168 %914 = OpPhi %6 %915 %155 %632 %168 %835 = OpPhi %6 %833 %155 %630 %168 %834 = OpPhi %6 %9 %155 %628 %168 %171 = OpSLessThan %37 %834 %36 %173 = OpSLessThan %37 %835 %40 %174 = OpLogicalAnd %37 %171 %173 OpLoopMerge %167 %168 None OpBranchConditional %174 %166 %167 %166 = OpLabel OpBranch %176 %176 = OpLabel %953 = OpPhi %37 %954 %166 %1638 %179 %913 = OpPhi %6 %914 %166 %626 %179 %837 = OpPhi %6 %835 %166 %624 %179 %836 = OpPhi %6 %9 %166 %622 %179 %182 = OpSLessThan %37 %836 %36 %184 = OpSLessThan %37 %837 %40 %185 = OpLogicalAnd %37 %182 %184 OpLoopMerge %178 %179 None OpBranchConditional %185 %177 %178 %177 = OpLabel OpBranch %187 %187 = OpLabel %952 = OpPhi %37 %953 %177 %1587 %190 %912 = OpPhi %6 %913 %177 %620 %190 %839 = OpPhi %6 %837 %177 %618 %190 %838 = OpPhi %6 %9 %177 %616 %190 %193 = OpSLessThan %37 %838 %36 %195 = OpSLessThan %37 %839 %40 %196 = OpLogicalAnd %37 %193 %195 OpLoopMerge %189 %190 None OpBranchConditional %196 %188 %189 %188 = OpLabel OpBranch %198 %198 = OpLabel %951 = OpPhi %37 %952 %188 %1538 %201 %911 = OpPhi %6 %912 %188 %614 %201 %841 = OpPhi %6 %839 %188 %612 %201 %840 = OpPhi %6 %9 %188 %610 %201 %204 = OpSLessThan %37 %840 %36 %206 = OpSLessThan %37 %841 %40 %207 = OpLogicalAnd %37 %204 %206 OpLoopMerge %200 %201 None OpBranchConditional %207 %199 %200 %199 = OpLabel OpBranch %209 %209 = OpLabel %950 = OpPhi %37 %951 %199 %1491 %212 %910 = OpPhi %6 %911 %199 %608 %212 %843 = OpPhi %6 %841 %199 %606 %212 %842 = OpPhi %6 %9 %199 %604 %212 %215 = OpSLessThan %37 %842 %36 %217 = OpSLessThan %37 %843 %40 %218 = OpLogicalAnd %37 %215 %217 OpLoopMerge %211 %212 None OpBranchConditional %218 %210 %211 %210 = OpLabel OpBranch %220 %220 = OpLabel %949 = OpPhi %37 %950 %210 %1446 %223 %909 = OpPhi %6 %910 %210 %602 %223 %845 = OpPhi %6 %843 %210 %600 %223 %844 = OpPhi %6 %9 %210 %598 %223 %226 = OpSLessThan %37 %844 %36 %228 = OpSLessThan %37 %845 %40 %229 = OpLogicalAnd %37 %226 %228 OpLoopMerge %222 %223 None OpBranchConditional %229 %221 %222 %221 = OpLabel OpBranch %231 %231 = OpLabel %948 = OpPhi %37 %949 %221 %1403 %234 %908 = OpPhi %6 %909 %221 %596 %234 %847 = OpPhi %6 %845 %221 %594 %234 %846 = OpPhi %6 %9 %221 %592 %234 %237 = OpSLessThan %37 %846 %36 %239 = OpSLessThan %37 %847 %40 %240 = OpLogicalAnd %37 %237 %239 OpLoopMerge %233 %234 None OpBranchConditional %240 %232 %233 %232 = OpLabel OpBranch %242 %242 = OpLabel %947 = OpPhi %37 %948 %232 %1362 %245 %907 = OpPhi %6 %908 %232 %590 %245 %849 = OpPhi %6 %847 %232 %588 %245 %848 = OpPhi %6 %9 %232 %586 %245 %248 = OpSLessThan %37 %848 %36 %250 = OpSLessThan %37 %849 %40 %251 = OpLogicalAnd %37 %248 %250 OpLoopMerge %244 %245 None OpBranchConditional %251 %243 %244 %243 = OpLabel OpBranch %253 %253 = OpLabel %946 = OpPhi %37 %947 %243 %1323 %256 %906 = OpPhi %6 %907 %243 %584 %256 %851 = OpPhi %6 %849 %243 %582 %256 %850 = OpPhi %6 %9 %243 %580 %256 %259 = OpSLessThan %37 %850 %36 %261 = OpSLessThan %37 %851 %40 %262 = OpLogicalAnd %37 %259 %261 OpLoopMerge %255 %256 None OpBranchConditional %262 %254 %255 %254 = OpLabel OpBranch %264 %264 = OpLabel %945 = OpPhi %37 %946 %254 %1286 %267 %905 = OpPhi %6 %906 %254 %578 %267 %853 = OpPhi %6 %851 %254 %576 %267 %852 = OpPhi %6 %9 %254 %574 %267 %270 = OpSLessThan %37 %852 %36 %272 = OpSLessThan %37 %853 %40 %273 = OpLogicalAnd %37 %270 %272 OpLoopMerge %266 %267 None OpBranchConditional %273 %265 %266 %265 = OpLabel OpBranch %275 %275 = OpLabel %944 = OpPhi %37 %945 %265 %1251 %278 %904 = OpPhi %6 %905 %265 %572 %278 %855 = OpPhi %6 %853 %265 %570 %278 %854 = OpPhi %6 %9 %265 %568 %278 %281 = OpSLessThan %37 %854 %36 %283 = OpSLessThan %37 %855 %40 %284 = OpLogicalAnd %37 %281 %283 OpLoopMerge %277 %278 None OpBranchConditional %284 %276 %277 %276 = OpLabel OpBranch %286 %286 = OpLabel %943 = OpPhi %37 %944 %276 %1218 %289 %903 = OpPhi %6 %904 %276 %566 %289 %857 = OpPhi %6 %855 %276 %564 %289 %856 = OpPhi %6 %9 %276 %562 %289 %292 = OpSLessThan %37 %856 %36 %294 = OpSLessThan %37 %857 %40 %295 = OpLogicalAnd %37 %292 %294 OpLoopMerge %288 %289 None OpBranchConditional %295 %287 %288 %287 = OpLabel OpBranch %297 %297 = OpLabel %942 = OpPhi %37 %943 %287 %1187 %300 %902 = OpPhi %6 %903 %287 %560 %300 %859 = OpPhi %6 %857 %287 %558 %300 %858 = OpPhi %6 %9 %287 %556 %300 %303 = OpSLessThan %37 %858 %36 %305 = OpSLessThan %37 %859 %40 %306 = OpLogicalAnd %37 %303 %305 OpLoopMerge %299 %300 None OpBranchConditional %306 %298 %299 %298 = OpLabel OpBranch %308 %308 = OpLabel %941 = OpPhi %37 %942 %298 %1158 %311 %901 = OpPhi %6 %902 %298 %554 %311 %861 = OpPhi %6 %859 %298 %552 %311 %860 = OpPhi %6 %9 %298 %550 %311 %314 = OpSLessThan %37 %860 %36 %316 = OpSLessThan %37 %861 %40 %317 = OpLogicalAnd %37 %314 %316 OpLoopMerge %310 %311 None OpBranchConditional %317 %309 %310 %309 = OpLabel OpBranch %319 %319 = OpLabel %940 = OpPhi %37 %941 %309 %1131 %322 %900 = OpPhi %6 %901 %309 %548 %322 %863 = OpPhi %6 %861 %309 %546 %322 %862 = OpPhi %6 %9 %309 %544 %322 %325 = OpSLessThan %37 %862 %36 %327 = OpSLessThan %37 %863 %40 %328 = OpLogicalAnd %37 %325 %327 OpLoopMerge %321 %322 None OpBranchConditional %328 %320 %321 %320 = OpLabel OpBranch %330 %330 = OpLabel %939 = OpPhi %37 %940 %320 %1106 %333 %899 = OpPhi %6 %900 %320 %542 %333 %865 = OpPhi %6 %863 %320 %540 %333 %864 = OpPhi %6 %9 %320 %538 %333 %336 = OpSLessThan %37 %864 %36 %338 = OpSLessThan %37 %865 %40 %339 = OpLogicalAnd %37 %336 %338 OpLoopMerge %332 %333 None OpBranchConditional %339 %331 %332 %331 = OpLabel OpBranch %341 %341 = OpLabel %938 = OpPhi %37 %939 %331 %1083 %344 %898 = OpPhi %6 %899 %331 %536 %344 %867 = OpPhi %6 %865 %331 %534 %344 %866 = OpPhi %6 %9 %331 %532 %344 %347 = OpSLessThan %37 %866 %36 %349 = OpSLessThan %37 %867 %40 %350 = OpLogicalAnd %37 %347 %349 OpLoopMerge %343 %344 None OpBranchConditional %350 %342 %343 %342 = OpLabel OpBranch %352 %352 = OpLabel %937 = OpPhi %37 %938 %342 %1062 %355 %897 = OpPhi %6 %898 %342 %530 %355 %869 = OpPhi %6 %867 %342 %528 %355 %868 = OpPhi %6 %9 %342 %526 %355 %358 = OpSLessThan %37 %868 %36 %360 = OpSLessThan %37 %869 %40 %361 = OpLogicalAnd %37 %358 %360 OpLoopMerge %354 %355 None OpBranchConditional %361 %353 %354 %353 = OpLabel OpBranch %363 %363 = OpLabel %936 = OpPhi %37 %937 %353 %1043 %366 %896 = OpPhi %6 %897 %353 %524 %366 %871 = OpPhi %6 %869 %353 %522 %366 %870 = OpPhi %6 %9 %353 %520 %366 %369 = OpSLessThan %37 %870 %36 %371 = OpSLessThan %37 %871 %40 %372 = OpLogicalAnd %37 %369 %371 OpLoopMerge %365 %366 None OpBranchConditional %372 %364 %365 %364 = OpLabel OpBranch %374 %374 = OpLabel %935 = OpPhi %37 %936 %364 %1026 %377 %895 = OpPhi %6 %896 %364 %518 %377 %873 = OpPhi %6 %871 %364 %516 %377 %872 = OpPhi %6 %9 %364 %514 %377 %380 = OpSLessThan %37 %872 %36 %382 = OpSLessThan %37 %873 %40 %383 = OpLogicalAnd %37 %380 %382 OpLoopMerge %376 %377 None OpBranchConditional %383 %375 %376 %375 = OpLabel OpBranch %385 %385 = OpLabel %934 = OpPhi %37 %935 %375 %1011 %388 %894 = OpPhi %6 %895 %375 %512 %388 %875 = OpPhi %6 %873 %375 %510 %388 %874 = OpPhi %6 %9 %375 %508 %388 %391 = OpSLessThan %37 %874 %36 %393 = OpSLessThan %37 %875 %40 %394 = OpLogicalAnd %37 %391 %393 OpLoopMerge %387 %388 None OpBranchConditional %394 %386 %387 %386 = OpLabel OpBranch %396 %396 = OpLabel %933 = OpPhi %37 %934 %386 %998 %399 %893 = OpPhi %6 %894 %386 %506 %399 %877 = OpPhi %6 %875 %386 %504 %399 %876 = OpPhi %6 %9 %386 %502 %399 %402 = OpSLessThan %37 %876 %36 %404 = OpSLessThan %37 %877 %40 %405 = OpLogicalAnd %37 %402 %404 OpLoopMerge %398 %399 None OpBranchConditional %405 %397 %398 %397 = OpLabel OpBranch %407 %407 = OpLabel %932 = OpPhi %37 %933 %397 %987 %410 %892 = OpPhi %6 %893 %397 %500 %410 %879 = OpPhi %6 %877 %397 %498 %410 %878 = OpPhi %6 %9 %397 %496 %410 %413 = OpSLessThan %37 %878 %36 %415 = OpSLessThan %37 %879 %40 %416 = OpLogicalAnd %37 %413 %415 OpLoopMerge %409 %410 None OpBranchConditional %416 %408 %409 %408 = OpLabel OpBranch %418 %418 = OpLabel %931 = OpPhi %37 %932 %408 %978 %421 %891 = OpPhi %6 %892 %408 %494 %421 %881 = OpPhi %6 %879 %408 %492 %421 %880 = OpPhi %6 %9 %408 %490 %421 %424 = OpSLessThan %37 %880 %36 %426 = OpSLessThan %37 %881 %40 %427 = OpLogicalAnd %37 %424 %426 OpLoopMerge %420 %421 None OpBranchConditional %427 %419 %420 %419 = OpLabel OpBranch %429 %429 = OpLabel %930 = OpPhi %37 %931 %419 %971 %432 %890 = OpPhi %6 %891 %419 %488 %432 %883 = OpPhi %6 %881 %419 %486 %432 %882 = OpPhi %6 %9 %419 %484 %432 %435 = OpSLessThan %37 %882 %36 %437 = OpSLessThan %37 %883 %40 %438 = OpLogicalAnd %37 %435 %437 OpLoopMerge %431 %432 None OpBranchConditional %438 %430 %431 %430 = OpLabel OpBranch %440 %440 = OpLabel %929 = OpPhi %37 %930 %430 %927 %443 %889 = OpPhi %6 %890 %430 %482 %443 %885 = OpPhi %6 %883 %430 %480 %443 %884 = OpPhi %6 %9 %430 %478 %443 %446 = OpSLessThan %37 %884 %36 %448 = OpSLessThan %37 %885 %40 %449 = OpLogicalAnd %37 %446 %448 OpLoopMerge %442 %443 None OpBranchConditional %449 %441 %442 %441 = OpLabel OpBranch %451 %451 = OpLabel %888 = OpPhi %6 %889 %441 %476 %454 %887 = OpPhi %6 %885 %441 %474 %454 %886 = OpPhi %6 %9 %441 %472 %454 %457 = OpSLessThan %37 %886 %36 %459 = OpSLessThan %37 %887 %40 %460 = OpLogicalAnd %37 %457 %459 OpLoopMerge %453 %454 None OpBranchConditional %460 %452 %453 %452 = OpLabel %464 = OpAccessChain %463 %16 %462 %465 = OpLoad %10 %464 %466 = OpFOrdLessThan %37 %465 %22 OpSelectionMerge %468 None OpBranchConditional %466 %467 %468 %467 = OpLabel OpBranch %453 %468 = OpLabel OpBranch %454 %454 = OpLabel %472 = OpIAdd %6 %886 %471 %474 = OpIAdd %6 %887 %471 %476 = OpIAdd %6 %888 %471 OpBranch %451 %453 = OpLabel %927 = OpPhi %37 %929 %451 %729 %467 OpSelectionMerge %730 None OpBranchConditional %927 %442 %730 %730 = OpLabel OpBranch %443 %443 = OpLabel %478 = OpIAdd %6 %884 %471 %480 = OpIAdd %6 %887 %471 %482 = OpIAdd %6 %888 %471 OpBranch %440 %442 = OpLabel %977 = OpPhi %6 %889 %440 %888 %453 %976 = OpPhi %6 %885 %440 %887 %453 %971 = OpPhi %37 %929 %440 %927 %453 OpSelectionMerge %732 None OpBranchConditional %971 %431 %732 %732 = OpLabel OpBranch %432 %432 = OpLabel %484 = OpIAdd %6 %882 %471 %486 = OpIAdd %6 %976 %471 %488 = OpIAdd %6 %977 %471 OpBranch %429 %431 = OpLabel %986 = OpPhi %6 %890 %429 %977 %442 %985 = OpPhi %6 %883 %429 %976 %442 %978 = OpPhi %37 %930 %429 %971 %442 OpSelectionMerge %734 None OpBranchConditional %978 %420 %734 %734 = OpLabel OpBranch %421 %421 = OpLabel %490 = OpIAdd %6 %880 %471 %492 = OpIAdd %6 %985 %471 %494 = OpIAdd %6 %986 %471 OpBranch %418 %420 = OpLabel %997 = OpPhi %6 %891 %418 %986 %431 %996 = OpPhi %6 %881 %418 %985 %431 %987 = OpPhi %37 %931 %418 %978 %431 OpSelectionMerge %736 None OpBranchConditional %987 %409 %736 %736 = OpLabel OpBranch %410 %410 = OpLabel %496 = OpIAdd %6 %878 %471 %498 = OpIAdd %6 %996 %471 %500 = OpIAdd %6 %997 %471 OpBranch %407 %409 = OpLabel %1010 = OpPhi %6 %892 %407 %997 %420 %1009 = OpPhi %6 %879 %407 %996 %420 %998 = OpPhi %37 %932 %407 %987 %420 OpSelectionMerge %738 None OpBranchConditional %998 %398 %738 %738 = OpLabel OpBranch %399 %399 = OpLabel %502 = OpIAdd %6 %876 %471 %504 = OpIAdd %6 %1009 %471 %506 = OpIAdd %6 %1010 %471 OpBranch %396 %398 = OpLabel %1025 = OpPhi %6 %893 %396 %1010 %409 %1024 = OpPhi %6 %877 %396 %1009 %409 %1011 = OpPhi %37 %933 %396 %998 %409 OpSelectionMerge %740 None OpBranchConditional %1011 %387 %740 %740 = OpLabel OpBranch %388 %388 = OpLabel %508 = OpIAdd %6 %874 %471 %510 = OpIAdd %6 %1024 %471 %512 = OpIAdd %6 %1025 %471 OpBranch %385 %387 = OpLabel %1042 = OpPhi %6 %894 %385 %1025 %398 %1041 = OpPhi %6 %875 %385 %1024 %398 %1026 = OpPhi %37 %934 %385 %1011 %398 OpSelectionMerge %742 None OpBranchConditional %1026 %376 %742 %742 = OpLabel OpBranch %377 %377 = OpLabel %514 = OpIAdd %6 %872 %471 %516 = OpIAdd %6 %1041 %471 %518 = OpIAdd %6 %1042 %471 OpBranch %374 %376 = OpLabel %1061 = OpPhi %6 %895 %374 %1042 %387 %1060 = OpPhi %6 %873 %374 %1041 %387 %1043 = OpPhi %37 %935 %374 %1026 %387 OpSelectionMerge %744 None OpBranchConditional %1043 %365 %744 %744 = OpLabel OpBranch %366 %366 = OpLabel %520 = OpIAdd %6 %870 %471 %522 = OpIAdd %6 %1060 %471 %524 = OpIAdd %6 %1061 %471 OpBranch %363 %365 = OpLabel %1082 = OpPhi %6 %896 %363 %1061 %376 %1081 = OpPhi %6 %871 %363 %1060 %376 %1062 = OpPhi %37 %936 %363 %1043 %376 OpSelectionMerge %746 None OpBranchConditional %1062 %354 %746 %746 = OpLabel OpBranch %355 %355 = OpLabel %526 = OpIAdd %6 %868 %471 %528 = OpIAdd %6 %1081 %471 %530 = OpIAdd %6 %1082 %471 OpBranch %352 %354 = OpLabel %1105 = OpPhi %6 %897 %352 %1082 %365 %1104 = OpPhi %6 %869 %352 %1081 %365 %1083 = OpPhi %37 %937 %352 %1062 %365 OpSelectionMerge %748 None OpBranchConditional %1083 %343 %748 %748 = OpLabel OpBranch %344 %344 = OpLabel %532 = OpIAdd %6 %866 %471 %534 = OpIAdd %6 %1104 %471 %536 = OpIAdd %6 %1105 %471 OpBranch %341 %343 = OpLabel %1130 = OpPhi %6 %898 %341 %1105 %354 %1129 = OpPhi %6 %867 %341 %1104 %354 %1106 = OpPhi %37 %938 %341 %1083 %354 OpSelectionMerge %750 None OpBranchConditional %1106 %332 %750 %750 = OpLabel OpBranch %333 %333 = OpLabel %538 = OpIAdd %6 %864 %471 %540 = OpIAdd %6 %1129 %471 %542 = OpIAdd %6 %1130 %471 OpBranch %330 %332 = OpLabel %1157 = OpPhi %6 %899 %330 %1130 %343 %1156 = OpPhi %6 %865 %330 %1129 %343 %1131 = OpPhi %37 %939 %330 %1106 %343 OpSelectionMerge %752 None OpBranchConditional %1131 %321 %752 %752 = OpLabel OpBranch %322 %322 = OpLabel %544 = OpIAdd %6 %862 %471 %546 = OpIAdd %6 %1156 %471 %548 = OpIAdd %6 %1157 %471 OpBranch %319 %321 = OpLabel %1186 = OpPhi %6 %900 %319 %1157 %332 %1185 = OpPhi %6 %863 %319 %1156 %332 %1158 = OpPhi %37 %940 %319 %1131 %332 OpSelectionMerge %754 None OpBranchConditional %1158 %310 %754 %754 = OpLabel OpBranch %311 %311 = OpLabel %550 = OpIAdd %6 %860 %471 %552 = OpIAdd %6 %1185 %471 %554 = OpIAdd %6 %1186 %471 OpBranch %308 %310 = OpLabel %1217 = OpPhi %6 %901 %308 %1186 %321 %1216 = OpPhi %6 %861 %308 %1185 %321 %1187 = OpPhi %37 %941 %308 %1158 %321 OpSelectionMerge %756 None OpBranchConditional %1187 %299 %756 %756 = OpLabel OpBranch %300 %300 = OpLabel %556 = OpIAdd %6 %858 %471 %558 = OpIAdd %6 %1216 %471 %560 = OpIAdd %6 %1217 %471 OpBranch %297 %299 = OpLabel %1250 = OpPhi %6 %902 %297 %1217 %310 %1249 = OpPhi %6 %859 %297 %1216 %310 %1218 = OpPhi %37 %942 %297 %1187 %310 OpSelectionMerge %758 None OpBranchConditional %1218 %288 %758 %758 = OpLabel OpBranch %289 %289 = OpLabel %562 = OpIAdd %6 %856 %471 %564 = OpIAdd %6 %1249 %471 %566 = OpIAdd %6 %1250 %471 OpBranch %286 %288 = OpLabel %1285 = OpPhi %6 %903 %286 %1250 %299 %1284 = OpPhi %6 %857 %286 %1249 %299 %1251 = OpPhi %37 %943 %286 %1218 %299 OpSelectionMerge %760 None OpBranchConditional %1251 %277 %760 %760 = OpLabel OpBranch %278 %278 = OpLabel %568 = OpIAdd %6 %854 %471 %570 = OpIAdd %6 %1284 %471 %572 = OpIAdd %6 %1285 %471 OpBranch %275 %277 = OpLabel %1322 = OpPhi %6 %904 %275 %1285 %288 %1321 = OpPhi %6 %855 %275 %1284 %288 %1286 = OpPhi %37 %944 %275 %1251 %288 OpSelectionMerge %762 None OpBranchConditional %1286 %266 %762 %762 = OpLabel OpBranch %267 %267 = OpLabel %574 = OpIAdd %6 %852 %471 %576 = OpIAdd %6 %1321 %471 %578 = OpIAdd %6 %1322 %471 OpBranch %264 %266 = OpLabel %1361 = OpPhi %6 %905 %264 %1322 %277 %1360 = OpPhi %6 %853 %264 %1321 %277 %1323 = OpPhi %37 %945 %264 %1286 %277 OpSelectionMerge %764 None OpBranchConditional %1323 %255 %764 %764 = OpLabel OpBranch %256 %256 = OpLabel %580 = OpIAdd %6 %850 %471 %582 = OpIAdd %6 %1360 %471 %584 = OpIAdd %6 %1361 %471 OpBranch %253 %255 = OpLabel %1402 = OpPhi %6 %906 %253 %1361 %266 %1401 = OpPhi %6 %851 %253 %1360 %266 %1362 = OpPhi %37 %946 %253 %1323 %266 OpSelectionMerge %766 None OpBranchConditional %1362 %244 %766 %766 = OpLabel OpBranch %245 %245 = OpLabel %586 = OpIAdd %6 %848 %471 %588 = OpIAdd %6 %1401 %471 %590 = OpIAdd %6 %1402 %471 OpBranch %242 %244 = OpLabel %1445 = OpPhi %6 %907 %242 %1402 %255 %1444 = OpPhi %6 %849 %242 %1401 %255 %1403 = OpPhi %37 %947 %242 %1362 %255 OpSelectionMerge %768 None OpBranchConditional %1403 %233 %768 %768 = OpLabel OpBranch %234 %234 = OpLabel %592 = OpIAdd %6 %846 %471 %594 = OpIAdd %6 %1444 %471 %596 = OpIAdd %6 %1445 %471 OpBranch %231 %233 = OpLabel %1490 = OpPhi %6 %908 %231 %1445 %244 %1489 = OpPhi %6 %847 %231 %1444 %244 %1446 = OpPhi %37 %948 %231 %1403 %244 OpSelectionMerge %770 None OpBranchConditional %1446 %222 %770 %770 = OpLabel OpBranch %223 %223 = OpLabel %598 = OpIAdd %6 %844 %471 %600 = OpIAdd %6 %1489 %471 %602 = OpIAdd %6 %1490 %471 OpBranch %220 %222 = OpLabel %1537 = OpPhi %6 %909 %220 %1490 %233 %1536 = OpPhi %6 %845 %220 %1489 %233 %1491 = OpPhi %37 %949 %220 %1446 %233 OpSelectionMerge %772 None OpBranchConditional %1491 %211 %772 %772 = OpLabel OpBranch %212 %212 = OpLabel %604 = OpIAdd %6 %842 %471 %606 = OpIAdd %6 %1536 %471 %608 = OpIAdd %6 %1537 %471 OpBranch %209 %211 = OpLabel %1586 = OpPhi %6 %910 %209 %1537 %222 %1585 = OpPhi %6 %843 %209 %1536 %222 %1538 = OpPhi %37 %950 %209 %1491 %222 OpSelectionMerge %774 None OpBranchConditional %1538 %200 %774 %774 = OpLabel OpBranch %201 %201 = OpLabel %610 = OpIAdd %6 %840 %471 %612 = OpIAdd %6 %1585 %471 %614 = OpIAdd %6 %1586 %471 OpBranch %198 %200 = OpLabel %1637 = OpPhi %6 %911 %198 %1586 %211 %1636 = OpPhi %6 %841 %198 %1585 %211 %1587 = OpPhi %37 %951 %198 %1538 %211 OpSelectionMerge %776 None OpBranchConditional %1587 %189 %776 %776 = OpLabel OpBranch %190 %190 = OpLabel %616 = OpIAdd %6 %838 %471 %618 = OpIAdd %6 %1636 %471 %620 = OpIAdd %6 %1637 %471 OpBranch %187 %189 = OpLabel %1690 = OpPhi %6 %912 %187 %1637 %200 %1689 = OpPhi %6 %839 %187 %1636 %200 %1638 = OpPhi %37 %952 %187 %1587 %200 OpSelectionMerge %778 None OpBranchConditional %1638 %178 %778 %778 = OpLabel OpBranch %179 %179 = OpLabel %622 = OpIAdd %6 %836 %471 %624 = OpIAdd %6 %1689 %471 %626 = OpIAdd %6 %1690 %471 OpBranch %176 %178 = OpLabel %1745 = OpPhi %6 %913 %176 %1690 %189 %1744 = OpPhi %6 %837 %176 %1689 %189 %1691 = OpPhi %37 %953 %176 %1638 %189 OpSelectionMerge %780 None OpBranchConditional %1691 %167 %780 %780 = OpLabel OpBranch %168 %168 = OpLabel %628 = OpIAdd %6 %834 %471 %630 = OpIAdd %6 %1744 %471 %632 = OpIAdd %6 %1745 %471 OpBranch %165 %167 = OpLabel %1802 = OpPhi %6 %914 %165 %1745 %178 %1801 = OpPhi %6 %835 %165 %1744 %178 %1746 = OpPhi %37 %954 %165 %1691 %178 OpSelectionMerge %782 None OpBranchConditional %1746 %156 %782 %782 = OpLabel OpBranch %157 %157 = OpLabel %634 = OpIAdd %6 %832 %471 %636 = OpIAdd %6 %1801 %471 %638 = OpIAdd %6 %1802 %471 OpBranch %154 %156 = OpLabel %1861 = OpPhi %6 %915 %154 %1802 %167 %1860 = OpPhi %6 %833 %154 %1801 %167 %1803 = OpPhi %37 %955 %154 %1746 %167 OpSelectionMerge %784 None OpBranchConditional %1803 %145 %784 %784 = OpLabel OpBranch %146 %146 = OpLabel %640 = OpIAdd %6 %830 %471 %642 = OpIAdd %6 %1860 %471 %644 = OpIAdd %6 %1861 %471 OpBranch %143 %145 = OpLabel %1922 = OpPhi %6 %916 %143 %1861 %156 %1921 = OpPhi %6 %831 %143 %1860 %156 %1862 = OpPhi %37 %956 %143 %1803 %156 OpSelectionMerge %786 None OpBranchConditional %1862 %134 %786 %786 = OpLabel OpBranch %135 %135 = OpLabel %646 = OpIAdd %6 %828 %471 %648 = OpIAdd %6 %1921 %471 %650 = OpIAdd %6 %1922 %471 OpBranch %132 %134 = OpLabel %1985 = OpPhi %6 %917 %132 %1922 %145 %1984 = OpPhi %6 %829 %132 %1921 %145 %1923 = OpPhi %37 %957 %132 %1862 %145 OpSelectionMerge %788 None OpBranchConditional %1923 %123 %788 %788 = OpLabel OpBranch %124 %124 = OpLabel %652 = OpIAdd %6 %826 %471 %654 = OpIAdd %6 %1984 %471 %656 = OpIAdd %6 %1985 %471 OpBranch %121 %123 = OpLabel %2050 = OpPhi %6 %918 %121 %1985 %134 %2049 = OpPhi %6 %827 %121 %1984 %134 %1986 = OpPhi %37 %958 %121 %1923 %134 OpSelectionMerge %790 None OpBranchConditional %1986 %112 %790 %790 = OpLabel OpBranch %113 %113 = OpLabel %658 = OpIAdd %6 %824 %471 %660 = OpIAdd %6 %2049 %471 %662 = OpIAdd %6 %2050 %471 OpBranch %110 %112 = OpLabel %2117 = OpPhi %6 %919 %110 %2050 %123 %2116 = OpPhi %6 %825 %110 %2049 %123 %2051 = OpPhi %37 %959 %110 %1986 %123 OpSelectionMerge %792 None OpBranchConditional %2051 %101 %792 %792 = OpLabel OpBranch %102 %102 = OpLabel %664 = OpIAdd %6 %822 %471 %666 = OpIAdd %6 %2116 %471 %668 = OpIAdd %6 %2117 %471 OpBranch %99 %101 = OpLabel %2186 = OpPhi %6 %920 %99 %2117 %112 %2185 = OpPhi %6 %823 %99 %2116 %112 %2118 = OpPhi %37 %960 %99 %2051 %112 OpSelectionMerge %794 None OpBranchConditional %2118 %90 %794 %794 = OpLabel OpBranch %91 %91 = OpLabel %670 = OpIAdd %6 %820 %471 %672 = OpIAdd %6 %2185 %471 %674 = OpIAdd %6 %2186 %471 OpBranch %88 %90 = OpLabel %2257 = OpPhi %6 %921 %88 %2186 %101 %2256 = OpPhi %6 %821 %88 %2185 %101 %2187 = OpPhi %37 %961 %88 %2118 %101 OpSelectionMerge %796 None OpBranchConditional %2187 %79 %796 %796 = OpLabel OpBranch %80 %80 = OpLabel %676 = OpIAdd %6 %818 %471 %678 = OpIAdd %6 %2256 %471 %680 = OpIAdd %6 %2257 %471 OpBranch %77 %79 = OpLabel %2330 = OpPhi %6 %922 %77 %2257 %90 %2329 = OpPhi %6 %819 %77 %2256 %90 %2258 = OpPhi %37 %962 %77 %2187 %90 OpSelectionMerge %798 None OpBranchConditional %2258 %68 %798 %798 = OpLabel OpBranch %69 %69 = OpLabel %682 = OpIAdd %6 %816 %471 %684 = OpIAdd %6 %2329 %471 %686 = OpIAdd %6 %2330 %471 OpBranch %66 %68 = OpLabel %2405 = OpPhi %6 %923 %66 %2330 %79 %2404 = OpPhi %6 %817 %66 %2329 %79 %2331 = OpPhi %37 %963 %66 %2258 %79 OpSelectionMerge %800 None OpBranchConditional %2331 %57 %800 %800 = OpLabel OpBranch %58 %58 = OpLabel %688 = OpIAdd %6 %814 %471 %690 = OpIAdd %6 %2404 %471 %692 = OpIAdd %6 %2405 %471 OpBranch %55 %57 = OpLabel %2482 = OpPhi %6 %924 %55 %2405 %68 %2481 = OpPhi %6 %815 %55 %2404 %68 %2406 = OpPhi %37 %964 %55 %2331 %68 OpSelectionMerge %802 None OpBranchConditional %2406 %46 %802 %802 = OpLabel OpBranch %47 %47 = OpLabel %694 = OpIAdd %6 %812 %471 %696 = OpIAdd %6 %2481 %471 %698 = OpIAdd %6 %2482 %471 OpBranch %44 %46 = OpLabel %2561 = OpPhi %6 %925 %44 %2482 %57 %2560 = OpPhi %6 %813 %44 %2481 %57 %2483 = OpPhi %37 %965 %44 %2406 %57 OpSelectionMerge %804 None OpBranchConditional %2483 %32 %804 %804 = OpLabel OpBranch %33 %33 = OpLabel %700 = OpIAdd %6 %810 %471 %702 = OpIAdd %6 %2560 %471 %704 = OpIAdd %6 %2561 %471 OpBranch %30 %32 = OpLabel %2563 = OpPhi %6 %926 %30 %2561 %46 %2562 = OpPhi %37 %966 %30 %2483 %46 OpSelectionMerge %806 None OpBranchConditional %2562 %724 %806 %806 = OpLabel %708 = OpDPdx %10 %24 %712 = OpDPdy %10 %25 %713 = OpFSub %10 %708 %712 %714 = OpFOrdEqual %37 %713 %22 %717 = OpIEqual %37 %2563 %716 %718 = OpLogicalAnd %37 %714 %717 OpSelectionMerge %720 None OpBranchConditional %718 %719 %722 %719 = OpLabel OpStore %20 %721 OpBranch %720 %722 = OpLabel OpStore %20 %723 OpBranch %720 %720 = OpLabel OpBranch %724 %724 = OpLabel OpReturn OpFunctionEnd
36.679695
55
0.485355
f693cdfd255e7317e27abae86c10d782f582460e
5,125
asm
Assembly
src/extras/media/spectrum/sprite_chip/sonic_sprite_40x48_rolling_4.asm
chipsi007/zesarux
baddd4b27f5216343177d0a007977ad03ceea5fe
[ "BSD-3-Clause", "MIT" ]
null
null
null
src/extras/media/spectrum/sprite_chip/sonic_sprite_40x48_rolling_4.asm
chipsi007/zesarux
baddd4b27f5216343177d0a007977ad03ceea5fe
[ "BSD-3-Clause", "MIT" ]
null
null
null
src/extras/media/spectrum/sprite_chip/sonic_sprite_40x48_rolling_4.asm
chipsi007/zesarux
baddd4b27f5216343177d0a007977ad03ceea5fe
[ "BSD-3-Clause", "MIT" ]
null
null
null
;Converting file sonic_sprite_40x48_rolling_4.bmp with size 40X48 ;Sprite at 0,0 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 1,0 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 2,0 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 3,0 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 4,0 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 0,1 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,1 defb 0,0,1,17 ;Sprite at 1,1 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,7 defb 0,0,0,8 defb 1,17,16,136 defb 17,17,56,135 defb 17,19,136,130 ;Sprite at 2,1 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,2,42,160 defb 0,0,2,42 defb 128,0,0,2 defb 128,8,128,0 defb 128,7,120,0 defb 119,127,247,128 ;Sprite at 3,1 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 170,0,0,0 defb 42,160,0,0 defb 42,170,0,0 defb 2,170,0,0 ;Sprite at 4,1 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 0,2 defb 0,0,0,0,0,0,0,0 defb 0,0,1,17 defb 0,1,17,17 defb 0,0,17,17 defb 0,1,17,17 defb 0,19,51,55 defb 0,17,17,17 defb 0,17,17,17 defb 1,17,17,17 ;Sprite at 1,2 defb 0,0,0,0,0,0,0,0 defb 17,63,255,255 defb 19,63,255,255 defb 19,51,63,243 defb 17,19,51,17 defb 17,17,17,18 defb 17,17,17,18 defb 17,17,17,18 defb 17,17,17,17 ;Sprite at 2,2 defb 0,0,0,0,0,0,0,0 defb 247,255,255,120 defb 39,255,255,120 defb 18,248,255,247 defb 47,248,247,255 defb 47,135,255,255 defb 34,39,255,255 defb 34,33,51,255 defb 34,17,19,115 ;Sprite at 3,2 defb 0,0,0,0,0,0,0,0 defb 2,170,160,0 defb 2,42,170,0 defb 128,34,250,0 defb 135,255,250,0 defb 255,127,170,160 defb 255,114,170,160 defb 63,242,42,160 defb 255,242,18,160 ;Sprite at 4,2 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 0,3 defb 0,0,0,0,0,0,0,0 defb 1,17,17,17 defb 1,17,17,17 defb 1,17,17,17 defb 1,17,17,17 defb 1,17,17,17 defb 0,17,17,17 defb 0,17,17,17 defb 0,17,17,16 ;Sprite at 1,3 defb 0,0,0,0,0,0,0,0 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 ;Sprite at 2,3 defb 0,0,0,0,0,0,0,0 defb 17,17,17,119 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,17,17 defb 17,17,1,17 defb 17,17,0,17 ;Sprite at 3,3 defb 0,0,0,0,0,0,0,0 defb 247,242,18,16 defb 119,113,17,16 defb 17,17,17,0 defb 17,17,17,0 defb 17,17,17,0 defb 16,17,16,0 defb 16,0,0,0 defb 17,0,0,0 ;Sprite at 4,3 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 0,4 defb 0,0,0,0,0,0,0,0 defb 0,1,17,0 defb 0,1,16,0 defb 0,0,16,0 defb 0,0,1,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 1,4 defb 0,0,0,0,0,0,0,0 defb 17,17,17,1 defb 17,17,17,1 defb 1,17,17,0 defb 1,17,17,0 defb 0,17,17,16 defb 0,1,17,16 defb 0,0,1,17 defb 0,0,0,0 ;Sprite at 2,4 defb 0,0,0,0,0,0,0,0 defb 17,17,0,0 defb 17,17,0,0 defb 17,17,16,0 defb 1,17,17,0 defb 0,1,17,17 defb 0,0,0,0 defb 16,0,0,0 defb 0,0,0,0 ;Sprite at 3,4 defb 0,0,0,0,0,0,0,0 defb 17,17,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 4,4 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 0,5 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 1,5 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 2,5 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 3,5 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 ;Sprite at 4,5 defb 0,0,0,0,0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0 defb 0,0,0,0
16.970199
65
0.582829
5517623966ab1bb4c0c7ee5dd4d3094e76a3a78c
3,347
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_169_810.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_169_810.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_169_810.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %r8 push %rcx push %rdx push %rsi lea addresses_A_ht+0xd4ee, %r10 clflush (%r10) add $52904, %rcx movl $0x61626364, (%r10) nop inc %r8 lea addresses_D_ht+0x373e, %rdx nop nop nop cmp $15607, %rcx movups (%rdx), %xmm7 vpextrq $1, %xmm7, %rsi nop nop sub $30254, %r10 lea addresses_D_ht+0x5fd6, %rdx nop nop inc %r14 movups (%rdx), %xmm4 vpextrq $0, %xmm4, %rsi sub $42465, %rsi lea addresses_UC_ht+0x10fd6, %r8 and $15436, %rcx movups (%r8), %xmm1 vpextrq $1, %xmm1, %r14 nop nop nop nop sub $14212, %r8 lea addresses_A_ht+0x47d6, %r8 nop nop nop nop xor %rcx, %rcx mov (%r8), %r10w nop nop nop nop inc %r10 pop %rsi pop %rdx pop %rcx pop %r8 pop %r15 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r8 push %r9 push %rax push %rbx push %rcx push %rsi // Store lea addresses_WC+0x1d25c, %r10 nop nop nop nop add $7206, %rsi mov $0x5152535455565758, %rbx movq %rbx, %xmm6 movups %xmm6, (%r10) inc %r8 // Store lea addresses_UC+0x1c016, %rax nop nop sub $56813, %rbx movw $0x5152, (%rax) nop nop nop xor $32292, %rax // Store lea addresses_WT+0xb3f6, %r8 clflush (%r8) nop nop nop nop nop add %rcx, %rcx movb $0x51, (%r8) nop nop nop xor $8778, %r10 // Faulty Load lea addresses_A+0xdfd6, %r10 inc %rcx vmovaps (%r10), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %rsi lea oracles, %rbx and $0xff, %rsi shlq $12, %rsi mov (%rbx,%rsi,1), %rsi pop %rsi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WC', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 32, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'} {'00': 169} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
22.614865
506
0.643561
b494e8292e78f5036bd16a95bb9099337df1e96d
6,310
asm
Assembly
Transynther/x86/_processed/P/_ht_un_/i9-9900K_12_0xca.log_625_1489.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/P/_ht_un_/i9-9900K_12_0xca.log_625_1489.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/P/_ht_un_/i9-9900K_12_0xca.log_625_1489.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1153c, %r11 nop nop nop cmp $4522, %rdx movl $0x61626364, (%r11) nop nop cmp $33816, %r8 lea addresses_UC_ht+0x18094, %r14 nop nop sub %rax, %rax movups (%r14), %xmm4 vpextrq $0, %xmm4, %rbp nop xor %rbp, %rbp lea addresses_D_ht+0x10cb4, %rbp clflush (%rbp) inc %r11 movups (%rbp), %xmm7 vpextrq $0, %xmm7, %r14 nop nop nop nop sub %r8, %r8 lea addresses_normal_ht+0x126d4, %rax nop nop nop nop nop add $35401, %rdx movw $0x6162, (%rax) nop add %rax, %rax lea addresses_UC_ht+0x9c94, %rax nop nop cmp %r14, %r14 mov (%rax), %r15 nop nop nop cmp $34179, %rdx lea addresses_D_ht+0x44b4, %rbp nop nop dec %r14 mov $0x6162636465666768, %rax movq %rax, %xmm6 vmovups %ymm6, (%rbp) nop nop nop xor %rbp, %rbp lea addresses_normal_ht+0x132f4, %rsi lea addresses_WT_ht+0x9894, %rdi nop nop nop nop nop and %r8, %r8 mov $14, %rcx rep movsb nop and %rdi, %rdi lea addresses_A_ht+0x8094, %rax nop nop nop nop nop sub $36971, %rdx mov (%rax), %r14 nop nop cmp %rsi, %rsi lea addresses_normal_ht+0x2f94, %rdi clflush (%rdi) nop nop cmp $37743, %rbp mov $0x6162636465666768, %rdx movq %rdx, %xmm6 movups %xmm6, (%rdi) nop nop nop nop and %rax, %rax lea addresses_WC_ht+0xd018, %rax and %r15, %r15 movl $0x61626364, (%rax) cmp %rsi, %rsi lea addresses_WC_ht+0x3194, %rbp and %rcx, %rcx mov $0x6162636465666768, %rax movq %rax, %xmm7 movups %xmm7, (%rbp) nop nop xor %rcx, %rcx lea addresses_D_ht+0x42de, %r11 clflush (%r11) dec %rdi movb (%r11), %r14b nop nop nop add $33024, %rbp lea addresses_D_ht+0x9994, %r8 nop nop nop nop cmp %rax, %rax movl $0x61626364, (%r8) inc %rsi lea addresses_A_ht+0xc494, %rsi lea addresses_D_ht+0xac5c, %rdi nop nop nop nop sub %rax, %rax mov $60, %rcx rep movsw nop nop nop add %rbp, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %rax push %rbp push %rsi // Faulty Load mov $0x94, %rax nop sub $17407, %r11 movups (%rax), %xmm1 vpextrq $1, %xmm1, %rbp lea oracles, %rsi and $0xff, %rbp shlq $12, %rbp mov (%rsi,%rbp,1), %rbp pop %rsi pop %rbp pop %rax pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': True, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_P', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': True, 'congruent': 2}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 2}} {'ff': 1, '45': 614, 'fe': 4, '46': 6} 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 fe 45 45 45 45 45 45 45 45 45 45 45 45 45 45 46 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 46 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 ff 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 46 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 fe 45 45 45 45 45 45 45 45 45 45 45 45 45 46 45 45 45 45 45 45 45 45 46 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 46 45 45 45 45 45 45 45 45 45 45 45 45 fe 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 fe 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 45 */
30.336538
1,874
0.651189
81b59b7cc1f8318c2752170d443f7075e62f6469
722
asm
Assembly
oeis/010/A010552.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/010/A010552.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/010/A010552.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A010552: Multiply successively by 1 (once), 2 (twice), 3 (thrice), etc. ; Submitted by Christian Krause ; 1,1,2,4,12,36,108,432,1728,6912,27648,138240,691200,3456000,17280000,86400000,518400000,3110400000,18662400000,111974400000,671846400000,4031078400000,28217548800000,197522841600000,1382659891200000,9678619238400000,67750334668800000,474252342681600000,3319766398771200000,26558131190169600000,212465049521356800000,1699720396170854400000,13597763169366835200000,108782105354934681600000,870256842839477452800000,6962054742715819622400000,55696437941726556979200000,501267941475539012812800000 mov $1,3 mov $3,3 lpb $0 sub $0,1 mov $2,$3 div $2,$1 mul $3,$2 add $3,$1 mul $1,$2 lpe mov $0,$1 div $0,3
42.470588
495
0.815789