text
stringlengths
12
867k
; A017049: a(n) = (7*n + 5)^9. ; 1953125,5159780352,322687697779,5429503678976,46411484401953,262144000000000,1119130473102767,3904305912313344,11694146092834141,31087100296429568,75084686279296875,167619550409708032,350356403707485209,692533995824480256,1304773183829244583,2357947691000000000,4108400332687853397,6930988311686938624,11361656654439817571,18151468971815029248,28334269484119140625,43310409649448026112,64949246777441383839,95713410696980686336,138808137876363860813,198359290368000000000,279624009566694318427 mul $0,7 add $0,5 pow $0,9
jal test1 test1: jal test2 test2: jal test3 test3: jal test4 test4: jal test5 test5: jal test6 test6: li $a0, 1000
; A052945: Number of compositions of n when each odd part can be of two kinds. ; 1,2,5,14,38,104,284,776,2120,5792,15824,43232,118112,322688,881600,2408576,6580352,17977856,49116416,134188544,366609920,1001596928,2736413696,7476021248,20424869888,55801782272,152453304320,416510173184,1137926955008,3108874256384,8493602422784,23204953358336,63397111562240,173204129841152,473202482806784,1292813225295872,3532031416205312,9649689283002368,26363441398415360,72026261362835456,196779405522501632,537611333770674176,1468781478586351616,4012785624714051584,10963134206600806400 mov $1,1 lpb $0 sub $0,1 add $2,$3 add $2,$1 sub $1,$3 mov $3,$1 add $1,$2 lpe mov $0,$1
; A211618: Number of ordered triples (w,x,y) with all terms in {-n,...-1,1,...,n} and 2w+x+y>1. ; 0,3,24,89,218,439,772,1245,1878,2699,3728,4993,6514,8319,10428,12869,15662,18835,22408,26409,30858,35783,41204,47149,53638,60699,68352,76625,85538,95119,105388,116373,128094,140579,153848,167929,182842,198615,215268,232829,251318,270763,291184,312609,335058,358559,383132,408805,435598,463539,492648,522953,554474,587239,621268,656589,693222,731195,770528,811249,853378,896943,941964,988469,1036478,1086019,1137112,1189785,1244058,1299959,1357508,1416733,1477654,1540299,1604688,1670849,1738802,1808575,1880188,1953669,2029038,2106323,2185544,2266729,2349898,2435079,2522292,2611565,2702918,2796379,2891968,2989713,3089634,3191759,3296108,3402709,3511582,3622755,3736248,3852089 mov $4,$0 sub $4,1 pow $4,3 div $4,2 mul $4,2 mov $5,9 add $5,$4 mov $1,$5 sub $1,9 mov $3,$0 mul $3,$0 mul $3,$0 mov $2,$3 mul $2,3 add $1,$2 mov $0,$1
; A227653: a(1) = least k such that 1/2 + 1/3 < H(k) - H(3); a(2) = least k such that H(a(1)) - H(3) < H(k) -H(a(1)), and for n > 2, a(n) = least k such that H(a(n-1)) - H(a(n-2) > H(k) - H(a(n-1)), where H = harmonic number. ; 8,21,54,138,352,897,2285,5820,14823,37752,96148,244872,623645,1588311,4045140,10302237,26237926,66823230,170186624,433434405,1103878665,2811378360,7160069791,18235396608,46442241368,118279949136,301237536249,767197263003,1953912011392,4976258822037,12673626918470,32277424670370,82204735081248,209360521751337,533203203254293,1357971663341172,3458507051687975,8808188969971416,22432856654971980,57132409331603352,145505864288150101,370576994562875535,943792262745504524,2403667384342034685,6121704025992449430,15590867699072438070,39707106808479360256,101126785342023608013,257551545191599014353,655936982533700996976,1670552295601024616319,4254593118927349243968,10835675515989424101232,27596496446507222062752,70283261527931217470705,178998695018359081105395,455877148011156601744248,1161036252568603502064597,2956948348166722686978838,7530810096913205477766522,19179604794561737144576480,48846968034203402453898321,124404350959881747530139645,316835274748528634658754092,806921868491142419301546151,2055083362690695220791986040,5233923868621061495544272324,13329852968423960631182076840,33948713168159677978700412045,86461203173364378084127173255,220200972483312394778136835396,560811861308148845619101256093,1428285898272974464100466520838,3637584630337410168598171133166,9264267020255943646915910043264,23594404569122271926530457740533,60090660788837897668574996657497,153039993167054010910596361098792,389765051692068191416298176595615,992660757340028291411767710947520,2528126559539178785150429959589448,6438678928110454053128925806722032,16398145173100115182820049283981033,41763095833849863203919454334273547,106363015768910295643787883759250160,270887272544770569674315271136754901,689900656692301298196337880367033510 add $0,2 seq $0,77849 ; Expansion of (1-x)^(-1)/(1 - 2*x - x^2 - x^3).
; A098772: a(n) = Sum_{k=0..n} binomial(2*n,2*k)^2. ; Submitted by Christian Krause ; 1,2,38,452,6470,92252,1352540,20056584,300546630,4537543340,68923356788,1052049129144,16123803193628,247959261273752,3824345320438520,59132290704871952,916312070771835462,14226520736453485260,221256270142955957252,3446310324328958045400,53753604366737011495220,839455243105676416186440,13124252690843477643962760,205397724721025457950724720,3217533506933165578012643100,50445672272782033462103029752,791532924062974835638040538120,12428892245768719491339548685104,195295022443578898504510566613112 mov $1,$0 add $1,$0 seq $1,119358 ; Number of n-element subsets of [2n] having an even sum. mov $0,$1
; A003451: Number of nonequivalent dissections of an n-gon into 3 polygons by nonintersecting diagonals up to rotation. ; 1,4,8,16,25,40,56,80,105,140,176,224,273,336,400,480,561,660,760,880,1001,1144,1288,1456,1625,1820,2016,2240,2465,2720,2976,3264,3553,3876,4200,4560,4921,5320,5720,6160,6601,7084,7568,8096,8625,9200,9776,10400 mov $1,$0 add $0,4 bin $0,3 mov $2,$1 add $2,1 dif $2,2 sub $0,$2 sub $0,3 div $0,2 add $0,1
; float tanh(float x) SECTION code_fp_math48 PUBLIC cm48_sdcciy_tanh EXTERN cm48_sdcciy_tanh_fastcall cm48_sdcciy_tanh: pop af pop hl pop de push de push hl push af jp cm48_sdcciy_tanh_fastcall
; A059502: a(n) = (3*n*F(2n-1) + (3-n)*F(2n))/5 where F() = Fibonacci numbers A000045. ; 0,1,3,9,27,80,234,677,1941,5523,15615,43906,122868,342409,950727,2631165,7260579,19982612,54865566,150316973,411015705,1121818311,3056773383,8316416134,22593883752,61301547025,166118284299,449639574897,1215751720491,3283883157848,8861749186770,23892651132341,64364212966173,173252727304059,466004178803727,1252537699142410,3364332378871644,9030851928181657,24226677417552591,64954149869404773,174052226813568435,466146924895091996,1247805276220175238,3338574694487045309,8928419451057327777,23866879799412427695,63772307725546057239,170330110571596560142,454758137793989969616,1213684577030241571873,3237976302151593069075,8635546181769244381401,23022887091335401990203,61360487784430040588384,163486469490354694857402,435455227679640890232005,1159520241299188539500709,3086672272476779573008227,8214555877157094150076191,21855606485813479944138898,58134037659714332912543940,154593217604803503417184681,411003974409687143979881943,1092447072277756843821384909,2903063983129089166740172227,7712896732572529078867906340,20487355040272047558013971054,54408203009831243637156505037,144462629028301023991252614441,383496774570722220208010051223,1017853591131737471609206607655,2701024597672455307677488264086,7166276101981651955620464593208,19010010809712605958717646249009,50419321731380458614936489945627,133702443495661542569770130229825,354495910685078194451004804877899,939754505236762344169458690164072,2490867353127302722859383578760866,6601177581774238175428514579797973,17491555726980594971683615448524845,46341830575894003893374875095772491,122760068596095605001441184540888623,325148432021848918836196659303185434,861089265302425286389892560995447852 lpb $0 sub $0,1 mov $2,$0 max $2,0 seq $2,94864 ; a(0)=1, a(1)=2, a(2)=6, a(3)=18; for n >= 4, a(n) = 6*a(n-1) - 11*a(n-2) + 6*a(n-3) - a(n-4). add $1,$2 lpe mov $0,$1
-- HUMAN RESOURCE MACHINE PROGRAM -- a: INBOX COPYTO 0 INBOX SUB 0 JUMPN b ADD 0 JUMP c b: COPYFROM 0 c: OUTBOX JUMP a
section .multiboot_header header_start: dd 0xe85250d6 ; a u32 'magic' number required by the multiboot 2 standard dd 0 ; architecture 0 (protected mode i386) dd header_end - header_start ; header length dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; u32 checksum ; this 0x100000000 hack is explained in the guide ; (but I am a bit confused about it ; insert optional multiboot tags here ; required end tag dw 0 ; type dw 0 ; flags dd 8 ; size header_end:
; A193394: Hyper-Wiener index of a benzenoid consisting of a zig-zag chain of n hexagons (s=13; see the Gutman et al. reference). ; 42,215,636,1513,3118,5787,9920,15981,24498,36063,51332,71025,95926,126883,164808,210677,265530,330471,406668,495353,597822,715435,849616,1001853,1173698,1366767,1582740,1823361,2090438,2385843,2711512,3069445,3461706,3890423,4357788,4866057,5417550,6014651,6659808,7355533,8104402,8909055,9772196,10696593,11685078,12740547,13865960,15064341,16338778,17692423,19128492,20650265,22261086,23964363,25763568,27662237,29663970,31772431,33991348,36324513,38775782,41349075,44048376,46877733,49841258,52943127,56187580,59578921,63121518,66819803,70678272,74701485,78894066,83260703,87806148,92535217,97452790,102563811,107873288,113386293,119107962,125043495,131198156,137577273,144186238,151030507,158115600,165447101,173030658,180871983,188976852,197351105,206000646,214931443,224149528,233660997,243472010,253588791,264017628,274764873,285836942,297240315,308981536,321067213,333504018,346298687,359458020,372988881,386898198,401192963,415880232,430967125,446460826,462368583,478697708,495455577,512649630,530287371,548376368,566924253,585938722,605427535,625398516,645859553,666818598,688283667,710262840,732764261,755796138,779366743,803484412,828157545,853394606,879204123,905594688,932574957,960153650,988339551,1017141508,1046568433,1076629302,1107333155,1138689096,1170706293,1203393978,1236761447,1270818060,1305573241,1341036478,1377217323,1414125392,1451770365,1490161986,1529310063,1569224468,1609915137,1651392070,1693665331,1736745048,1780641413,1825364682,1870925175,1917333276,1964599433,2012734158,2061748027,2111651680,2162455821,2214171218,2266808703,2320379172,2374893585,2430362966,2486798403,2544211048,2602612117,2662012890,2722424711,2783858988,2846327193,2909840862,2974411595,3040051056,3106770973,3174583138,3243499407,3313531700,3384692001,3456992358,3530444883,3605061752,3680855205,3757837546,3836021143,3915418428,3996041897,4077904110,4161017691,4245395328,4331049773,4417993842,4506240415,4595802436,4686692913,4778924918,4872511587,4967466120,5063801781,5161531898,5260669863,5361229132,5463223225,5566665726,5671570283,5777950608,5885820477,5995193730,6106084271,6218506068,6332473153,6447999622,6565099635,6683787416,6804077253,6925983498,7049520567,7174702940,7301545161,7430061838,7560267643,7692177312,7825805645,7961167506,8098277823,8237151588,8377803857,8520249750,8664504451,8810583208,8958501333,9108274202,9259917255,9413445996,9568875993,9726222878,9885502347,10046730160,10209922141,10375094178,10542262223 mov $6,$0 mul $0,2 add $0,2 mov $1,$0 mov $2,$0 mov $3,5 mov $5,$0 lpb $2 add $2,1 lpb $5 add $1,$0 add $2,$1 add $2,1 add $4,$3 add $4,$2 sub $5,1 lpe sub $2,$2 lpe mov $1,$4 sub $1,5 lpb $6 add $1,36 sub $6,1 lpe add $1,14
;* * * * * Small-C/Plus z88dk * * * * * ; Version: 16894-223f580fd-20200818 ; ; Reconstructed for z80 Module Assembler ; ; Module compile time: Fri Sep 25 14:55:20 2020 C_LINE 0,"log2f16.c" MODULE log2f16_c INCLUDE "z80_crt0.hdr" C_LINE 40,"log2f16.c" C_LINE 0,"math16.h" C_LINE 0,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 8,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 9,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 10,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 12,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 13,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 14,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 16,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 17,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 18,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 20,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 21,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 22,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 24,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 25,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 26,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 28,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 29,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 30,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 60,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 63,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 81,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 82,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/stdint.h" C_LINE 34,"math16.h" C_LINE 0,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 22,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 39,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 51,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 172,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 175,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 178,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 181,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 182,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 187,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 190,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 193,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 197,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 200,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 203,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 207,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 210,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 213,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 217,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 220,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 223,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 226,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 227,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 231,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 234,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 235,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 239,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 240,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 244,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 245,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 250,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 253,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 256,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 259,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 262,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 266,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 269,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 270,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 275,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 276,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 280,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 283,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 287,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 290,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 293,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 296,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 300,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 303,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 306,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 309,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 312,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 315,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 318,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 321,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 325,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 326,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 330,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 331,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 335,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 336,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 340,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 341,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 346,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 347,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 351,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 355,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 356,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 360,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 361,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 366,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 367,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 372,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 373,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 377,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 378,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 383,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 384,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 389,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 390,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 394,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 395,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 399,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 400,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 404,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 405,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 409,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 410,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 414,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 415,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 479,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 482,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 486,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 489,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 493,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 496,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 499,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 502,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 506,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 509,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 512,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 515,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 518,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 521,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 525,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 526,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 530,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 531,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 535,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 536,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 540,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 541,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 546,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 547,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 551,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 552,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 556,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 557,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 562,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 565,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 569,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 573,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 576,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 579,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 582,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 583,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 587,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 588,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 593,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 596,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 599,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 603,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 606,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 609,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 613,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 616,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 619,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 622,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 625,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 628,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 631,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 632,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 637,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 640,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 643,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 646,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 650,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 651,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 655,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 656,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 660,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 661,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 665,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 666,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 670,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 671,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 675,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 676,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 680,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 681,"/home/phillip/Z80/z88dk/lib/config/../..//include/_DEVELOPMENT/sccz80/math.h" C_LINE 35,"math16.h" C_LINE 48,"log2f16.c" C_LINE 52,"log2f16.c" C_LINE 54,"log2f16.c" SECTION code_compiler ; Function log2f16 flags 0x00000288 __smallc __z88dk_fastcall ; _Float16 half_tlog2f16(_Float16 x) ; parameter '_Float16 x' at sp+2 size(2) C_LINE 55,"log2f16.c::log2f16" .log2f16 GLOBAL _log2f16 ._log2f16 push hl push bc push bc push bc ld hl,6 ;const add hl,sp ld e,(hl) inc hl ld d,(hl) push de ld hl,0 ;const call l_f16_le ld a,h or l jp z,i_2 ld hl,64511 ;const pop bc pop bc pop bc pop bc ret .i_2 ld hl,6 ;const add hl,sp push hl ld e,(hl) inc hl ld d,(hl) push de ld hl,4 ;const add hl,sp push hl call frexpf16_callee pop de ex de,hl ;l_pint ld (hl),e inc hl ld (hl),d ex de,hl ld hl,6 ;const add hl,sp ld e,(hl) inc hl ld d,(hl) push de ld hl,14760 ;const call l_f16_lt ld a,h or l jp z,i_3 pop hl dec hl push hl ld hl,6 ;const add hl,sp push hl ld a,(hl) ;l_gint inc hl ld h,(hl) ld l,a call mul2f16 push hl ld hl,15360 ;const call l_f16_sub pop de ex de,hl ;l_pint ld (hl),e inc hl ld (hl),d ex de,hl jp i_5 .i_3 ld hl,6 ;const add hl,sp push hl ld e,(hl) inc hl ld d,(hl) push de ld hl,15360 ;const call l_f16_sub pop de ex de,hl ;l_pint ld (hl),e inc hl ld (hl),d ex de,hl .i_5 ld hl,6 ;const add hl,sp ld e,(hl) inc hl ld d,(hl) push de ld hl,8 ;const add hl,sp ld a,(hl) ;l_gint inc hl ld h,(hl) ld l,a call l_f16_mul pop de pop bc push hl push de ld hl,4 ;const add hl,sp push hl ld hl,8 ;const add hl,sp ld e,(hl) inc hl ld d,(hl) push de ld hl,_f16_coeff_log push hl ld hl,9 ;const push hl call polyf16_callee push hl ld hl,6 ;const add hl,sp ld a,(hl) ;l_gint inc hl ld h,(hl) ld l,a call l_f16_mul pop de ex de,hl ;l_pint ld (hl),e inc hl ld (hl),d ex de,hl ld hl,4 ;const add hl,sp push hl ld e,(hl) inc hl ld d,(hl) push de ld hl,6 ;const add hl,sp ld a,(hl) ;l_gint inc hl ld h,(hl) ld l,a call div2f16 call l_f16_sub pop de ex de,hl ;l_pint ld (hl),e inc hl ld (hl),d ex de,hl ld hl,4 ;const add hl,sp ld e,(hl) inc hl ld d,(hl) push de ld hl,14101 ;const call l_f16_mul pop de pop bc push hl push de push hl ld hl,8 ;const add hl,sp ld e,(hl) inc hl ld d,(hl) push de ld hl,14101 ;const call l_f16_mul call l_f16_add pop de pop bc push hl push de push hl ld hl,6 ;const add hl,sp ld a,(hl) ;l_gint inc hl ld h,(hl) ld l,a call l_f16_add pop de pop bc push hl push de push hl ld hl,8 ;const add hl,sp ld a,(hl) ;l_gint inc hl ld h,(hl) ld l,a call l_f16_add pop de pop bc push hl push de push hl ex de,hl call l_f16_sint2f call l_f16_add pop de pop bc push hl push de pop bc pop bc pop bc pop bc ret ; --- Start of Static Variables --- SECTION bss_compiler SECTION code_compiler ; --- Start of Scope Defns --- GLOBAL acos GLOBAL asin GLOBAL atan GLOBAL atan2 GLOBAL atan2_callee GLOBAL cos GLOBAL sin GLOBAL tan GLOBAL acosh GLOBAL asinh GLOBAL atanh GLOBAL cosh GLOBAL sinh GLOBAL tanh GLOBAL exp GLOBAL exp2 GLOBAL expm1 GLOBAL frexp GLOBAL frexp_callee GLOBAL ilogb GLOBAL ldexp GLOBAL ldexp_callee GLOBAL scalbn GLOBAL scalbn_callee GLOBAL scalbln GLOBAL scalbln_callee GLOBAL log GLOBAL log10 GLOBAL log1p GLOBAL log2 GLOBAL logb GLOBAL fabs GLOBAL hypot GLOBAL hypot_callee GLOBAL pow GLOBAL pow_callee GLOBAL sqrt GLOBAL cbrt GLOBAL erf GLOBAL erfc GLOBAL lgamma GLOBAL tgamma GLOBAL ceil GLOBAL floor GLOBAL nearbyint GLOBAL rint GLOBAL lrint GLOBAL round GLOBAL lround GLOBAL trunc GLOBAL modf GLOBAL modf_callee GLOBAL fmod GLOBAL fmod_callee GLOBAL remainder GLOBAL remainder_callee GLOBAL remquo GLOBAL remquo_callee GLOBAL copysign GLOBAL copysign_callee GLOBAL nan GLOBAL nextafter GLOBAL nextafter_callee GLOBAL nexttoward GLOBAL nexttoward_callee GLOBAL fdim GLOBAL fdim_callee GLOBAL fmax GLOBAL fmax_callee GLOBAL fmin GLOBAL fmin_callee GLOBAL fma GLOBAL fma_callee GLOBAL isgreater GLOBAL isgreater_callee GLOBAL isgreaterequal GLOBAL isgreaterequal_callee GLOBAL isless GLOBAL isless_callee GLOBAL islessequal GLOBAL islessequal_callee GLOBAL islessgreater GLOBAL islessgreater_callee GLOBAL isunordered GLOBAL isunordered_callee GLOBAL f16_f48 GLOBAL f48_f16 GLOBAL f16_f32 GLOBAL f32_f16 GLOBAL i16_f16 GLOBAL u16_f16 GLOBAL i32_f16 GLOBAL u32_f16 GLOBAL f16_i8 GLOBAL f16_i16 GLOBAL f16_i32 GLOBAL f16_u8 GLOBAL f16_u16 GLOBAL f16_u32 GLOBAL addf16 GLOBAL addf16_callee GLOBAL subf16 GLOBAL subf16_callee GLOBAL mulf16 GLOBAL mulf16_callee GLOBAL divf16 GLOBAL divf16_callee GLOBAL fmaf16 GLOBAL fmaf16_callee GLOBAL polyf16 GLOBAL polyf16_callee GLOBAL hypotf16 GLOBAL hypotf16_callee GLOBAL invf16 GLOBAL invsqrtf16 GLOBAL sqrtf16 GLOBAL div2f16 GLOBAL mul2f16 GLOBAL mul10f16 GLOBAL frexpf16 GLOBAL frexpf16_callee GLOBAL ldexpf16 GLOBAL ldexpf16_callee GLOBAL acosf16 GLOBAL asinf16 GLOBAL atanf16 GLOBAL cosf16 GLOBAL sinf16 GLOBAL tanf16 GLOBAL expf16 GLOBAL exp2f16 GLOBAL exp10f16 GLOBAL logf16 GLOBAL log2f16 GLOBAL log10f16 GLOBAL powf16 GLOBAL powf16_callee GLOBAL fabsf16 GLOBAL negf16 GLOBAL ceilf16 GLOBAL floorf16 GLOBAL isgreaterf16 GLOBAL isgreaterf16_callee GLOBAL isgreaterequalf16 GLOBAL isgreaterequalf16_callee GLOBAL islessf16 GLOBAL islessf16_callee GLOBAL islessequalf16 GLOBAL islessequalf16_callee GLOBAL islessgreaterf16 GLOBAL islessgreaterf16_callee GLOBAL isnotequalf16 GLOBAL isnotequalf16_callee GLOBAL isunorderedf16 GLOBAL isunorderedf16_callee GLOBAL _f16_coeff_log ; --- End of Scope Defns --- ; --- End of Compilation ---
db "OLD SHRIMP@" ; species name db "An ancestral" next "#MON that lived" next "in the ocean. Over" page "time, its eight" next "feet transformed" next "into wings.@"
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; %include "vpx_ports/x86_abi_support.asm" ; void vp10_temporal_filter_apply_sse2 | arg ; (unsigned char *frame1, | 0 ; unsigned int stride, | 1 ; unsigned char *frame2, | 2 ; unsigned int block_width, | 3 ; unsigned int block_height, | 4 ; int strength, | 5 ; int filter_weight, | 6 ; unsigned int *accumulator, | 7 ; unsigned short *count) | 8 global sym(vp10_temporal_filter_apply_sse2) PRIVATE sym(vp10_temporal_filter_apply_sse2): push rbp mov rbp, rsp SHADOW_ARGS_TO_STACK 9 SAVE_XMM 7 GET_GOT rbx push rsi push rdi ALIGN_STACK 16, rax %define block_width 0 %define block_height 16 %define strength 32 %define filter_weight 48 %define rounding_bit 64 %define rbp_backup 80 %define stack_size 96 sub rsp, stack_size mov [rsp + rbp_backup], rbp ; end prolog mov edx, arg(3) mov [rsp + block_width], rdx mov edx, arg(4) mov [rsp + block_height], rdx movd xmm6, arg(5) movdqa [rsp + strength], xmm6 ; where strength is used, all 16 bytes are read ; calculate the rounding bit outside the loop ; 0x8000 >> (16 - strength) mov rdx, 16 sub rdx, arg(5) ; 16 - strength movq xmm4, rdx ; can't use rdx w/ shift movdqa xmm5, [GLOBAL(_const_top_bit)] psrlw xmm5, xmm4 movdqa [rsp + rounding_bit], xmm5 mov rsi, arg(0) ; src/frame1 mov rdx, arg(2) ; predictor frame mov rdi, arg(7) ; accumulator mov rax, arg(8) ; count ; dup the filter weight and store for later movd xmm0, arg(6) ; filter_weight pshuflw xmm0, xmm0, 0 punpcklwd xmm0, xmm0 movdqa [rsp + filter_weight], xmm0 mov rbp, arg(1) ; stride pxor xmm7, xmm7 ; zero for extraction mov rcx, [rsp + block_width] imul rcx, [rsp + block_height] add rcx, rdx cmp dword ptr [rsp + block_width], 8 jne .temporal_filter_apply_load_16 .temporal_filter_apply_load_8: movq xmm0, [rsi] ; first row lea rsi, [rsi + rbp] ; += stride punpcklbw xmm0, xmm7 ; src[ 0- 7] movq xmm1, [rsi] ; second row lea rsi, [rsi + rbp] ; += stride punpcklbw xmm1, xmm7 ; src[ 8-15] jmp .temporal_filter_apply_load_finished .temporal_filter_apply_load_16: movdqa xmm0, [rsi] ; src (frame1) lea rsi, [rsi + rbp] ; += stride movdqa xmm1, xmm0 punpcklbw xmm0, xmm7 ; src[ 0- 7] punpckhbw xmm1, xmm7 ; src[ 8-15] .temporal_filter_apply_load_finished: movdqa xmm2, [rdx] ; predictor (frame2) movdqa xmm3, xmm2 punpcklbw xmm2, xmm7 ; pred[ 0- 7] punpckhbw xmm3, xmm7 ; pred[ 8-15] ; modifier = src_byte - pixel_value psubw xmm0, xmm2 ; src - pred[ 0- 7] psubw xmm1, xmm3 ; src - pred[ 8-15] ; modifier *= modifier pmullw xmm0, xmm0 ; modifer[ 0- 7]^2 pmullw xmm1, xmm1 ; modifer[ 8-15]^2 ; modifier *= 3 pmullw xmm0, [GLOBAL(_const_3w)] pmullw xmm1, [GLOBAL(_const_3w)] ; modifer += 0x8000 >> (16 - strength) paddw xmm0, [rsp + rounding_bit] paddw xmm1, [rsp + rounding_bit] ; modifier >>= strength psrlw xmm0, [rsp + strength] psrlw xmm1, [rsp + strength] ; modifier = 16 - modifier ; saturation takes care of modifier > 16 movdqa xmm3, [GLOBAL(_const_16w)] movdqa xmm2, [GLOBAL(_const_16w)] psubusw xmm3, xmm1 psubusw xmm2, xmm0 ; modifier *= filter_weight pmullw xmm2, [rsp + filter_weight] pmullw xmm3, [rsp + filter_weight] ; count movdqa xmm4, [rax] movdqa xmm5, [rax+16] ; += modifier paddw xmm4, xmm2 paddw xmm5, xmm3 ; write back movdqa [rax], xmm4 movdqa [rax+16], xmm5 lea rax, [rax + 16*2] ; count += 16*(sizeof(short)) ; load and extract the predictor up to shorts pxor xmm7, xmm7 movdqa xmm0, [rdx] lea rdx, [rdx + 16*1] ; pred += 16*(sizeof(char)) movdqa xmm1, xmm0 punpcklbw xmm0, xmm7 ; pred[ 0- 7] punpckhbw xmm1, xmm7 ; pred[ 8-15] ; modifier *= pixel_value pmullw xmm0, xmm2 pmullw xmm1, xmm3 ; expand to double words movdqa xmm2, xmm0 punpcklwd xmm0, xmm7 ; [ 0- 3] punpckhwd xmm2, xmm7 ; [ 4- 7] movdqa xmm3, xmm1 punpcklwd xmm1, xmm7 ; [ 8-11] punpckhwd xmm3, xmm7 ; [12-15] ; accumulator movdqa xmm4, [rdi] movdqa xmm5, [rdi+16] movdqa xmm6, [rdi+32] movdqa xmm7, [rdi+48] ; += modifier paddd xmm4, xmm0 paddd xmm5, xmm2 paddd xmm6, xmm1 paddd xmm7, xmm3 ; write back movdqa [rdi], xmm4 movdqa [rdi+16], xmm5 movdqa [rdi+32], xmm6 movdqa [rdi+48], xmm7 lea rdi, [rdi + 16*4] ; accumulator += 16*(sizeof(int)) cmp rdx, rcx je .temporal_filter_apply_epilog pxor xmm7, xmm7 ; zero for extraction cmp dword ptr [rsp + block_width], 16 je .temporal_filter_apply_load_16 jmp .temporal_filter_apply_load_8 .temporal_filter_apply_epilog: ; begin epilog mov rbp, [rsp + rbp_backup] add rsp, stack_size pop rsp pop rdi pop rsi RESTORE_GOT RESTORE_XMM UNSHADOW_ARGS pop rbp ret SECTION_RODATA align 16 _const_3w: times 8 dw 3 align 16 _const_top_bit: times 8 dw 1<<15 align 16 _const_16w times 8 dw 16
; F-Zero Climax Translation by Normmatt .align 4 StoryEpisode16PointerList: .word Episode16_Line1 .word Episode16_Line2 .word Episode16_Line3 .word Episode16_Line4 .word Episode16_Line5 .word Episode16_Line6 .word Episode16_Line7 .word Episode16_Line8 .word Episode16_Line9 .word Episode16_Line10 .word Episode16_Line11 .word Episode16_Line12 .word Episode16_Line13 .word Episode16_Line14 .word Episode16_Line15 .word Episode16_Line16 .word Episode16_Line17 .word Episode16_Line18 .word Episode16_Line19 .word Episode16_Line20 .word Episode16_Line21 .word Episode16_Line22 .word Episode16_Line23 .word Episode16_Line24 .word Episode16_Line25 .word Episode16_Line26 .word Episode16_Line27 .word EOF .word EOF Episode16_Line1: .ascii "Miss Killer approaches Super" TextEnd Episode16_Line2: .ascii "Arrow, self-styled defender of" TextEnd Episode16_Line3: .ascii "justice, in order to make use of" TextEnd Episode16_Line4: .ascii "him. The naive Super Arrow is" TextEnd Episode16_Line5: .ascii "completely taken in by her lies," TextEnd Episode16_Line6: .ascii "pledging to help her win her" TextEnd Episode16_Line7: .ascii "race. Ryu sees this and warns" TextEnd Episode16_Line8: .ascii "Super Arrow that Miss Killer is in" TextEnd Episode16_Line9: .ascii "fact an agent of Dark Million," TextEnd Episode16_Line10: .ascii "but Super Arrow refuses to" TextEnd Episode16_Line11: .ascii "listen." TextEnd Episode16_Line12: .ascii "Training Miss Killer for victory," TextEnd Episode16_Line13: .ascii "Super Arrow teaches her the" TextEnd Episode16_Line14: .ascii "\"sandwich burst\" technique. He" TextEnd Episode16_Line15: .ascii "also gets Ryu to help her." TextEnd Episode16_Line16: .ascii "Race day: Miss Killer uses the" TextEnd Episode16_Line17: .ascii "\"sandwich burst\" technique to" TextEnd Episode16_Line18: .ascii "put her Moon Shadow in first" TextEnd Episode16_Line19: .ascii "place. But then Mrs. Arros," TextEnd Episode16_Line20: .ascii "Super Arrow's wife, uses the" TextEnd Episode16_Line21: .ascii "same move to put Ryu's car in" TextEnd Episode16_Line22: .ascii "Miss Killer's position. They" TextEnd Episode16_Line23: .ascii "prevent Miss Killer from winning." TextEnd Episode16_Line24: .ascii "Later, Super Arrow looks into" TextEnd Episode16_Line25: .ascii "the sunset and laughs, still" TextEnd Episode16_Line26: .ascii "having no idea that he's been" TextEnd Episode16_Line27: .ascii "duped!" TextEnd ; make sure to leave an empty line at the end
// GameCube "Giftpia" Japanese To English Translation by krom (Peter Lemon): endian msb // GameCube PPC requires Big-Endian Encoding (Most Significant Bit) output "../../output/Giftpia [U].iso", create origin $000000; insert "../../isos/Giftpia [J].iso" // Include Japanese Giftpia ISO macro Text(OFFSET, TEXT) { map 0, 0, 256 // Map Default ASCII Chars origin {OFFSET} db {TEXT} // ASCII Text To Print } macro TextShiftJIS(OFFSET, TEXT) { // Map Shift-JIS Words map ' ', $8140 map $2C, $8143 // Comma "," map '.', $8144 map ':', $8146 map '?', $8148 map '!', $8149 map '~', $8160 map '\s', $8166 // Single Quote "'" map '\d', $8168 // Double Quote '"' map '+', $817B map '&', $8195 map '0', $824F, 10 // Map Numbers map 'A', $8260, 26 // Map English "Upper Case" Characters map 'a', $8281, 26 // Map English "Lower Case" Characters origin {OFFSET} dw {TEXT} // Shift-JIS Text To Print } //Region Text($3, "E") include "Banner.asm" include "Menus.asm"
; A100494: Primes of the form 47n+3. ; Submitted by Jon Maiga ; 3,97,191,379,661,1319,1601,1789,2447,2729,2917,3011,4139,4327,4421,4703,5737,6113,6301,6959,7523,7993,8087,8369,8839,8933,9403,9497,9967,10061,10343,10531,11471,11941,13163,13633,14009,14197,14479,15137,15607,15889,16453,16547,16829,17299,17393,17581,17863,17957,18427,18521,18803,19273,21059,21247,21341,21529,22093,22469,22751,23879,24443,24631,25759,26041,26417,26699,26981,27733,27827,28109,28297,28579,29989,30271,30553,31963,32057,32621,33091,33749,33937,34031,34313,34501,34877,35159,35911 mov $1,1 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,2 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,47 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,93
# we can use $0, $at, $v0, $v1, $a0, $a1, $a2, and $a3 .data .text addi $a0,$0,5 #$a0 = n here 5 addi $v0,$0,1 #$v0 = sum = 1 addi $a1,$0,1 #$a1 holds our constant to compare against loop_start: beq $a0,$a1,loop_end #if n== 1 go to loop_end <=> while(n>1) # nop not needed since we dont use a branch delay slot #multiplication add $a2,$a0,$0 #b = n, $a2 = b add $v1,$v0,$0 #$v1 = sum before inner loop inner_loop_start: beq $a2,$a1,inner_loop_end #if b== 1 go to inner_loop_end <=> while(b > 1) add $v0,$v0,$v1 addi $a2,$a2,-1 beq $0,$0,inner_loop_start inner_loop_end: addi $a0,$a0,-1 beq $0,$0,loop_start loop_end:
;######################################################### ; Sintaxe: Diferença entre endereços e conteúdos(labels) ;######################################################### SECTION .data ;Seção para declaração de dados e inicialização de memória ;msg: DB 'B' ;Aloca 1 byte para o char 'B' no endereço de 'msg' msg: DB 'AD' ;Aloca 2 bytes para a string 'AD' no endereço de 'msg' SECTION .text ;Seção para o código global _start _start: ;mov ebx,msg ;Move o endereço de 'msg'(1ºbyte da string) para ebx (retorna para o sistema esse endereço). mov ebx,[msg] ;Move o conteúdo do endereço de 'msg' (1º byte) para ebx(retorna para o sistema esse conteúdo). mov eax,1 ;Comando de saída(final de execução) para o kernel int 0x80 ;interrupt 80 hex, chama o kernel
.global s_prepare_buffers s_prepare_buffers: push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x976e, %rsi lea addresses_WC_ht+0x1c072, %rdi nop sub $46947, %rbp mov $111, %rcx rep movsb nop nop nop nop add %rcx, %rcx lea addresses_WT_ht+0x922e, %rdi nop nop nop inc %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm4 vmovups %ymm4, (%rdi) nop nop nop nop nop and $28596, %rdi lea addresses_normal_ht+0x7b6e, %rsi lea addresses_D_ht+0x826e, %rdi inc %rax mov $118, %rcx rep movsq nop nop inc %rbp pop %rsi pop %rdi pop %rcx pop %rbp pop %rax ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r8 push %r9 push %rbp push %rdi // Store lea addresses_WT+0xa16e, %r14 nop sub %r8, %r8 mov $0x5152535455565758, %rdi movq %rdi, %xmm3 movups %xmm3, (%r14) dec %r9 // Store lea addresses_D+0x19b6e, %rbp nop nop and %r13, %r13 mov $0x5152535455565758, %r14 movq %r14, %xmm2 vmovaps %ymm2, (%rbp) nop cmp %rdi, %rdi // Load lea addresses_normal+0xe36e, %r13 nop and $48974, %r9 movb (%r13), %r8b nop nop nop nop and %rbp, %rbp // Faulty Load lea addresses_RW+0x10f6e, %r14 add %r8, %r8 mov (%r14), %ebp lea oracles, %rdi and $0xff, %rbp shlq $12, %rbp mov (%rdi,%rbp,1), %rbp pop %rdi pop %rbp pop %r9 pop %r8 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': True, 'AVXalign': True, 'size': 32, 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': True, 'congruent': 11, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
.model small .data a dw -32768 .code main: mov ax, @data mov ds, ax mov ax, a call printnum exit: mov ah, 04Ch mov al, 0 int 21h readnum: mov ah, 01h int 21h cmp al, 2dh je negative call [rpos + 2] ret negative: call rpos not bx add bx, 1 ret rpos: mov ah, 01h int 21h cmp al, 0dh je endl sub al, 48 mov ah, 0 push ax mov ax, 10 mul bx mov bx, ax pop ax add bx, ax call rpos endl: ret printnum: cmp ax, 0 jz pzero jnl ppos mov dl, '-' push ax mov ah, 02h int 21h pop ax not ax add ax, 1 ppos: ;used: ax dx bx cmp ax, 0 jz zero mov dx, 0 mov bx, 10 div bx add dl, 48 push dx call ppos pop dx push ax mov ah, 02h int 21h pop ax zero: ret pzero: mov dl, 30h mov ah, 02h int 21h ret end main
; kr580vm80a assembler code for radio-86rk (32kb) exit equ 0F86Ch print equ 0F818h setch equ 0F809h org 0h mvi c, 1fh call setch lxi hl, num+3 mvi a, 3 preplp: mvi m, 30h dcx hl dcr a cpi 0 jnz preplp mvi m, 31h mainlp: lxi hl, num call prinum lxi hl, minsev call print lxi hl, num+3 mov a, m sui 6 lesslp: dcr a cpi 30h jnc ifless mvi b, 1 adi 10 mov m, a dcx hl mov a, m cpi 0 jz end jnz lesslp ifless: mov m, a call prinum mvi c, 0dh call setch mvi c, 0ah call setch jmp mainlp end: lxi hl, endtxt call print jmp exit prinum: lxi hl, num mvi d, 4 mvi b, 1 prinlp: mov a, m cpi 30h jz pzer mov c, m mvi b, 0 call setch pzerrt: inx hl dcr d mov a, d cpi 0 rz jmp prinlp pzer: mov a, b mov c, m cpi 0 cz setch jmp pzerrt minsev: db ' - 7 = ', 0 endtxt: db 'zaskamlen kak mamont ahahahahahahahah)00)00)))0', 0dh, 0ah, 0 num: db 0,0,0,0
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rax push %rbx push %rdi push %rdx lea addresses_WT_ht+0x1894d, %rbx nop nop add %rdx, %rdx mov (%rbx), %r9w nop nop nop nop nop xor %rax, %rax lea addresses_WT_ht+0x6985, %r12 clflush (%r12) nop and %r15, %r15 mov (%r12), %rdx nop nop nop nop nop xor $60587, %rbx lea addresses_D_ht+0x12c9d, %r9 cmp %rdi, %rdi movw $0x6162, (%r9) add %rax, %rax lea addresses_A_ht+0x1c82d, %rdx nop nop nop sub %r9, %r9 movl $0x61626364, (%rdx) nop nop nop nop cmp $15016, %rdi pop %rdx pop %rdi pop %rbx pop %rax pop %r9 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %rbp push %rdi push %rdx push %rsi // Store lea addresses_PSE+0x37d5, %rdi and %r10, %r10 mov $0x5152535455565758, %rbp movq %rbp, %xmm4 vmovups %ymm4, (%rdi) nop add %r13, %r13 // Load lea addresses_A+0xa121, %rsi nop nop nop nop add $57992, %rdx movups (%rsi), %xmm0 vpextrq $1, %xmm0, %r14 cmp %r13, %r13 // Faulty Load mov $0x1cf4fe0000000a7d, %rbp nop nop nop nop inc %r14 mov (%rbp), %rdx lea oracles, %r13 and $0xff, %rdx shlq $12, %rdx mov (%r13,%rdx,1), %rdx pop %rsi pop %rdx pop %rdi pop %rbp pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_A', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}} {'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 */
.loadtable "data/flyover-table.tbl" .strn "\n" .strn "\n" .strn 01h, 1Ch, "Like a great tapestry, vertical and\n" .strn 01h, 1Ch, "horizontal threads have met and\n" .strn 01h, 1Ch, "become intertwined, creating a\n" .strn 01h, 1Ch, "huge, beautiful image.\n" .strn "\n" .strn "\n" .strn "\n" .strn "\n" .strn 01h, 1Ch, "You may have cursed this never-\n" .strn 01h, 1Ch, "ending journey. You have known\n" .strn 01h, 1Ch, "injury and defeat, but you have\n" .strn 01h, 1Ch, "struggled on to reach this place.\n" .strn 01h, 1Ch, "Your in-born intelligence and\n" .strn 01h, 1Ch, "courage have helped bring you\n" .strn 01h, 1Ch, "here. You have believed in your\n" .strn 01h, 1Ch, "friends, and as a group, you have\n" .strn 01h, 1Ch, "supported each other. Have you\n" .strn 01h, 1Ch, "ever stopped to consider how\n" .strn 01h, 1Ch, "much your power has grown?\n" .strn 01h, 1Ch, "Now, you could fell enemies in\n" .strn 01h, 1Ch, "Onett and Twoson with one\n" .strn 01h, 1Ch, "blow. As you certainly know,\n" .strn 01h, 1Ch, "you cannot turn back. Giygas,\n" .strn 01h, 1Ch, "the arch fiend of the universe, is\n" .strn 01h, 1Ch, "growing frightened of you and\n" .strn 01h, 1Ch, "your power. He is searching for\n" .strn 01h, 1Ch, "ways to end your journey.\n" .strn "\n" .strn "\n" .strn "\n" .strn "\n" .strn 01h, 1Ch, "From here, the challenge grows\n" .strn 01h, 1Ch, "and your adventure will take you\n" .strn 01h, 1Ch, "beyond anything you ever\n" .strn 01h, 1Ch, "imagined. You are drawing near\n" .strn 01h, 1Ch, "to Giygas. Remember, when you\n" .strn 01h, 1Ch, "are suffering hardships, your\n" .strn 01h, 1Ch, "enemy is also struggling.\n" .strn "\n" .strn "\n" .strn "\n" .strn "\n" .strn 01h, 1Ch, "By the way, do you know where\n" .strn 01h, 1Ch, "Pokey went? When this cup of\n" .strn 01h, 1Ch, "tea is finished, your adventure will\n" .strn 01h, 1Ch, "continue. Your destiny pulls you\n" .strn 01h, 1Ch, "in the right direction. Believe in\n" .strn 01h, 1Ch, "yourself and press forward.\n" .strn "\n" .strn "\n" .strn "\n" .strn "\n" .strn 01h, 12h, "\cness!\n" .strn 01h, 12h, " \cpaula!\n" .strn 01h, 12h, " \cjeff!\n" .strn 01h, 12h, " \cpoo!\n" .strn "\n" .strn "\n" .strn 01h, 1Ch, "I wish you luck...\n" .strn "\n" .strn "\n" .strn "\n" .strn "\n" .strn "\n" .strn "\n" .strn "\n" .str "\n"
.size 8000 .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld b, 92 ld c, 44 lbegin_waitly92: ldff a, (c) cmp a, b jrnz lbegin_waitly92 ld a, 00 ldff(40), a ld a, 66 ldff(40), a ldff(41), a ldff(42), a ldff(43), a ldff(44), a ldff(45), a ldff(47), a ldff(48), a ldff(49), a ldff(4a), a ldff(4b), a ld a, 91 ldff(40), a ldff a, (40) ldff(80), a ldff a, (41) ldff(81), a ldff a, (42) ldff(82), a ldff a, (43) ldff(83), a ldff a, (44) ldff(84), a ldff a, (45) ldff(85), a ldff a, (47) ldff(86), a ldff a, (48) ldff(87), a ldff a, (4a) ldff(88), a ldff a, (4b) ldff(89), a jp lprint_hiram .text@7000 lprint_hiram: ld c, 44 ld b, 91 lprint_waitly91: ldff a, (c) cmp a, b jrnz lprint_waitly91 xor a, a ldff(40), a ld bc, 7a00 ld hl, 8000 ld d, 00 lprint_copytiles: ld a, (bc) inc bc ld(hl++), a dec d jrnz lprint_copytiles ld a, c0 ldff(47), a ld a, 80 ldff(68), a ld a, ff ldff(69), a ldff(69), a ldff(69), a ldff(69), a ldff(69), a ldff(69), a xor a, a ldff(69), a ldff(69), a ld hl, 9800 ld c, 80 ld b, 0a lprint_set_bgmap_from_hiram: ldff a, (c) rrca rrca rrca rrca and a, 0f ld(hl++), a ldff a, (c) and a, 0f ld(hl++), a inc c dec b jrnz lprint_set_bgmap_from_hiram xor a, a ldff(42), a ldff(43), a ld a, 91 ldff(40), a lprint_limbo: jr lprint_limbo .data@7a00 00 00 7f 7f 41 41 41 41 41 41 41 41 41 41 7f 7f 00 00 08 08 08 08 08 08 08 08 08 08 08 08 08 08 00 00 7f 7f 01 01 01 01 7f 7f 40 40 40 40 7f 7f 00 00 7f 7f 01 01 01 01 3f 3f 01 01 01 01 7f 7f 00 00 41 41 41 41 41 41 7f 7f 01 01 01 01 01 01 00 00 7f 7f 40 40 40 40 7e 7e 01 01 01 01 7e 7e 00 00 7f 7f 40 40 40 40 7f 7f 41 41 41 41 7f 7f 00 00 7f 7f 01 01 02 02 04 04 08 08 10 10 10 10 00 00 3e 3e 41 41 41 41 3e 3e 41 41 41 41 3e 3e 00 00 7f 7f 41 41 41 41 7f 7f 01 01 01 01 7f 7f 00 00 08 08 22 22 41 41 7f 7f 41 41 41 41 41 41 00 00 7e 7e 41 41 41 41 7e 7e 41 41 41 41 7e 7e 00 00 3e 3e 41 41 40 40 40 40 40 40 41 41 3e 3e 00 00 7e 7e 41 41 41 41 41 41 41 41 41 41 7e 7e 00 00 7f 7f 40 40 40 40 7f 7f 40 40 40 40 7f 7f 00 00 7f 7f 40 40 40 40 7f 7f 40 40 40 40 40 40
GavenPhoneCalleeScript: gettrainername STRING_BUFFER_3, COOLTRAINERM, GAVEN3 checkflag ENGINE_GAVEN iftrue .WantsBattle farscall PhoneScript_AnswerPhone_Male checkflag ENGINE_GAVEN_THURSDAY_MORNING iftrue .NotThursday readvar VAR_WEEKDAY ifnotequal THURSDAY, .NotThursday checktime MORN iftrue GavenThursdayMorning .NotThursday: farsjump UnknownScript_0xa0910 .WantsBattle: getlandmarkname STRING_BUFFER_5, ROUTE_101 farsjump UnknownScript_0xa0a37 GavenPhoneCallerScript: gettrainername STRING_BUFFER_3, COOLTRAINERM, GAVEN3 farscall PhoneScript_GreetPhone_Male checkflag ENGINE_GAVEN iftrue .WaitingForBattle checkflag ENGINE_GAVEN_THURSDAY_MORNING iftrue .WaitingForBattle farscall PhoneScript_Random2 ifequal 0, GavenWantsRematch .WaitingForBattle: farscall PhoneScript_Random3 ifequal 0, GavenFoundRare farsjump Phone_GenericCall_Male GavenThursdayMorning: setflag ENGINE_GAVEN_THURSDAY_MORNING GavenWantsRematch: getlandmarkname STRING_BUFFER_5, ROUTE_101 setflag ENGINE_GAVEN farsjump PhoneScript_WantsToBattle_Male GavenFoundRare: farsjump Phone_CheckIfUnseenRare_Male
; A266258: Number of OFF (white) cells in the n-th iteration of the "Rule 11" elementary cellular automaton starting with a single ON (black) cell. ; 0,2,3,2,7,2,11,2,15,2,19,2,23,2,27,2,31,2,35,2,39,2,43,2,47,2,51,2,55,2,59,2,63,2,67,2,71,2,75,2,79,2,83,2,87,2,91,2,95,2,99,2,103,2,107,2,111,2,115,2,119,2,123,2,127,2,131,2,135,2,139,2,143,2,147,2,151,2,155,2,159,2,163,2,167,2,171,2,175,2,179,2,183,2,187,2,191,2,195,2 mov $1,$0 add $0,1 mod $0,2 pow $1,$0 sub $0,$1 trn $1,$0 mov $0,$1
; A147795: If n=A000695(k_n)+2*A000695(l_n), then a(n) is the number of nonnegative integers m<n such that k_m differs from k_n and l_m differs from l_n. ; 0,0,1,1,2,2,3,3,6,6,7,7,8,8,9,9,12,12,13,13,14,14,15,15,18,18,19,19,20,20,21,21,28,28,29,29,30,30,31,31,34,34,35,35,36,36,37,37,40,40,41,41,42,42,43,43,46,46,47,47,48,48,49,49 mov $8,$0 add $8,1 lpb $8 clr $0,6 sub $8,1 sub $0,$8 lpb $0 gcd $0,128 add $0,1 lpb $0 sub $0,5 add $3,1 lpe add $0,3 lpe add $7,$3 lpe mov $1,$7
; A120787: Denominators of partial sums of Catalan numbers scaled by powers of 1/20. ; Submitted by Christian Krause ; 1,20,200,1600,80000,1600000,16000000,1280000000,2560000000,256000000000,2560000000000,102400000000000,1024000000000000,4096000000000000,40960000000000000,6553600000000000000 mul $0,2 mov $1,1 lpb $0 mov $2,$0 sub $0,1 add $3,$1 mul $3,$0 sub $0,1 mul $1,5 add $2,2 mul $1,$2 lpe gcd $3,$1 div $1,$3 mov $0,$1
; A022387: Fibonacci sequence beginning 4, 30. ; 4,30,34,64,98,162,260,422,682,1104,1786,2890,4676,7566,12242,19808,32050,51858,83908,135766,219674,355440,575114,930554,1505668,2436222,3941890,6378112,10320002,16698114,27018116,43716230,70734346,114450576,185184922,299635498,484820420,784455918,1269276338,2053732256,3323008594,5376740850,8699749444,14076490294,22776239738,36852730032,59628969770,96481699802,156110669572,252592369374,408703038946,661295408320,1069998447266,1731293855586,2801292302852,4532586158438,7333878461290,11866464619728,19200343081018,31066807700746,50267150781764,81333958482510,131601109264274,212935067746784,344536177011058,557471244757842,902007421768900,1459478666526742,2361486088295642,3820964754822384,6182450843118026,10003415597940410,16185866441058436,26189282038998846,42375148480057282,68564430519056128,110939578999113410,179504009518169538,290443588517282948,469947598035452486,760391186552735434,1230338784588187920,1990729971140923354,3221068755729111274,5211798726870034628,8432867482599145902,13644666209469180530,22077533692068326432,35722199901537506962,57799733593605833394,93521933495143340356,151321667088749173750,244843600583892514106,396165267672641687856,641008868256534201962,1037174135929175889818,1678183004185710091780,2715357140114885981598,4393540144300596073378,7108897284415482054976 mov $1,2 mov $3,15 lpb $0 sub $0,1 mov $2,$1 mov $1,$3 add $3,$2 lpe add $1,1 mul $1,2 sub $1,6 div $1,2 mul $1,2 add $1,4 mov $0,$1
; A125128: a(n) = 2^(n+1) - n - 2, or partial sums of main diagonal of array A125127 of k-step Lucas numbers. ; 1,4,11,26,57,120,247,502,1013,2036,4083,8178,16369,32752,65519,131054,262125,524268,1048555,2097130,4194281,8388584,16777191,33554406,67108837,134217700,268435427,536870882,1073741793,2147483616,4294967263,8589934558,17179869149,34359738332,68719476699,137438953434,274877906905,549755813848,1099511627735,2199023255510,4398046511061,8796093022164,17592186044371,35184372088786,70368744177617,140737488355280,281474976710607,562949953421262,1125899906842573,2251799813685196,4503599627370443,9007199254740938,18014398509481929,36028797018963912,72057594037927879,144115188075855814,288230376151711685,576460752303423428,1152921504606846915,2305843009213693890,4611686018427387841,9223372036854775744,18446744073709551551,36893488147419103166,73786976294838206397,147573952589676412860,295147905179352825787,590295810358705651642,1180591620717411303353,2361183241434822606776,4722366482869645213623,9444732965739290427318,18889465931478580854709,37778931862957161709492,75557863725914323419059,151115727451828646838194,302231454903657293676465,604462909807314587353008,1208925819614629174706095,2417851639229258349412270,4835703278458516698824621,9671406556917033397649324,19342813113834066795298731,38685626227668133590597546,77371252455336267181195177,154742504910672534362390440,309485009821345068724780967,618970019642690137449562022,1237940039285380274899124133,2475880078570760549798248356,4951760157141521099596496803,9903520314283042199192993698,19807040628566084398385987489,39614081257132168796771975072,79228162514264337593543950239,158456325028528675187087900574,316912650057057350374175801245,633825300114114700748351602588,1267650600228229401496703205275,2535301200456458802993406410650 add $0,2 mov $1,2 pow $1,$0 sub $1,$0 sub $1,1 mov $0,$1
; Copyright (c) 2004, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php ; ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. ; ; Module Name: ; ; WriteMm6.Asm ; ; Abstract: ; ; AsmWriteMm6 function ; ; Notes: ; ;------------------------------------------------------------------------------ .code ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; AsmWriteMm6 ( ; IN UINT64 Value ; ); ;------------------------------------------------------------------------------ AsmWriteMm6 PROC ; ; 64-bit MASM doesn't support MMX instructions, so use opcode here ; DB 48h, 0fh, 6eh, 0f1h ret AsmWriteMm6 ENDP END
; A146029: Numbers that can be written from base 2 to base 17 using only the digits 0 to 8 (conjectured to be complete). ; 0,1,2,3,4,5,6,7,8,17,18 mov $1,$0 lpb $0,1 add $1,8 mov $0,5 add $0,3 lpe
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
4
Edit dataset card