12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084 |
- heater3.elf: file format elf32-avr
- Sections:
- Idx Name Size VMA LMA File off Algn
- 0 .data 000001f2 00800100 00003cc8 00003d5c 2**0
- CONTENTS, ALLOC, LOAD, DATA
- 1 .text 00003cc8 00000000 00000000 00000094 2**1
- CONTENTS, ALLOC, LOAD, READONLY, CODE
- 2 .bss 000003c0 008002f2 008002f2 00003f4e 2**0
- ALLOC
- 3 .comment 0000005c 00000000 00000000 00003f4e 2**0
- CONTENTS, READONLY
- 4 .note.gnu.avr.deviceinfo 00000040 00000000 00000000 00003fac 2**2
- CONTENTS, READONLY
- 5 .debug_aranges 000001d8 00000000 00000000 00003fec 2**0
- CONTENTS, READONLY, DEBUGGING
- 6 .debug_info 00003ef3 00000000 00000000 000041c4 2**0
- CONTENTS, READONLY, DEBUGGING
- 7 .debug_abbrev 00001218 00000000 00000000 000080b7 2**0
- CONTENTS, READONLY, DEBUGGING
- 8 .debug_line 00001e26 00000000 00000000 000092cf 2**0
- CONTENTS, READONLY, DEBUGGING
- 9 .debug_frame 00000734 00000000 00000000 0000b0f8 2**2
- CONTENTS, READONLY, DEBUGGING
- 10 .debug_str 00000b2d 00000000 00000000 0000b82c 2**0
- CONTENTS, READONLY, DEBUGGING
- 11 .debug_loc 0000349c 00000000 00000000 0000c359 2**0
- CONTENTS, READONLY, DEBUGGING
- 12 .debug_ranges 00000230 00000000 00000000 0000f7f5 2**0
- CONTENTS, READONLY, DEBUGGING
- Disassembly of section .text:
- 00000000 <__vectors>:
- 0: c8 c0 rjmp .+400 ; 0x192 <__ctors_end>
- 2: 00 00 nop
- 4: 54 c1 rjmp .+680 ; 0x2ae <__vector_1>
- 6: 00 00 nop
- 8: 81 c1 rjmp .+770 ; 0x30c <__vector_2>
- a: 00 00 nop
- c: df c0 rjmp .+446 ; 0x1cc <__bad_interrupt>
- e: 00 00 nop
- 10: dd c0 rjmp .+442 ; 0x1cc <__bad_interrupt>
- 12: 00 00 nop
- 14: db c0 rjmp .+438 ; 0x1cc <__bad_interrupt>
- 16: 00 00 nop
- 18: d9 c0 rjmp .+434 ; 0x1cc <__bad_interrupt>
- 1a: 00 00 nop
- 1c: 2d c1 rjmp .+602 ; 0x278 <__vector_7>
- 1e: 00 00 nop
- 20: d5 c0 rjmp .+426 ; 0x1cc <__bad_interrupt>
- 22: 00 00 nop
- 24: d3 c0 rjmp .+422 ; 0x1cc <__bad_interrupt>
- 26: 00 00 nop
- 28: d1 c0 rjmp .+418 ; 0x1cc <__bad_interrupt>
- 2a: 00 00 nop
- 2c: cf c0 rjmp .+414 ; 0x1cc <__bad_interrupt>
- 2e: 00 00 nop
- 30: cd c0 rjmp .+410 ; 0x1cc <__bad_interrupt>
- 32: 00 00 nop
- 34: f9 c1 rjmp .+1010 ; 0x428 <__vector_13>
- 36: 00 00 nop
- 38: c9 c0 rjmp .+402 ; 0x1cc <__bad_interrupt>
- 3a: 00 00 nop
- 3c: c7 c0 rjmp .+398 ; 0x1cc <__bad_interrupt>
- 3e: 00 00 nop
- 40: e4 c1 rjmp .+968 ; 0x40a <__vector_16>
- 42: 00 00 nop
- 44: c3 c0 rjmp .+390 ; 0x1cc <__bad_interrupt>
- 46: 00 00 nop
- 48: c1 c0 rjmp .+386 ; 0x1cc <__bad_interrupt>
- 4a: 00 00 nop
- 4c: bf c0 rjmp .+382 ; 0x1cc <__bad_interrupt>
- 4e: 00 00 nop
- 50: 8c c1 rjmp .+792 ; 0x36a <__vector_20>
- 52: 00 00 nop
- 54: a7 c1 rjmp .+846 ; 0x3a4 <__vector_21>
- 56: 00 00 nop
- 58: b9 c0 rjmp .+370 ; 0x1cc <__bad_interrupt>
- 5a: 00 00 nop
- 5c: b7 c0 rjmp .+366 ; 0x1cc <__bad_interrupt>
- 5e: 00 00 nop
- 60: b5 c0 rjmp .+362 ; 0x1cc <__bad_interrupt>
- 62: 00 00 nop
- 64: b3 c0 rjmp .+358 ; 0x1cc <__bad_interrupt>
- 66: 00 00 nop
- 68: b1 c0 rjmp .+354 ; 0x1cc <__bad_interrupt>
- 6a: 00 00 nop
- 6c: af c0 rjmp .+350 ; 0x1cc <__bad_interrupt>
- 6e: 00 00 nop
- 70: ad c0 rjmp .+346 ; 0x1cc <__bad_interrupt>
- 72: 00 00 nop
- 74: ab c0 rjmp .+342 ; 0x1cc <__bad_interrupt>
- 76: 00 00 nop
- 78: a9 c0 rjmp .+338 ; 0x1cc <__bad_interrupt>
- 7a: 00 00 nop
- 7c: 67 0c add r6, r7
- 7e: 68 0c add r6, r8
- 80: 6d 0c add r6, r13
- 82: 20 0c add r2, r0
- 84: 81 0c add r8, r1
- 86: 97 0c add r9, r7
- 88: be 0c add r11, r14
- 8a: cc 0c add r12, r12
- 8c: 2e 0c add r2, r14
- 8e: 40 0c add r4, r0
- 00000090 <__trampolines_end>:
- 90: 6e 61 ori r22, 0x1E ; 30
- 92: 6e 00 .word 0x006e ; ????
- 00000094 <__c.2332>:
- 94: 69 6e 66 00 00 40 7a 10 f3 5a 00 a0 72 4e 18 09 inf..@z..Z..rN..
- a4: 00 10 a5 d4 e8 00 00 e8 76 48 17 00 00 e4 0b 54 ........vH.....T
- b4: 02 00 00 ca 9a 3b 00 00 00 e1 f5 05 00 00 80 96 .....;..........
- c4: 98 00 00 00 40 42 0f 00 00 00 a0 86 01 00 00 00 ....@B..........
- d4: 10 27 00 00 00 00 e8 03 00 00 00 00 64 00 00 00 .'..........d...
- e4: 00 00 0a 00 00 00 00 00 01 00 00 00 00 00 2c 76 ..............,v
- f4: d8 88 dc 67 4f 08 23 df c1 df ae 59 e1 b1 b7 96 ...gO.#....Y....
- 104: e5 e3 e4 53 c6 3a e6 51 99 76 96 e8 e6 c2 84 26 ...S.:.Q.v.....&
- 114: eb 89 8c 9b 62 ed 40 7c 6f fc ef bc 9c 9f 40 f2 ....b.@|o.....@.
- 124: ba a5 6f a5 f4 90 05 5a 2a f7 5c 93 6b 6c f9 67 ..o....Z*.\.kl.g
- 134: 6d c1 1b fc e0 e4 0d 47 fe f5 20 e6 b5 00 d0 ed m......G.. .....
- 144: 90 2e 03 00 94 35 77 05 00 80 84 1e 08 00 00 20 .....5w........
- 154: 4e 0a 00 00 00 c8 0c 33 33 33 33 0f 98 6e 12 83 N......3333..n..
- 164: 11 41 ef 8d 21 14 89 3b e6 55 16 cf fe e6 db 18 .A..!..;.U......
- 174: d1 84 4b 38 1b f7 7c 1d 90 1d a4 bb e4 24 20 32 ..K8..|......$ 2
- 184: 84 72 5e 22 81 00 c9 f1 24 ec a1 e5 3d 27 .r^"....$...='
- 00000192 <__ctors_end>:
- 192: 11 24 eor r1, r1
- 194: 1f be out 0x3f, r1 ; 63
- 196: cf ef ldi r28, 0xFF ; 255
- 198: d0 e1 ldi r29, 0x10 ; 16
- 19a: de bf out 0x3e, r29 ; 62
- 19c: cd bf out 0x3d, r28 ; 61
- 0000019e <__do_copy_data>:
- 19e: 12 e0 ldi r17, 0x02 ; 2
- 1a0: a0 e0 ldi r26, 0x00 ; 0
- 1a2: b1 e0 ldi r27, 0x01 ; 1
- 1a4: e8 ec ldi r30, 0xC8 ; 200
- 1a6: fc e3 ldi r31, 0x3C ; 60
- 1a8: 02 c0 rjmp .+4 ; 0x1ae <__do_copy_data+0x10>
- 1aa: 05 90 lpm r0, Z+
- 1ac: 0d 92 st X+, r0
- 1ae: a2 3f cpi r26, 0xF2 ; 242
- 1b0: b1 07 cpc r27, r17
- 1b2: d9 f7 brne .-10 ; 0x1aa <__do_copy_data+0xc>
- 000001b4 <__do_clear_bss>:
- 1b4: 26 e0 ldi r18, 0x06 ; 6
- 1b6: a2 ef ldi r26, 0xF2 ; 242
- 1b8: b2 e0 ldi r27, 0x02 ; 2
- 1ba: 01 c0 rjmp .+2 ; 0x1be <.do_clear_bss_start>
- 000001bc <.do_clear_bss_loop>:
- 1bc: 1d 92 st X+, r1
- 000001be <.do_clear_bss_start>:
- 1be: a2 3b cpi r26, 0xB2 ; 178
- 1c0: b2 07 cpc r27, r18
- 1c2: e1 f7 brne .-8 ; 0x1bc <.do_clear_bss_loop>
- 1c4: 0e 94 4a 0e call 0x1c94 ; 0x1c94 <main>
- 1c8: 0c 94 62 1e jmp 0x3cc4 ; 0x3cc4 <_exit>
- 000001cc <__bad_interrupt>:
- 1cc: 19 cf rjmp .-462 ; 0x0 <__vectors>
- 000001ce <uart_putchar>:
- return 0;
- }
- int uart_putchar(char c, FILE *stream)
- {
- cli();
- 1ce: f8 94 cli
- if(!FIFO_IS_FULL(fifo0))
- 1d0: 20 91 e8 05 lds r18, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- 1d4: 30 91 e9 05 lds r19, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- 1d8: 40 91 e6 05 lds r20, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- 1dc: 50 91 e7 05 lds r21, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- 1e0: b9 01 movw r22, r18
- 1e2: 64 1b sub r22, r20
- 1e4: 75 0b sbc r23, r21
- 1e6: ab 01 movw r20, r22
- 1e8: 41 15 cp r20, r1
- 1ea: 52 40 sbci r21, 0x02 ; 2
- 1ec: 81 f0 breq .+32 ; 0x20e <uart_putchar+0x40>
- {
- FIFO_PUSH(fifo0, c);
- 1ee: f9 01 movw r30, r18
- 1f0: f1 70 andi r31, 0x01 ; 1
- 1f2: ea 51 subi r30, 0x1A ; 26
- 1f4: fc 4f sbci r31, 0xFC ; 252
- 1f6: 80 83 st Z, r24
- 1f8: 2f 5f subi r18, 0xFF ; 255
- 1fa: 3f 4f sbci r19, 0xFF ; 255
- 1fc: 30 93 e9 05 sts 0x05E9, r19 ; 0x8005e9 <fifo0+0x203>
- 200: 20 93 e8 05 sts 0x05E8, r18 ; 0x8005e8 <fifo0+0x202>
- UCSR0B |= (1 << UDRIE0);
- 204: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- 208: 80 62 ori r24, 0x20 ; 32
- 20a: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- }
- sei();
- 20e: 78 94 sei
- return 0;
- }
- 210: 80 e0 ldi r24, 0x00 ; 0
- 212: 90 e0 ldi r25, 0x00 ; 0
- 214: 08 95 ret
- 00000216 <lcd_putchar>:
- return (heater[ch].current);
- }
- int lcd_putchar(char c, FILE *stream)
- {
- if(c >= 0xC0)
- 216: 80 3c cpi r24, 0xC0 ; 192
- 218: 28 f0 brcs .+10 ; 0x224 <lcd_putchar+0xe>
- c = cyrillic[c - 0xC0];
- 21a: e8 2f mov r30, r24
- 21c: f0 e0 ldi r31, 0x00 ; 0
- 21e: ed 55 subi r30, 0x5D ; 93
- 220: fe 4f sbci r31, 0xFE ; 254
- 222: 80 81 ld r24, Z
- LCD_SendData(c);
- 224: 0e 94 86 12 call 0x250c ; 0x250c <LCD_SendData>
- return 0;
- }
- 228: 80 e0 ldi r24, 0x00 ; 0
- 22a: 90 e0 ldi r25, 0x00 ; 0
- 22c: 08 95 ret
- 0000022e <SwitchHeating.part.0>:
- void SwitchHeating(uint8_t ch, uint8_t onoff)
- {
- if(onoff)
- {
- GATEPORT &= ~(1 << (GATE1 + (ch & 0x01)));
- 22e: 68 b1 in r22, 0x08 ; 8
- 230: 48 2f mov r20, r24
- 232: 41 70 andi r20, 0x01 ; 1
- 234: 50 e0 ldi r21, 0x00 ; 0
- 236: fa 01 movw r30, r20
- 238: 36 96 adiw r30, 0x06 ; 6
- 23a: 21 e0 ldi r18, 0x01 ; 1
- 23c: 30 e0 ldi r19, 0x00 ; 0
- 23e: d9 01 movw r26, r18
- 240: 02 c0 rjmp .+4 ; 0x246 <SwitchHeating.part.0+0x18>
- 242: aa 0f add r26, r26
- 244: bb 1f adc r27, r27
- 246: ea 95 dec r30
- 248: e2 f7 brpl .-8 ; 0x242 <SwitchHeating.part.0+0x14>
- 24a: 9a 2f mov r25, r26
- 24c: 90 95 com r25
- 24e: 96 23 and r25, r22
- 250: 98 b9 out 0x08, r25 ; 8
- LEDPORT |= (1 << (LED1 + (ch & 0x01)));
- 252: 98 b1 in r25, 0x08 ; 8
- 254: 4e 5f subi r20, 0xFE ; 254
- 256: 5f 4f sbci r21, 0xFF ; 255
- 258: 01 c0 rjmp .+2 ; 0x25c <SwitchHeating.part.0+0x2e>
- 25a: 22 0f add r18, r18
- 25c: 4a 95 dec r20
- 25e: ea f7 brpl .-6 ; 0x25a <SwitchHeating.part.0+0x2c>
- 260: 29 2b or r18, r25
- 262: 28 b9 out 0x08, r18 ; 8
- heater[ch].status.heating = 1;
- 264: b3 e1 ldi r27, 0x13 ; 19
- 266: 8b 9f mul r24, r27
- 268: f0 01 movw r30, r0
- 26a: 11 24 eor r1, r1
- 26c: e0 5e subi r30, 0xE0 ; 224
- 26e: fc 4f sbci r31, 0xFC ; 252
- 270: 80 81 ld r24, Z
- 272: 84 60 ori r24, 0x04 ; 4
- 274: 80 83 st Z, r24
- 276: 08 95 ret
- 00000278 <__vector_7>:
- static FILE uart_stdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
- FIFO(512) fifo0;
- ISR(PCINT3_vect)
- {
- 278: 1f 92 push r1
- 27a: 0f 92 push r0
- 27c: 0f b6 in r0, 0x3f ; 63
- 27e: 0f 92 push r0
- 280: 11 24 eor r1, r1
- 282: 8f 93 push r24
- btn_act = 1;
- 284: 81 e0 ldi r24, 0x01 ; 1
- 286: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 <btn_act>
- if(((BTNPIN >> 4) | 0xF0) == 0xF0)
- 28a: 89 b1 in r24, 0x09 ; 9
- 28c: 82 95 swap r24
- 28e: 8f 70 andi r24, 0x0F ; 15
- 290: 80 6f ori r24, 0xF0 ; 240
- 292: 80 3f cpi r24, 0xF0 ; 240
- 294: 31 f4 brne .+12 ; 0x2a2 <__vector_7+0x2a>
- {
- cli();
- 296: f8 94 cli
- WDTCSR |= (1 << WDCE) | (1 << WDE);
- 298: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060>
- 29c: 88 61 ori r24, 0x18 ; 24
- 29e: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060>
- }
- }
- 2a2: 8f 91 pop r24
- 2a4: 0f 90 pop r0
- 2a6: 0f be out 0x3f, r0 ; 63
- 2a8: 0f 90 pop r0
- 2aa: 1f 90 pop r1
- 2ac: 18 95 reti
- 000002ae <__vector_1>:
- ISR(INT0_vect) /*OVERCURRENT PROTECTION 1*/
- {
- 2ae: 1f 92 push r1
- 2b0: 0f 92 push r0
- 2b2: 0f b6 in r0, 0x3f ; 63
- 2b4: 0f 92 push r0
- 2b6: 11 24 eor r1, r1
- 2b8: 8f 93 push r24
- 2ba: af 93 push r26
- 2bc: bf 93 push r27
- 2be: ef 93 push r30
- 2c0: ff 93 push r31
- cli();
- 2c2: f8 94 cli
- GATEPORT |= (1 << GATE1) | (1 << GATE2);
- 2c4: 88 b1 in r24, 0x08 ; 8
- 2c6: 80 6c ori r24, 0xC0 ; 192
- 2c8: 88 b9 out 0x08, r24 ; 8
- LEDPORT &= ~((1 << LED1) | (1 << LED2));
- 2ca: 88 b1 in r24, 0x08 ; 8
- 2cc: 83 7f andi r24, 0xF3 ; 243
- 2ce: 88 b9 out 0x08, r24 ; 8
- PORTC &= ~(1 << V12POWER);
- 2d0: 44 98 cbi 0x08, 4 ; 8
- heater[0].status.heating = heater[1].status.heating = 0;
- 2d2: a3 e3 ldi r26, 0x33 ; 51
- 2d4: b3 e0 ldi r27, 0x03 ; 3
- 2d6: 8c 91 ld r24, X
- 2d8: 8b 7f andi r24, 0xFB ; 251
- 2da: 8c 93 st X, r24
- 2dc: e0 e2 ldi r30, 0x20 ; 32
- 2de: f3 e0 ldi r31, 0x03 ; 3
- 2e0: 80 81 ld r24, Z
- 2e2: 8b 7f andi r24, 0xFB ; 251
- 2e4: 80 83 st Z, r24
- heater[0].status.onoff = heater[1].status.onoff = 0;
- 2e6: 8c 91 ld r24, X
- 2e8: 8d 7f andi r24, 0xFD ; 253
- 2ea: 8c 93 st X, r24
- 2ec: 80 81 ld r24, Z
- 2ee: 8d 7f andi r24, 0xFD ; 253
- 2f0: 80 83 st Z, r24
- heater[0].status.ocp = 1;
- 2f2: 80 81 ld r24, Z
- 2f4: 88 60 ori r24, 0x08 ; 8
- 2f6: 80 83 st Z, r24
- }
- 2f8: ff 91 pop r31
- 2fa: ef 91 pop r30
- 2fc: bf 91 pop r27
- 2fe: af 91 pop r26
- 300: 8f 91 pop r24
- 302: 0f 90 pop r0
- 304: 0f be out 0x3f, r0 ; 63
- 306: 0f 90 pop r0
- 308: 1f 90 pop r1
- 30a: 18 95 reti
- 0000030c <__vector_2>:
- ISR(INT1_vect) /*OVERCURRENT PROTECTION 2*/
- {
- 30c: 1f 92 push r1
- 30e: 0f 92 push r0
- 310: 0f b6 in r0, 0x3f ; 63
- 312: 0f 92 push r0
- 314: 11 24 eor r1, r1
- 316: 8f 93 push r24
- 318: af 93 push r26
- 31a: bf 93 push r27
- 31c: ef 93 push r30
- 31e: ff 93 push r31
- cli();
- 320: f8 94 cli
- GATEPORT |= (1 << GATE1) | (1 << GATE2);
- 322: 88 b1 in r24, 0x08 ; 8
- 324: 80 6c ori r24, 0xC0 ; 192
- 326: 88 b9 out 0x08, r24 ; 8
- LEDPORT &= ~((1 << LED1) | (1 << LED2));
- 328: 88 b1 in r24, 0x08 ; 8
- 32a: 83 7f andi r24, 0xF3 ; 243
- 32c: 88 b9 out 0x08, r24 ; 8
- PORTC &= ~(1 << V12POWER);
- 32e: 44 98 cbi 0x08, 4 ; 8
- heater[0].status.heating = heater[1].status.heating = 0;
- 330: e3 e3 ldi r30, 0x33 ; 51
- 332: f3 e0 ldi r31, 0x03 ; 3
- 334: 80 81 ld r24, Z
- 336: 8b 7f andi r24, 0xFB ; 251
- 338: 80 83 st Z, r24
- 33a: a0 e2 ldi r26, 0x20 ; 32
- 33c: b3 e0 ldi r27, 0x03 ; 3
- 33e: 8c 91 ld r24, X
- 340: 8b 7f andi r24, 0xFB ; 251
- 342: 8c 93 st X, r24
- heater[0].status.onoff = heater[1].status.onoff = 0;
- 344: 80 81 ld r24, Z
- 346: 8d 7f andi r24, 0xFD ; 253
- 348: 80 83 st Z, r24
- 34a: 8c 91 ld r24, X
- 34c: 8d 7f andi r24, 0xFD ; 253
- 34e: 8c 93 st X, r24
- heater[1].status.ocp = 1;
- 350: 80 81 ld r24, Z
- 352: 88 60 ori r24, 0x08 ; 8
- 354: 80 83 st Z, r24
- }
- 356: ff 91 pop r31
- 358: ef 91 pop r30
- 35a: bf 91 pop r27
- 35c: af 91 pop r26
- 35e: 8f 91 pop r24
- 360: 0f 90 pop r0
- 362: 0f be out 0x3f, r0 ; 63
- 364: 0f 90 pop r0
- 366: 1f 90 pop r1
- 368: 18 95 reti
- 0000036a <__vector_20>:
- ISR(USART0_RX_vect)
- {
- 36a: 1f 92 push r1
- 36c: 0f 92 push r0
- 36e: 0f b6 in r0, 0x3f ; 63
- 370: 0f 92 push r0
- 372: 11 24 eor r1, r1
- 374: 8f 93 push r24
- 376: ef 93 push r30
- 378: ff 93 push r31
- count++;
- 37a: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 <count>
- 37e: 8f 5f subi r24, 0xFF ; 255
- 380: 80 93 f6 02 sts 0x02F6, r24 ; 0x8002f6 <count>
- rxbuf[count - 1] = UDR0;
- 384: e0 91 f6 02 lds r30, 0x02F6 ; 0x8002f6 <count>
- 388: f0 e0 ldi r31, 0x00 ; 0
- 38a: 80 91 c6 00 lds r24, 0x00C6 ; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7e00c6>
- 38e: e9 50 subi r30, 0x09 ; 9
- 390: fd 4f sbci r31, 0xFD ; 253
- 392: 80 83 st Z, r24
- }
- 394: ff 91 pop r31
- 396: ef 91 pop r30
- 398: 8f 91 pop r24
- 39a: 0f 90 pop r0
- 39c: 0f be out 0x3f, r0 ; 63
- 39e: 0f 90 pop r0
- 3a0: 1f 90 pop r1
- 3a2: 18 95 reti
- 000003a4 <__vector_21>:
- ISR(USART0_UDRE_vect)
- {
- 3a4: 1f 92 push r1
- 3a6: 0f 92 push r0
- 3a8: 0f b6 in r0, 0x3f ; 63
- 3aa: 0f 92 push r0
- 3ac: 11 24 eor r1, r1
- 3ae: 2f 93 push r18
- 3b0: 3f 93 push r19
- 3b2: 8f 93 push r24
- 3b4: 9f 93 push r25
- 3b6: ef 93 push r30
- 3b8: ff 93 push r31
- if(FIFO_IS_EMPTY(fifo0))
- 3ba: 80 91 e6 05 lds r24, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- 3be: 90 91 e7 05 lds r25, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- 3c2: 20 91 e8 05 lds r18, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- 3c6: 30 91 e9 05 lds r19, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- 3ca: 82 17 cp r24, r18
- 3cc: 93 07 cpc r25, r19
- 3ce: b9 f0 breq .+46 ; 0x3fe <__vector_21+0x5a>
- {
- UCSR0B &= ~(1 << UDRIE0);
- }
- else
- {
- UDR0 = FIFO_FRONT(fifo0);
- 3d0: fc 01 movw r30, r24
- 3d2: f1 70 andi r31, 0x01 ; 1
- 3d4: ea 51 subi r30, 0x1A ; 26
- 3d6: fc 4f sbci r31, 0xFC ; 252
- 3d8: 20 81 ld r18, Z
- 3da: 20 93 c6 00 sts 0x00C6, r18 ; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7e00c6>
- FIFO_POP(fifo0);
- 3de: 01 96 adiw r24, 0x01 ; 1
- 3e0: 90 93 e7 05 sts 0x05E7, r25 ; 0x8005e7 <fifo0+0x201>
- 3e4: 80 93 e6 05 sts 0x05E6, r24 ; 0x8005e6 <fifo0+0x200>
- }
- }
- 3e8: ff 91 pop r31
- 3ea: ef 91 pop r30
- 3ec: 9f 91 pop r25
- 3ee: 8f 91 pop r24
- 3f0: 3f 91 pop r19
- 3f2: 2f 91 pop r18
- 3f4: 0f 90 pop r0
- 3f6: 0f be out 0x3f, r0 ; 63
- 3f8: 0f 90 pop r0
- 3fa: 1f 90 pop r1
- 3fc: 18 95 reti
- ISR(USART0_UDRE_vect)
- {
- if(FIFO_IS_EMPTY(fifo0))
- {
- UCSR0B &= ~(1 << UDRIE0);
- 3fe: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- 402: 8f 7d andi r24, 0xDF ; 223
- 404: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- 408: ef cf rjmp .-34 ; 0x3e8 <__vector_21+0x44>
- 0000040a <__vector_16>:
- FIFO_POP(fifo0);
- }
- }
- ISR(TIMER0_COMPA_vect)
- {
- 40a: 1f 92 push r1
- 40c: 0f 92 push r0
- 40e: 0f b6 in r0, 0x3f ; 63
- 410: 0f 92 push r0
- 412: 11 24 eor r1, r1
- 414: 8f 93 push r24
- tick1 = 1;
- 416: 81 e0 ldi r24, 0x01 ; 1
- 418: 80 93 f5 02 sts 0x02F5, r24 ; 0x8002f5 <tick1>
- }
- 41c: 8f 91 pop r24
- 41e: 0f 90 pop r0
- 420: 0f be out 0x3f, r0 ; 63
- 422: 0f 90 pop r0
- 424: 1f 90 pop r1
- 426: 18 95 reti
- 00000428 <__vector_13>:
- ISR(TIMER1_COMPA_vect)
- {
- 428: 1f 92 push r1
- 42a: 0f 92 push r0
- 42c: 0f b6 in r0, 0x3f ; 63
- 42e: 0f 92 push r0
- 430: 11 24 eor r1, r1
- 432: 8f 93 push r24
- tick2 = 1;
- 434: 81 e0 ldi r24, 0x01 ; 1
- 436: 80 93 f4 02 sts 0x02F4, r24 ; 0x8002f4 <tick2>
- }
- 43a: 8f 91 pop r24
- 43c: 0f 90 pop r0
- 43e: 0f be out 0x3f, r0 ; 63
- 440: 0f 90 pop r0
- 442: 1f 90 pop r1
- 444: 18 95 reti
- 00000446 <init>:
- void init()
- {
- /* Watchdog clear*/
- MCUSR &= ~(1 << WDRF);
- 446: 84 b7 in r24, 0x34 ; 52
- 448: 87 7f andi r24, 0xF7 ; 247
- 44a: 84 bf out 0x34, r24 ; 52
- WDTCSR |= (1 << WDCE) | (1 << WDE);
- 44c: e0 e6 ldi r30, 0x60 ; 96
- 44e: f0 e0 ldi r31, 0x00 ; 0
- 450: 80 81 ld r24, Z
- 452: 88 61 ori r24, 0x18 ; 24
- 454: 80 83 st Z, r24
- WDTCSR = 0x00;
- 456: 10 82 st Z, r1
-
- /* External interrupts initialization */
- EICRA |= (1 << ISC01) | (1 << ISC11);
- 458: e9 e6 ldi r30, 0x69 ; 105
- 45a: f0 e0 ldi r31, 0x00 ; 0
- 45c: 80 81 ld r24, Z
- 45e: 8a 60 ori r24, 0x0A ; 10
- 460: 80 83 st Z, r24
- EIMSK |= (1 << INT0) | (1 << INT1);
- 462: 8d b3 in r24, 0x1d ; 29
- 464: 83 60 ori r24, 0x03 ; 3
- 466: 8d bb out 0x1d, r24 ; 29
-
- /* GPIO Initialization */
- PORTC |= (1 << GATE1) | (1 << GATE2) | (1 << V12POWER);
- 468: 88 b1 in r24, 0x08 ; 8
- 46a: 80 6d ori r24, 0xD0 ; 208
- 46c: 88 b9 out 0x08, r24 ; 8
- DDRC |= (1 << LED1) | (1 << LED2) | (1 << GATE1) | (1 << GATE2) | (1 << V12POWER);
- 46e: 87 b1 in r24, 0x07 ; 7
- 470: 8c 6d ori r24, 0xDC ; 220
- 472: 87 b9 out 0x07, r24 ; 7
-
- /* UART Initialization */
- TXD_PORT |= (1 << TXD_BIT);
- 474: 59 9a sbi 0x0b, 1 ; 11
- TXD_DDR |= (1 << TXD_BIT);
- 476: 51 9a sbi 0x0a, 1 ; 10
- #if U2X0_SET
- UBRR0H = (uint8_t)(((F_CPU / (8 * BAUD_RATE)) - 1) >> 8);
- 478: 10 92 c5 00 sts 0x00C5, r1 ; 0x8000c5 <__TEXT_REGION_LENGTH__+0x7e00c5>
- UBRR0L = (uint8_t)((F_CPU / (8 * BAUD_RATE)) - 1);
- 47c: 86 e2 ldi r24, 0x26 ; 38
- 47e: 80 93 c4 00 sts 0x00C4, r24 ; 0x8000c4 <__TEXT_REGION_LENGTH__+0x7e00c4>
- UCSR0A = (1 << U2X0);
- 482: 82 e0 ldi r24, 0x02 ; 2
- 484: 80 93 c0 00 sts 0x00C0, r24 ; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7e00c0>
- #elif
- UBRR0H = (uint8_t)(((F_CPU / (16 * BAUD_RATE)) - 1) >> 8);
- UBRR0L = (uint8_t)((F_CPU / (16 * BAUD_RATE)) - 1);
- #endif
- UCSR0B = (1 << RXCIE0) | (1 << RXEN0) | (1 << TXEN0);
- 488: 98 e9 ldi r25, 0x98 ; 152
- 48a: 90 93 c1 00 sts 0x00C1, r25 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- UCSR0C = (1 << UCSZ00) | (1 << UCSZ01);
- 48e: 96 e0 ldi r25, 0x06 ; 6
- 490: 90 93 c2 00 sts 0x00C2, r25 ; 0x8000c2 <__TEXT_REGION_LENGTH__+0x7e00c2>
-
- /* SPI Initialization */
- DDRB |= (1 << MOSI_BIT) | (1 << SCK_BIT) | (1 << SS_BIT) | (7 << PORTB0);
- 494: 94 b1 in r25, 0x04 ; 4
- 496: 97 6b ori r25, 0xB7 ; 183
- 498: 94 b9 out 0x04, r25 ; 4
- PORTB |= (1 << MOSI_BIT) | (1 << SCK_BIT) | (1 << SS_BIT);
- 49a: 95 b1 in r25, 0x05 ; 5
- 49c: 90 6b ori r25, 0xB0 ; 176
- 49e: 95 b9 out 0x05, r25 ; 5
- SPCR = (1 << SPE) | (1 << MSTR);
- 4a0: 90 e5 ldi r25, 0x50 ; 80
- 4a2: 9c bd out 0x2c, r25 ; 44
-
- /* TWI Initialization */
- TWBR = (uint8_t)(((F_CPU / TWI_FREQ) - 16) / 2);
- 4a4: 94 e0 ldi r25, 0x04 ; 4
- 4a6: 90 93 b8 00 sts 0x00B8, r25 ; 0x8000b8 <__TEXT_REGION_LENGTH__+0x7e00b8>
- TWCR = (1 << TWEN);
- 4aa: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
-
- /* Timer0 Initialization */
- TCCR0A = (1 << WGM01);
- 4ae: 84 bd out 0x24, r24 ; 36
- OCR0A = 0x80;
- 4b0: 90 e8 ldi r25, 0x80 ; 128
- 4b2: 97 bd out 0x27, r25 ; 39
- TCCR0B = (1 << CS00) | (1 << CS02);
- 4b4: 95 e0 ldi r25, 0x05 ; 5
- 4b6: 95 bd out 0x25, r25 ; 37
- TIMSK0 = (1 << OCIE0A);
- 4b8: 80 93 6e 00 sts 0x006E, r24 ; 0x80006e <__TEXT_REGION_LENGTH__+0x7e006e>
-
- /* Timer1 Initialization */
- TCCR1B = (1 << CS12) | (1 << CS10) | (1 << WGM12);
- 4bc: 9d e0 ldi r25, 0x0D ; 13
- 4be: 90 93 81 00 sts 0x0081, r25 ; 0x800081 <__TEXT_REGION_LENGTH__+0x7e0081>
- OCR1A = 0x400;
- 4c2: 20 e0 ldi r18, 0x00 ; 0
- 4c4: 34 e0 ldi r19, 0x04 ; 4
- 4c6: 30 93 89 00 sts 0x0089, r19 ; 0x800089 <__TEXT_REGION_LENGTH__+0x7e0089>
- 4ca: 20 93 88 00 sts 0x0088, r18 ; 0x800088 <__TEXT_REGION_LENGTH__+0x7e0088>
- TIMSK1 = (1 << OCIE1A);
- 4ce: 80 93 6f 00 sts 0x006F, r24 ; 0x80006f <__TEXT_REGION_LENGTH__+0x7e006f>
-
- /* ADC Initialization */
- ADMUX |= (1 << REFS0) | (1 << REFS1);
- 4d2: ec e7 ldi r30, 0x7C ; 124
- 4d4: f0 e0 ldi r31, 0x00 ; 0
- 4d6: 80 81 ld r24, Z
- 4d8: 80 6c ori r24, 0xC0 ; 192
- 4da: 80 83 st Z, r24
- ADCSRA = (1 << ADEN) | (1 << ADPS0) | (1 << ADPS1);
- 4dc: 83 e8 ldi r24, 0x83 ; 131
- 4de: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- DIDR0 = 0xFF;
- 4e2: 8f ef ldi r24, 0xFF ; 255
- 4e4: 80 93 7e 00 sts 0x007E, r24 ; 0x80007e <__TEXT_REGION_LENGTH__+0x7e007e>
-
- PCICR = (1 << PCIE3);
- 4e8: 88 e0 ldi r24, 0x08 ; 8
- 4ea: 80 93 68 00 sts 0x0068, r24 ; 0x800068 <__TEXT_REGION_LENGTH__+0x7e0068>
- PCMSK3 = 0xF0;
- 4ee: 80 ef ldi r24, 0xF0 ; 240
- 4f0: 80 93 73 00 sts 0x0073, r24 ; 0x800073 <__TEXT_REGION_LENGTH__+0x7e0073>
- 4f4: 08 95 ret
- 000004f6 <MAX_ReadData>:
- }
- void MAX_ReadData()
- {
- 4f6: 0f 93 push r16
- 4f8: 1f 93 push r17
- 4fa: cf 93 push r28
- 4fc: df 93 push r29
- 4fe: 00 d0 rcall .+0 ; 0x500 <MAX_ReadData+0xa>
- 500: 00 d0 rcall .+0 ; 0x502 <MAX_ReadData+0xc>
- 502: cd b7 in r28, 0x3d ; 61
- 504: de b7 in r29, 0x3e ; 62
- uint8_t i = 0;
- max31855_t data;
- btw32_t *dptr = (btw32_t*)&data;
- PORTB = (PORTB & 0xF8) | MAXADDR;
- 506: 85 b1 in r24, 0x05 ; 5
- 508: 88 7f andi r24, 0xF8 ; 248
- 50a: 86 60 ori r24, 0x06 ; 6
- 50c: 85 b9 out 0x05, r24 ; 5
- PORTB &= ~(1 << SS_BIT);
- 50e: 2c 98 cbi 0x05, 4 ; 5
- 510: fe 01 movw r30, r28
- 512: 35 96 adiw r30, 0x05 ; 5
- 514: 9e 01 movw r18, r28
- 516: 2f 5f subi r18, 0xFF ; 255
- 518: 3f 4f sbci r19, 0xFF ; 255
- for(i = 0; i < 4; i++)
- {
- SPDR = 0xFF;
- 51a: 9f ef ldi r25, 0xFF ; 255
- 51c: 9e bd out 0x2e, r25 ; 46
- while(!(SPSR & (1 << SPIF)));
- 51e: 0d b4 in r0, 0x2d ; 45
- 520: 07 fe sbrs r0, 7
- 522: fd cf rjmp .-6 ; 0x51e <MAX_ReadData+0x28>
- dptr->byte[3 - i] = SPDR;
- 524: 8e b5 in r24, 0x2e ; 46
- 526: 82 93 st -Z, r24
- uint8_t i = 0;
- max31855_t data;
- btw32_t *dptr = (btw32_t*)&data;
- PORTB = (PORTB & 0xF8) | MAXADDR;
- PORTB &= ~(1 << SS_BIT);
- for(i = 0; i < 4; i++)
- 528: e2 17 cp r30, r18
- 52a: f3 07 cpc r31, r19
- 52c: b9 f7 brne .-18 ; 0x51c <MAX_ReadData+0x26>
- {
- SPDR = 0xFF;
- while(!(SPSR & (1 << SPIF)));
- dptr->byte[3 - i] = SPDR;
- }
- PORTB |= (1 << SS_BIT);
- 52e: 2c 9a sbi 0x05, 4 ; 5
-
- heater[CH0].tintr = heater[CH1].tintr = (int8_t)data.intt_int;
- 530: 0a 81 ldd r16, Y+2 ; 0x02
- 532: 00 93 36 03 sts 0x0336, r16 ; 0x800336 <heater+0x16>
- 536: 00 93 23 03 sts 0x0323, r16 ; 0x800323 <heater+0x3>
- if(data.intt_frac * (100.0 / 16.0) >= 50)
- 53a: 19 81 ldd r17, Y+1 ; 0x01
- 53c: 61 2f mov r22, r17
- 53e: 62 95 swap r22
- 540: 6f 70 andi r22, 0x0F ; 15
- 542: 70 e0 ldi r23, 0x00 ; 0
- 544: 80 e0 ldi r24, 0x00 ; 0
- 546: 90 e0 ldi r25, 0x00 ; 0
- 548: 0e 94 57 16 call 0x2cae ; 0x2cae <__floatsisf>
- 54c: 20 e0 ldi r18, 0x00 ; 0
- 54e: 30 e0 ldi r19, 0x00 ; 0
- 550: 48 ec ldi r20, 0xC8 ; 200
- 552: 50 e4 ldi r21, 0x40 ; 64
- 554: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
- 558: 20 e0 ldi r18, 0x00 ; 0
- 55a: 30 e0 ldi r19, 0x00 ; 0
- 55c: 48 e4 ldi r20, 0x48 ; 72
- 55e: 52 e4 ldi r21, 0x42 ; 66
- 560: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2>
- 564: 87 fd sbrc r24, 7
- 566: 03 c0 rjmp .+6 ; 0x56e <MAX_ReadData+0x78>
- heater[CH0].tintr++;
- 568: 0f 5f subi r16, 0xFF ; 255
- 56a: 00 93 23 03 sts 0x0323, r16 ; 0x800323 <heater+0x3>
-
- if(data.oc | data.scg | data.scg)
- 56e: 81 2f mov r24, r17
- 570: 81 70 andi r24, 0x01 ; 1
- 572: 11 fb bst r17, 1
- 574: 99 27 eor r25, r25
- 576: 90 f9 bld r25, 0
- 578: 89 2b or r24, r25
- 57a: d9 f5 brne .+118 ; 0x5f2 <MAX_ReadData+0xfc>
- heater[CH0].status.couple = heater[CH1].status.couple = dptr->byte[0] & 0x07;
- heater[CH0].tcouple = heater[CH1].tcouple = 0;
- }
- else
- {
- heater[CH0].status.couple = heater[CH1].status.couple = 0;
- 57c: 80 91 34 03 lds r24, 0x0334 ; 0x800334 <heater+0x14>
- 580: 81 7f andi r24, 0xF1 ; 241
- 582: 80 93 34 03 sts 0x0334, r24 ; 0x800334 <heater+0x14>
- 586: 80 91 21 03 lds r24, 0x0321 ; 0x800321 <heater+0x1>
- 58a: 81 7f andi r24, 0xF1 ; 241
- 58c: 80 93 21 03 sts 0x0321, r24 ; 0x800321 <heater+0x1>
- heater[CH0].tcouple = heater[CH1].tcouple = ((int16_t)data.tct_int ^ 0x0800) - 0x0800;
- 590: 8b 81 ldd r24, Y+3 ; 0x03
- 592: 48 2f mov r20, r24
- 594: 42 95 swap r20
- 596: 4f 70 andi r20, 0x0F ; 15
- 598: 9c 81 ldd r25, Y+4 ; 0x04
- 59a: 59 2f mov r21, r25
- 59c: 52 95 swap r21
- 59e: 50 7f andi r21, 0xF0 ; 240
- 5a0: 25 2f mov r18, r21
- 5a2: 24 2b or r18, r20
- 5a4: 39 2f mov r19, r25
- 5a6: 32 95 swap r19
- 5a8: 3f 70 andi r19, 0x0F ; 15
- 5aa: 48 e0 ldi r20, 0x08 ; 8
- 5ac: 34 27 eor r19, r20
- 5ae: a9 01 movw r20, r18
- 5b0: 58 50 subi r21, 0x08 ; 8
- 5b2: 50 93 38 03 sts 0x0338, r21 ; 0x800338 <heater+0x18>
- 5b6: 40 93 37 03 sts 0x0337, r20 ; 0x800337 <heater+0x17>
- 5ba: 50 93 25 03 sts 0x0325, r21 ; 0x800325 <heater+0x5>
- 5be: 40 93 24 03 sts 0x0324, r20 ; 0x800324 <heater+0x4>
- if((data.tct_frac * (100 / 4)) >= 50)
- 5c2: 86 95 lsr r24
- 5c4: 86 95 lsr r24
- 5c6: 83 70 andi r24, 0x03 ; 3
- 5c8: 49 e1 ldi r20, 0x19 ; 25
- 5ca: 84 9f mul r24, r20
- 5cc: c0 01 movw r24, r0
- 5ce: 11 24 eor r1, r1
- 5d0: c2 97 sbiw r24, 0x32 ; 50
- 5d2: 34 f0 brlt .+12 ; 0x5e0 <MAX_ReadData+0xea>
- heater[CH0].tcouple = heater[CH1].tcouple++;
- 5d4: 2f 5f subi r18, 0xFF ; 255
- 5d6: 37 40 sbci r19, 0x07 ; 7
- 5d8: 30 93 38 03 sts 0x0338, r19 ; 0x800338 <heater+0x18>
- 5dc: 20 93 37 03 sts 0x0337, r18 ; 0x800337 <heater+0x17>
- }
- }
- 5e0: 0f 90 pop r0
- 5e2: 0f 90 pop r0
- 5e4: 0f 90 pop r0
- 5e6: 0f 90 pop r0
- 5e8: df 91 pop r29
- 5ea: cf 91 pop r28
- 5ec: 1f 91 pop r17
- 5ee: 0f 91 pop r16
- 5f0: 08 95 ret
- if(data.intt_frac * (100.0 / 16.0) >= 50)
- heater[CH0].tintr++;
-
- if(data.oc | data.scg | data.scg)
- {
- heater[CH0].status.couple = heater[CH1].status.couple = dptr->byte[0] & 0x07;
- 5f2: 17 70 andi r17, 0x07 ; 7
- 5f4: 11 0f add r17, r17
- 5f6: 80 91 34 03 lds r24, 0x0334 ; 0x800334 <heater+0x14>
- 5fa: 81 7f andi r24, 0xF1 ; 241
- 5fc: 81 2b or r24, r17
- 5fe: 80 93 34 03 sts 0x0334, r24 ; 0x800334 <heater+0x14>
- 602: 80 91 21 03 lds r24, 0x0321 ; 0x800321 <heater+0x1>
- 606: 81 7f andi r24, 0xF1 ; 241
- 608: 18 2b or r17, r24
- 60a: 10 93 21 03 sts 0x0321, r17 ; 0x800321 <heater+0x1>
- heater[CH0].tcouple = heater[CH1].tcouple = 0;
- 60e: 10 92 38 03 sts 0x0338, r1 ; 0x800338 <heater+0x18>
- 612: 10 92 37 03 sts 0x0337, r1 ; 0x800337 <heater+0x17>
- 616: 10 92 25 03 sts 0x0325, r1 ; 0x800325 <heater+0x5>
- 61a: 10 92 24 03 sts 0x0324, r1 ; 0x800324 <heater+0x4>
- 61e: e0 cf rjmp .-64 ; 0x5e0 <MAX_ReadData+0xea>
- 00000620 <CalculateTemp>:
- heater[CH0].tcouple = heater[CH1].tcouple++;
- }
- }
- int16_t CalculateTemp(uint16_t data, uint8_t ch)
- {
- 620: 2f 92 push r2
- 622: 3f 92 push r3
- 624: 4f 92 push r4
- 626: 5f 92 push r5
- 628: 6f 92 push r6
- 62a: 7f 92 push r7
- 62c: 8f 92 push r8
- 62e: 9f 92 push r9
- 630: af 92 push r10
- 632: bf 92 push r11
- 634: cf 92 push r12
- 636: df 92 push r13
- 638: ef 92 push r14
- 63a: ff 92 push r15
- 63c: 0f 93 push r16
- 63e: 1f 93 push r17
- 640: cf 93 push r28
- 642: df 93 push r29
- if(data > preset[ch].curve[0].adcdata)
- 644: 26 2f mov r18, r22
- 646: 30 e0 ldi r19, 0x00 ; 0
- 648: 40 e5 ldi r20, 0x50 ; 80
- 64a: 64 9f mul r22, r20
- 64c: f0 01 movw r30, r0
- 64e: 11 24 eor r1, r1
- 650: ea 5b subi r30, 0xBA ; 186
- 652: fc 4f sbci r31, 0xFC ; 252
- 654: 02 89 ldd r16, Z+18 ; 0x12
- 656: 13 89 ldd r17, Z+19 ; 0x13
- 658: 08 17 cp r16, r24
- 65a: 19 07 cpc r17, r25
- 65c: 80 f1 brcs .+96 ; 0x6be <CalculateTemp+0x9e>
- return 0;
-
- if(data < preset[ch].curve[15].adcdata)
- 65e: e2 5b subi r30, 0xB2 ; 178
- 660: ff 4f sbci r31, 0xFF ; 255
- 662: 40 81 ld r20, Z
- 664: 51 81 ldd r21, Z+1 ; 0x01
- 666: 84 17 cp r24, r20
- 668: 95 07 cpc r25, r21
- 66a: a8 f4 brcc .+42 ; 0x696 <CalculateTemp+0x76>
- return 150;
- 66c: 86 e9 ldi r24, 0x96 ; 150
- 66e: 90 e0 ldi r25, 0x00 ; 0
- return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
- preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data);
- }
- }
- return (-1);
- }
- 670: df 91 pop r29
- 672: cf 91 pop r28
- 674: 1f 91 pop r17
- 676: 0f 91 pop r16
- 678: ff 90 pop r15
- 67a: ef 90 pop r14
- 67c: df 90 pop r13
- 67e: cf 90 pop r12
- 680: bf 90 pop r11
- 682: af 90 pop r10
- 684: 9f 90 pop r9
- 686: 8f 90 pop r8
- 688: 7f 90 pop r7
- 68a: 6f 90 pop r6
- 68c: 5f 90 pop r5
- 68e: 4f 90 pop r4
- 690: 3f 90 pop r3
- 692: 2f 90 pop r2
- 694: 08 95 ret
- 696: 40 e5 ldi r20, 0x50 ; 80
- 698: 64 9f mul r22, r20
- 69a: f0 01 movw r30, r0
- 69c: 11 24 eor r1, r1
- 69e: e4 5a subi r30, 0xA4 ; 164
- 6a0: fc 4f sbci r31, 0xFC ; 252
- int16_t CalculateTemp(uint16_t data, uint8_t ch)
- {
- if(data > preset[ch].curve[0].adcdata)
- return 0;
-
- if(data < preset[ch].curve[15].adcdata)
- 6a2: c0 e0 ldi r28, 0x00 ; 0
- 6a4: 03 c0 rjmp .+6 ; 0x6ac <CalculateTemp+0x8c>
- 6a6: 00 81 ld r16, Z
- 6a8: 11 81 ldd r17, Z+1 ; 0x01
- 6aa: 34 96 adiw r30, 0x04 ; 4
- return 150;
-
- for(uint8_t i = 0; i < 16; i++)
- {
- if(data >= preset[ch].curve[i].adcdata)
- 6ac: 80 17 cp r24, r16
- 6ae: 91 07 cpc r25, r17
- 6b0: 48 f4 brcc .+18 ; 0x6c4 <CalculateTemp+0xa4>
- return 0;
-
- if(data < preset[ch].curve[15].adcdata)
- return 150;
-
- for(uint8_t i = 0; i < 16; i++)
- 6b2: cf 5f subi r28, 0xFF ; 255
- 6b4: c0 31 cpi r28, 0x10 ; 16
- 6b6: b9 f7 brne .-18 ; 0x6a6 <CalculateTemp+0x86>
- {
- return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
- preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data);
- }
- }
- return (-1);
- 6b8: 8f ef ldi r24, 0xFF ; 255
- 6ba: 9f ef ldi r25, 0xFF ; 255
- 6bc: d9 cf rjmp .-78 ; 0x670 <CalculateTemp+0x50>
- }
- int16_t CalculateTemp(uint16_t data, uint8_t ch)
- {
- if(data > preset[ch].curve[0].adcdata)
- return 0;
- 6be: 80 e0 ldi r24, 0x00 ; 0
- 6c0: 90 e0 ldi r25, 0x00 ; 0
- 6c2: d6 cf rjmp .-84 ; 0x670 <CalculateTemp+0x50>
- 6c4: 1c 01 movw r2, r24
- if(data < preset[ch].curve[15].adcdata)
- return 150;
-
- for(uint8_t i = 0; i < 16; i++)
- {
- if(data >= preset[ch].curve[i].adcdata)
- 6c6: d0 e0 ldi r29, 0x00 ; 0
- {
- return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
- preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data);
- 6c8: 7e 01 movw r14, r28
- 6ca: 81 e0 ldi r24, 0x01 ; 1
- 6cc: e8 1a sub r14, r24
- 6ce: f1 08 sbc r15, r1
- 6d0: 84 e1 ldi r24, 0x14 ; 20
- 6d2: 82 9f mul r24, r18
- 6d4: 60 01 movw r12, r0
- 6d6: 83 9f mul r24, r19
- 6d8: d0 0c add r13, r0
- 6da: 11 24 eor r1, r1
- 6dc: ec 0c add r14, r12
- 6de: fd 1c adc r15, r13
- 6e0: f7 01 movw r30, r14
- 6e2: ee 0f add r30, r30
- 6e4: ff 1f adc r31, r31
- 6e6: ee 0f add r30, r30
- 6e8: ff 1f adc r31, r31
- 6ea: ea 5a subi r30, 0xAA ; 170
- 6ec: fc 4f sbci r31, 0xFC ; 252
-
- for(uint8_t i = 0; i < 16; i++)
- {
- if(data >= preset[ch].curve[i].adcdata)
- {
- return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
- 6ee: 60 81 ld r22, Z
- 6f0: 71 81 ldd r23, Z+1 ; 0x01
- 6f2: 80 e0 ldi r24, 0x00 ; 0
- 6f4: 90 e0 ldi r25, 0x00 ; 0
- 6f6: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 6fa: 4b 01 movw r8, r22
- 6fc: 5c 01 movw r10, r24
- 6fe: f7 01 movw r30, r14
- 700: ee 0f add r30, r30
- 702: ff 1f adc r31, r31
- 704: ee 0f add r30, r30
- 706: ff 1f adc r31, r31
- 708: ea 5b subi r30, 0xBA ; 186
- 70a: fc 4f sbci r31, 0xFC ; 252
- 70c: 62 89 ldd r22, Z+18 ; 0x12
- 70e: 73 89 ldd r23, Z+19 ; 0x13
- 710: 80 e0 ldi r24, 0x00 ; 0
- 712: 90 e0 ldi r25, 0x00 ; 0
- 714: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 718: 2b 01 movw r4, r22
- 71a: 3c 01 movw r6, r24
- preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data);
- 71c: cc 0d add r28, r12
- 71e: dd 1d adc r29, r13
- 720: cc 0f add r28, r28
- 722: dd 1f adc r29, r29
- 724: cc 0f add r28, r28
- 726: dd 1f adc r29, r29
- 728: ca 5a subi r28, 0xAA ; 170
- 72a: dc 4f sbci r29, 0xFC ; 252
-
- for(uint8_t i = 0; i < 16; i++)
- {
- if(data >= preset[ch].curve[i].adcdata)
- {
- return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
- 72c: 68 81 ld r22, Y
- 72e: 79 81 ldd r23, Y+1 ; 0x01
- 730: 80 e0 ldi r24, 0x00 ; 0
- 732: 90 e0 ldi r25, 0x00 ; 0
- 734: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 738: a5 01 movw r20, r10
- 73a: 94 01 movw r18, r8
- 73c: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 740: 6b 01 movw r12, r22
- 742: 7c 01 movw r14, r24
- 744: b1 01 movw r22, r2
- 746: 80 e0 ldi r24, 0x00 ; 0
- 748: 90 e0 ldi r25, 0x00 ; 0
- 74a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 74e: a3 01 movw r20, r6
- 750: 92 01 movw r18, r4
- 752: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 756: 9b 01 movw r18, r22
- 758: ac 01 movw r20, r24
- 75a: c7 01 movw r24, r14
- 75c: b6 01 movw r22, r12
- 75e: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
- 762: 6b 01 movw r12, r22
- 764: 7c 01 movw r14, r24
- 766: b8 01 movw r22, r16
- 768: 80 e0 ldi r24, 0x00 ; 0
- 76a: 90 e0 ldi r25, 0x00 ; 0
- 76c: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 770: a3 01 movw r20, r6
- 772: 92 01 movw r18, r4
- 774: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 778: 9b 01 movw r18, r22
- 77a: ac 01 movw r20, r24
- 77c: c7 01 movw r24, r14
- 77e: b6 01 movw r22, r12
- 780: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
- 784: a5 01 movw r20, r10
- 786: 94 01 movw r18, r8
- 788: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
- 78c: 0e 94 24 16 call 0x2c48 ; 0x2c48 <__fixsfsi>
- 790: cb 01 movw r24, r22
- 792: 6e cf rjmp .-292 ; 0x670 <CalculateTemp+0x50>
- 00000794 <TMeasure>:
- }
- return (-1);
- }
- int16_t TMeasure(uint8_t ch)
- {
- 794: cf 93 push r28
- 796: df 93 push r29
- 798: e8 2f mov r30, r24
- uint16_t addata = 0;
- uint16_t avg_data = 0;
- uint8_t i = 0;
-
- ADMUX = (ADMUX & 0xF8) | (ch & 0x01);
- 79a: 80 91 7c 00 lds r24, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
- 79e: 98 2f mov r25, r24
- 7a0: 98 7f andi r25, 0xF8 ; 248
- 7a2: 8e 2f mov r24, r30
- 7a4: 81 70 andi r24, 0x01 ; 1
- 7a6: 89 2b or r24, r25
- 7a8: 80 93 7c 00 sts 0x007C, r24 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
- #else
- //round up by default
- __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
- #endif
- __builtin_avr_delay_cycles(__ticks_dc);
- 7ac: 8b e2 ldi r24, 0x2B ; 43
- 7ae: 91 e0 ldi r25, 0x01 ; 1
- 7b0: 01 97 sbiw r24, 0x01 ; 1
- 7b2: f1 f7 brne .-4 ; 0x7b0 <TMeasure+0x1c>
- 7b4: 00 c0 rjmp .+0 ; 0x7b6 <TMeasure+0x22>
- 7b6: 00 00 nop
- 7b8: 3a e0 ldi r19, 0x0A ; 10
- _delay_us(100);
- avg_data = 0;
- 7ba: 40 e0 ldi r20, 0x00 ; 0
- 7bc: 50 e0 ldi r21, 0x00 ; 0
- for(i = 0; i < 10; i++)
- {
- ADCSRA |= (1 << ADSC);
- 7be: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- 7c2: 80 64 ori r24, 0x40 ; 64
- 7c4: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- while(!(ADCSRA & (1 << ADIF)));
- 7c8: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- 7cc: 84 ff sbrs r24, 4
- 7ce: fc cf rjmp .-8 ; 0x7c8 <TMeasure+0x34>
- addata = ADCL;
- 7d0: 80 91 78 00 lds r24, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078>
- addata |= ((uint16_t)ADCH) << 8;
- 7d4: 20 91 79 00 lds r18, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079>
- avg_data += addata;
- 7d8: 90 e0 ldi r25, 0x00 ; 0
- 7da: 92 2b or r25, r18
- 7dc: 48 0f add r20, r24
- 7de: 59 1f adc r21, r25
- 7e0: 31 50 subi r19, 0x01 ; 1
- uint8_t i = 0;
-
- ADMUX = (ADMUX & 0xF8) | (ch & 0x01);
- _delay_us(100);
- avg_data = 0;
- for(i = 0; i < 10; i++)
- 7e2: 69 f7 brne .-38 ; 0x7be <TMeasure+0x2a>
- while(!(ADCSRA & (1 << ADIF)));
- addata = ADCL;
- addata |= ((uint16_t)ADCH) << 8;
- avg_data += addata;
- }
- addata = avg_data / 10;
- 7e4: 9a 01 movw r18, r20
- 7e6: ad ec ldi r26, 0xCD ; 205
- 7e8: bc ec ldi r27, 0xCC ; 204
- 7ea: 0e 94 e5 1a call 0x35ca ; 0x35ca <__umulhisi3>
- 7ee: 96 95 lsr r25
- 7f0: 87 95 ror r24
- 7f2: 96 95 lsr r25
- 7f4: 87 95 ror r24
- 7f6: 96 95 lsr r25
- 7f8: 87 95 ror r24
- heater[ch].tmeas_raw = addata;
- 7fa: 23 e1 ldi r18, 0x13 ; 19
- 7fc: e2 9f mul r30, r18
- 7fe: e0 01 movw r28, r0
- 800: 11 24 eor r1, r1
- 802: c0 5e subi r28, 0xE0 ; 224
- 804: dc 4f sbci r29, 0xFC ; 252
- 806: 99 87 std Y+9, r25 ; 0x09
- 808: 88 87 std Y+8, r24 ; 0x08
- heater[ch].tmeas = CalculateTemp(addata, ch);
- 80a: 6e 2f mov r22, r30
- 80c: 09 df rcall .-494 ; 0x620 <CalculateTemp>
- 80e: 9f 83 std Y+7, r25 ; 0x07
- 810: 8e 83 std Y+6, r24 ; 0x06
- return (heater[ch].tmeas);
- }
- 812: df 91 pop r29
- 814: cf 91 pop r28
- 816: 08 95 ret
- 00000818 <CurrMeasure>:
- uint16_t CurrMeasure(uint8_t ch)
- {
- 818: cf 93 push r28
- 81a: c8 2f mov r28, r24
- uint16_t addata = 0;
-
- ADMUX = (ADMUX & 0xF8) | (ADC_CUR1 + (ch & 0x01));
- 81c: 80 91 7c 00 lds r24, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
- 820: 9c 2f mov r25, r28
- 822: 91 70 andi r25, 0x01 ; 1
- 824: 9e 5f subi r25, 0xFE ; 254
- 826: 88 7f andi r24, 0xF8 ; 248
- 828: 89 2b or r24, r25
- 82a: 80 93 7c 00 sts 0x007C, r24 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
- 82e: 8b e2 ldi r24, 0x2B ; 43
- 830: 91 e0 ldi r25, 0x01 ; 1
- 832: 01 97 sbiw r24, 0x01 ; 1
- 834: f1 f7 brne .-4 ; 0x832 <CurrMeasure+0x1a>
- 836: 00 c0 rjmp .+0 ; 0x838 <CurrMeasure+0x20>
- 838: 00 00 nop
- _delay_us(100);
- ADCSRA |= (1 << ADSC);
- 83a: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- 83e: 80 64 ori r24, 0x40 ; 64
- 840: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- while(!(ADCSRA & (1 << ADIF)));
- 844: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- 848: 84 ff sbrs r24, 4
- 84a: fc cf rjmp .-8 ; 0x844 <CurrMeasure+0x2c>
- addata = ADCL;
- 84c: 60 91 78 00 lds r22, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078>
- addata |= ((uint16_t)ADCH) << 8;
- 850: 80 91 79 00 lds r24, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079>
- heater[ch].current = ((float)addata * 2.4);
- 854: 70 e0 ldi r23, 0x00 ; 0
- 856: 78 2b or r23, r24
- 858: 80 e0 ldi r24, 0x00 ; 0
- 85a: 90 e0 ldi r25, 0x00 ; 0
- 85c: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 860: 2a e9 ldi r18, 0x9A ; 154
- 862: 39 e9 ldi r19, 0x99 ; 153
- 864: 49 e1 ldi r20, 0x19 ; 25
- 866: 50 e4 ldi r21, 0x40 ; 64
- 868: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
- 86c: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi>
- 870: 23 e1 ldi r18, 0x13 ; 19
- 872: c2 9f mul r28, r18
- 874: f0 01 movw r30, r0
- 876: 11 24 eor r1, r1
- 878: e0 5e subi r30, 0xE0 ; 224
- 87a: fc 4f sbci r31, 0xFC ; 252
- 87c: 77 87 std Z+15, r23 ; 0x0f
- 87e: 66 87 std Z+14, r22 ; 0x0e
- return (heater[ch].current);
- }
- 880: cb 01 movw r24, r22
- 882: cf 91 pop r28
- 884: 08 95 ret
- 00000886 <TransmitPresets>:
- return 0;
- }
- int uart_putchar(char c, FILE *stream)
- {
- cli();
- 886: f8 94 cli
- if(!FIFO_IS_FULL(fifo0))
- 888: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- 88c: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- 890: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- 894: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- 898: ac 01 movw r20, r24
- 89a: 42 1b sub r20, r18
- 89c: 53 0b sbc r21, r19
- 89e: 9a 01 movw r18, r20
- 8a0: 21 15 cp r18, r1
- 8a2: 32 40 sbci r19, 0x02 ; 2
- 8a4: 81 f0 breq .+32 ; 0x8c6 <TransmitPresets+0x40>
- {
- FIFO_PUSH(fifo0, c);
- 8a6: fc 01 movw r30, r24
- 8a8: f1 70 andi r31, 0x01 ; 1
- 8aa: ea 51 subi r30, 0x1A ; 26
- 8ac: fc 4f sbci r31, 0xFC ; 252
- 8ae: 25 e5 ldi r18, 0x55 ; 85
- 8b0: 20 83 st Z, r18
- 8b2: 01 96 adiw r24, 0x01 ; 1
- 8b4: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
- 8b8: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
- UCSR0B |= (1 << UDRIE0);
- 8bc: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- 8c0: 80 62 ori r24, 0x20 ; 32
- 8c2: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- }
- sei();
- 8c6: 78 94 sei
- return 0;
- }
- int uart_putchar(char c, FILE *stream)
- {
- cli();
- 8c8: f8 94 cli
- if(!FIFO_IS_FULL(fifo0))
- 8ca: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- 8ce: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- 8d2: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- 8d6: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- 8da: bc 01 movw r22, r24
- 8dc: 62 1b sub r22, r18
- 8de: 73 0b sbc r23, r19
- 8e0: 9b 01 movw r18, r22
- 8e2: 21 15 cp r18, r1
- 8e4: 32 40 sbci r19, 0x02 ; 2
- 8e6: 81 f0 breq .+32 ; 0x908 <TransmitPresets+0x82>
- {
- FIFO_PUSH(fifo0, c);
- 8e8: fc 01 movw r30, r24
- 8ea: f1 70 andi r31, 0x01 ; 1
- 8ec: ea 51 subi r30, 0x1A ; 26
- 8ee: fc 4f sbci r31, 0xFC ; 252
- 8f0: 25 e4 ldi r18, 0x45 ; 69
- 8f2: 20 83 st Z, r18
- 8f4: 01 96 adiw r24, 0x01 ; 1
- 8f6: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
- 8fa: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
- UCSR0B |= (1 << UDRIE0);
- 8fe: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- 902: 80 62 ori r24, 0x20 ; 32
- 904: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- }
- sei();
- 908: 78 94 sei
- return 0;
- }
- int uart_putchar(char c, FILE *stream)
- {
- cli();
- 90a: f8 94 cli
- if(!FIFO_IS_FULL(fifo0))
- 90c: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- 910: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- 914: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- 918: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- 91c: fc 01 movw r30, r24
- 91e: e2 1b sub r30, r18
- 920: f3 0b sbc r31, r19
- 922: 9f 01 movw r18, r30
- 924: 21 15 cp r18, r1
- 926: 32 40 sbci r19, 0x02 ; 2
- 928: 81 f0 breq .+32 ; 0x94a <TransmitPresets+0xc4>
- {
- FIFO_PUSH(fifo0, c);
- 92a: fc 01 movw r30, r24
- 92c: f1 70 andi r31, 0x01 ; 1
- 92e: ea 51 subi r30, 0x1A ; 26
- 930: fc 4f sbci r31, 0xFC ; 252
- 932: 25 e8 ldi r18, 0x85 ; 133
- 934: 20 83 st Z, r18
- 936: 01 96 adiw r24, 0x01 ; 1
- 938: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
- 93c: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
- UCSR0B |= (1 << UDRIE0);
- 940: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- 944: 80 62 ori r24, 0x20 ; 32
- 946: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- }
- sei();
- 94a: 78 94 sei
- 94c: ad e3 ldi r26, 0x3D ; 61
- 94e: b0 e0 ldi r27, 0x00 ; 0
- return 0;
- }
- void TransmitPresets()
- {
- uint8_t checksum = 0x1F;
- 950: 5f e1 ldi r21, 0x1F ; 31
- 952: 9d 01 movw r18, r26
- 954: 2d 50 subi r18, 0x0D ; 13
- 956: 31 09 sbc r19, r1
-
- for(uint8_t pn = 0; pn < 25; pn++)
- {
- for(uint8_t offs = 0; offs < 13; offs++)
- {
- EEAR = 0x30 + (pn * sizeof(preset_str)) + offs;
- 958: 32 bd out 0x22, r19 ; 34
- 95a: 21 bd out 0x21, r18 ; 33
- EECR |= (1 << EERE);
- 95c: f8 9a sbi 0x1f, 0 ; 31
- uint8_t data = EEDR;
- 95e: 40 b5 in r20, 0x20 ; 32
- return 0;
- }
- int uart_putchar(char c, FILE *stream)
- {
- cli();
- 960: f8 94 cli
- if(!FIFO_IS_FULL(fifo0))
- 962: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- 966: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- 96a: 60 91 e6 05 lds r22, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- 96e: 70 91 e7 05 lds r23, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- 972: fc 01 movw r30, r24
- 974: e6 1b sub r30, r22
- 976: f7 0b sbc r31, r23
- 978: bf 01 movw r22, r30
- 97a: 61 15 cp r22, r1
- 97c: 72 40 sbci r23, 0x02 ; 2
- 97e: 79 f0 breq .+30 ; 0x99e <TransmitPresets+0x118>
- {
- FIFO_PUSH(fifo0, c);
- 980: fc 01 movw r30, r24
- 982: f1 70 andi r31, 0x01 ; 1
- 984: ea 51 subi r30, 0x1A ; 26
- 986: fc 4f sbci r31, 0xFC ; 252
- 988: 40 83 st Z, r20
- 98a: 01 96 adiw r24, 0x01 ; 1
- 98c: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
- 990: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
- UCSR0B |= (1 << UDRIE0);
- 994: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- 998: 80 62 ori r24, 0x20 ; 32
- 99a: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- }
- sei();
- 99e: 78 94 sei
- {
- EEAR = 0x30 + (pn * sizeof(preset_str)) + offs;
- EECR |= (1 << EERE);
- uint8_t data = EEDR;
- uart_putchar(data, NULL);
- checksum += data;
- 9a0: 54 0f add r21, r20
- 9a2: 2f 5f subi r18, 0xFF ; 255
- 9a4: 3f 4f sbci r19, 0xFF ; 255
- uart_putchar(0x45, NULL);
- uart_putchar(0x85, NULL);
-
- for(uint8_t pn = 0; pn < 25; pn++)
- {
- for(uint8_t offs = 0; offs < 13; offs++)
- 9a6: 2a 17 cp r18, r26
- 9a8: 3b 07 cpc r19, r27
- 9aa: b1 f6 brne .-84 ; 0x958 <TransmitPresets+0xd2>
- 9ac: d9 01 movw r26, r18
- 9ae: a0 5b subi r26, 0xB0 ; 176
- 9b0: bf 4f sbci r27, 0xFF ; 255
- uart_putchar(0x55, NULL);
- // fprintf(&uart_stdout, "BEG");
- uart_putchar(0x45, NULL);
- uart_putchar(0x85, NULL);
-
- for(uint8_t pn = 0; pn < 25; pn++)
- 9b2: ad 30 cpi r26, 0x0D ; 13
- 9b4: 48 e0 ldi r20, 0x08 ; 8
- 9b6: b4 07 cpc r27, r20
- 9b8: 61 f6 brne .-104 ; 0x952 <TransmitPresets+0xcc>
- return 0;
- }
- int uart_putchar(char c, FILE *stream)
- {
- cli();
- 9ba: f8 94 cli
- if(!FIFO_IS_FULL(fifo0))
- 9bc: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- 9c0: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- 9c4: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- 9c8: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- 9cc: bc 01 movw r22, r24
- 9ce: 62 1b sub r22, r18
- 9d0: 73 0b sbc r23, r19
- 9d2: 9b 01 movw r18, r22
- 9d4: 21 15 cp r18, r1
- 9d6: 32 40 sbci r19, 0x02 ; 2
- 9d8: 79 f0 breq .+30 ; 0x9f8 <TransmitPresets+0x172>
- {
- FIFO_PUSH(fifo0, c);
- 9da: fc 01 movw r30, r24
- 9dc: f1 70 andi r31, 0x01 ; 1
- 9de: ea 51 subi r30, 0x1A ; 26
- 9e0: fc 4f sbci r31, 0xFC ; 252
- 9e2: 50 83 st Z, r21
- 9e4: 01 96 adiw r24, 0x01 ; 1
- 9e6: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
- 9ea: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
- UCSR0B |= (1 << UDRIE0);
- 9ee: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- 9f2: 80 62 ori r24, 0x20 ; 32
- 9f4: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- }
- sei();
- 9f8: 78 94 sei
- uart_putchar(data, NULL);
- checksum += data;
- }
- }
- uart_putchar(checksum, NULL);
- txrequest = 0;
- 9fa: 10 92 f3 02 sts 0x02F3, r1 ; 0x8002f3 <txrequest>
- 9fe: 08 95 ret
- 00000a00 <Transmit>:
- // fprintf(&uart_stdout, "END");
- }
- void Transmit()
- {
- a00: 0f 93 push r16
- a02: 1f 93 push r17
- a04: cf 93 push r28
- a06: df 93 push r29
- comdata_str *txdata = (comdata_str*)calloc(1, sizeof(comdata_str));
- a08: 64 ea ldi r22, 0xA4 ; 164
- a0a: 70 e0 ldi r23, 0x00 ; 0
- a0c: 81 e0 ldi r24, 0x01 ; 1
- a0e: 90 e0 ldi r25, 0x00 ; 0
- a10: 0e 94 3f 1b call 0x367e ; 0x367e <calloc>
- a14: ec 01 movw r28, r24
- txdata->start = 0x55;
- a16: 85 e5 ldi r24, 0x55 ; 85
- a18: 88 83 st Y, r24
- txdata->command = txrequest;
- a1a: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 <txrequest>
- a1e: 8a 83 std Y+2, r24 ; 0x02
-
- switch((txreq_t)txrequest)
- a20: 83 30 cpi r24, 0x03 ; 3
- a22: 09 f4 brne .+2 ; 0xa26 <Transmit+0x26>
- a24: 7e c0 rjmp .+252 ; 0xb22 <Transmit+0x122>
- a26: 08 f4 brcc .+2 ; 0xa2a <Transmit+0x2a>
- a28: 7a c0 rjmp .+244 ; 0xb1e <Transmit+0x11e>
- a2a: 85 30 cpi r24, 0x05 ; 5
- a2c: 09 f4 brne .+2 ; 0xa30 <Transmit+0x30>
- a2e: 6f c0 rjmp .+222 ; 0xb0e <Transmit+0x10e>
- a30: 86 30 cpi r24, 0x06 ; 6
- a32: 51 f4 brne .+20 ; 0xa48 <Transmit+0x48>
- TransmitPresets();
- free(txdata);
- return;
-
- case REQ_PRESETDATA:
- txdata->len = sizeof(preset);
- a34: 80 ea ldi r24, 0xA0 ; 160
- a36: 89 83 std Y+1, r24 ; 0x01
- memcpy(txdata->data, preset, sizeof(preset));
- a38: e6 e4 ldi r30, 0x46 ; 70
- a3a: f3 e0 ldi r31, 0x03 ; 3
- a3c: de 01 movw r26, r28
- a3e: 13 96 adiw r26, 0x03 ; 3
- a40: 01 90 ld r0, Z+
- a42: 0d 92 st X+, r0
- a44: 8a 95 dec r24
- a46: e1 f7 brne .-8 ; 0xa40 <Transmit+0x40>
- txrequest = 0;
- // fprintf(&uart_stdout, "END");
- }
- void Transmit()
- {
- a48: 50 e0 ldi r21, 0x00 ; 0
- a4a: 80 e0 ldi r24, 0x00 ; 0
- a4c: 90 e0 ldi r25, 0x00 ; 0
- a4e: 8e 01 movw r16, r28
- a50: 0d 55 subi r16, 0x5D ; 93
- a52: 1f 4f sbci r17, 0xFF ; 255
-
- //fprintf(&uart_stdout, "BEG");
-
- for(uint8_t i = 0; i < (txdata->len + 3); i++)
- {
- uart_putchar(((uint8_t*)txdata)[i], NULL);
- a54: fe 01 movw r30, r28
- a56: e8 0f add r30, r24
- a58: f9 1f adc r31, r25
- a5a: 40 81 ld r20, Z
- return 0;
- }
- int uart_putchar(char c, FILE *stream)
- {
- cli();
- a5c: f8 94 cli
- if(!FIFO_IS_FULL(fifo0))
- a5e: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- a62: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- a66: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- a6a: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- a6e: bc 01 movw r22, r24
- a70: 62 1b sub r22, r18
- a72: 73 0b sbc r23, r19
- a74: 9b 01 movw r18, r22
- a76: 21 15 cp r18, r1
- a78: 32 40 sbci r19, 0x02 ; 2
- a7a: 81 f0 breq .+32 ; 0xa9c <Transmit+0x9c>
- {
- FIFO_PUSH(fifo0, c);
- a7c: 9c 01 movw r18, r24
- a7e: 31 70 andi r19, 0x01 ; 1
- a80: 2a 51 subi r18, 0x1A ; 26
- a82: 3c 4f sbci r19, 0xFC ; 252
- a84: d9 01 movw r26, r18
- a86: 4c 93 st X, r20
- a88: 01 96 adiw r24, 0x01 ; 1
- a8a: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
- a8e: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
- UCSR0B |= (1 << UDRIE0);
- a92: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- a96: 80 62 ori r24, 0x20 ; 32
- a98: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- }
- sei();
- a9c: 78 94 sei
- //fprintf(&uart_stdout, "BEG");
-
- for(uint8_t i = 0; i < (txdata->len + 3); i++)
- {
- uart_putchar(((uint8_t*)txdata)[i], NULL);
- txdata->checksum += ((uint8_t*)txdata)[i];
- a9e: d8 01 movw r26, r16
- aa0: 4c 91 ld r20, X
- aa2: 80 81 ld r24, Z
- aa4: 48 0f add r20, r24
- aa6: 4c 93 st X, r20
- break;
- }
-
- //fprintf(&uart_stdout, "BEG");
-
- for(uint8_t i = 0; i < (txdata->len + 3); i++)
- aa8: 5f 5f subi r21, 0xFF ; 255
- aaa: 29 81 ldd r18, Y+1 ; 0x01
- aac: 30 e0 ldi r19, 0x00 ; 0
- aae: 2e 5f subi r18, 0xFE ; 254
- ab0: 3f 4f sbci r19, 0xFF ; 255
- ab2: 85 2f mov r24, r21
- ab4: 90 e0 ldi r25, 0x00 ; 0
- ab6: 28 17 cp r18, r24
- ab8: 39 07 cpc r19, r25
- aba: 64 f6 brge .-104 ; 0xa54 <Transmit+0x54>
- return 0;
- }
- int uart_putchar(char c, FILE *stream)
- {
- cli();
- abc: f8 94 cli
- if(!FIFO_IS_FULL(fifo0))
- abe: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
- ac2: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
- ac6: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
- aca: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
- ace: fc 01 movw r30, r24
- ad0: e2 1b sub r30, r18
- ad2: f3 0b sbc r31, r19
- ad4: 9f 01 movw r18, r30
- ad6: 21 15 cp r18, r1
- ad8: 32 40 sbci r19, 0x02 ; 2
- ada: 79 f0 breq .+30 ; 0xafa <Transmit+0xfa>
- {
- FIFO_PUSH(fifo0, c);
- adc: fc 01 movw r30, r24
- ade: f1 70 andi r31, 0x01 ; 1
- ae0: ea 51 subi r30, 0x1A ; 26
- ae2: fc 4f sbci r31, 0xFC ; 252
- ae4: 40 83 st Z, r20
- ae6: 01 96 adiw r24, 0x01 ; 1
- ae8: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
- aec: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
- UCSR0B |= (1 << UDRIE0);
- af0: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- af4: 80 62 ori r24, 0x20 ; 32
- af6: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
- }
- sei();
- afa: 78 94 sei
- txdata->checksum += ((uint8_t*)txdata)[i];
- }
- uart_putchar(txdata->checksum, NULL);
-
- //fprintf(&uart_stdout, "END");
- txrequest = 0;
- afc: 10 92 f3 02 sts 0x02F3, r1 ; 0x8002f3 <txrequest>
- free(txdata);
- b00: ce 01 movw r24, r28
- }
- b02: df 91 pop r29
- b04: cf 91 pop r28
- b06: 1f 91 pop r17
- b08: 0f 91 pop r16
- }
- uart_putchar(txdata->checksum, NULL);
-
- //fprintf(&uart_stdout, "END");
- txrequest = 0;
- free(txdata);
- b0a: 0c 94 f1 1b jmp 0x37e2 ; 0x37e2 <free>
-
- case REQ_DEBUGDATA:
- break;
-
- case REQ_PRESETTABLE:
- TransmitPresets();
- b0e: bb de rcall .-650 ; 0x886 <TransmitPresets>
- }
- uart_putchar(txdata->checksum, NULL);
-
- //fprintf(&uart_stdout, "END");
- txrequest = 0;
- free(txdata);
- b10: ce 01 movw r24, r28
- }
- b12: df 91 pop r29
- b14: cf 91 pop r28
- b16: 1f 91 pop r17
- b18: 0f 91 pop r16
- }
- uart_putchar(txdata->checksum, NULL);
-
- //fprintf(&uart_stdout, "END");
- txrequest = 0;
- free(txdata);
- b1a: 0c 94 f1 1b jmp 0x37e2 ; 0x37e2 <free>
- switch((txreq_t)txrequest)
- {
- case REQ_RST:
- case REQ_ACK:
- case REQ_NACK:
- txdata->len = 0;
- b1e: 19 82 std Y+1, r1 ; 0x01
- break;
- b20: 93 cf rjmp .-218 ; 0xa48 <Transmit+0x48>
-
- case REQ_MAINDATA:
- txdata->len = sizeof(heater);
- b22: 86 e2 ldi r24, 0x26 ; 38
- b24: 89 83 std Y+1, r24 ; 0x01
- memcpy(txdata->data, heater, sizeof(heater));
- b26: e0 e2 ldi r30, 0x20 ; 32
- b28: f3 e0 ldi r31, 0x03 ; 3
- b2a: de 01 movw r26, r28
- b2c: 13 96 adiw r26, 0x03 ; 3
- b2e: 01 90 ld r0, Z+
- b30: 0d 92 st X+, r0
- b32: 8a 95 dec r24
- b34: e1 f7 brne .-8 ; 0xb2e <Transmit+0x12e>
- break;
- b36: 88 cf rjmp .-240 ; 0xa48 <Transmit+0x48>
- 00000b38 <ResetMCU>:
- free(txdata);
- }
- void ResetMCU(void)
- {
- cli();
- b38: f8 94 cli
- WDTCSR |= (1 << WDCE) | (1 << WDE);
- b3a: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060>
- b3e: 88 61 ori r24, 0x18 ; 24
- b40: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060>
- b44: ff cf rjmp .-2 ; 0xb44 <ResetMCU+0xc>
- 00000b46 <SwitchHeating>:
- while(1);
- }
- void SwitchHeating(uint8_t ch, uint8_t onoff)
- {
- if(onoff)
- b46: 61 11 cpse r22, r1
- b48: 26 c0 rjmp .+76 ; 0xb96 <SwitchHeating+0x50>
- LEDPORT |= (1 << (LED1 + (ch & 0x01)));
- heater[ch].status.heating = 1;
- }
- else
- {
- GATEPORT |= (1 << (GATE1 + (ch & 0x01)));
- b4a: 98 b1 in r25, 0x08 ; 8
- b4c: 48 2f mov r20, r24
- b4e: 41 70 andi r20, 0x01 ; 1
- b50: 50 e0 ldi r21, 0x00 ; 0
- b52: ba 01 movw r22, r20
- b54: 6a 5f subi r22, 0xFA ; 250
- b56: 7f 4f sbci r23, 0xFF ; 255
- b58: 21 e0 ldi r18, 0x01 ; 1
- b5a: 30 e0 ldi r19, 0x00 ; 0
- b5c: f9 01 movw r30, r18
- b5e: 02 c0 rjmp .+4 ; 0xb64 <SwitchHeating+0x1e>
- b60: ee 0f add r30, r30
- b62: ff 1f adc r31, r31
- b64: 6a 95 dec r22
- b66: e2 f7 brpl .-8 ; 0xb60 <SwitchHeating+0x1a>
- b68: bf 01 movw r22, r30
- b6a: 69 2b or r22, r25
- b6c: 68 b9 out 0x08, r22 ; 8
- LEDPORT &= ~(1 << (LED1 + (ch & 0x01)));
- b6e: 98 b1 in r25, 0x08 ; 8
- b70: 4e 5f subi r20, 0xFE ; 254
- b72: 5f 4f sbci r21, 0xFF ; 255
- b74: 01 c0 rjmp .+2 ; 0xb78 <SwitchHeating+0x32>
- b76: 22 0f add r18, r18
- b78: 4a 95 dec r20
- b7a: ea f7 brpl .-6 ; 0xb76 <SwitchHeating+0x30>
- b7c: 20 95 com r18
- b7e: 29 23 and r18, r25
- b80: 28 b9 out 0x08, r18 ; 8
- heater[ch].status.heating = 0;
- b82: 93 e1 ldi r25, 0x13 ; 19
- b84: 89 9f mul r24, r25
- b86: f0 01 movw r30, r0
- b88: 11 24 eor r1, r1
- b8a: e0 5e subi r30, 0xE0 ; 224
- b8c: fc 4f sbci r31, 0xFC ; 252
- b8e: 80 81 ld r24, Z
- b90: 8b 7f andi r24, 0xFB ; 251
- b92: 80 83 st Z, r24
- b94: 08 95 ret
- b96: 4b cb rjmp .-2410 ; 0x22e <SwitchHeating.part.0>
- 00000b98 <VoltageMeasure>:
- }
- }
- float VoltageMeasure(uint8_t ch)
- {
- b98: cf 92 push r12
- b9a: df 92 push r13
- b9c: ef 92 push r14
- b9e: ff 92 push r15
- ba0: cf 93 push r28
- ba2: df 93 push r29
- uint16_t addata = 0;
- float voltage = 0.0;
- ADMUX = (ADMUX & 0xF8) | (ch & 0x01);
- ba4: 90 91 7c 00 lds r25, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
- ba8: 98 7f andi r25, 0xF8 ; 248
- baa: 28 2f mov r18, r24
- bac: 21 70 andi r18, 0x01 ; 1
- bae: 92 2b or r25, r18
- bb0: 90 93 7c 00 sts 0x007C, r25 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
- bb4: eb e2 ldi r30, 0x2B ; 43
- bb6: f1 e0 ldi r31, 0x01 ; 1
- bb8: 31 97 sbiw r30, 0x01 ; 1
- bba: f1 f7 brne .-4 ; 0xbb8 <VoltageMeasure+0x20>
- bbc: 00 c0 rjmp .+0 ; 0xbbe <VoltageMeasure+0x26>
- bbe: 00 00 nop
- _delay_us(100);
- ADCSRA |= (1 << ADSC);
- bc0: 90 91 7a 00 lds r25, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- bc4: 90 64 ori r25, 0x40 ; 64
- bc6: 90 93 7a 00 sts 0x007A, r25 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- while(!(ADCSRA & (1 << ADIF)));
- bca: 90 91 7a 00 lds r25, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
- bce: 94 ff sbrs r25, 4
- bd0: fc cf rjmp .-8 ; 0xbca <VoltageMeasure+0x32>
- addata = ADCL;
- bd2: 60 91 78 00 lds r22, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078>
- addata |= ((uint16_t)ADCH) << 8;
- bd6: 90 91 79 00 lds r25, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079>
- voltage = (float)addata * 0.0025;
- voltage = (voltage / (0.758 * opamp[ch].gain)) + opamp[ch].shift;
- bda: c8 2f mov r28, r24
- bdc: d0 e0 ldi r29, 0x00 ; 0
- bde: 70 e0 ldi r23, 0x00 ; 0
- be0: 79 2b or r23, r25
- be2: 80 e0 ldi r24, 0x00 ; 0
- be4: 90 e0 ldi r25, 0x00 ; 0
- be6: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- bea: 2a e0 ldi r18, 0x0A ; 10
- bec: 37 ed ldi r19, 0xD7 ; 215
- bee: 43 e2 ldi r20, 0x23 ; 35
- bf0: 5b e3 ldi r21, 0x3B ; 59
- bf2: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
- bf6: 6b 01 movw r12, r22
- bf8: 7c 01 movw r14, r24
- bfa: 2d e0 ldi r18, 0x0D ; 13
- bfc: 2c 9f mul r18, r28
- bfe: c0 01 movw r24, r0
- c00: 2d 9f mul r18, r29
- c02: 90 0d add r25, r0
- c04: 11 24 eor r1, r1
- c06: ec 01 movw r28, r24
- c08: c2 57 subi r28, 0x72 ; 114
- c0a: d9 4f sbci r29, 0xF9 ; 249
- c0c: 2a e4 ldi r18, 0x4A ; 74
- c0e: 3c e0 ldi r19, 0x0C ; 12
- c10: 42 e4 ldi r20, 0x42 ; 66
- c12: 5f e3 ldi r21, 0x3F ; 63
- c14: 69 81 ldd r22, Y+1 ; 0x01
- c16: 7a 81 ldd r23, Y+2 ; 0x02
- c18: 8b 81 ldd r24, Y+3 ; 0x03
- c1a: 9c 81 ldd r25, Y+4 ; 0x04
- c1c: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
- c20: 9b 01 movw r18, r22
- c22: ac 01 movw r20, r24
- c24: c7 01 movw r24, r14
- c26: b6 01 movw r22, r12
- c28: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
- return voltage;
- c2c: 2d 81 ldd r18, Y+5 ; 0x05
- c2e: 3e 81 ldd r19, Y+6 ; 0x06
- c30: 4f 81 ldd r20, Y+7 ; 0x07
- c32: 58 85 ldd r21, Y+8 ; 0x08
- c34: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
- }
- c38: df 91 pop r29
- c3a: cf 91 pop r28
- c3c: ff 90 pop r15
- c3e: ef 90 pop r14
- c40: df 90 pop r13
- c42: cf 90 pop r12
- c44: 08 95 ret
- 00000c46 <CircuitDetect>:
- circ_t CircuitDetect(uint8_t ch)
- {
- c46: 7f 92 push r7
- c48: 8f 92 push r8
- c4a: 9f 92 push r9
- c4c: af 92 push r10
- c4e: bf 92 push r11
- c50: cf 92 push r12
- c52: df 92 push r13
- c54: ef 92 push r14
- c56: ff 92 push r15
- c58: 0f 93 push r16
- c5a: 1f 93 push r17
- c5c: cf 93 push r28
- c5e: df 93 push r29
- c60: c8 2f mov r28, r24
- uint8_t gain, shift, drive;
- float voltage;
- circ_t circ;
-
- gain = heater[ch].gain;
- c62: e8 2e mov r14, r24
- c64: f1 2c mov r15, r1
- c66: 83 e1 ldi r24, 0x13 ; 19
- c68: c8 9f mul r28, r24
- c6a: f0 01 movw r30, r0
- c6c: 11 24 eor r1, r1
- c6e: e0 5e subi r30, 0xE0 ; 224
- c70: fc 4f sbci r31, 0xFC ; 252
- c72: 70 88 ldd r7, Z+16 ; 0x10
- shift = heater[ch].shift;
- c74: c1 88 ldd r12, Z+17 ; 0x11
- drive = heater[ch].drive;
- c76: d2 88 ldd r13, Z+18 ; 0x12
-
- SetDriveVoltage(ch, 0);
- c78: 40 e0 ldi r20, 0x00 ; 0
- c7a: 50 e0 ldi r21, 0x00 ; 0
- c7c: ba 01 movw r22, r20
- c7e: 8c 2f mov r24, r28
- c80: 0e 94 32 13 call 0x2664 ; 0x2664 <SetDriveVoltage>
- SetInputRange(ch, 0.0, 3.0);
- c84: 00 e0 ldi r16, 0x00 ; 0
- c86: 10 e0 ldi r17, 0x00 ; 0
- c88: 20 e4 ldi r18, 0x40 ; 64
- c8a: 30 e4 ldi r19, 0x40 ; 64
- c8c: 40 e0 ldi r20, 0x00 ; 0
- c8e: 50 e0 ldi r21, 0x00 ; 0
- c90: ba 01 movw r22, r20
- c92: 8c 2f mov r24, r28
- c94: 0e 94 51 13 call 0x26a2 ; 0x26a2 <SetInputRange>
- voltage = VoltageMeasure(ch);
- c98: 8c 2f mov r24, r28
- c9a: 7e df rcall .-260 ; 0xb98 <VoltageMeasure>
- c9c: 4b 01 movw r8, r22
- c9e: 5c 01 movw r10, r24
- if(voltage > 3.0)
- ca0: 20 e0 ldi r18, 0x00 ; 0
- ca2: 30 e0 ldi r19, 0x00 ; 0
- ca4: 40 e4 ldi r20, 0x40 ; 64
- ca6: 50 e4 ldi r21, 0x40 ; 64
- ca8: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2>
- cac: 18 16 cp r1, r24
- cae: 0c f4 brge .+2 ; 0xcb2 <CircuitDetect+0x6c>
- cb0: 6f c0 rjmp .+222 ; 0xd90 <CircuitDetect+0x14a>
- {
- circ = CIRC_OPEN;
- }
- else if((voltage > 0.05) && (voltage <= 1.5))
- cb2: 2d ec ldi r18, 0xCD ; 205
- cb4: 3c ec ldi r19, 0xCC ; 204
- cb6: 4c e4 ldi r20, 0x4C ; 76
- cb8: 5d e3 ldi r21, 0x3D ; 61
- cba: c5 01 movw r24, r10
- cbc: b4 01 movw r22, r8
- cbe: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2>
- cc2: 18 16 cp r1, r24
- cc4: a4 f1 brlt .+104 ; 0xd2e <CircuitDetect+0xe8>
- cc6: d4 e0 ldi r29, 0x04 ; 4
- circ = CIRC_RES_DIODE;
- }
- }
- else
- {
- circ = CIRC_RES;
- cc8: 14 e0 ldi r17, 0x04 ; 4
- }
-
- SetGainData(ch, gain);
- cca: 67 2d mov r22, r7
- ccc: 8c 2f mov r24, r28
- cce: 0e 94 e3 13 call 0x27c6 ; 0x27c6 <SetGainData>
- SetShiftData(ch, shift);
- cd2: 6c 2d mov r22, r12
- cd4: 8c 2f mov r24, r28
- cd6: 0e 94 12 14 call 0x2824 ; 0x2824 <SetShiftData>
- SetDriveData(ch, drive);
- cda: 6d 2d mov r22, r13
- cdc: 8c 2f mov r24, r28
- cde: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
- heater[ch].status.circuit = circ;
- ce2: 83 e1 ldi r24, 0x13 ; 19
- ce4: 8e 9d mul r24, r14
- ce6: f0 01 movw r30, r0
- ce8: 8f 9d mul r24, r15
- cea: f0 0d add r31, r0
- cec: 11 24 eor r1, r1
- cee: e0 5e subi r30, 0xE0 ; 224
- cf0: fc 4f sbci r31, 0xFC ; 252
- cf2: 9d 2f mov r25, r29
- cf4: 92 95 swap r25
- cf6: 99 0f add r25, r25
- cf8: 99 0f add r25, r25
- cfa: 90 7c andi r25, 0xC0 ; 192
- cfc: 80 81 ld r24, Z
- cfe: 8f 73 andi r24, 0x3F ; 63
- d00: 89 2b or r24, r25
- d02: 80 83 st Z, r24
- d04: d6 95 lsr r29
- d06: d6 95 lsr r29
- d08: 81 81 ldd r24, Z+1 ; 0x01
- d0a: 8e 7f andi r24, 0xFE ; 254
- d0c: d8 2b or r29, r24
- d0e: d1 83 std Z+1, r29 ; 0x01
- return circ;
- }
- d10: 81 2f mov r24, r17
- d12: df 91 pop r29
- d14: cf 91 pop r28
- d16: 1f 91 pop r17
- d18: 0f 91 pop r16
- d1a: ff 90 pop r15
- d1c: ef 90 pop r14
- d1e: df 90 pop r13
- d20: cf 90 pop r12
- d22: bf 90 pop r11
- d24: af 90 pop r10
- d26: 9f 90 pop r9
- d28: 8f 90 pop r8
- d2a: 7f 90 pop r7
- d2c: 08 95 ret
- voltage = VoltageMeasure(ch);
- if(voltage > 3.0)
- {
- circ = CIRC_OPEN;
- }
- else if((voltage > 0.05) && (voltage <= 1.5))
- d2e: 20 e0 ldi r18, 0x00 ; 0
- d30: 30 e0 ldi r19, 0x00 ; 0
- d32: 40 ec ldi r20, 0xC0 ; 192
- d34: 5f e3 ldi r21, 0x3F ; 63
- d36: c5 01 movw r24, r10
- d38: b4 01 movw r22, r8
- d3a: 0e 94 b8 15 call 0x2b70 ; 0x2b70 <__cmpsf2>
- d3e: 18 16 cp r1, r24
- d40: 14 f2 brlt .-124 ; 0xcc6 <CircuitDetect+0x80>
- {
- SetDriveData(ch, 0xFF);
- d42: 6f ef ldi r22, 0xFF ; 255
- d44: 8c 2f mov r24, r28
- d46: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
- SwitchDrive(ch, ON);
- d4a: 61 e0 ldi r22, 0x01 ; 1
- d4c: 8c 2f mov r24, r28
- d4e: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- #else
- //round up by default
- __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
- #endif
- __builtin_avr_delay_cycles(__ticks_dc);
- d52: 87 eb ldi r24, 0xB7 ; 183
- d54: 9b e0 ldi r25, 0x0B ; 11
- d56: 01 97 sbiw r24, 0x01 ; 1
- d58: f1 f7 brne .-4 ; 0xd56 <CircuitDetect+0x110>
- d5a: 00 c0 rjmp .+0 ; 0xd5c <CircuitDetect+0x116>
- d5c: 00 00 nop
- _delay_ms(1);
- voltage = VoltageMeasure(ch);
- d5e: 8c 2f mov r24, r28
- d60: 1b df rcall .-458 ; 0xb98 <VoltageMeasure>
- d62: 4b 01 movw r8, r22
- d64: 5c 01 movw r10, r24
- SetDriveData(ch, drive);
- d66: 6d 2d mov r22, r13
- d68: 8c 2f mov r24, r28
- d6a: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
- SwitchDrive(ch, OFF);
- d6e: 60 e0 ldi r22, 0x00 ; 0
- d70: 8c 2f mov r24, r28
- d72: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- if(voltage < 0.2)
- d76: 2d ec ldi r18, 0xCD ; 205
- d78: 3c ec ldi r19, 0xCC ; 204
- d7a: 4c e4 ldi r20, 0x4C ; 76
- d7c: 5e e3 ldi r21, 0x3E ; 62
- d7e: c5 01 movw r24, r10
- d80: b4 01 movw r22, r8
- d82: 0e 94 b8 15 call 0x2b70 ; 0x2b70 <__cmpsf2>
- d86: 87 ff sbrs r24, 7
- d88: 06 c0 rjmp .+12 ; 0xd96 <CircuitDetect+0x150>
- d8a: d2 e0 ldi r29, 0x02 ; 2
- {
- circ = CIRC_MOSFET;
- d8c: 12 e0 ldi r17, 0x02 ; 2
- d8e: 9d cf rjmp .-198 ; 0xcca <CircuitDetect+0x84>
- d90: d0 e0 ldi r29, 0x00 ; 0
- SetInputRange(ch, 0.0, 3.0);
- voltage = VoltageMeasure(ch);
- if(voltage > 3.0)
- {
- circ = CIRC_OPEN;
- d92: 10 e0 ldi r17, 0x00 ; 0
- d94: 9a cf rjmp .-204 ; 0xcca <CircuitDetect+0x84>
- d96: d3 e0 ldi r29, 0x03 ; 3
- {
- circ = CIRC_MOSFET;
- }
- else
- {
- circ = CIRC_RES_DIODE;
- d98: 13 e0 ldi r17, 0x03 ; 3
- d9a: 97 cf rjmp .-210 ; 0xcca <CircuitDetect+0x84>
- 00000d9c <AutoCalibration>:
- count--;
- }
- }
- int AutoCalibration(uint8_t ch)
- {
- d9c: 2f 92 push r2
- d9e: 3f 92 push r3
- da0: 4f 92 push r4
- da2: 5f 92 push r5
- da4: 6f 92 push r6
- da6: 7f 92 push r7
- da8: 8f 92 push r8
- daa: 9f 92 push r9
- dac: af 92 push r10
- dae: bf 92 push r11
- db0: cf 92 push r12
- db2: df 92 push r13
- db4: ef 92 push r14
- db6: ff 92 push r15
- db8: 0f 93 push r16
- dba: 1f 93 push r17
- dbc: cf 93 push r28
- dbe: df 93 push r29
- dc0: cd b7 in r28, 0x3d ; 61
- dc2: de b7 in r29, 0x3e ; 62
- dc4: 64 97 sbiw r28, 0x14 ; 20
- dc6: 0f b6 in r0, 0x3f ; 63
- dc8: f8 94 cli
- dca: de bf out 0x3e, r29 ; 62
- dcc: 0f be out 0x3f, r0 ; 63
- dce: cd bf out 0x3d, r28 ; 61
- dd0: 38 2e mov r3, r24
- uint8_t drive = 0;
- int16_t tstart = 0;
- uint16_t delcnt = 0;
- float vlow = 0.0, vhigh = 0.0;
-
- MAX_ReadData();
- dd2: 91 db rcall .-2270 ; 0x4f6 <MAX_ReadData>
- CircuitDetect(ch);
- dd4: 83 2d mov r24, r3
- dd6: 37 df rcall .-402 ; 0xc46 <CircuitDetect>
-
- if(((heater[ch].status.circuit == CIRC_MOSFET) || (heater[ch].status.circuit == CIRC_RES_DIODE)) && (heater[ch].status.couple == 0))
- dd8: 23 2d mov r18, r3
- dda: 30 e0 ldi r19, 0x00 ; 0
- ddc: 3a 87 std Y+10, r19 ; 0x0a
- dde: 29 87 std Y+9, r18 ; 0x09
- de0: 33 e1 ldi r19, 0x13 ; 19
- de2: 33 9e mul r3, r19
- de4: f0 01 movw r30, r0
- de6: 11 24 eor r1, r1
- de8: e0 5e subi r30, 0xE0 ; 224
- dea: fc 4f sbci r31, 0xFC ; 252
- dec: 80 81 ld r24, Z
- dee: 98 2f mov r25, r24
- df0: 92 95 swap r25
- df2: 96 95 lsr r25
- df4: 96 95 lsr r25
- df6: 93 70 andi r25, 0x03 ; 3
- df8: 81 81 ldd r24, Z+1 ; 0x01
- dfa: 81 70 andi r24, 0x01 ; 1
- dfc: 88 0f add r24, r24
- dfe: 88 0f add r24, r24
- e00: 89 2b or r24, r25
- e02: 82 30 cpi r24, 0x02 ; 2
- e04: 41 f1 breq .+80 ; 0xe56 <AutoCalibration+0xba>
- e06: 80 81 ld r24, Z
- e08: 98 2f mov r25, r24
- e0a: 92 95 swap r25
- e0c: 96 95 lsr r25
- e0e: 96 95 lsr r25
- e10: 93 70 andi r25, 0x03 ; 3
- e12: 81 81 ldd r24, Z+1 ; 0x01
- e14: 81 70 andi r24, 0x01 ; 1
- e16: 88 0f add r24, r24
- e18: 88 0f add r24, r24
- e1a: 89 2b or r24, r25
- e1c: 83 30 cpi r24, 0x03 ; 3
- e1e: d9 f0 breq .+54 ; 0xe56 <AutoCalibration+0xba>
-
- SavePreset(ch);
-
- LCD_SendCmd(LCD_CLR);
- }
- return 0;
- e20: 80 e0 ldi r24, 0x00 ; 0
- e22: 90 e0 ldi r25, 0x00 ; 0
- }
- e24: 64 96 adiw r28, 0x14 ; 20
- e26: 0f b6 in r0, 0x3f ; 63
- e28: f8 94 cli
- e2a: de bf out 0x3e, r29 ; 62
- e2c: 0f be out 0x3f, r0 ; 63
- e2e: cd bf out 0x3d, r28 ; 61
- e30: df 91 pop r29
- e32: cf 91 pop r28
- e34: 1f 91 pop r17
- e36: 0f 91 pop r16
- e38: ff 90 pop r15
- e3a: ef 90 pop r14
- e3c: df 90 pop r13
- e3e: cf 90 pop r12
- e40: bf 90 pop r11
- e42: af 90 pop r10
- e44: 9f 90 pop r9
- e46: 8f 90 pop r8
- e48: 7f 90 pop r7
- e4a: 6f 90 pop r6
- e4c: 5f 90 pop r5
- e4e: 4f 90 pop r4
- e50: 3f 90 pop r3
- e52: 2f 90 pop r2
- e54: 08 95 ret
- float vlow = 0.0, vhigh = 0.0;
-
- MAX_ReadData();
- CircuitDetect(ch);
-
- if(((heater[ch].status.circuit == CIRC_MOSFET) || (heater[ch].status.circuit == CIRC_RES_DIODE)) && (heater[ch].status.couple == 0))
- e56: 83 e1 ldi r24, 0x13 ; 19
- e58: 69 85 ldd r22, Y+9 ; 0x09
- e5a: 7a 85 ldd r23, Y+10 ; 0x0a
- e5c: 86 9f mul r24, r22
- e5e: a0 01 movw r20, r0
- e60: 87 9f mul r24, r23
- e62: 50 0d add r21, r0
- e64: 11 24 eor r1, r1
- e66: 5a 83 std Y+2, r21 ; 0x02
- e68: 49 83 std Y+1, r20 ; 0x01
- e6a: fa 01 movw r30, r20
- e6c: ef 5d subi r30, 0xDF ; 223
- e6e: fc 4f sbci r31, 0xFC ; 252
- e70: 80 81 ld r24, Z
- e72: 86 95 lsr r24
- e74: 87 70 andi r24, 0x07 ; 7
- e76: a1 f6 brne .-88 ; 0xe20 <AutoCalibration+0x84>
- {
- LCD_SendCmd(LCD_CLR);
- e78: 81 e0 ldi r24, 0x01 ; 1
- e7a: 0e 94 a1 12 call 0x2542 ; 0x2542 <LCD_SendCmd>
- SetInputRange(ch, 0.0, 3.0);
- e7e: 00 e0 ldi r16, 0x00 ; 0
- e80: 10 e0 ldi r17, 0x00 ; 0
- e82: 20 e4 ldi r18, 0x40 ; 64
- e84: 30 e4 ldi r19, 0x40 ; 64
- e86: 40 e0 ldi r20, 0x00 ; 0
- e88: 50 e0 ldi r21, 0x00 ; 0
- e8a: ba 01 movw r22, r20
- e8c: 83 2d mov r24, r3
- e8e: 0e 94 51 13 call 0x26a2 ; 0x26a2 <SetInputRange>
- SetDriveVoltage(ch, 0.0);
- e92: 40 e0 ldi r20, 0x00 ; 0
- e94: 50 e0 ldi r21, 0x00 ; 0
- e96: ba 01 movw r22, r20
- e98: 83 2d mov r24, r3
- e9a: 0e 94 32 13 call 0x2664 ; 0x2664 <SetDriveVoltage>
- e9e: 8f e6 ldi r24, 0x6F ; 111
- ea0: 97 e1 ldi r25, 0x17 ; 23
- ea2: 01 97 sbiw r24, 0x01 ; 1
- ea4: f1 f7 brne .-4 ; 0xea2 <AutoCalibration+0x106>
- ea6: 00 c0 rjmp .+0 ; 0xea8 <AutoCalibration+0x10c>
- ea8: 00 00 nop
- eaa: c9 84 ldd r12, Y+9 ; 0x09
- eac: da 84 ldd r13, Y+10 ; 0x0a
- eae: 9f ef ldi r25, 0xFF ; 255
- eb0: c9 1a sub r12, r25
- eb2: d9 0a sbc r13, r25
- _delay_ms(2);
-
- do {
- MAX_ReadData();
- LCD_SetPos(0, 0);
- fprintf(&lcd_stdout, "K%.1u P%.2u Tm=%.3u -", ch + 1, heater[ch].preset, heater[ch].tmeas);
- eb4: a9 81 ldd r26, Y+1 ; 0x01
- eb6: ba 81 ldd r27, Y+2 ; 0x02
- eb8: a0 5e subi r26, 0xE0 ; 224
- eba: bc 4f sbci r27, 0xFC ; 252
- ebc: be 83 std Y+6, r27 ; 0x06
- ebe: ad 83 std Y+5, r26 ; 0x05
- ec0: 7d 01 movw r14, r26
- ec2: b6 e0 ldi r27, 0x06 ; 6
- ec4: eb 0e add r14, r27
- ec6: f1 1c adc r15, r1
- ec8: ad 80 ldd r10, Y+5 ; 0x05
- eca: be 80 ldd r11, Y+6 ; 0x06
- ecc: e2 e0 ldi r30, 0x02 ; 2
- ece: ae 0e add r10, r30
- ed0: b1 1c adc r11, r1
- ed2: 62 e3 ldi r22, 0x32 ; 50
- ed4: 86 2e mov r8, r22
- ed6: 61 e0 ldi r22, 0x01 ; 1
- ed8: 96 2e mov r9, r22
- LCD_SetPos(0, 1);
- fprintf(&lcd_stdout, "CALIB. Tc=%.3u -", heater[ch].tcouple);
- eda: 0d 81 ldd r16, Y+5 ; 0x05
- edc: 1e 81 ldd r17, Y+6 ; 0x06
- ede: 0c 5f subi r16, 0xFC ; 252
- ee0: 1f 4f sbci r17, 0xFF ; 255
- ee2: 78 e4 ldi r23, 0x48 ; 72
- ee4: 67 2e mov r6, r23
- ee6: 71 e0 ldi r23, 0x01 ; 1
- SetInputRange(ch, 0.0, 3.0);
- SetDriveVoltage(ch, 0.0);
- _delay_ms(2);
-
- do {
- MAX_ReadData();
- ee8: 77 2e mov r7, r23
- eea: 05 db rcall .-2550 ; 0x4f6 <MAX_ReadData>
- LCD_SetPos(0, 0);
- eec: 60 e0 ldi r22, 0x00 ; 0
- eee: 80 e0 ldi r24, 0x00 ; 0
- ef0: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "K%.1u P%.2u Tm=%.3u -", ch + 1, heater[ch].preset, heater[ch].tmeas);
- ef4: d7 01 movw r26, r14
- ef6: 11 96 adiw r26, 0x01 ; 1
- ef8: 8c 91 ld r24, X
- efa: 11 97 sbiw r26, 0x01 ; 1
- efc: 8f 93 push r24
- efe: 8c 91 ld r24, X
- f00: 8f 93 push r24
- f02: f5 01 movw r30, r10
- f04: 80 81 ld r24, Z
- f06: 1f 92 push r1
- f08: 8f 93 push r24
- f0a: df 92 push r13
- f0c: cf 92 push r12
- f0e: 9f 92 push r9
- f10: 8f 92 push r8
- f12: 24 e1 ldi r18, 0x14 ; 20
- f14: 31 e0 ldi r19, 0x01 ; 1
- f16: 3f 93 push r19
- f18: 2f 93 push r18
- f1a: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- LCD_SetPos(0, 1);
- f1e: 61 e0 ldi r22, 0x01 ; 1
- f20: 80 e0 ldi r24, 0x00 ; 0
- f22: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "CALIB. Tc=%.3u -", heater[ch].tcouple);
- f26: d8 01 movw r26, r16
- f28: 11 96 adiw r26, 0x01 ; 1
- f2a: 8c 91 ld r24, X
- f2c: 11 97 sbiw r26, 0x01 ; 1
- f2e: 8f 93 push r24
- f30: 8c 91 ld r24, X
- f32: 8f 93 push r24
- f34: 7f 92 push r7
- f36: 6f 92 push r6
- f38: e4 e1 ldi r30, 0x14 ; 20
- f3a: f1 e0 ldi r31, 0x01 ; 1
- f3c: ff 93 push r31
- f3e: ef 93 push r30
- f40: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- } while(heater[ch].tcouple > cal_tmin);
- f44: d8 01 movw r26, r16
- f46: 4d 90 ld r4, X+
- f48: 5c 90 ld r5, X
- f4a: 80 91 22 01 lds r24, 0x0122 ; 0x800122 <cal_tmin>
- f4e: 90 e0 ldi r25, 0x00 ; 0
- f50: 0f b6 in r0, 0x3f ; 63
- f52: f8 94 cli
- f54: de bf out 0x3e, r29 ; 62
- f56: 0f be out 0x3f, r0 ; 63
- f58: cd bf out 0x3d, r28 ; 61
- f5a: 84 15 cp r24, r4
- f5c: 95 05 cpc r25, r5
-
- tstart = heater[ch].tcouple;
- vhigh = VoltageMeasure(ch) + 0.04;
- f5e: 2c f2 brlt .-118 ; 0xeea <AutoCalibration+0x14e>
- f60: 83 2d mov r24, r3
- f62: 1a de rcall .-972 ; 0xb98 <VoltageMeasure>
- f64: 2a e0 ldi r18, 0x0A ; 10
- f66: 37 ed ldi r19, 0xD7 ; 215
- f68: 43 e2 ldi r20, 0x23 ; 35
- f6a: 5d e3 ldi r21, 0x3D ; 61
- f6c: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
- f70: 6d 87 std Y+13, r22 ; 0x0d
- f72: 7e 87 std Y+14, r23 ; 0x0e
- f74: 88 8b std Y+16, r24 ; 0x10
- f76: 9a 8b std Y+18, r25 ; 0x12
- f78: 69 83 std Y+1, r22 ; 0x01
- f7a: 7b 87 std Y+11, r23 ; 0x0b
- f7c: 8b 83 std Y+3, r24 ; 0x03
- f7e: 29 2e mov r2, r25
-
- if(heater[ch].status.circuit == CIRC_MOSFET)
- f80: ad 81 ldd r26, Y+5 ; 0x05
- f82: be 81 ldd r27, Y+6 ; 0x06
- f84: 8c 91 ld r24, X
- f86: 98 2f mov r25, r24
- f88: 92 95 swap r25
- f8a: 96 95 lsr r25
- f8c: 96 95 lsr r25
- f8e: 93 70 andi r25, 0x03 ; 3
- f90: 11 96 adiw r26, 0x01 ; 1
- f92: 8c 91 ld r24, X
- f94: 81 70 andi r24, 0x01 ; 1
- f96: 88 0f add r24, r24
- f98: 88 0f add r24, r24
- f9a: 89 2b or r24, r25
- f9c: 1f 82 std Y+7, r1 ; 0x07
- f9e: 82 30 cpi r24, 0x02 ; 2
- fa0: 09 f4 brne .+2 ; 0xfa4 <AutoCalibration+0x208>
- fa2: f4 c0 rjmp .+488 ; 0x118c <__stack+0x8d>
- fa4: 83 2d mov r24, r3
- fa6: 43 d9 rcall .-3450 ; 0x22e <SwitchHeating.part.0>
- SwitchDrive(ch, ON);
- }
- SwitchHeating(ch, ON);
-
- while(heater[ch].tcouple < (cal_tmax + 2))
- fa8: 80 91 23 01 lds r24, 0x0123 ; 0x800123 <cal_tmax>
- fac: 90 e0 ldi r25, 0x00 ; 0
- fae: 01 96 adiw r24, 0x01 ; 1
- fb0: 43 e1 ldi r20, 0x13 ; 19
- fb2: e9 85 ldd r30, Y+9 ; 0x09
- fb4: fa 85 ldd r31, Y+10 ; 0x0a
- fb6: 4e 9f mul r20, r30
- fb8: 90 01 movw r18, r0
- fba: 4f 9f mul r20, r31
- fbc: 30 0d add r19, r0
- fbe: 11 24 eor r1, r1
- fc0: a9 01 movw r20, r18
- fc2: 40 5e subi r20, 0xE0 ; 224
- fc4: 5c 4f sbci r21, 0xFC ; 252
- fc6: 5e 83 std Y+6, r21 ; 0x06
- fc8: 4d 83 std Y+5, r20 ; 0x05
- fca: da 01 movw r26, r20
- fcc: 14 96 adiw r26, 0x04 ; 4
- fce: 4d 91 ld r20, X+
- fd0: 5c 91 ld r21, X
- fd2: 15 97 sbiw r26, 0x05 ; 5
- fd4: 84 17 cp r24, r20
- fd6: 95 07 cpc r25, r21
- fd8: 0c f4 brge .+2 ; 0xfdc <AutoCalibration+0x240>
- fda: 25 c1 rjmp .+586 ; 0x1226 <__stack+0x127>
- fdc: e1 2c mov r14, r1
- fde: f1 2c mov r15, r1
- {
- if(CurrMeasure(ch) > CURR_MAX)
- return 0;
-
- if(heater[ch].status.circuit == CIRC_MOSFET)
- fe0: 4d 81 ldd r20, Y+5 ; 0x05
- fe2: 5e 81 ldd r21, Y+6 ; 0x06
- fe4: 5c 8b std Y+20, r21 ; 0x14
- fe6: 4b 8b std Y+19, r20 ; 0x13
- {
- if(heater[ch].current > 1500)
- fe8: 4a 01 movw r8, r20
- fea: 5e e0 ldi r21, 0x0E ; 14
- fec: 85 0e add r8, r21
- fee: 91 1c adc r9, r1
- }
- }
-
- MAX_ReadData();
-
- if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0))
- ff0: b9 01 movw r22, r18
- ff2: 6f 5d subi r22, 0xDF ; 223
- ff4: 7c 4f sbci r23, 0xFC ; 252
- ff6: 7e 83 std Y+6, r23 ; 0x06
- ff8: 6d 83 std Y+5, r22 ; 0x05
- }
-
- if(++delcnt > 300)
- {
- delcnt = 0;
- if((heater[ch].tcouple - tstart) < 5)
- ffa: cb 88 ldd r12, Y+19 ; 0x13
- ffc: dc 88 ldd r13, Y+20 ; 0x14
- ffe: 74 e0 ldi r23, 0x04 ; 4
- 1000: c7 0e add r12, r23
- 1002: d1 1c adc r13, r1
- tstart = heater[ch].tcouple;
- }
- }
-
- LCD_SetPos(0, 0);
- fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive);
- 1004: 8d e0 ldi r24, 0x0D ; 13
- 1006: a9 85 ldd r26, Y+9 ; 0x09
- 1008: ba 85 ldd r27, Y+10 ; 0x0a
- 100a: 8a 9f mul r24, r26
- 100c: 80 01 movw r16, r0
- 100e: 8b 9f mul r24, r27
- 1010: 10 0d add r17, r0
- 1012: 11 24 eor r1, r1
- 1014: 09 56 subi r16, 0x69 ; 105
- 1016: 19 4f sbci r17, 0xF9 ; 249
- 1018: 4b e7 ldi r20, 0x7B ; 123
- 101a: a4 2e mov r10, r20
- 101c: 41 e0 ldi r20, 0x01 ; 1
- 101e: b4 2e mov r11, r20
- 1020: 54 e1 ldi r21, 0x14 ; 20
- 1022: 65 2e mov r6, r21
- 1024: 51 e0 ldi r21, 0x01 ; 1
- 1026: 75 2e mov r7, r21
- SetDriveData(ch, ++drive);
- SwitchDrive(ch, ON);
- }
- }
-
- MAX_ReadData();
- 1028: 83 c0 rjmp .+262 ; 0x1130 <__stack+0x31>
- 102a: 65 da rcall .-2870 ; 0x4f6 <MAX_ReadData>
-
- if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0))
- 102c: ab 89 ldd r26, Y+19 ; 0x13
- 102e: bc 89 ldd r27, Y+20 ; 0x14
- 1030: 8c 91 ld r24, X
- 1032: 98 2f mov r25, r24
- 1034: 92 95 swap r25
- 1036: 96 95 lsr r25
- 1038: 96 95 lsr r25
- 103a: 93 70 andi r25, 0x03 ; 3
- 103c: 11 96 adiw r26, 0x01 ; 1
- 103e: 8c 91 ld r24, X
- 1040: 81 70 andi r24, 0x01 ; 1
- 1042: 88 0f add r24, r24
- 1044: 88 0f add r24, r24
- 1046: 89 2b or r24, r25
- 1048: 09 f4 brne .+2 ; 0x104c <AutoCalibration+0x2b0>
- 104a: e7 c0 rjmp .+462 ; 0x121a <__stack+0x11b>
- 104c: eb 89 ldd r30, Y+19 ; 0x13
- 104e: fc 89 ldd r31, Y+20 ; 0x14
- 1050: 80 81 ld r24, Z
- 1052: 98 2f mov r25, r24
- 1054: 92 95 swap r25
- 1056: 96 95 lsr r25
- 1058: 96 95 lsr r25
- 105a: 93 70 andi r25, 0x03 ; 3
- 105c: 81 81 ldd r24, Z+1 ; 0x01
- 105e: 81 70 andi r24, 0x01 ; 1
- 1060: 88 0f add r24, r24
- 1062: 88 0f add r24, r24
- 1064: 89 2b or r24, r25
- 1066: 84 30 cpi r24, 0x04 ; 4
- 1068: 09 f4 brne .+2 ; 0x106c <AutoCalibration+0x2d0>
- 106a: d7 c0 rjmp .+430 ; 0x121a <__stack+0x11b>
- 106c: ad 81 ldd r26, Y+5 ; 0x05
- 106e: be 81 ldd r27, Y+6 ; 0x06
- 1070: 8c 91 ld r24, X
- 1072: 86 95 lsr r24
- 1074: 87 70 andi r24, 0x07 ; 7
- 1076: 09 f0 breq .+2 ; 0x107a <AutoCalibration+0x2de>
- 1078: d0 c0 rjmp .+416 ; 0x121a <__stack+0x11b>
- {
- LoadPreset(ch);
- return (-1);
- }
-
- if(++delcnt > 300)
- 107a: bf ef ldi r27, 0xFF ; 255
- 107c: eb 1a sub r14, r27
- 107e: fb 0a sbc r15, r27
- 1080: ed e2 ldi r30, 0x2D ; 45
- 1082: ee 16 cp r14, r30
- 1084: e1 e0 ldi r30, 0x01 ; 1
- 1086: fe 06 cpc r15, r30
- 1088: 68 f0 brcs .+26 ; 0x10a4 <AutoCalibration+0x308>
- {
- delcnt = 0;
- if((heater[ch].tcouple - tstart) < 5)
- 108a: d6 01 movw r26, r12
- 108c: 8d 91 ld r24, X+
- 108e: 9c 91 ld r25, X
- 1090: 9c 01 movw r18, r24
- 1092: 24 19 sub r18, r4
- 1094: 35 09 sbc r19, r5
- 1096: 25 30 cpi r18, 0x05 ; 5
- 1098: 31 05 cpc r19, r1
- 109a: 0c f4 brge .+2 ; 0x109e <AutoCalibration+0x302>
- 109c: 7c c3 rjmp .+1784 ; 0x1796 <__stack+0x697>
- while(!btn_act);
- return(-1);
- }
- else
- {
- tstart = heater[ch].tcouple;
- 109e: 2c 01 movw r4, r24
- return (-1);
- }
-
- if(++delcnt > 300)
- {
- delcnt = 0;
- 10a0: e1 2c mov r14, r1
- 10a2: f1 2c mov r15, r1
- {
- tstart = heater[ch].tcouple;
- }
- }
-
- LCD_SetPos(0, 0);
- 10a4: 60 e0 ldi r22, 0x00 ; 0
- 10a6: 80 e0 ldi r24, 0x00 ; 0
- 10a8: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive);
- 10ac: f8 01 movw r30, r16
- 10ae: 83 81 ldd r24, Z+3 ; 0x03
- 10b0: 8f 93 push r24
- 10b2: 82 81 ldd r24, Z+2 ; 0x02
- 10b4: 8f 93 push r24
- 10b6: 81 81 ldd r24, Z+1 ; 0x01
- 10b8: 8f 93 push r24
- 10ba: 80 81 ld r24, Z
- 10bc: 8f 93 push r24
- 10be: 1f 92 push r1
- 10c0: 1f 92 push r1
- 10c2: 1f 92 push r1
- 10c4: 1f 92 push r1
- 10c6: 2f 92 push r2
- 10c8: fb 81 ldd r31, Y+3 ; 0x03
- 10ca: ff 93 push r31
- 10cc: 2b 85 ldd r18, Y+11 ; 0x0b
- 10ce: 2f 93 push r18
- 10d0: 39 81 ldd r19, Y+1 ; 0x01
- 10d2: 3f 93 push r19
- 10d4: bf 92 push r11
- 10d6: af 92 push r10
- 10d8: 7f 92 push r7
- 10da: 6f 92 push r6
- 10dc: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- LCD_SetPos(0, 1);
- 10e0: 61 e0 ldi r22, 0x01 ; 1
- 10e2: 80 e0 ldi r24, 0x00 ; 0
- 10e4: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "I=%.4umA Tc=%.3u ", heater[ch].current, heater[ch].tcouple);
- 10e8: d6 01 movw r26, r12
- 10ea: 11 96 adiw r26, 0x01 ; 1
- 10ec: 8c 91 ld r24, X
- 10ee: 11 97 sbiw r26, 0x01 ; 1
- 10f0: 8f 93 push r24
- 10f2: 8c 91 ld r24, X
- 10f4: 8f 93 push r24
- 10f6: f4 01 movw r30, r8
- 10f8: 81 81 ldd r24, Z+1 ; 0x01
- 10fa: 8f 93 push r24
- 10fc: 80 81 ld r24, Z
- 10fe: 8f 93 push r24
- 1100: 22 e9 ldi r18, 0x92 ; 146
- 1102: 31 e0 ldi r19, 0x01 ; 1
- 1104: 3f 93 push r19
- 1106: 2f 93 push r18
- 1108: 7f 92 push r7
- 110a: 6f 92 push r6
- 110c: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- SwitchDrive(ch, ON);
- }
- SwitchHeating(ch, ON);
-
- while(heater[ch].tcouple < (cal_tmax + 2))
- 1110: 80 91 23 01 lds r24, 0x0123 ; 0x800123 <cal_tmax>
- 1114: 90 e0 ldi r25, 0x00 ; 0
- 1116: 01 96 adiw r24, 0x01 ; 1
- 1118: 0f b6 in r0, 0x3f ; 63
- 111a: f8 94 cli
- 111c: de bf out 0x3e, r29 ; 62
- 111e: 0f be out 0x3f, r0 ; 63
- 1120: cd bf out 0x3d, r28 ; 61
- 1122: d6 01 movw r26, r12
- 1124: 2d 91 ld r18, X+
- 1126: 3c 91 ld r19, X
- 1128: 82 17 cp r24, r18
- 112a: 93 07 cpc r25, r19
- 112c: 0c f4 brge .+2 ; 0x1130 <__stack+0x31>
- {
- if(CurrMeasure(ch) > CURR_MAX)
- 112e: 7b c0 rjmp .+246 ; 0x1226 <__stack+0x127>
- 1130: 83 2d mov r24, r3
- 1132: 72 db rcall .-2332 ; 0x818 <CurrMeasure>
- 1134: 85 3c cpi r24, 0xC5 ; 197
- 1136: 99 40 sbci r25, 0x09 ; 9
- 1138: 08 f0 brcs .+2 ; 0x113c <__stack+0x3d>
- 113a: 72 ce rjmp .-796 ; 0xe20 <AutoCalibration+0x84>
- return 0;
-
- if(heater[ch].status.circuit == CIRC_MOSFET)
- 113c: eb 89 ldd r30, Y+19 ; 0x13
- 113e: fc 89 ldd r31, Y+20 ; 0x14
- 1140: 80 81 ld r24, Z
- 1142: 98 2f mov r25, r24
- 1144: 92 95 swap r25
- 1146: 96 95 lsr r25
- 1148: 96 95 lsr r25
- 114a: 93 70 andi r25, 0x03 ; 3
- 114c: 81 81 ldd r24, Z+1 ; 0x01
- 114e: 81 70 andi r24, 0x01 ; 1
- 1150: 88 0f add r24, r24
- 1152: 88 0f add r24, r24
- 1154: 89 2b or r24, r25
- 1156: 82 30 cpi r24, 0x02 ; 2
- 1158: 09 f0 breq .+2 ; 0x115c <__stack+0x5d>
- 115a: 67 cf rjmp .-306 ; 0x102a <AutoCalibration+0x28e>
- {
- if(heater[ch].current > 1500)
- 115c: d4 01 movw r26, r8
- 115e: 8d 91 ld r24, X+
- 1160: 9c 91 ld r25, X
- 1162: 8d 3d cpi r24, 0xDD ; 221
- 1164: b5 e0 ldi r27, 0x05 ; 5
- 1166: 9b 07 cpc r25, r27
- 1168: 08 f0 brcs .+2 ; 0x116c <__stack+0x6d>
- 116a: 47 c0 rjmp .+142 ; 0x11fa <__stack+0xfb>
- {
- SetDriveData(ch, --drive);
- SwitchDrive(ch, ON);
- }
-
- if(heater[ch].current < 1000)
- 116c: 88 3e cpi r24, 0xE8 ; 232
- 116e: 93 40 sbci r25, 0x03 ; 3
- 1170: 08 f0 brcs .+2 ; 0x1174 <__stack+0x75>
- 1172: 5b cf rjmp .-330 ; 0x102a <AutoCalibration+0x28e>
- {
- SetDriveData(ch, ++drive);
- 1174: ef 81 ldd r30, Y+7 ; 0x07
- 1176: ef 5f subi r30, 0xFF ; 255
- 1178: ef 83 std Y+7, r30 ; 0x07
- 117a: 6e 2f mov r22, r30
- 117c: 83 2d mov r24, r3
- 117e: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
- SwitchDrive(ch, ON);
- 1182: 61 e0 ldi r22, 0x01 ; 1
- 1184: 83 2d mov r24, r3
- 1186: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- 118a: 4f cf rjmp .-354 ; 0x102a <AutoCalibration+0x28e>
- _delay_ms(1);
- CurrMeasure(ch);
- SwitchHeating(ch, OFF);
- SwitchDrive(ch, OFF);
- drive++;
- } while(heater[ch].current < 1000);
- 118c: 83 e1 ldi r24, 0x13 ; 19
- 118e: 29 85 ldd r18, Y+9 ; 0x09
- 1190: 3a 85 ldd r19, Y+10 ; 0x0a
- 1192: 82 9f mul r24, r18
- 1194: f0 01 movw r30, r0
- 1196: 83 9f mul r24, r19
- 1198: f0 0d add r31, r0
- 119a: 11 24 eor r1, r1
- 119c: e2 5d subi r30, 0xD2 ; 210
- 119e: fc 4f sbci r31, 0xFC ; 252
- 11a0: fe 83 std Y+6, r31 ; 0x06
- 11a2: ed 83 std Y+5, r30 ; 0x05
- 11a4: 10 e0 ldi r17, 0x00 ; 0
- 11a6: 01 c0 rjmp .+2 ; 0x11aa <__stack+0xab>
- SwitchHeating(ch, ON);
- _delay_ms(1);
- CurrMeasure(ch);
- SwitchHeating(ch, OFF);
- SwitchDrive(ch, OFF);
- drive++;
- 11a8: 12 2f mov r17, r18
- vhigh = VoltageMeasure(ch) + 0.04;
-
- if(heater[ch].status.circuit == CIRC_MOSFET)
- {
- do {
- SetDriveData(ch, drive);
- 11aa: 61 2f mov r22, r17
- 11ac: 83 2d mov r24, r3
- 11ae: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
- SwitchDrive(ch, ON);
- 11b2: 61 e0 ldi r22, 0x01 ; 1
- 11b4: 83 2d mov r24, r3
- 11b6: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- 11ba: 83 2d mov r24, r3
- 11bc: 38 d8 rcall .-3984 ; 0x22e <SwitchHeating.part.0>
- 11be: 87 eb ldi r24, 0xB7 ; 183
- 11c0: 9b e0 ldi r25, 0x0B ; 11
- 11c2: 01 97 sbiw r24, 0x01 ; 1
- 11c4: f1 f7 brne .-4 ; 0x11c2 <__stack+0xc3>
- SwitchHeating(ch, ON);
- _delay_ms(1);
- CurrMeasure(ch);
- 11c6: 00 c0 rjmp .+0 ; 0x11c8 <__stack+0xc9>
- 11c8: 00 00 nop
- 11ca: 83 2d mov r24, r3
- SwitchHeating(ch, OFF);
- 11cc: 25 db rcall .-2486 ; 0x818 <CurrMeasure>
- 11ce: 60 e0 ldi r22, 0x00 ; 0
- 11d0: 83 2d mov r24, r3
- 11d2: b9 dc rcall .-1678 ; 0xb46 <SwitchHeating>
- SwitchDrive(ch, OFF);
- 11d4: 60 e0 ldi r22, 0x00 ; 0
- 11d6: 83 2d mov r24, r3
- 11d8: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- drive++;
- 11dc: 21 e0 ldi r18, 0x01 ; 1
- 11de: 21 0f add r18, r17
- } while(heater[ch].current < 1000);
- 11e0: ad 81 ldd r26, Y+5 ; 0x05
- 11e2: be 81 ldd r27, Y+6 ; 0x06
- 11e4: 8d 91 ld r24, X+
- 11e6: 9c 91 ld r25, X
- 11e8: 88 3e cpi r24, 0xE8 ; 232
- 11ea: 93 40 sbci r25, 0x03 ; 3
- 11ec: e8 f2 brcs .-70 ; 0x11a8 <__stack+0xa9>
- 11ee: 1f 83 std Y+7, r17 ; 0x07
-
- drive--;
- SwitchDrive(ch, ON);
- 11f0: 61 e0 ldi r22, 0x01 ; 1
- 11f2: 83 2d mov r24, r3
- 11f4: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- 11f8: d5 ce rjmp .-598 ; 0xfa4 <AutoCalibration+0x208>
-
- if(heater[ch].status.circuit == CIRC_MOSFET)
- {
- if(heater[ch].current > 1500)
- {
- SetDriveData(ch, --drive);
- 11fa: ef 81 ldd r30, Y+7 ; 0x07
- 11fc: e1 50 subi r30, 0x01 ; 1
- 11fe: ef 83 std Y+7, r30 ; 0x07
- 1200: 6e 2f mov r22, r30
- 1202: 83 2d mov r24, r3
- 1204: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
- SwitchDrive(ch, ON);
- 1208: 61 e0 ldi r22, 0x01 ; 1
- 120a: 83 2d mov r24, r3
- 120c: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- 1210: d4 01 movw r26, r8
- 1212: 8d 91 ld r24, X+
- 1214: 9c 91 ld r25, X
- 1216: aa cf rjmp .-172 ; 0x116c <__stack+0x6d>
-
- MAX_ReadData();
-
- if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0))
- {
- LoadPreset(ch);
- 1218: 3d 84 ldd r3, Y+13 ; 0x0d
- 121a: 83 2d mov r24, r3
- 121c: 0e 94 be 14 call 0x297c ; 0x297c <LoadPreset>
- return (-1);
- 1220: 8f ef ldi r24, 0xFF ; 255
- 1222: 9f ef ldi r25, 0xFF ; 255
- fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive);
- LCD_SetPos(0, 1);
- fprintf(&lcd_stdout, "I=%.4umA Tc=%.3u ", heater[ch].current, heater[ch].tcouple);
- }
-
- SwitchHeating(ch, OFF);
- 1224: ff cd rjmp .-1026 ; 0xe24 <AutoCalibration+0x88>
- 1226: 60 e0 ldi r22, 0x00 ; 0
- 1228: 83 2d mov r24, r3
- 122a: 8d dc rcall .-1766 ; 0xb46 <SwitchHeating>
- SwitchDrive(ch, OFF);
- 122c: 60 e0 ldi r22, 0x00 ; 0
- 122e: 83 2d mov r24, r3
- 1230: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- 1234: ef e6 ldi r30, 0x6F ; 111
- 1236: f7 e1 ldi r31, 0x17 ; 23
- 1238: 31 97 sbiw r30, 0x01 ; 1
- 123a: f1 f7 brne .-4 ; 0x1238 <__stack+0x139>
- 123c: 00 c0 rjmp .+0 ; 0x123e <__stack+0x13f>
- _delay_ms(2);
-
- vlow = VoltageMeasure(ch);
- 123e: 00 00 nop
- 1240: 83 2d mov r24, r3
- 1242: aa dc rcall .-1708 ; 0xb98 <VoltageMeasure>
- 1244: 96 2e mov r9, r22
- 1246: 87 2e mov r8, r23
- 1248: 78 2e mov r7, r24
- 124a: 69 2e mov r6, r25
- if(vlow > 0.01)
- 124c: 2a e0 ldi r18, 0x0A ; 10
- 124e: 37 ed ldi r19, 0xD7 ; 215
- 1250: 43 e2 ldi r20, 0x23 ; 35
- 1252: 5c e3 ldi r21, 0x3C ; 60
- 1254: d4 01 movw r26, r8
- 1256: f3 01 movw r30, r6
- 1258: 6b 2f mov r22, r27
- 125a: 7a 2f mov r23, r26
- 125c: 8f 2f mov r24, r31
- 125e: 9e 2f mov r25, r30
- 1260: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2>
- 1264: 18 16 cp r1, r24
- 1266: 84 f4 brge .+32 ; 0x1288 <__stack+0x189>
- vlow -= 0.01;
- 1268: 2a e0 ldi r18, 0x0A ; 10
- 126a: 37 ed ldi r19, 0xD7 ; 215
- 126c: 43 e2 ldi r20, 0x23 ; 35
- 126e: 5c e3 ldi r21, 0x3C ; 60
- 1270: d4 01 movw r26, r8
- 1272: f3 01 movw r30, r6
- 1274: 6b 2f mov r22, r27
- 1276: 7a 2f mov r23, r26
- 1278: 8f 2f mov r24, r31
- 127a: 9e 2f mov r25, r30
- 127c: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 1280: 96 2e mov r9, r22
- 1282: 87 2e mov r8, r23
- 1284: 78 2e mov r7, r24
- 1286: 69 2e mov r6, r25
- SetInputRange(ch, vlow, vhigh);
- 1288: 5d 85 ldd r21, Y+13 ; 0x0d
- 128a: 4e 85 ldd r20, Y+14 ; 0x0e
- 128c: 98 89 ldd r25, Y+16 ; 0x10
- 128e: 8a 89 ldd r24, Y+18 ; 0x12
- 1290: 05 2f mov r16, r21
- 1292: 14 2f mov r17, r20
- 1294: 29 2f mov r18, r25
- 1296: 38 2f mov r19, r24
- 1298: f4 01 movw r30, r8
- 129a: c3 01 movw r24, r6
- 129c: 4f 2f mov r20, r31
- 129e: 58 2d mov r21, r8
- 12a0: 69 2f mov r22, r25
- 12a2: 76 2d mov r23, r6
- 12a4: 83 2d mov r24, r3
- 12a6: 0e 94 51 13 call 0x26a2 ; 0x26a2 <SetInputRange>
-
- for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10)
- 12aa: b0 91 23 01 lds r27, 0x0123 ; 0x800123 <cal_tmax>
- 12ae: bd 83 std Y+5, r27 ; 0x05
- 12b0: e0 91 22 01 lds r30, 0x0122 ; 0x800122 <cal_tmin>
- 12b4: ef 83 std Y+7, r30 ; 0x07
- 12b6: be 17 cp r27, r30
- 12b8: 08 f4 brcc .+2 ; 0x12bc <__stack+0x1bd>
- 12ba: a1 c2 rjmp .+1346 ; 0x17fe <__stack+0x6ff>
- {
- while(heater[ch].tcouple >= temp)
- 12bc: 23 e1 ldi r18, 0x13 ; 19
- 12be: e9 85 ldd r30, Y+9 ; 0x09
- 12c0: fa 85 ldd r31, Y+10 ; 0x0a
- 12c2: 2e 9f mul r18, r30
- 12c4: c0 01 movw r24, r0
- 12c6: 2f 9f mul r18, r31
- 12c8: 90 0d add r25, r0
- 12ca: 11 24 eor r1, r1
- 12cc: 9c 01 movw r18, r24
- 12ce: 20 5e subi r18, 0xE0 ; 224
- 12d0: 3c 4f sbci r19, 0xFC ; 252
- 12d2: 38 87 std Y+8, r19 ; 0x08
- 12d4: 2f 83 std Y+7, r18 ; 0x07
- 12d6: 89 01 movw r16, r18
- 12d8: 0c 5f subi r16, 0xFC ; 252
- 12da: 1f 4f sbci r17, 0xFF ; 255
- {
- MAX_ReadData();
- LCD_SetPos(0, 0);
- fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw);
- 12dc: 79 01 movw r14, r18
- 12de: 38 e0 ldi r19, 0x08 ; 8
- 12e0: e3 0e add r14, r19
- 12e2: f1 1c adc r15, r1
- 12e4: a4 ea ldi r26, 0xA4 ; 164
- 12e6: ca 2e mov r12, r26
- 12e8: a1 e0 ldi r26, 0x01 ; 1
- 12ea: da 2e mov r13, r26
- LCD_SetPos(0, 1);
- fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple);
- 12ec: b8 eb ldi r27, 0xB8 ; 184
- 12ee: 4b 2e mov r4, r27
- 12f0: b1 e0 ldi r27, 0x01 ; 1
- 12f2: 5b 2e mov r5, r27
- }
- TMeasure(ch);
- preset[ch].curve[temp / 10].temp = temp;
- 12f4: 24 e1 ldi r18, 0x14 ; 20
- 12f6: 2e 9f mul r18, r30
- 12f8: a0 01 movw r20, r0
- 12fa: 2f 9f mul r18, r31
- 12fc: 50 0d add r21, r0
- 12fe: 11 24 eor r1, r1
- 1300: 5f 87 std Y+15, r21 ; 0x0f
- 1302: 4e 87 std Y+14, r20 ; 0x0e
- preset[ch].curve[temp / 10].adcdata = heater[ch].tmeas_raw;
-
- if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0) )
- 1304: bc 01 movw r22, r24
- 1306: 6f 5d subi r22, 0xDF ; 223
- 1308: 7c 4f sbci r23, 0xFC ; 252
- 130a: 79 8b std Y+17, r23 ; 0x11
- 130c: 68 8b std Y+16, r22 ; 0x10
- 130e: 3d 86 std Y+13, r3 ; 0x0d
- 1310: 37 2c mov r3, r7
- 1312: 72 2c mov r7, r2
- 1314: 26 2c mov r2, r6
- vlow -= 0.01;
- SetInputRange(ch, vlow, vhigh);
-
- for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10)
- {
- while(heater[ch].tcouple >= temp)
- 1316: 6b 84 ldd r6, Y+11 ; 0x0b
- 1318: 7d 81 ldd r23, Y+5 ; 0x05
- 131a: a7 2e mov r10, r23
- 131c: b1 2c mov r11, r1
- 131e: d8 01 movw r26, r16
- 1320: 8d 91 ld r24, X+
- 1322: 9c 91 ld r25, X
- 1324: 8a 15 cp r24, r10
- 1326: 9b 05 cpc r25, r11
- {
- MAX_ReadData();
- 1328: e4 f1 brlt .+120 ; 0x13a2 <__stack+0x2a3>
- 132a: e5 d8 rcall .-3638 ; 0x4f6 <MAX_ReadData>
- LCD_SetPos(0, 0);
- 132c: 60 e0 ldi r22, 0x00 ; 0
- 132e: 80 e0 ldi r24, 0x00 ; 0
- 1330: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw);
- 1334: d7 01 movw r26, r14
- 1336: 11 96 adiw r26, 0x01 ; 1
- 1338: 8c 91 ld r24, X
- 133a: 11 97 sbiw r26, 0x01 ; 1
- 133c: 8f 93 push r24
- 133e: 8c 91 ld r24, X
- 1340: 8f 93 push r24
- 1342: 7f 92 push r7
- 1344: bb 81 ldd r27, Y+3 ; 0x03
- 1346: bf 93 push r27
- 1348: 6f 92 push r6
- 134a: e9 81 ldd r30, Y+1 ; 0x01
- 134c: ef 93 push r30
- 134e: df 92 push r13
- 1350: cf 92 push r12
- 1352: 24 e1 ldi r18, 0x14 ; 20
- 1354: 31 e0 ldi r19, 0x01 ; 1
- 1356: 3f 93 push r19
- 1358: 2f 93 push r18
- 135a: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- LCD_SetPos(0, 1);
- 135e: 61 e0 ldi r22, 0x01 ; 1
- 1360: 80 e0 ldi r24, 0x00 ; 0
- 1362: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple);
- 1366: d8 01 movw r26, r16
- 1368: 11 96 adiw r26, 0x01 ; 1
- 136a: 8c 91 ld r24, X
- 136c: 11 97 sbiw r26, 0x01 ; 1
- 136e: 8f 93 push r24
- 1370: 8c 91 ld r24, X
- 1372: 8f 93 push r24
- 1374: 2f 92 push r2
- 1376: 3f 92 push r3
- 1378: 8f 92 push r8
- 137a: 9f 92 push r9
- 137c: 5f 92 push r5
- 137e: 4f 92 push r4
- 1380: e4 e1 ldi r30, 0x14 ; 20
- 1382: f1 e0 ldi r31, 0x01 ; 1
- 1384: ff 93 push r31
- 1386: ef 93 push r30
- 1388: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- vlow -= 0.01;
- SetInputRange(ch, vlow, vhigh);
-
- for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10)
- {
- while(heater[ch].tcouple >= temp)
- 138c: 0f b6 in r0, 0x3f ; 63
- 138e: f8 94 cli
- 1390: de bf out 0x3e, r29 ; 62
- 1392: 0f be out 0x3f, r0 ; 63
- 1394: cd bf out 0x3d, r28 ; 61
- 1396: d8 01 movw r26, r16
- 1398: 8d 91 ld r24, X+
- 139a: 9c 91 ld r25, X
- 139c: 8a 15 cp r24, r10
- 139e: 9b 05 cpc r25, r11
- LCD_SetPos(0, 0);
- fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw);
- LCD_SetPos(0, 1);
- fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple);
- }
- TMeasure(ch);
- 13a0: 24 f6 brge .-120 ; 0x132a <__stack+0x22b>
- 13a2: 8d 85 ldd r24, Y+13 ; 0x0d
- 13a4: f7 d9 rcall .-3090 ; 0x794 <TMeasure>
- preset[ch].curve[temp / 10].temp = temp;
- 13a6: 8d ec ldi r24, 0xCD ; 205
- 13a8: bd 81 ldd r27, Y+5 ; 0x05
- 13aa: b8 9f mul r27, r24
- 13ac: 81 2d mov r24, r1
- 13ae: 11 24 eor r1, r1
- 13b0: 86 95 lsr r24
- 13b2: 86 95 lsr r24
- 13b4: 86 95 lsr r24
- 13b6: ee 85 ldd r30, Y+14 ; 0x0e
- 13b8: ff 85 ldd r31, Y+15 ; 0x0f
- 13ba: e8 0f add r30, r24
- 13bc: f1 1d adc r31, r1
- 13be: cf 01 movw r24, r30
- 13c0: ee 0f add r30, r30
- 13c2: ff 1f adc r31, r31
- 13c4: ee 0f add r30, r30
- 13c6: ff 1f adc r31, r31
- 13c8: ea 5a subi r30, 0xAA ; 170
- 13ca: fc 4f sbci r31, 0xFC ; 252
- 13cc: b1 82 std Z+1, r11 ; 0x01
- 13ce: a0 82 st Z, r10
- preset[ch].curve[temp / 10].adcdata = heater[ch].tmeas_raw;
- 13d0: 88 0f add r24, r24
- 13d2: 99 1f adc r25, r25
- 13d4: 88 0f add r24, r24
- 13d6: 99 1f adc r25, r25
- 13d8: fc 01 movw r30, r24
- 13da: ea 5b subi r30, 0xBA ; 186
- 13dc: fc 4f sbci r31, 0xFC ; 252
- 13de: d7 01 movw r26, r14
- 13e0: 8d 91 ld r24, X+
- 13e2: 9c 91 ld r25, X
- 13e4: 93 8b std Z+19, r25 ; 0x13
- 13e6: 82 8b std Z+18, r24 ; 0x12
-
- if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0) )
- 13e8: ef 81 ldd r30, Y+7 ; 0x07
- 13ea: f8 85 ldd r31, Y+8 ; 0x08
- 13ec: 80 81 ld r24, Z
- 13ee: 98 2f mov r25, r24
- 13f0: 92 95 swap r25
- 13f2: 96 95 lsr r25
- 13f4: 96 95 lsr r25
- 13f6: 93 70 andi r25, 0x03 ; 3
- 13f8: 81 81 ldd r24, Z+1 ; 0x01
- 13fa: 81 70 andi r24, 0x01 ; 1
- 13fc: 88 0f add r24, r24
- 13fe: 88 0f add r24, r24
- 1400: 89 2b or r24, r25
- 1402: 09 f4 brne .+2 ; 0x1406 <__stack+0x307>
- 1404: 09 cf rjmp .-494 ; 0x1218 <__stack+0x119>
- 1406: 80 81 ld r24, Z
- 1408: 98 2f mov r25, r24
- 140a: 92 95 swap r25
- 140c: 96 95 lsr r25
- 140e: 96 95 lsr r25
- 1410: 93 70 andi r25, 0x03 ; 3
- 1412: 81 81 ldd r24, Z+1 ; 0x01
- 1414: 81 70 andi r24, 0x01 ; 1
- 1416: 88 0f add r24, r24
- 1418: 88 0f add r24, r24
- 141a: 89 2b or r24, r25
- 141c: 84 30 cpi r24, 0x04 ; 4
- 141e: 09 f4 brne .+2 ; 0x1422 <__stack+0x323>
- 1420: fb ce rjmp .-522 ; 0x1218 <__stack+0x119>
- 1422: a8 89 ldd r26, Y+16 ; 0x10
- 1424: b9 89 ldd r27, Y+17 ; 0x11
- 1426: 8c 91 ld r24, X
- 1428: 86 95 lsr r24
- 142a: 87 70 andi r24, 0x07 ; 7
- 142c: 09 f0 breq .+2 ; 0x1430 <__stack+0x331>
- 142e: f4 ce rjmp .-536 ; 0x1218 <__stack+0x119>
- vlow = VoltageMeasure(ch);
- if(vlow > 0.01)
- vlow -= 0.01;
- SetInputRange(ch, vlow, vhigh);
-
- for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10)
- 1430: bd 81 ldd r27, Y+5 ; 0x05
- 1432: ba 50 subi r27, 0x0A ; 10
- 1434: bd 83 std Y+5, r27 ; 0x05
- 1436: 80 91 22 01 lds r24, 0x0122 ; 0x800122 <cal_tmin>
- 143a: b8 17 cp r27, r24
- 143c: 08 f0 brcs .+2 ; 0x1440 <__stack+0x341>
- 143e: 6c cf rjmp .-296 ; 0x1318 <__stack+0x219>
- 1440: 8f 83 std Y+7, r24 ; 0x07
- 1442: 3d 84 ldd r3, Y+13 ; 0x0d
- 1444: 20 90 23 01 lds r2, 0x0123 ; 0x800123 <cal_tmax>
- 1448: 8d ec ldi r24, 0xCD ; 205
- 144a: 28 9e mul r2, r24
- 144c: 21 2d mov r18, r1
- 144e: 11 24 eor r1, r1
- 1450: 26 95 lsr r18
- 1452: 26 95 lsr r18
- 1454: 26 95 lsr r18
- 1456: ef 81 ldd r30, Y+7 ; 0x07
- 1458: e8 9f mul r30, r24
- 145a: 81 2d mov r24, r1
- 145c: 11 24 eor r1, r1
- 145e: 86 95 lsr r24
- 1460: 86 95 lsr r24
- 1462: 86 95 lsr r24
- LoadPreset(ch);
- return (-1);
- }
- }
-
- for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
- 1464: 10 e0 ldi r17, 0x00 ; 0
- {
- preset[ch].curve[temp / 10].temp = temp;
- 1466: 0d ec ldi r16, 0xCD ; 205
- 1468: 94 e1 ldi r25, 0x14 ; 20
- 146a: 49 85 ldd r20, Y+9 ; 0x09
- 146c: 5a 85 ldd r21, Y+10 ; 0x0a
- 146e: 94 9f mul r25, r20
- 1470: 70 01 movw r14, r0
- 1472: 95 9f mul r25, r21
- 1474: f0 0c add r15, r0
- 1476: 11 24 eor r1, r1
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- 1478: b7 01 movw r22, r14
- 147a: 68 0f add r22, r24
- 147c: 71 1d adc r23, r1
- 147e: ab 01 movw r20, r22
- 1480: 44 0f add r20, r20
- 1482: 55 1f adc r21, r21
- 1484: 44 0f add r20, r20
- 1486: 55 1f adc r21, r21
- 1488: da 01 movw r26, r20
- 148a: a8 5a subi r26, 0xA8 ; 168
- 148c: bc 4f sbci r27, 0xFC ; 252
- 148e: ba 83 std Y+2, r27 ; 0x02
- 1490: a9 83 std Y+1, r26 ; 0x01
- }
-
- for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
- {
- preset[ch].curve[temp / 10].temp = temp;
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- 1492: fa 01 movw r30, r20
- 1494: ea 5a subi r30, 0xAA ; 170
- 1496: fc 4f sbci r31, 0xFC ; 252
- 1498: fc 83 std Y+4, r31 ; 0x04
- 149a: eb 83 std Y+3, r30 ; 0x03
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- 149c: c7 01 movw r24, r14
- 149e: 82 0f add r24, r18
- 14a0: 91 1d adc r25, r1
- 14a2: 9c 01 movw r18, r24
- 14a4: 22 0f add r18, r18
- 14a6: 33 1f adc r19, r19
- 14a8: 22 0f add r18, r18
- 14aa: 33 1f adc r19, r19
- 14ac: a9 01 movw r20, r18
- 14ae: 48 5a subi r20, 0xA8 ; 168
- 14b0: 5c 4f sbci r21, 0xFC ; 252
- 14b2: 5e 83 std Y+6, r21 ; 0x06
- 14b4: 4d 83 std Y+5, r20 ; 0x05
- }
-
- for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
- {
- preset[ch].curve[temp / 10].temp = temp;
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- 14b6: b9 01 movw r22, r18
- 14b8: 6a 5a subi r22, 0xAA ; 170
- 14ba: 7c 4f sbci r23, 0xFC ; 252
- 14bc: 7c 87 std Y+12, r23 ; 0x0c
- 14be: 6b 87 std Y+11, r22 ; 0x0b
- 14c0: 2d 86 std Y+13, r2 ; 0x0d
- 14c2: 3e 86 std Y+14, r3 ; 0x0e
- 14c4: 17 01 movw r2, r14
- }
- }
-
- for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
- {
- preset[ch].curve[temp / 10].temp = temp;
- 14c6: 10 9f mul r17, r16
- 14c8: 81 2d mov r24, r1
- 14ca: 11 24 eor r1, r1
- 14cc: 86 95 lsr r24
- 14ce: 86 95 lsr r24
- 14d0: 86 95 lsr r24
- 14d2: d1 01 movw r26, r2
- 14d4: a8 0f add r26, r24
- 14d6: b1 1d adc r27, r1
- 14d8: b9 8b std Y+17, r27 ; 0x11
- 14da: a8 8b std Y+16, r26 ; 0x10
- 14dc: fd 01 movw r30, r26
- 14de: ee 0f add r30, r30
- 14e0: ff 1f adc r31, r31
- 14e2: ee 0f add r30, r30
- 14e4: ff 1f adc r31, r31
- 14e6: ea 5a subi r30, 0xAA ; 170
- 14e8: fc 4f sbci r31, 0xFC ; 252
- 14ea: 81 2f mov r24, r17
- 14ec: 90 e0 ldi r25, 0x00 ; 0
- 14ee: 91 83 std Z+1, r25 ; 0x01
- 14f0: 80 83 st Z, r24
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- 14f2: e9 81 ldd r30, Y+1 ; 0x01
- 14f4: fa 81 ldd r31, Y+2 ; 0x02
- 14f6: 60 81 ld r22, Z
- 14f8: 71 81 ldd r23, Z+1 ; 0x01
- 14fa: 80 e0 ldi r24, 0x00 ; 0
- 14fc: 90 e0 ldi r25, 0x00 ; 0
- 14fe: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 1502: 6b 01 movw r12, r22
- 1504: 7c 01 movw r14, r24
- 1506: ab 81 ldd r26, Y+3 ; 0x03
- 1508: bc 81 ldd r27, Y+4 ; 0x04
- 150a: 6d 91 ld r22, X+
- 150c: 7c 91 ld r23, X
- 150e: 80 e0 ldi r24, 0x00 ; 0
- 1510: 90 e0 ldi r25, 0x00 ; 0
- 1512: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 1516: 4b 01 movw r8, r22
- 1518: 5c 01 movw r10, r24
- 151a: e8 89 ldd r30, Y+16 ; 0x10
- 151c: f9 89 ldd r31, Y+17 ; 0x11
- 151e: ee 0f add r30, r30
- 1520: ff 1f adc r31, r31
- 1522: ee 0f add r30, r30
- 1524: ff 1f adc r31, r31
- 1526: ea 5b subi r30, 0xBA ; 186
- 1528: fc 4f sbci r31, 0xFC ; 252
- 152a: f9 8b std Y+17, r31 ; 0x11
- 152c: e8 8b std Y+16, r30 ; 0x10
- 152e: ad 81 ldd r26, Y+5 ; 0x05
- 1530: be 81 ldd r27, Y+6 ; 0x06
- 1532: 6d 91 ld r22, X+
- 1534: 7c 91 ld r23, X
- 1536: 80 e0 ldi r24, 0x00 ; 0
- 1538: 90 e0 ldi r25, 0x00 ; 0
- 153a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 153e: a7 01 movw r20, r14
- 1540: 96 01 movw r18, r12
- 1542: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 1546: 2b 01 movw r4, r22
- 1548: 3c 01 movw r6, r24
- 154a: 61 2f mov r22, r17
- 154c: 70 e0 ldi r23, 0x00 ; 0
- 154e: 80 e0 ldi r24, 0x00 ; 0
- 1550: 90 e0 ldi r25, 0x00 ; 0
- 1552: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 1556: a5 01 movw r20, r10
- 1558: 94 01 movw r18, r8
- 155a: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 155e: 9b 01 movw r18, r22
- 1560: ac 01 movw r20, r24
- 1562: c3 01 movw r24, r6
- 1564: b2 01 movw r22, r4
- 1566: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
- 156a: 2b 01 movw r4, r22
- 156c: 3c 01 movw r6, r24
- 156e: eb 85 ldd r30, Y+11 ; 0x0b
- 1570: fc 85 ldd r31, Y+12 ; 0x0c
- 1572: 60 81 ld r22, Z
- 1574: 71 81 ldd r23, Z+1 ; 0x01
- 1576: 80 e0 ldi r24, 0x00 ; 0
- 1578: 90 e0 ldi r25, 0x00 ; 0
- 157a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 157e: a5 01 movw r20, r10
- 1580: 94 01 movw r18, r8
- 1582: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 1586: 9b 01 movw r18, r22
- 1588: ac 01 movw r20, r24
- 158a: c3 01 movw r24, r6
- 158c: b2 01 movw r22, r4
- 158e: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
- 1592: a7 01 movw r20, r14
- 1594: 96 01 movw r18, r12
- 1596: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
- 159a: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi>
- 159e: a8 89 ldd r26, Y+16 ; 0x10
- 15a0: b9 89 ldd r27, Y+17 ; 0x11
- 15a2: 53 96 adiw r26, 0x13 ; 19
- 15a4: 7c 93 st X, r23
- 15a6: 6e 93 st -X, r22
- 15a8: 52 97 sbiw r26, 0x12 ; 18
- LoadPreset(ch);
- return (-1);
- }
- }
-
- for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
- 15aa: 16 5f subi r17, 0xF6 ; 246
- 15ac: bf 81 ldd r27, Y+7 ; 0x07
- 15ae: 1b 17 cp r17, r27
- 15b0: 08 f4 brcc .+2 ; 0x15b4 <__stack+0x4b5>
- 15b2: 89 cf rjmp .-238 ; 0x14c6 <__stack+0x3c7>
- 15b4: 2d 84 ldd r2, Y+13 ; 0x0d
- 15b6: 3e 84 ldd r3, Y+14 ; 0x0e
- preset[ch].curve[temp / 10].temp = temp;
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- }
-
- for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
- 15b8: 1a e0 ldi r17, 0x0A ; 10
- 15ba: 12 0d add r17, r2
- 15bc: 10 3a cpi r17, 0xA0 ; 160
- 15be: 08 f0 brcs .+2 ; 0x15c2 <__stack+0x4c3>
- 15c0: b4 c0 rjmp .+360 ; 0x172a <__stack+0x62b>
- 15c2: 8d ec ldi r24, 0xCD ; 205
- 15c4: 28 9e mul r2, r24
- 15c6: 91 2d mov r25, r1
- 15c8: 11 24 eor r1, r1
- 15ca: 96 95 lsr r25
- 15cc: 96 95 lsr r25
- 15ce: 96 95 lsr r25
- 15d0: bf 81 ldd r27, Y+7 ; 0x07
- 15d2: b8 9f mul r27, r24
- 15d4: 81 2d mov r24, r1
- 15d6: 11 24 eor r1, r1
- 15d8: 86 95 lsr r24
- 15da: 86 95 lsr r24
- 15dc: 86 95 lsr r24
- {
- preset[ch].curve[temp / 10].temp = temp;
- 15de: 0d ec ldi r16, 0xCD ; 205
- 15e0: 24 e1 ldi r18, 0x14 ; 20
- 15e2: e9 85 ldd r30, Y+9 ; 0x09
- 15e4: fa 85 ldd r31, Y+10 ; 0x0a
- 15e6: 2e 9f mul r18, r30
- 15e8: 70 01 movw r14, r0
- 15ea: 2f 9f mul r18, r31
- 15ec: f0 0c add r15, r0
- 15ee: 11 24 eor r1, r1
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- 15f0: 97 01 movw r18, r14
- 15f2: 28 0f add r18, r24
- 15f4: 31 1d adc r19, r1
- 15f6: a9 01 movw r20, r18
- 15f8: 44 0f add r20, r20
- 15fa: 55 1f adc r21, r21
- 15fc: 44 0f add r20, r20
- 15fe: 55 1f adc r21, r21
- 1600: ba 01 movw r22, r20
- 1602: 68 5a subi r22, 0xA8 ; 168
- 1604: 7c 4f sbci r23, 0xFC ; 252
- 1606: 7a 83 std Y+2, r23 ; 0x02
- 1608: 69 83 std Y+1, r22 ; 0x01
- }
-
- for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
- {
- preset[ch].curve[temp / 10].temp = temp;
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- 160a: da 01 movw r26, r20
- 160c: aa 5a subi r26, 0xAA ; 170
- 160e: bc 4f sbci r27, 0xFC ; 252
- 1610: bc 83 std Y+4, r27 ; 0x04
- 1612: ab 83 std Y+3, r26 ; 0x03
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- 1614: f7 01 movw r30, r14
- 1616: e9 0f add r30, r25
- 1618: f1 1d adc r31, r1
- 161a: 9f 01 movw r18, r30
- 161c: 22 0f add r18, r18
- 161e: 33 1f adc r19, r19
- 1620: 22 0f add r18, r18
- 1622: 33 1f adc r19, r19
- 1624: a9 01 movw r20, r18
- 1626: 48 5a subi r20, 0xA8 ; 168
- 1628: 5c 4f sbci r21, 0xFC ; 252
- 162a: 5e 83 std Y+6, r21 ; 0x06
- 162c: 4d 83 std Y+5, r20 ; 0x05
- }
-
- for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
- {
- preset[ch].curve[temp / 10].temp = temp;
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- 162e: b9 01 movw r22, r18
- 1630: 6a 5a subi r22, 0xAA ; 170
- 1632: 7c 4f sbci r23, 0xFC ; 252
- 1634: 7c 87 std Y+12, r23 ; 0x0c
- 1636: 6b 87 std Y+11, r22 ; 0x0b
- 1638: 3f 82 std Y+7, r3 ; 0x07
- 163a: 17 01 movw r2, r14
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- }
-
- for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
- {
- preset[ch].curve[temp / 10].temp = temp;
- 163c: 10 9f mul r17, r16
- 163e: 81 2d mov r24, r1
- 1640: 11 24 eor r1, r1
- 1642: 86 95 lsr r24
- 1644: 86 95 lsr r24
- 1646: 86 95 lsr r24
- 1648: d1 01 movw r26, r2
- 164a: a8 0f add r26, r24
- 164c: b1 1d adc r27, r1
- 164e: bf 87 std Y+15, r27 ; 0x0f
- 1650: ae 87 std Y+14, r26 ; 0x0e
- 1652: fd 01 movw r30, r26
- 1654: ee 0f add r30, r30
- 1656: ff 1f adc r31, r31
- 1658: ee 0f add r30, r30
- 165a: ff 1f adc r31, r31
- 165c: ea 5a subi r30, 0xAA ; 170
- 165e: fc 4f sbci r31, 0xFC ; 252
- 1660: 81 2f mov r24, r17
- 1662: 90 e0 ldi r25, 0x00 ; 0
- 1664: 91 83 std Z+1, r25 ; 0x01
- 1666: 80 83 st Z, r24
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- 1668: e9 81 ldd r30, Y+1 ; 0x01
- 166a: fa 81 ldd r31, Y+2 ; 0x02
- 166c: 60 81 ld r22, Z
- 166e: 71 81 ldd r23, Z+1 ; 0x01
- 1670: 80 e0 ldi r24, 0x00 ; 0
- 1672: 90 e0 ldi r25, 0x00 ; 0
- 1674: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 1678: 6b 01 movw r12, r22
- 167a: 7c 01 movw r14, r24
- 167c: ab 81 ldd r26, Y+3 ; 0x03
- 167e: bc 81 ldd r27, Y+4 ; 0x04
- 1680: 6d 91 ld r22, X+
- 1682: 7c 91 ld r23, X
- 1684: 80 e0 ldi r24, 0x00 ; 0
- 1686: 90 e0 ldi r25, 0x00 ; 0
- 1688: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 168c: 4b 01 movw r8, r22
- 168e: 5c 01 movw r10, r24
- 1690: ee 85 ldd r30, Y+14 ; 0x0e
- 1692: ff 85 ldd r31, Y+15 ; 0x0f
- 1694: ee 0f add r30, r30
- 1696: ff 1f adc r31, r31
- 1698: ee 0f add r30, r30
- 169a: ff 1f adc r31, r31
- 169c: ea 5b subi r30, 0xBA ; 186
- 169e: fc 4f sbci r31, 0xFC ; 252
- 16a0: ff 87 std Y+15, r31 ; 0x0f
- 16a2: ee 87 std Y+14, r30 ; 0x0e
- 16a4: ad 81 ldd r26, Y+5 ; 0x05
- 16a6: be 81 ldd r27, Y+6 ; 0x06
- 16a8: 6d 91 ld r22, X+
- 16aa: 7c 91 ld r23, X
- 16ac: 80 e0 ldi r24, 0x00 ; 0
- 16ae: 90 e0 ldi r25, 0x00 ; 0
- 16b0: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 16b4: a7 01 movw r20, r14
- 16b6: 96 01 movw r18, r12
- 16b8: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 16bc: 2b 01 movw r4, r22
- 16be: 3c 01 movw r6, r24
- 16c0: 61 2f mov r22, r17
- 16c2: 70 e0 ldi r23, 0x00 ; 0
- 16c4: 80 e0 ldi r24, 0x00 ; 0
- 16c6: 90 e0 ldi r25, 0x00 ; 0
- 16c8: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 16cc: a5 01 movw r20, r10
- 16ce: 94 01 movw r18, r8
- 16d0: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 16d4: 9b 01 movw r18, r22
- 16d6: ac 01 movw r20, r24
- 16d8: c3 01 movw r24, r6
- 16da: b2 01 movw r22, r4
- 16dc: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
- 16e0: 2b 01 movw r4, r22
- 16e2: 3c 01 movw r6, r24
- 16e4: eb 85 ldd r30, Y+11 ; 0x0b
- 16e6: fc 85 ldd r31, Y+12 ; 0x0c
- 16e8: 60 81 ld r22, Z
- 16ea: 71 81 ldd r23, Z+1 ; 0x01
- 16ec: 80 e0 ldi r24, 0x00 ; 0
- 16ee: 90 e0 ldi r25, 0x00 ; 0
- 16f0: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 16f4: a5 01 movw r20, r10
- 16f6: 94 01 movw r18, r8
- 16f8: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
- 16fc: 9b 01 movw r18, r22
- 16fe: ac 01 movw r20, r24
- 1700: c3 01 movw r24, r6
- 1702: b2 01 movw r22, r4
- 1704: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
- 1708: a7 01 movw r20, r14
- 170a: 96 01 movw r18, r12
- 170c: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
- 1710: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi>
- 1714: ae 85 ldd r26, Y+14 ; 0x0e
- 1716: bf 85 ldd r27, Y+15 ; 0x0f
- 1718: 53 96 adiw r26, 0x13 ; 19
- 171a: 7c 93 st X, r23
- 171c: 6e 93 st -X, r22
- 171e: 52 97 sbiw r26, 0x12 ; 18
- preset[ch].curve[temp / 10].temp = temp;
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- }
-
- for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
- 1720: 16 5f subi r17, 0xF6 ; 246
- 1722: 10 3a cpi r17, 0xA0 ; 160
- 1724: 08 f4 brcc .+2 ; 0x1728 <__stack+0x629>
- 1726: 8a cf rjmp .-236 ; 0x163c <__stack+0x53d>
- 1728: 3f 80 ldd r3, Y+7 ; 0x07
- preset[ch].curve[temp / 10].temp = temp;
- preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- }
-
- if(strlen(preset[ch].header) == 0)
- 172a: 20 e5 ldi r18, 0x50 ; 80
- 172c: e9 85 ldd r30, Y+9 ; 0x09
- 172e: fa 85 ldd r31, Y+10 ; 0x0a
- 1730: 2e 9f mul r18, r30
- 1732: c0 01 movw r24, r0
- 1734: 2f 9f mul r18, r31
- 1736: 90 0d add r25, r0
- 1738: 11 24 eor r1, r1
- 173a: 89 5b subi r24, 0xB9 ; 185
- 173c: 9c 4f sbci r25, 0xFC ; 252
- 173e: dc 01 movw r26, r24
- 1740: 2c 91 ld r18, X
- 1742: 22 23 and r18, r18
- 1744: 09 f4 brne .+2 ; 0x1748 <__stack+0x649>
- 1746: 54 c0 rjmp .+168 ; 0x17f0 <__stack+0x6f1>
- {
- strncpy(preset[ch].header, "DEFAULT", 12);
- }
-
- preset[ch].number = heater[ch].preset;
- 1748: 80 e5 ldi r24, 0x50 ; 80
- 174a: 29 85 ldd r18, Y+9 ; 0x09
- 174c: 3a 85 ldd r19, Y+10 ; 0x0a
- 174e: 82 9f mul r24, r18
- 1750: f0 01 movw r30, r0
- 1752: 83 9f mul r24, r19
- 1754: f0 0d add r31, r0
- 1756: 11 24 eor r1, r1
- 1758: ea 5b subi r30, 0xBA ; 186
- 175a: fc 4f sbci r31, 0xFC ; 252
- 175c: 83 e1 ldi r24, 0x13 ; 19
- 175e: 82 9f mul r24, r18
- 1760: d0 01 movw r26, r0
- 1762: 83 9f mul r24, r19
- 1764: b0 0d add r27, r0
- 1766: 11 24 eor r1, r1
- 1768: a0 5e subi r26, 0xE0 ; 224
- 176a: bc 4f sbci r27, 0xFC ; 252
- 176c: 12 96 adiw r26, 0x02 ; 2
- 176e: 8c 91 ld r24, X
- 1770: 12 97 sbiw r26, 0x02 ; 2
- 1772: 80 83 st Z, r24
- preset[ch].gain = heater[ch].gain;
- 1774: 50 96 adiw r26, 0x10 ; 16
- 1776: 8c 91 ld r24, X
- 1778: 50 97 sbiw r26, 0x10 ; 16
- preset[ch].shift = heater[ch].shift;
- 177a: 85 87 std Z+13, r24 ; 0x0d
- 177c: 51 96 adiw r26, 0x11 ; 17
- 177e: 8c 91 ld r24, X
- preset[ch].drive = heater[ch].drive;
- 1780: 51 97 sbiw r26, 0x11 ; 17
- 1782: 86 87 std Z+14, r24 ; 0x0e
- 1784: 52 96 adiw r26, 0x12 ; 18
-
- SavePreset(ch);
- 1786: 8c 91 ld r24, X
- 1788: 87 87 std Z+15, r24 ; 0x0f
-
- LCD_SendCmd(LCD_CLR);
- 178a: 83 2d mov r24, r3
- 178c: 0e 94 01 15 call 0x2a02 ; 0x2a02 <SavePreset>
- 1790: 81 e0 ldi r24, 0x01 ; 1
- if(++delcnt > 300)
- {
- delcnt = 0;
- if((heater[ch].tcouple - tstart) < 5)
- {
- SwitchHeating(ch, OFF);
- 1792: d7 d6 rcall .+3502 ; 0x2542 <LCD_SendCmd>
- 1794: 45 cb rjmp .-2422 ; 0xe20 <AutoCalibration+0x84>
- 1796: 60 e0 ldi r22, 0x00 ; 0
- 1798: 83 2d mov r24, r3
- SwitchDrive(ch, OFF);
- 179a: d5 d9 rcall .-3158 ; 0xb46 <SwitchHeating>
- 179c: 60 e0 ldi r22, 0x00 ; 0
- 179e: 83 2d mov r24, r3
- LCD_SetPos(0, 0);
- 17a0: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
- 17a4: 60 e0 ldi r22, 0x00 ; 0
- 17a6: 80 e0 ldi r24, 0x00 ; 0
- fprintf(&lcd_stdout, "Íåäîñòàòî÷íûé ");
- 17a8: f1 d6 rcall .+3554 ; 0x258c <LCD_SetPos>
- 17aa: 24 e1 ldi r18, 0x14 ; 20
- 17ac: 31 e0 ldi r19, 0x01 ; 1
- 17ae: 40 e1 ldi r20, 0x10 ; 16
- 17b0: 50 e0 ldi r21, 0x00 ; 0
- 17b2: 61 e0 ldi r22, 0x01 ; 1
- 17b4: 70 e0 ldi r23, 0x00 ; 0
- 17b6: 89 e5 ldi r24, 0x59 ; 89
- 17b8: 91 e0 ldi r25, 0x01 ; 1
- 17ba: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- LCD_SetPos(0, 1);
- 17be: 61 e0 ldi r22, 0x01 ; 1
- 17c0: 80 e0 ldi r24, 0x00 ; 0
- 17c2: e4 d6 rcall .+3528 ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "òåïëîâîé êîíòàêò");
- 17c4: 24 e1 ldi r18, 0x14 ; 20
- 17c6: 31 e0 ldi r19, 0x01 ; 1
- 17c8: 40 e1 ldi r20, 0x10 ; 16
- 17ca: 50 e0 ldi r21, 0x00 ; 0
- 17cc: 61 e0 ldi r22, 0x01 ; 1
- 17ce: 70 e0 ldi r23, 0x00 ; 0
- 17d0: 8a e6 ldi r24, 0x6A ; 106
- 17d2: 91 e0 ldi r25, 0x01 ; 1
- 17d4: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- LoadPreset(ch);
- 17d8: 83 2d mov r24, r3
- 17da: 0e 94 be 14 call 0x297c ; 0x297c <LoadPreset>
- btn_act = 0;
- 17de: 10 92 f7 02 sts 0x02F7, r1 ; 0x8002f7 <btn_act>
- while(!btn_act);
- 17e2: 80 91 f7 02 lds r24, 0x02F7 ; 0x8002f7 <btn_act>
- 17e6: 88 23 and r24, r24
- 17e8: e1 f3 breq .-8 ; 0x17e2 <__stack+0x6e3>
- return(-1);
- 17ea: 8f ef ldi r24, 0xFF ; 255
- 17ec: 9f ef ldi r25, 0xFF ; 255
- 17ee: 1a cb rjmp .-2508 ; 0xe24 <AutoCalibration+0x88>
- preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
- }
-
- if(strlen(preset[ch].header) == 0)
- {
- strncpy(preset[ch].header, "DEFAULT", 12);
- 17f0: 4c e0 ldi r20, 0x0C ; 12
- 17f2: 50 e0 ldi r21, 0x00 ; 0
- 17f4: 6c ec ldi r22, 0xCC ; 204
- 17f6: 71 e0 ldi r23, 0x01 ; 1
- 17f8: 0e 94 6d 1d call 0x3ada ; 0x3ada <strncpy>
- 17fc: a5 cf rjmp .-182 ; 0x1748 <__stack+0x649>
- LoadPreset(ch);
- return (-1);
- }
- }
-
- for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
- 17fe: bf 81 ldd r27, Y+7 ; 0x07
- 1800: 2d 80 ldd r2, Y+5 ; 0x05
- 1802: bb 23 and r27, r27
- 1804: 09 f4 brne .+2 ; 0x1808 <__stack+0x709>
- 1806: d8 ce rjmp .-592 ; 0x15b8 <__stack+0x4b9>
- 1808: 1f ce rjmp .-962 ; 0x1448 <__stack+0x349>
- 0000180a <ProcessCommand>:
- }
- heater[ch].status.heating = OFF;
- }
- void ProcessCommand()
- {
- 180a: cf 93 push r28
- 180c: df 93 push r29
- uint8_t ch = ((rxdata.command & 0x80) >> 7) & 0x01;
- 180e: c0 91 ec 05 lds r28, 0x05EC ; 0x8005ec <rxdata+0x2>
- 1812: cc 1f adc r28, r28
- 1814: cc 27 eor r28, r28
- 1816: cc 1f adc r28, r28
- rxdata.command &= 0x7F;
- 1818: 80 91 ec 05 lds r24, 0x05EC ; 0x8005ec <rxdata+0x2>
- 181c: 8f 77 andi r24, 0x7F ; 127
- 181e: 80 93 ec 05 sts 0x05EC, r24 ; 0x8005ec <rxdata+0x2>
- txrequest = REQ_ACK;
- 1822: 81 e0 ldi r24, 0x01 ; 1
- 1824: 80 93 f3 02 sts 0x02F3, r24 ; 0x8002f3 <txrequest>
- switch(rxdata.command)
- 1828: e0 91 ec 05 lds r30, 0x05EC ; 0x8005ec <rxdata+0x2>
- 182c: 8e 2f mov r24, r30
- 182e: 90 e0 ldi r25, 0x00 ; 0
- 1830: 8a 30 cpi r24, 0x0A ; 10
- 1832: 91 05 cpc r25, r1
- 1834: 80 f4 brcc .+32 ; 0x1856 <ProcessCommand+0x4c>
- 1836: fc 01 movw r30, r24
- 1838: e2 5c subi r30, 0xC2 ; 194
- 183a: ff 4f sbci r31, 0xFF ; 255
- 183c: 0c 94 df 1a jmp 0x35be ; 0x35be <__tablejump2__>
- SwitchHeating(ch, OFF);
- SwitchDrive(ch, OFF);
- break;
-
- case CMD_SETTEMP:
- heater[ch].tset = rxdata.data[0];
- 1840: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
- 1844: 93 e1 ldi r25, 0x13 ; 19
- 1846: c9 9f mul r28, r25
- 1848: e0 01 movw r28, r0
- 184a: 11 24 eor r1, r1
- 184c: c0 5e subi r28, 0xE0 ; 224
- 184e: dc 4f sbci r29, 0xFC ; 252
- 1850: 90 e0 ldi r25, 0x00 ; 0
- 1852: 9b 87 std Y+11, r25 ; 0x0b
- 1854: 8a 87 std Y+10, r24 ; 0x0a
- ManualCalibration(ch);
- else if(heater[ch].status.calib == CAL_AUTO)
- AutoCalibration(ch);
- break;
- }
- }
- 1856: df 91 pop r29
- 1858: cf 91 pop r28
- 185a: 08 95 ret
- memcpy((uint8_t*)preset, (uint8_t*)rxdata.data, rxdata.len);
- SavePreset(ch);
- break;
-
- case CMD_HEATING:
- if(heater[ch].status.calib == CAL_MANUAL)
- 185c: 83 e1 ldi r24, 0x13 ; 19
- 185e: c8 9f mul r28, r24
- 1860: e0 01 movw r28, r0
- 1862: 11 24 eor r1, r1
- 1864: c0 5e subi r28, 0xE0 ; 224
- 1866: dc 4f sbci r29, 0xFC ; 252
- 1868: 88 81 ld r24, Y
- 186a: 82 95 swap r24
- 186c: 83 70 andi r24, 0x03 ; 3
- 186e: 82 30 cpi r24, 0x02 ; 2
- 1870: 91 f7 brne .-28 ; 0x1856 <ProcessCommand+0x4c>
- heater[ch].status.heating = rxdata.data[0];
- 1872: 90 91 ed 05 lds r25, 0x05ED ; 0x8005ed <rxdata+0x3>
- 1876: 88 81 ld r24, Y
- 1878: 90 fb bst r25, 0
- 187a: 82 f9 bld r24, 2
- 187c: 88 83 st Y, r24
- 187e: eb cf rjmp .-42 ; 0x1856 <ProcessCommand+0x4c>
- break;
-
- case CMD_CALIBRATION:
- heater[ch].status.calib = rxdata.data[0];
- 1880: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
- 1884: 83 70 andi r24, 0x03 ; 3
- 1886: 93 e1 ldi r25, 0x13 ; 19
- 1888: c9 9f mul r28, r25
- 188a: f0 01 movw r30, r0
- 188c: 11 24 eor r1, r1
- 188e: e0 5e subi r30, 0xE0 ; 224
- 1890: fc 4f sbci r31, 0xFC ; 252
- 1892: 98 2f mov r25, r24
- 1894: 92 95 swap r25
- 1896: 90 7f andi r25, 0xF0 ; 240
- 1898: 80 81 ld r24, Z
- 189a: 8f 7c andi r24, 0xCF ; 207
- 189c: 89 2b or r24, r25
- 189e: 80 83 st Z, r24
- cal_tmin = rxdata.data[1];
- 18a0: 80 91 ee 05 lds r24, 0x05EE ; 0x8005ee <rxdata+0x4>
- 18a4: 80 93 22 01 sts 0x0122, r24 ; 0x800122 <cal_tmin>
- cal_tmax = rxdata.data[2];
- 18a8: 80 91 ef 05 lds r24, 0x05EF ; 0x8005ef <rxdata+0x5>
- 18ac: 80 93 23 01 sts 0x0123, r24 ; 0x800123 <cal_tmax>
-
- if(heater[ch].status.calib == CAL_MANUAL)
- 18b0: 80 81 ld r24, Z
- 18b2: 82 95 swap r24
- 18b4: 83 70 andi r24, 0x03 ; 3
- 18b6: 82 30 cpi r24, 0x02 ; 2
- 18b8: 09 f4 brne .+2 ; 0x18bc <ProcessCommand+0xb2>
- 18ba: 7c c0 rjmp .+248 ; 0x19b4 <ProcessCommand+0x1aa>
- ManualCalibration(ch);
- else if(heater[ch].status.calib == CAL_AUTO)
- 18bc: 80 81 ld r24, Z
- 18be: 82 95 swap r24
- 18c0: 83 70 andi r24, 0x03 ; 3
- 18c2: 81 30 cpi r24, 0x01 ; 1
- 18c4: 41 f6 brne .-112 ; 0x1856 <ProcessCommand+0x4c>
- AutoCalibration(ch);
- 18c6: 8c 2f mov r24, r28
- break;
- }
- }
- 18c8: df 91 pop r29
- 18ca: cf 91 pop r28
- cal_tmax = rxdata.data[2];
-
- if(heater[ch].status.calib == CAL_MANUAL)
- ManualCalibration(ch);
- else if(heater[ch].status.calib == CAL_AUTO)
- AutoCalibration(ch);
- 18cc: 67 ca rjmp .-2866 ; 0xd9c <AutoCalibration>
- rxdata.command &= 0x7F;
- txrequest = REQ_ACK;
- switch(rxdata.command)
- {
- case CMD_RESET:
- ResetMCU();
- 18ce: 34 d9 rcall .-3480 ; 0xb38 <ResetMCU>
- 18d0: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
- break;
-
- case CMD_REQ:
- txrequest = rxdata.data[0];
- 18d4: 80 93 f3 02 sts 0x02F3, r24 ; 0x8002f3 <txrequest>
- 18d8: be cf rjmp .-132 ; 0x1856 <ProcessCommand+0x4c>
- break;
- 18da: 90 91 ed 05 lds r25, 0x05ED ; 0x8005ed <rxdata+0x3>
-
- case CMD_CHONOFF:
- heater[ch].status.onoff = rxdata.data[0];
- 18de: 83 e1 ldi r24, 0x13 ; 19
- 18e0: c8 9f mul r28, r24
- 18e2: f0 01 movw r30, r0
- 18e4: 11 24 eor r1, r1
- 18e6: e0 5e subi r30, 0xE0 ; 224
- 18e8: fc 4f sbci r31, 0xFC ; 252
- 18ea: 80 81 ld r24, Z
- 18ec: 90 fb bst r25, 0
- 18ee: 81 f9 bld r24, 1
- 18f0: 80 83 st Z, r24
- 18f2: 60 e0 ldi r22, 0x00 ; 0
- SwitchHeating(ch, OFF);
- 18f4: 8c 2f mov r24, r28
- 18f6: 27 d9 rcall .-3506 ; 0xb46 <SwitchHeating>
- 18f8: 60 e0 ldi r22, 0x00 ; 0
- SwitchDrive(ch, OFF);
- 18fa: 8c 2f mov r24, r28
- ManualCalibration(ch);
- else if(heater[ch].status.calib == CAL_AUTO)
- AutoCalibration(ch);
- break;
- }
- }
- 18fc: df 91 pop r29
- 18fe: cf 91 pop r28
- break;
-
- case CMD_CHONOFF:
- heater[ch].status.onoff = rxdata.data[0];
- SwitchHeating(ch, OFF);
- SwitchDrive(ch, OFF);
- 1900: de c7 rjmp .+4028 ; 0x28be <SwitchDrive>
- 1902: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
- case CMD_SETTEMP:
- heater[ch].tset = rxdata.data[0];
- break;
-
- case CMD_SETRANGE:
- heater[ch].gain = rxdata.data[0];
- 1906: 93 e1 ldi r25, 0x13 ; 19
- 1908: c9 9f mul r28, r25
- 190a: f0 01 movw r30, r0
- 190c: 11 24 eor r1, r1
- 190e: e0 5e subi r30, 0xE0 ; 224
- 1910: fc 4f sbci r31, 0xFC ; 252
- 1912: 80 8b std Z+16, r24 ; 0x10
- 1914: 80 91 ee 05 lds r24, 0x05EE ; 0x8005ee <rxdata+0x4>
- heater[ch].shift = rxdata.data[1];
- 1918: 81 8b std Z+17, r24 ; 0x11
- 191a: 60 91 ed 05 lds r22, 0x05ED ; 0x8005ed <rxdata+0x3>
- SetGainData(ch, rxdata.data[0]);
- 191e: 8c 2f mov r24, r28
- 1920: 52 d7 rcall .+3748 ; 0x27c6 <SetGainData>
- 1922: 60 91 ee 05 lds r22, 0x05EE ; 0x8005ee <rxdata+0x4>
- SetShiftData(ch, rxdata.data[1]);
- 1926: 8c 2f mov r24, r28
- ManualCalibration(ch);
- else if(heater[ch].status.calib == CAL_AUTO)
- AutoCalibration(ch);
- break;
- }
- }
- 1928: df 91 pop r29
- 192a: cf 91 pop r28
-
- case CMD_SETRANGE:
- heater[ch].gain = rxdata.data[0];
- heater[ch].shift = rxdata.data[1];
- SetGainData(ch, rxdata.data[0]);
- SetShiftData(ch, rxdata.data[1]);
- 192c: 7b c7 rjmp .+3830 ; 0x2824 <SetShiftData>
- 192e: 8c 2f mov r24, r28
- break;
-
- case CMD_SETVDRIVE:
- heater[ch].drive = rxdata.data[0];
- 1930: 90 e0 ldi r25, 0x00 ; 0
- 1932: 20 91 ed 05 lds r18, 0x05ED ; 0x8005ed <rxdata+0x3>
- 1936: 33 e1 ldi r19, 0x13 ; 19
- 1938: 38 9f mul r19, r24
- 193a: f0 01 movw r30, r0
- 193c: 39 9f mul r19, r25
- 193e: f0 0d add r31, r0
- 1940: 11 24 eor r1, r1
- 1942: e0 5e subi r30, 0xE0 ; 224
- 1944: fc 4f sbci r31, 0xFC ; 252
- 1946: 22 8b std Z+18, r18 ; 0x12
- 1948: 2d e0 ldi r18, 0x0D ; 13
- opamp[ch].drive = ((float)heater->drive / 25.76);
- 194a: 28 9f mul r18, r24
- 194c: e0 01 movw r28, r0
- 194e: 29 9f mul r18, r25
- 1950: d0 0d add r29, r0
- 1952: 11 24 eor r1, r1
- 1954: c2 57 subi r28, 0x72 ; 114
- 1956: d9 4f sbci r29, 0xF9 ; 249
- 1958: 60 91 32 03 lds r22, 0x0332 ; 0x800332 <heater+0x12>
- 195c: 70 e0 ldi r23, 0x00 ; 0
- 195e: 80 e0 ldi r24, 0x00 ; 0
- 1960: 90 e0 ldi r25, 0x00 ; 0
- 1962: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
- 1966: 2b e7 ldi r18, 0x7B ; 123
- 1968: 34 e1 ldi r19, 0x14 ; 20
- 196a: 4e ec ldi r20, 0xCE ; 206
- 196c: 51 e4 ldi r21, 0x41 ; 65
- 196e: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
- 1972: 69 87 std Y+9, r22 ; 0x09
- 1974: 7a 87 std Y+10, r23 ; 0x0a
- 1976: 8b 87 std Y+11, r24 ; 0x0b
- 1978: 9c 87 std Y+12, r25 ; 0x0c
- 197a: 6d cf rjmp .-294 ; 0x1856 <ProcessCommand+0x4c>
- break;
- 197c: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
- case CMD_SWPRESET:
- heater[ch].preset = rxdata.data[0];
- 1980: 93 e1 ldi r25, 0x13 ; 19
- 1982: c9 9f mul r28, r25
- 1984: f0 01 movw r30, r0
- 1986: 11 24 eor r1, r1
- 1988: e0 5e subi r30, 0xE0 ; 224
- 198a: fc 4f sbci r31, 0xFC ; 252
- LoadPreset(ch);
- 198c: 82 83 std Z+2, r24 ; 0x02
- 198e: 8c 2f mov r24, r28
- 1990: f5 d7 rcall .+4074 ; 0x297c <LoadPreset>
- ManualCalibration(ch);
- else if(heater[ch].status.calib == CAL_AUTO)
- AutoCalibration(ch);
- break;
- }
- }
- 1992: df 91 pop r29
- 1994: cf 91 pop r28
- break;
- case CMD_SWPRESET:
- heater[ch].preset = rxdata.data[0];
- LoadPreset(ch);
- SavePrefs();
- 1996: ce c7 rjmp .+3996 ; 0x2934 <SavePrefs>
- 1998: 40 91 eb 05 lds r20, 0x05EB ; 0x8005eb <rxdata+0x1>
- break;
-
- case CMD_LOADDATA:
- memcpy((uint8_t*)preset, (uint8_t*)rxdata.data, rxdata.len);
- 199c: 50 e0 ldi r21, 0x00 ; 0
- 199e: 6d ee ldi r22, 0xED ; 237
- 19a0: 75 e0 ldi r23, 0x05 ; 5
- 19a2: 86 e4 ldi r24, 0x46 ; 70
- 19a4: 93 e0 ldi r25, 0x03 ; 3
- 19a6: 0e 94 5d 1d call 0x3aba ; 0x3aba <memcpy>
- 19aa: 8c 2f mov r24, r28
- SavePreset(ch);
- 19ac: df 91 pop r29
- ManualCalibration(ch);
- else if(heater[ch].status.calib == CAL_AUTO)
- AutoCalibration(ch);
- break;
- }
- }
- 19ae: cf 91 pop r28
- 19b0: 0c 94 01 15 jmp 0x2a02 ; 0x2a02 <SavePreset>
- heater[ch].status.calib = rxdata.data[0];
- cal_tmin = rxdata.data[1];
- cal_tmax = rxdata.data[2];
-
- if(heater[ch].status.calib == CAL_MANUAL)
- ManualCalibration(ch);
- 19b4: 8c 2f mov r24, r28
- else if(heater[ch].status.calib == CAL_AUTO)
- AutoCalibration(ch);
- break;
- }
- }
- 19b6: df 91 pop r29
- 19b8: cf 91 pop r28
- heater[ch].status.calib = rxdata.data[0];
- cal_tmin = rxdata.data[1];
- cal_tmax = rxdata.data[2];
-
- if(heater[ch].status.calib == CAL_MANUAL)
- ManualCalibration(ch);
- 19ba: 72 c0 rjmp .+228 ; 0x1aa0 <ManualCalibration>
- 000019bc <UARTDataAvail>:
- 19bc: df 92 push r13
- heater[ch].status.circuit = circ;
- return circ;
- }
- void UARTDataAvail()
- {
- 19be: ef 92 push r14
- 19c0: ff 92 push r15
- 19c2: 0f 93 push r16
- 19c4: 1f 93 push r17
- 19c6: cf 93 push r28
- 19c8: df 93 push r29
- static uint8_t rxcnt;
- uint8_t localcnt = count;
- 19ca: 00 91 f6 02 lds r16, 0x02F6 ; 0x8002f6 <count>
-
- for(uint8_t i = 0; i < localcnt; i++)
- 19ce: 00 23 and r16, r16
- 19d0: 09 f4 brne .+2 ; 0x19d4 <UARTDataAvail+0x18>
- 19d2: 5e c0 rjmp .+188 ; 0x1a90 <UARTDataAvail+0xd4>
- 19d4: 01 50 subi r16, 0x01 ; 1
- 19d6: 10 e0 ldi r17, 0x00 ; 0
- 19d8: 0f 5f subi r16, 0xFF ; 255
- 19da: 1f 4f sbci r17, 0xFF ; 255
- 19dc: c0 e0 ldi r28, 0x00 ; 0
- 19de: d0 e0 ldi r29, 0x00 ; 0
- case 1:
- if(rxbyte < 100)
- {
- rxdata.len = rxbyte;
- rxdata.checksum += rxbyte;
- rxcnt++;
- 19e0: 82 e0 ldi r24, 0x02 ; 2
- 19e2: e8 2e mov r14, r24
- case 0:
- if(rxbyte == 0x55)
- {
- //rxdata.start = rxbyte;
- rxdata.checksum = rxbyte;
- rxcnt++;
- 19e4: dd 24 eor r13, r13
- 19e6: d3 94 inc r13
- break;
-
- case 2:
- rxdata.command = rxbyte;
- rxdata.checksum += rxbyte;
- rxcnt++;
- 19e8: 93 e0 ldi r25, 0x03 ; 3
- 19ea: f9 2e mov r15, r25
- 19ec: 17 c0 rjmp .+46 ; 0x1a1c <UARTDataAvail+0x60>
- uint8_t localcnt = count;
-
- for(uint8_t i = 0; i < localcnt; i++)
- {
- uint8_t rxbyte = rxbuf[i];
- switch(rxcnt)
- 19ee: 81 30 cpi r24, 0x01 ; 1
- 19f0: 08 f4 brcc .+2 ; 0x19f4 <UARTDataAvail+0x38>
- 19f2: 3f c0 rjmp .+126 ; 0x1a72 <UARTDataAvail+0xb6>
- 19f4: 82 30 cpi r24, 0x02 ; 2
- 19f6: 31 f5 brne .+76 ; 0x1a44 <UARTDataAvail+0x88>
- rxcnt = 0;
- }
- break;
-
- case 2:
- rxdata.command = rxbyte;
- 19f8: 90 93 ec 05 sts 0x05EC, r25 ; 0x8005ec <rxdata+0x2>
- rxdata.checksum += rxbyte;
- 19fc: 80 91 8d 06 lds r24, 0x068D ; 0x80068d <rxdata+0xa3>
- 1a00: 98 0f add r25, r24
- 1a02: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d <rxdata+0xa3>
- rxcnt++;
- 1a06: f0 92 f2 02 sts 0x02F2, r15 ; 0x8002f2 <__data_end>
- ProcessCommand();
- }
- rxcnt = 0;
- }
- }
- count--;
- 1a0a: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 <count>
- 1a0e: 81 50 subi r24, 0x01 ; 1
- 1a10: 80 93 f6 02 sts 0x02F6, r24 ; 0x8002f6 <count>
- 1a14: 21 96 adiw r28, 0x01 ; 1
- void UARTDataAvail()
- {
- static uint8_t rxcnt;
- uint8_t localcnt = count;
-
- for(uint8_t i = 0; i < localcnt; i++)
- 1a16: c0 17 cp r28, r16
- 1a18: d1 07 cpc r29, r17
- 1a1a: d1 f1 breq .+116 ; 0x1a90 <UARTDataAvail+0xd4>
- {
- uint8_t rxbyte = rxbuf[i];
- 1a1c: fe 01 movw r30, r28
- 1a1e: e8 50 subi r30, 0x08 ; 8
- 1a20: fd 4f sbci r31, 0xFD ; 253
- 1a22: 90 81 ld r25, Z
- switch(rxcnt)
- 1a24: 80 91 f2 02 lds r24, 0x02F2 ; 0x8002f2 <__data_end>
- 1a28: 81 30 cpi r24, 0x01 ; 1
- 1a2a: 09 f7 brne .-62 ; 0x19ee <UARTDataAvail+0x32>
- rxcnt++;
- }
- break;
-
- case 1:
- if(rxbyte < 100)
- 1a2c: 94 36 cpi r25, 0x64 ; 100
- 1a2e: 68 f5 brcc .+90 ; 0x1a8a <UARTDataAvail+0xce>
- {
- rxdata.len = rxbyte;
- 1a30: 90 93 eb 05 sts 0x05EB, r25 ; 0x8005eb <rxdata+0x1>
- rxdata.checksum += rxbyte;
- 1a34: 80 91 8d 06 lds r24, 0x068D ; 0x80068d <rxdata+0xa3>
- 1a38: 98 0f add r25, r24
- 1a3a: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d <rxdata+0xa3>
- rxcnt++;
- 1a3e: e0 92 f2 02 sts 0x02F2, r14 ; 0x8002f2 <__data_end>
- 1a42: e3 cf rjmp .-58 ; 0x1a0a <UARTDataAvail+0x4e>
- rxdata.checksum += rxbyte;
- rxcnt++;
- break;
-
- default:
- if(rxcnt < (rxdata.len + 3))
- 1a44: 20 91 eb 05 lds r18, 0x05EB ; 0x8005eb <rxdata+0x1>
- 1a48: 48 2f mov r20, r24
- 1a4a: 50 e0 ldi r21, 0x00 ; 0
- 1a4c: 30 e0 ldi r19, 0x00 ; 0
- 1a4e: 2e 5f subi r18, 0xFE ; 254
- 1a50: 3f 4f sbci r19, 0xFF ; 255
- 1a52: 24 17 cp r18, r20
- 1a54: 35 07 cpc r19, r21
- 1a56: a4 f0 brlt .+40 ; 0x1a80 <UARTDataAvail+0xc4>
- {
- rxdata.data[rxcnt - 3] = rxbyte;
- 1a58: fa 01 movw r30, r20
- 1a5a: e9 51 subi r30, 0x19 ; 25
- 1a5c: fa 4f sbci r31, 0xFA ; 250
- 1a5e: 93 83 std Z+3, r25 ; 0x03
- rxdata.checksum += rxbyte;
- 1a60: 20 91 8d 06 lds r18, 0x068D ; 0x80068d <rxdata+0xa3>
- 1a64: 92 0f add r25, r18
- 1a66: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d <rxdata+0xa3>
- rxcnt++;
- 1a6a: 8f 5f subi r24, 0xFF ; 255
- 1a6c: 80 93 f2 02 sts 0x02F2, r24 ; 0x8002f2 <__data_end>
- 1a70: cc cf rjmp .-104 ; 0x1a0a <UARTDataAvail+0x4e>
- {
- uint8_t rxbyte = rxbuf[i];
- switch(rxcnt)
- {
- case 0:
- if(rxbyte == 0x55)
- 1a72: 95 35 cpi r25, 0x55 ; 85
- 1a74: 51 f6 brne .-108 ; 0x1a0a <UARTDataAvail+0x4e>
- {
- //rxdata.start = rxbyte;
- rxdata.checksum = rxbyte;
- 1a76: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d <rxdata+0xa3>
- rxcnt++;
- 1a7a: d0 92 f2 02 sts 0x02F2, r13 ; 0x8002f2 <__data_end>
- 1a7e: c5 cf rjmp .-118 ; 0x1a0a <UARTDataAvail+0x4e>
- rxdata.checksum += rxbyte;
- rxcnt++;
- }
- else
- {
- if(rxbyte == rxdata.checksum)
- 1a80: 80 91 8d 06 lds r24, 0x068D ; 0x80068d <rxdata+0xa3>
- 1a84: 98 13 cpse r25, r24
- 1a86: 01 c0 rjmp .+2 ; 0x1a8a <UARTDataAvail+0xce>
- {
- ProcessCommand();
- 1a88: c0 de rcall .-640 ; 0x180a <ProcessCommand>
- rxdata.checksum += rxbyte;
- rxcnt++;
- }
- else
- {
- rxcnt = 0;
- 1a8a: 10 92 f2 02 sts 0x02F2, r1 ; 0x8002f2 <__data_end>
- 1a8e: bd cf rjmp .-134 ; 0x1a0a <UARTDataAvail+0x4e>
- rxcnt = 0;
- }
- }
- count--;
- }
- }
- 1a90: df 91 pop r29
- 1a92: cf 91 pop r28
- 1a94: 1f 91 pop r17
- 1a96: 0f 91 pop r16
- 1a98: ff 90 pop r15
- 1a9a: ef 90 pop r14
- 1a9c: df 90 pop r13
- 1a9e: 08 95 ret
- 00001aa0 <ManualCalibration>:
- }
- return 0;
- }
- void ManualCalibration(uint8_t ch)
- {
- 1aa0: ef 92 push r14
- 1aa2: ff 92 push r15
- 1aa4: 0f 93 push r16
- 1aa6: 1f 93 push r17
- 1aa8: cf 93 push r28
- 1aaa: df 93 push r29
- 1aac: c8 2f mov r28, r24
- uint8_t drive = 0;
- float vlow = 0.0, vhigh = 0.0;
-
- LCD_SendCmd(LCD_CLR);
- 1aae: 81 e0 ldi r24, 0x01 ; 1
- 1ab0: 48 d5 rcall .+2704 ; 0x2542 <LCD_SendCmd>
- LCD_SetPos(0, 0);
- 1ab2: 60 e0 ldi r22, 0x00 ; 0
- 1ab4: 80 e0 ldi r24, 0x00 ; 0
- 1ab6: 6a d5 rcall .+2772 ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "ÐÓ×Í. ÊÀËÈÁÐÎÂÊÀ");
- 1ab8: 24 e1 ldi r18, 0x14 ; 20
- 1aba: 31 e0 ldi r19, 0x01 ; 1
- 1abc: 40 e1 ldi r20, 0x10 ; 16
- 1abe: 50 e0 ldi r21, 0x00 ; 0
- 1ac0: 61 e0 ldi r22, 0x01 ; 1
- 1ac2: 70 e0 ldi r23, 0x00 ; 0
- 1ac4: 84 ed ldi r24, 0xD4 ; 212
- 1ac6: 91 e0 ldi r25, 0x01 ; 1
- 1ac8: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
-
- if(heater[ch].status.circuit == CIRC_MOSFET)
- 1acc: ec 2e mov r14, r28
- 1ace: f1 2c mov r15, r1
- 1ad0: 23 e1 ldi r18, 0x13 ; 19
- 1ad2: c2 9f mul r28, r18
- 1ad4: 80 01 movw r16, r0
- 1ad6: 11 24 eor r1, r1
- 1ad8: f8 01 movw r30, r16
- 1ada: e0 5e subi r30, 0xE0 ; 224
- 1adc: fc 4f sbci r31, 0xFC ; 252
- 1ade: 80 81 ld r24, Z
- 1ae0: 98 2f mov r25, r24
- 1ae2: 92 95 swap r25
- 1ae4: 96 95 lsr r25
- 1ae6: 96 95 lsr r25
- 1ae8: 93 70 andi r25, 0x03 ; 3
- 1aea: 81 81 ldd r24, Z+1 ; 0x01
- 1aec: 81 70 andi r24, 0x01 ; 1
- 1aee: 88 0f add r24, r24
- 1af0: 88 0f add r24, r24
- 1af2: 89 2b or r24, r25
- 1af4: d0 e0 ldi r29, 0x00 ; 0
- 1af6: 82 30 cpi r24, 0x02 ; 2
- 1af8: 09 f4 brne .+2 ; 0x1afc <ManualCalibration+0x5c>
- 1afa: 5e c0 rjmp .+188 ; 0x1bb8 <ManualCalibration+0x118>
- } while(heater[ch].current < 1000);
-
- drive--;
- }
-
- while(heater[ch].status.calib == CAL_MANUAL)
- 1afc: 83 e1 ldi r24, 0x13 ; 19
- 1afe: 8e 9d mul r24, r14
- 1b00: 80 01 movw r16, r0
- 1b02: 8f 9d mul r24, r15
- 1b04: 10 0d add r17, r0
- 1b06: 11 24 eor r1, r1
- 1b08: 00 5e subi r16, 0xE0 ; 224
- 1b0a: 1c 4f sbci r17, 0xFC ; 252
- 1b0c: f8 01 movw r30, r16
- 1b0e: 80 81 ld r24, Z
- 1b10: 82 95 swap r24
- 1b12: 83 70 andi r24, 0x03 ; 3
- 1b14: 82 30 cpi r24, 0x02 ; 2
- 1b16: a9 f5 brne .+106 ; 0x1b82 <ManualCalibration+0xe2>
- {
- if(count)
- 1b18: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 <count>
- 1b1c: 81 11 cpse r24, r1
- 1b1e: 46 c0 rjmp .+140 ; 0x1bac <ManualCalibration+0x10c>
- {
- UARTDataAvail();
- }
-
- if(txrequest)
- 1b20: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 <txrequest>
- 1b24: 81 11 cpse r24, r1
- 1b26: 3f c0 rjmp .+126 ; 0x1ba6 <ManualCalibration+0x106>
- {
- Transmit();
- }
-
- if(heater[ch].status.heating)
- 1b28: f8 01 movw r30, r16
- 1b2a: 80 81 ld r24, Z
- 1b2c: 82 ff sbrs r24, 2
- 1b2e: 33 c0 rjmp .+102 ; 0x1b96 <ManualCalibration+0xf6>
- {
- if(heater[ch].status.circuit == CIRC_MOSFET)
- 1b30: 80 81 ld r24, Z
- 1b32: 98 2f mov r25, r24
- 1b34: 92 95 swap r25
- 1b36: 96 95 lsr r25
- 1b38: 96 95 lsr r25
- 1b3a: 93 70 andi r25, 0x03 ; 3
- 1b3c: 81 81 ldd r24, Z+1 ; 0x01
- 1b3e: 81 70 andi r24, 0x01 ; 1
- 1b40: 88 0f add r24, r24
- 1b42: 88 0f add r24, r24
- 1b44: 89 2b or r24, r25
- 1b46: 82 30 cpi r24, 0x02 ; 2
- 1b48: 99 f1 breq .+102 ; 0x1bb0 <ManualCalibration+0x110>
- 1b4a: 8c 2f mov r24, r28
- 1b4c: 0e 94 17 01 call 0x22e ; 0x22e <SwitchHeating.part.0>
- 1b50: 87 eb ldi r24, 0xB7 ; 183
- 1b52: 9b e0 ldi r25, 0x0B ; 11
- 1b54: 01 97 sbiw r24, 0x01 ; 1
- 1b56: f1 f7 brne .-4 ; 0x1b54 <ManualCalibration+0xb4>
- 1b58: 00 c0 rjmp .+0 ; 0x1b5a <ManualCalibration+0xba>
- 1b5a: 00 00 nop
- SwitchDrive(ch, ON);
- SwitchHeating(ch, ON);
- _delay_ms(1);
- if(CurrMeasure(ch) > 2000)
- 1b5c: 8c 2f mov r24, r28
- 1b5e: 0e 94 0c 04 call 0x818 ; 0x818 <CurrMeasure>
- 1b62: 81 3d cpi r24, 0xD1 ; 209
- 1b64: 97 40 sbci r25, 0x07 ; 7
- 1b66: 90 f2 brcs .-92 ; 0x1b0c <ManualCalibration+0x6c>
- {
- drive--;
- 1b68: d1 50 subi r29, 0x01 ; 1
- SetDriveData(ch, drive);
- 1b6a: 6d 2f mov r22, r29
- 1b6c: 8c 2f mov r24, r28
- 1b6e: 88 d6 rcall .+3344 ; 0x2880 <SetDriveData>
- SwitchDrive(ch, ON);
- 1b70: 61 e0 ldi r22, 0x01 ; 1
- 1b72: 8c 2f mov r24, r28
- 1b74: a4 d6 rcall .+3400 ; 0x28be <SwitchDrive>
- 1b76: f8 01 movw r30, r16
- } while(heater[ch].current < 1000);
-
- drive--;
- }
-
- while(heater[ch].status.calib == CAL_MANUAL)
- 1b78: 80 81 ld r24, Z
- 1b7a: 82 95 swap r24
- 1b7c: 83 70 andi r24, 0x03 ; 3
- 1b7e: 82 30 cpi r24, 0x02 ; 2
- 1b80: 59 f2 breq .-106 ; 0x1b18 <ManualCalibration+0x78>
- 1b82: 80 81 ld r24, Z
- {
- SwitchHeating(ch, OFF);
- SwitchDrive(ch, OFF);
- }
- }
- heater[ch].status.heating = OFF;
- 1b84: 8b 7f andi r24, 0xFB ; 251
- 1b86: 80 83 st Z, r24
- 1b88: df 91 pop r29
- }
- 1b8a: cf 91 pop r28
- 1b8c: 1f 91 pop r17
- 1b8e: 0f 91 pop r16
- 1b90: ff 90 pop r15
- 1b92: ef 90 pop r14
- 1b94: 08 95 ret
- 1b96: 60 e0 ldi r22, 0x00 ; 0
- SwitchDrive(ch, ON);
- }
- }
- else
- {
- SwitchHeating(ch, OFF);
- 1b98: 8c 2f mov r24, r28
- 1b9a: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
- SwitchDrive(ch, OFF);
- 1b9e: 60 e0 ldi r22, 0x00 ; 0
- 1ba0: 8c 2f mov r24, r28
- 1ba2: 8d d6 rcall .+3354 ; 0x28be <SwitchDrive>
- 1ba4: b3 cf rjmp .-154 ; 0x1b0c <ManualCalibration+0x6c>
- UARTDataAvail();
- }
-
- if(txrequest)
- {
- Transmit();
- 1ba6: 0e 94 00 05 call 0xa00 ; 0xa00 <Transmit>
-
- while(heater[ch].status.calib == CAL_MANUAL)
- {
- if(count)
- {
- UARTDataAvail();
- 1baa: be cf rjmp .-132 ; 0x1b28 <ManualCalibration+0x88>
- 1bac: 07 df rcall .-498 ; 0x19bc <UARTDataAvail>
- 1bae: b8 cf rjmp .-144 ; 0x1b20 <ManualCalibration+0x80>
- }
-
- if(heater[ch].status.heating)
- {
- if(heater[ch].status.circuit == CIRC_MOSFET)
- SwitchDrive(ch, ON);
- 1bb0: 61 e0 ldi r22, 0x01 ; 1
- 1bb2: 8c 2f mov r24, r28
- 1bb4: 84 d6 rcall .+3336 ; 0x28be <SwitchDrive>
- 1bb6: c9 cf rjmp .-110 ; 0x1b4a <ManualCalibration+0xaa>
- 1bb8: 8f 01 movw r16, r30
- _delay_ms(1);
- CurrMeasure(ch);
- SwitchHeating(ch, OFF);
- SwitchDrive(ch, OFF);
- drive++;
- } while(heater[ch].current < 1000);
- 1bba: 02 5f subi r16, 0xF2 ; 242
- 1bbc: 1f 4f sbci r17, 0xFF ; 255
- 1bbe: 01 c0 rjmp .+2 ; 0x1bc2 <ManualCalibration+0x122>
- SwitchHeating(ch, ON);
- _delay_ms(1);
- CurrMeasure(ch);
- SwitchHeating(ch, OFF);
- SwitchDrive(ch, OFF);
- drive++;
- 1bc0: d2 2f mov r29, r18
- fprintf(&lcd_stdout, "ÐÓ×Í. ÊÀËÈÁÐÎÂÊÀ");
-
- if(heater[ch].status.circuit == CIRC_MOSFET)
- {
- do {
- SetDriveData(ch, drive);
- 1bc2: 6d 2f mov r22, r29
- 1bc4: 8c 2f mov r24, r28
- 1bc6: 5c d6 rcall .+3256 ; 0x2880 <SetDriveData>
- 1bc8: 61 e0 ldi r22, 0x01 ; 1
- SwitchDrive(ch, ON);
- 1bca: 8c 2f mov r24, r28
- 1bcc: 78 d6 rcall .+3312 ; 0x28be <SwitchDrive>
- 1bce: 8c 2f mov r24, r28
- 1bd0: 0e 94 17 01 call 0x22e ; 0x22e <SwitchHeating.part.0>
- 1bd4: 87 eb ldi r24, 0xB7 ; 183
- 1bd6: 9b e0 ldi r25, 0x0B ; 11
- 1bd8: 01 97 sbiw r24, 0x01 ; 1
- 1bda: f1 f7 brne .-4 ; 0x1bd8 <ManualCalibration+0x138>
- 1bdc: 00 c0 rjmp .+0 ; 0x1bde <ManualCalibration+0x13e>
- 1bde: 00 00 nop
- 1be0: 8c 2f mov r24, r28
- 1be2: 0e 94 0c 04 call 0x818 ; 0x818 <CurrMeasure>
- SwitchHeating(ch, ON);
- _delay_ms(1);
- CurrMeasure(ch);
- 1be6: 60 e0 ldi r22, 0x00 ; 0
- SwitchHeating(ch, OFF);
- 1be8: 8c 2f mov r24, r28
- 1bea: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
- 1bee: 60 e0 ldi r22, 0x00 ; 0
- SwitchDrive(ch, OFF);
- 1bf0: 8c 2f mov r24, r28
- 1bf2: 65 d6 rcall .+3274 ; 0x28be <SwitchDrive>
- 1bf4: 21 e0 ldi r18, 0x01 ; 1
- 1bf6: 2d 0f add r18, r29
- drive++;
- 1bf8: f8 01 movw r30, r16
- 1bfa: 80 81 ld r24, Z
- } while(heater[ch].current < 1000);
- 1bfc: 91 81 ldd r25, Z+1 ; 0x01
- 1bfe: 88 3e cpi r24, 0xE8 ; 232
- 1c00: 93 40 sbci r25, 0x03 ; 3
- 1c02: f0 f2 brcs .-68 ; 0x1bc0 <ManualCalibration+0x120>
- 1c04: 7b cf rjmp .-266 ; 0x1afc <ManualCalibration+0x5c>
- 00001c06 <LoadingScreen>:
- 1c06: ff 92 push r15
- 1c08: 0f 93 push r16
- break;
- }
- }
- void LoadingScreen()
- {
- 1c0a: 1f 93 push r17
- 1c0c: cf 93 push r28
- 1c0e: df 93 push r29
- 1c10: 8f e5 ldi r24, 0x5F ; 95
- 1c12: 9a ee ldi r25, 0xEA ; 234
- 1c14: 01 97 sbiw r24, 0x01 ; 1
- 1c16: f1 f7 brne .-4 ; 0x1c14 <LoadingScreen+0xe>
- 1c18: 00 c0 rjmp .+0 ; 0x1c1a <LoadingScreen+0x14>
- 1c1a: 00 00 nop
- uint8_t c = 0xFF, i = 0, d = 0, btn = 0;
- do
- {
- _delay_ms(20);
- LCD_SetPos(i, 0);
- 1c1c: 60 e0 ldi r22, 0x00 ; 0
- 1c1e: 80 e0 ldi r24, 0x00 ; 0
- 1c20: b5 d4 rcall .+2410 ; 0x258c <LCD_SetPos>
- LCD_SendData(c);
- 1c22: 8f ef ldi r24, 0xFF ; 255
- 1c24: 73 d4 rcall .+2278 ; 0x250c <LCD_SendData>
- LCD_SetPos(15 - i, 1);
- 1c26: 61 e0 ldi r22, 0x01 ; 1
- 1c28: 8f e0 ldi r24, 0x0F ; 15
- LCD_SendData(c);
- 1c2a: b0 d4 rcall .+2400 ; 0x258c <LCD_SetPos>
- 1c2c: 8f ef ldi r24, 0xFF ; 255
- 1c2e: 6e d4 rcall .+2268 ; 0x250c <LCD_SendData>
- }
- }
- void LoadingScreen()
- {
- uint8_t c = 0xFF, i = 0, d = 0, btn = 0;
- 1c30: 10 e0 ldi r17, 0x00 ; 0
- _delay_ms(20);
- LCD_SetPos(i, 0);
- LCD_SendData(c);
- LCD_SetPos(15 - i, 1);
- LCD_SendData(c);
- if(++i > 15)
- 1c32: c1 e0 ldi r28, 0x01 ; 1
- }
- }
- void LoadingScreen()
- {
- uint8_t c = 0xFF, i = 0, d = 0, btn = 0;
- 1c34: df ef ldi r29, 0xFF ; 255
- do
- {
- _delay_ms(20);
- LCD_SetPos(i, 0);
- LCD_SendData(c);
- LCD_SetPos(15 - i, 1);
- 1c36: 0f e0 ldi r16, 0x0F ; 15
- LCD_SendData(c);
- if(++i > 15)
- {
- c ^= ~' ';
- 1c38: 8f ed ldi r24, 0xDF ; 223
- 1c3a: f8 2e mov r15, r24
- i = 0;
- d++;
- }
- btn = ~((BTNPIN >> 4) | 0xF0);
- 1c3c: 89 b1 in r24, 0x09 ; 9
- }
- while(btn || (d < 2));
- 1c3e: 82 95 swap r24
- 1c40: 8f 70 andi r24, 0x0F ; 15
- 1c42: 80 6f ori r24, 0xF0 ; 240
- 1c44: 8f 3f cpi r24, 0xFF ; 255
- 1c46: e9 f0 breq .+58 ; 0x1c82 <LoadingScreen+0x7c>
- 1c48: 8f e5 ldi r24, 0x5F ; 95
- 1c4a: 9a ee ldi r25, 0xEA ; 234
- 1c4c: 01 97 sbiw r24, 0x01 ; 1
- 1c4e: f1 f7 brne .-4 ; 0x1c4c <LoadingScreen+0x46>
- 1c50: 00 c0 rjmp .+0 ; 0x1c52 <LoadingScreen+0x4c>
- {
- uint8_t c = 0xFF, i = 0, d = 0, btn = 0;
- do
- {
- _delay_ms(20);
- LCD_SetPos(i, 0);
- 1c52: 00 00 nop
- 1c54: 60 e0 ldi r22, 0x00 ; 0
- 1c56: 8c 2f mov r24, r28
- LCD_SendData(c);
- 1c58: 99 d4 rcall .+2354 ; 0x258c <LCD_SetPos>
- 1c5a: 8d 2f mov r24, r29
- LCD_SetPos(15 - i, 1);
- 1c5c: 57 d4 rcall .+2222 ; 0x250c <LCD_SendData>
- 1c5e: 61 e0 ldi r22, 0x01 ; 1
- 1c60: 80 2f mov r24, r16
- 1c62: 8c 1b sub r24, r28
- 1c64: 93 d4 rcall .+2342 ; 0x258c <LCD_SetPos>
- LCD_SendData(c);
- 1c66: 8d 2f mov r24, r29
- 1c68: 51 d4 rcall .+2210 ; 0x250c <LCD_SendData>
- 1c6a: cf 5f subi r28, 0xFF ; 255
- if(++i > 15)
- 1c6c: c0 31 cpi r28, 0x10 ; 16
- 1c6e: 31 f7 brne .-52 ; 0x1c3c <LoadingScreen+0x36>
- 1c70: df 25 eor r29, r15
- {
- c ^= ~' ';
- 1c72: 1f 5f subi r17, 0xFF ; 255
- i = 0;
- d++;
- 1c74: c0 e0 ldi r28, 0x00 ; 0
- LCD_SetPos(15 - i, 1);
- LCD_SendData(c);
- if(++i > 15)
- {
- c ^= ~' ';
- i = 0;
- 1c76: 89 b1 in r24, 0x09 ; 9
- d++;
- }
- btn = ~((BTNPIN >> 4) | 0xF0);
- 1c78: 82 95 swap r24
- }
- while(btn || (d < 2));
- 1c7a: 8f 70 andi r24, 0x0F ; 15
- 1c7c: 80 6f ori r24, 0xF0 ; 240
- 1c7e: 8f 3f cpi r24, 0xFF ; 255
- 1c80: 19 f7 brne .-58 ; 0x1c48 <LoadingScreen+0x42>
- 1c82: 12 30 cpi r17, 0x02 ; 2
- 1c84: 08 f3 brcs .-62 ; 0x1c48 <LoadingScreen+0x42>
- LCD_SendCmd(LCD_CLR);
- 1c86: 81 e0 ldi r24, 0x01 ; 1
- }
- 1c88: df 91 pop r29
- 1c8a: cf 91 pop r28
- 1c8c: 1f 91 pop r17
- 1c8e: 0f 91 pop r16
- 1c90: ff 90 pop r15
- d++;
- }
- btn = ~((BTNPIN >> 4) | 0xF0);
- }
- while(btn || (d < 2));
- LCD_SendCmd(LCD_CLR);
- 1c92: 57 c4 rjmp .+2222 ; 0x2542 <LCD_SendCmd>
- 00001c94 <main>:
- 1c94: cf 93 push r28
- }
- int main()
- {
- 1c96: df 93 push r29
- 1c98: 00 d0 rcall .+0 ; 0x1c9a <main+0x6>
- 1c9a: 00 d0 rcall .+0 ; 0x1c9c <main+0x8>
- 1c9c: cd b7 in r28, 0x3d ; 61
- 1c9e: de b7 in r29, 0x3e ; 62
- uint8_t ch = CH0;
- uint8_t tmp = 0;
- uint8_t display = DISP_MAIN;
- btn_t button;
-
- menu_str *menu = (menu_str*)calloc(sizeof(menu_str), 1);
- 1ca0: 61 e0 ldi r22, 0x01 ; 1
- 1ca2: 70 e0 ldi r23, 0x00 ; 0
- 1ca4: 83 e0 ldi r24, 0x03 ; 3
- 1ca6: 90 e0 ldi r25, 0x00 ; 0
- 1ca8: 0e 94 3f 1b call 0x367e ; 0x367e <calloc>
- 1cac: 4c 01 movw r8, r24
-
- memset(heater, 0x00, sizeof(heater));
- 1cae: 86 e2 ldi r24, 0x26 ; 38
- 1cb0: e0 e2 ldi r30, 0x20 ; 32
- 1cb2: f3 e0 ldi r31, 0x03 ; 3
- 1cb4: df 01 movw r26, r30
- 1cb6: 1d 92 st X+, r1
- 1cb8: 8a 95 dec r24
- 1cba: e9 f7 brne .-6 ; 0x1cb6 <main+0x22>
- memset(opamp, 0x00, sizeof(opamp));
- 1cbc: 8a e1 ldi r24, 0x1A ; 26
- 1cbe: ee e8 ldi r30, 0x8E ; 142
- 1cc0: f6 e0 ldi r31, 0x06 ; 6
- 1cc2: df 01 movw r26, r30
- 1cc4: 1d 92 st X+, r1
- 1cc6: 8a 95 dec r24
- 1cc8: e9 f7 brne .-6 ; 0x1cc4 <main+0x30>
- memset(preset, 0x00, sizeof(preset));
- 1cca: 80 ea ldi r24, 0xA0 ; 160
- 1ccc: e6 e4 ldi r30, 0x46 ; 70
- 1cce: f3 e0 ldi r31, 0x03 ; 3
- 1cd0: df 01 movw r26, r30
- 1cd2: 1d 92 st X+, r1
- 1cd4: 8a 95 dec r24
- 1cd6: e9 f7 brne .-6 ; 0x1cd2 <main+0x3e>
- opamp[CH0].ch = heater[CH0].status.channel = CH0;
- 1cd8: 80 91 20 03 lds r24, 0x0320 ; 0x800320 <heater>
- 1cdc: 8e 7f andi r24, 0xFE ; 254
- 1cde: 80 93 20 03 sts 0x0320, r24 ; 0x800320 <heater>
- opamp[CH1].ch = heater[CH1].status.channel = CH1;
- 1ce2: 80 91 33 03 lds r24, 0x0333 ; 0x800333 <heater+0x13>
- 1ce6: 81 60 ori r24, 0x01 ; 1
- 1ce8: 80 93 33 03 sts 0x0333, r24 ; 0x800333 <heater+0x13>
- 1cec: 81 e0 ldi r24, 0x01 ; 1
- 1cee: 80 93 9b 06 sts 0x069B, r24 ; 0x80069b <opamp+0xd>
-
- heater[CH0].tset = heater[CH1].tset = 25;
- 1cf2: 89 e1 ldi r24, 0x19 ; 25
- 1cf4: 90 e0 ldi r25, 0x00 ; 0
- 1cf6: 90 93 3e 03 sts 0x033E, r25 ; 0x80033e <heater+0x1e>
- 1cfa: 80 93 3d 03 sts 0x033D, r24 ; 0x80033d <heater+0x1d>
- 1cfe: 90 93 2b 03 sts 0x032B, r25 ; 0x80032b <heater+0xb>
- 1d02: 80 93 2a 03 sts 0x032A, r24 ; 0x80032a <heater+0xa>
- stdout = &uart_stdout;
- 1d06: 86 e0 ldi r24, 0x06 ; 6
- 1d08: 91 e0 ldi r25, 0x01 ; 1
- 1d0a: 90 93 af 06 sts 0x06AF, r25 ; 0x8006af <__iob+0x3>
- 1d0e: 80 93 ae 06 sts 0x06AE, r24 ; 0x8006ae <__iob+0x2>
-
- init();
- 1d12: 0e 94 23 02 call 0x446 ; 0x446 <init>
- LCD_Init();
- 1d16: 6f d4 rcall .+2270 ; 0x25f6 <LCD_Init>
-
- LoadingScreen();
- 1d18: 76 df rcall .-276 ; 0x1c06 <LoadingScreen>
- LoadPrefs();
- 1d1a: e2 d5 rcall .+3012 ; 0x28e0 <LoadPrefs>
- LoadPreset(CH0);
- 1d1c: 80 e0 ldi r24, 0x00 ; 0
- 1d1e: 2e d6 rcall .+3164 ; 0x297c <LoadPreset>
- LoadPreset(CH1);
- 1d20: 81 e0 ldi r24, 0x01 ; 1
- 1d22: 2c d6 rcall .+3160 ; 0x297c <LoadPreset>
- 1d24: 80 e0 ldi r24, 0x00 ; 0
-
- //SwitchPower(ON);
-
- CircuitDetect(CH0);
- 1d26: 0e 94 23 06 call 0xc46 ; 0xc46 <CircuitDetect>
- 1d2a: 81 e0 ldi r24, 0x01 ; 1
- CircuitDetect(CH1);
- 1d2c: 0e 94 23 06 call 0xc46 ; 0xc46 <CircuitDetect>
- 1d30: 78 94 sei
-
- sei();
- 1d32: 0e 94 00 05 call 0xa00 ; 0xa00 <Transmit>
-
- Transmit();
- 1d36: 11 e0 ldi r17, 0x01 ; 1
- int main()
- {
- uint8_t ch = CH0;
- uint8_t tmp = 0;
- uint8_t display = DISP_MAIN;
- 1d38: 1b 82 std Y+3, r1 ; 0x03
- LCD_SendCmd(LCD_CLR);
- }
- int main()
- {
- uint8_t ch = CH0;
- 1d3a: 77 e0 ldi r23, 0x07 ; 7
- /* ------------- DISPLAY SECTION ----------------- */
- tick2 = 0;
- if(display == DISP_MAIN)
- {
- LCD_SetPos(0, 0);
- fprintf(&lcd_stdout, "K%.1u #%.2u Tï=", ch + 1, heater[ch].preset);
- 1d3c: 27 2e mov r2, r23
- 1d3e: 72 e0 ldi r23, 0x02 ; 2
- 1d40: 37 2e mov r3, r23
- 1d42: b9 81 ldd r27, Y+1 ; 0x01
- 1d44: bc 83 std Y+4, r27 ; 0x04
- 1d46: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 <count>
-
- Transmit();
-
- while(1)
- {
- if(count)
- 1d4a: 81 11 cpse r24, r1
- 1d4c: 9e c0 rjmp .+316 ; 0x1e8a <main+0x1f6>
- 1d4e: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 <txrequest>
- {
- UARTDataAvail();
- }
-
- if(txrequest)
- 1d52: 81 11 cpse r24, r1
- 1d54: 66 c0 rjmp .+204 ; 0x1e22 <main+0x18e>
- 1d56: 80 91 20 03 lds r24, 0x0320 ; 0x800320 <heater>
- {
- Transmit();
- }
-
- if(heater[CH0].status.ocp || heater[CH1].status.ocp)
- 1d5a: 83 fd sbrc r24, 3
- 1d5c: 68 c0 rjmp .+208 ; 0x1e2e <main+0x19a>
- 1d5e: 80 91 33 03 lds r24, 0x0333 ; 0x800333 <heater+0x13>
- 1d62: 83 fd sbrc r24, 3
- 1d64: 64 c0 rjmp .+200 ; 0x1e2e <main+0x19a>
- 1d66: 80 91 f5 02 lds r24, 0x02F5 ; 0x8002f5 <tick1>
- fprintf(&lcd_stdout, " ÄËß ÑÁÐÎÑÀ");
- while(((BTNPIN >> 4) | 0xF0) != 0xF7);
- ResetMCU();
- }
-
- if(tick1)
- 1d6a: 81 11 cpse r24, r1
- 1d6c: 90 c0 rjmp .+288 ; 0x1e8e <main+0x1fa>
- 1d6e: 80 91 f4 02 lds r24, 0x02F4 ; 0x8002f4 <tick2>
- }
- }
- ch = tmp;
- } ////// if(tick1) end
-
- if(tick2)
- 1d72: 88 23 and r24, r24
- 1d74: 41 f0 breq .+16 ; 0x1d86 <main+0xf2>
- 1d76: 10 92 f4 02 sts 0x02F4, r1 ; 0x8002f4 <tick2>
- {
- /* ------------- DISPLAY SECTION ----------------- */
- tick2 = 0;
- 1d7a: 11 30 cpi r17, 0x01 ; 1
- if(display == DISP_MAIN)
- 1d7c: 09 f4 brne .+2 ; 0x1d80 <main+0xec>
- 1d7e: 2d c1 rjmp .+602 ; 0x1fda <main+0x346>
- 1d80: 13 30 cpi r17, 0x03 ; 3
- button.holded = 1;
- btn_act = 1;
- }
- }
- }
- else if(display == DISP_VER)
- 1d82: 09 f4 brne .+2 ; 0x1d86 <main+0xf2>
- 1d84: 2a c2 rjmp .+1108 ; 0x21da <main+0x546>
- 1d86: 80 91 f7 02 lds r24, 0x02F7 ; 0x8002f7 <btn_act>
- //txrequest = REQ_MAINDATA;
- //Transmit();
- } ////// if(tick2) end
-
- /* ---------------- BUTTON SECTION --------------- */
- if(btn_act)
- 1d8a: 88 23 and r24, r24
- 1d8c: e1 f2 breq .-72 ; 0x1d46 <main+0xb2>
- 1d8e: 8f e5 ldi r24, 0x5F ; 95
- 1d90: 9a ee ldi r25, 0xEA ; 234
- 1d92: 01 97 sbiw r24, 0x01 ; 1
- 1d94: f1 f7 brne .-4 ; 0x1d92 <main+0xfe>
- 1d96: 00 c0 rjmp .+0 ; 0x1d98 <main+0x104>
- 1d98: 00 00 nop
- 1d9a: 10 92 f7 02 sts 0x02F7, r1 ; 0x8002f7 <btn_act>
- {
- _delay_ms(20);
- btn_act = 0;
- 1d9e: 89 b1 in r24, 0x09 ; 9
- button.code = ~((BTNPIN >> 4) | 0xF0);
- 1da0: 82 95 swap r24
- 1da2: 8f 70 andi r24, 0x0F ; 15
- 1da4: 80 95 com r24
- 1da6: 8f 70 andi r24, 0x0F ; 15
- 1da8: 94 2d mov r25, r4
- if((button.code != 0x00) && (!button.holded)) // Button down event
- 1daa: 92 95 swap r25
- 1dac: 90 7f andi r25, 0xF0 ; 240
- 1dae: 98 2b or r25, r24
- 1db0: 88 23 and r24, r24
- 1db2: 09 f4 brne .+2 ; 0x1db6 <main+0x122>
- 1db4: d7 c0 rjmp .+430 ; 0x1f64 <main+0x2d0>
- 1db6: 9c 81 ldd r25, Y+4 ; 0x04
- 1db8: 60 fa bst r6, 0
- 1dba: 90 f9 bld r25, 0
- 1dbc: 50 fa bst r5, 0
- 1dbe: 91 f9 bld r25, 1
- 1dc0: 70 fa bst r7, 0
- 1dc2: 92 f9 bld r25, 2
- 1dc4: 97 70 andi r25, 0x07 ; 7
- 1dc6: 99 83 std Y+1, r25 ; 0x01
- 1dc8: 90 2f mov r25, r16
- 1dca: 99 0f add r25, r25
- 1dcc: 99 0f add r25, r25
- 1dce: 99 0f add r25, r25
- 1dd0: a9 81 ldd r26, Y+1 ; 0x01
- 1dd2: a9 2b or r26, r25
- 1dd4: ac 83 std Y+4, r26 ; 0x04
- 1dd6: a2 fd sbrc r26, 2
- 1dd8: df c0 rjmp .+446 ; 0x1f98 <main+0x304>
- 1dda: 11 30 cpi r17, 0x01 ; 1
- {
- if(display == DISP_MAIN)
- 1ddc: 09 f0 breq .+2 ; 0x1de0 <main+0x14c>
- 1dde: b3 cf rjmp .-154 ; 0x1d46 <main+0xb2>
- 1de0: 82 30 cpi r24, 0x02 ; 2
- {
- button.pressed = 1;
- button.released = 0;
- button.prev_code = button.code;
- switch(button.code)
- 1de2: 09 f4 brne .+2 ; 0x1de6 <main+0x152>
- 1de4: d9 c2 rjmp .+1458 ; 0x2398 <main+0x704>
- 1de6: 08 f4 brcc .+2 ; 0x1dea <main+0x156>
- 1de8: c6 c2 rjmp .+1420 ; 0x2376 <main+0x6e2>
- 1dea: 83 30 cpi r24, 0x03 ; 3
- 1dec: 09 f4 brne .+2 ; 0x1df0 <main+0x15c>
- 1dee: ec c2 rjmp .+1496 ; 0x23c8 <main+0x734>
- 1df0: 84 30 cpi r24, 0x04 ; 4
- 1df2: 09 f0 breq .+2 ; 0x1df6 <main+0x162>
- 1df4: e4 c2 rjmp .+1480 ; 0x23be <main+0x72a>
- 1df6: d4 01 movw r26, r8
- LCD_SendCmd(LCD_CLR);
- display = DISP_VER;
- break;
-
- case 0x04:
- menu->set = (menu->set + 1) % 3;
- 1df8: 8c 91 ld r24, X
- 1dfa: 90 e0 ldi r25, 0x00 ; 0
- 1dfc: 01 96 adiw r24, 0x01 ; 1
- 1dfe: 63 e0 ldi r22, 0x03 ; 3
- 1e00: 70 e0 ldi r23, 0x00 ; 0
- 1e02: 0e 94 cc 1a call 0x3598 ; 0x3598 <__divmodhi4>
- 1e06: f4 01 movw r30, r8
- 1e08: 80 83 st Z, r24
- 1e0a: 88 23 and r24, r24
- if(menu->set == 0)
- 1e0c: 09 f4 brne .+2 ; 0x1e10 <main+0x17c>
- 1e0e: ee c2 rjmp .+1500 ; 0x23ec <main+0x758>
- 1e10: d4 01 movw r26, r8
- SavePrefs();
- menu->blink_cnt = 0;
- 1e12: 11 96 adiw r26, 0x01 ; 1
- 1e14: 1c 92 st X, r1
- 1e16: 84 e0 ldi r24, 0x04 ; 4
- break;
- 1e18: 48 2e mov r4, r24
- 1e1a: 51 2c mov r5, r1
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- 1e1c: 66 24 eor r6, r6
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 1e1e: 63 94 inc r6
- 1e20: 92 cf rjmp .-220 ; 0x1d46 <main+0xb2>
- case 0x04:
- menu->set = (menu->set + 1) % 3;
- if(menu->set == 0)
- SavePrefs();
- menu->blink_cnt = 0;
- break;
- 1e22: 0e 94 00 05 call 0xa00 ; 0xa00 <Transmit>
- UARTDataAvail();
- }
-
- if(txrequest)
- {
- Transmit();
- 1e26: 80 91 20 03 lds r24, 0x0320 ; 0x800320 <heater>
- }
-
- if(heater[CH0].status.ocp || heater[CH1].status.ocp)
- 1e2a: 83 ff sbrs r24, 3
- 1e2c: 98 cf rjmp .-208 ; 0x1d5e <main+0xca>
- {
- LCD_SetPos(0, 0);
- 1e2e: 60 e0 ldi r22, 0x00 ; 0
- 1e30: 80 e0 ldi r24, 0x00 ; 0
- 1e32: ac d3 rcall .+1880 ; 0x258c <LCD_SetPos>
- 1e34: 24 e1 ldi r18, 0x14 ; 20
- fprintf(&lcd_stdout, "ÇÀÙÈÒÀ ÏÎ ÒÎÊÓ!!");
- 1e36: 31 e0 ldi r19, 0x01 ; 1
- 1e38: 40 e1 ldi r20, 0x10 ; 16
- 1e3a: 50 e0 ldi r21, 0x00 ; 0
- 1e3c: 61 e0 ldi r22, 0x01 ; 1
- 1e3e: 70 e0 ldi r23, 0x00 ; 0
- 1e40: 85 ee ldi r24, 0xE5 ; 229
- 1e42: 91 e0 ldi r25, 0x01 ; 1
- 1e44: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- LCD_SetPos(0, 1);
- 1e48: 61 e0 ldi r22, 0x01 ; 1
- 1e4a: 80 e0 ldi r24, 0x00 ; 0
- 1e4c: 9f d3 rcall .+1854 ; 0x258c <LCD_SetPos>
- 1e4e: 24 e1 ldi r18, 0x14 ; 20
- fprintf(&lcd_stdout, "ÍÀÆ.");
- 1e50: 31 e0 ldi r19, 0x01 ; 1
- 1e52: 44 e0 ldi r20, 0x04 ; 4
- 1e54: 50 e0 ldi r21, 0x00 ; 0
- 1e56: 61 e0 ldi r22, 0x01 ; 1
- 1e58: 70 e0 ldi r23, 0x00 ; 0
- 1e5a: 86 ef ldi r24, 0xF6 ; 246
- 1e5c: 91 e0 ldi r25, 0x01 ; 1
- 1e5e: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- LCD_SendData(0x00);
- 1e62: 80 e0 ldi r24, 0x00 ; 0
- 1e64: 53 d3 rcall .+1702 ; 0x250c <LCD_SendData>
- 1e66: 24 e1 ldi r18, 0x14 ; 20
- fprintf(&lcd_stdout, " ÄËß ÑÁÐÎÑÀ");
- 1e68: 31 e0 ldi r19, 0x01 ; 1
- 1e6a: 4b e0 ldi r20, 0x0B ; 11
- 1e6c: 50 e0 ldi r21, 0x00 ; 0
- 1e6e: 61 e0 ldi r22, 0x01 ; 1
- 1e70: 70 e0 ldi r23, 0x00 ; 0
- 1e72: 8b ef ldi r24, 0xFB ; 251
- 1e74: 91 e0 ldi r25, 0x01 ; 1
- 1e76: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- 1e7a: 89 b1 in r24, 0x09 ; 9
- while(((BTNPIN >> 4) | 0xF0) != 0xF7);
- 1e7c: 82 95 swap r24
- 1e7e: 8f 70 andi r24, 0x0F ; 15
- 1e80: 80 6f ori r24, 0xF0 ; 240
- 1e82: 87 3f cpi r24, 0xF7 ; 247
- 1e84: d1 f7 brne .-12 ; 0x1e7a <main+0x1e6>
- ResetMCU();
- 1e86: 0e 94 9c 05 call 0xb38 ; 0xb38 <ResetMCU>
-
- while(1)
- {
- if(count)
- {
- UARTDataAvail();
- 1e8a: 98 dd rcall .-1232 ; 0x19bc <UARTDataAvail>
- 1e8c: 60 cf rjmp .-320 ; 0x1d4e <main+0xba>
- 1e8e: 10 92 f5 02 sts 0x02F5, r1 ; 0x8002f5 <tick1>
- }
-
- if(tick1)
- {
- /* ------------- MEASURING SECTION ----------------- */
- tick1 = 0;
- 1e92: 0e 94 7b 02 call 0x4f6 ; 0x4f6 <MAX_ReadData>
- MAX_ReadData();
- 1e96: e1 2c mov r14, r1
- 1e98: f1 2c mov r15, r1
- 1e9a: de 2c mov r13, r14
- 1e9c: 8e 2d mov r24, r14
-
- tmp = ch;
- for(uint8_t ch = CH0; ch <= CH1; ch++)
- {
- if(CurrMeasure(ch) > CURR_MAX)
- 1e9e: 0e 94 0c 04 call 0x818 ; 0x818 <CurrMeasure>
- 1ea2: 85 3c cpi r24, 0xC5 ; 197
- 1ea4: 99 40 sbci r25, 0x09 ; 9
- 1ea6: 58 f0 brcs .+22 ; 0x1ebe <main+0x22a>
- 1ea8: 23 e1 ldi r18, 0x13 ; 19
- {
- heater[ch].status.onoff = OFF;
- 1eaa: 2e 9d mul r18, r14
- 1eac: f0 01 movw r30, r0
- 1eae: 2f 9d mul r18, r15
- 1eb0: f0 0d add r31, r0
- 1eb2: 11 24 eor r1, r1
- 1eb4: e0 5e subi r30, 0xE0 ; 224
- 1eb6: fc 4f sbci r31, 0xFC ; 252
- 1eb8: 80 81 ld r24, Z
- 1eba: 8d 7f andi r24, 0xFD ; 253
- 1ebc: 80 83 st Z, r24
- }
- SwitchHeating(ch, OFF);
- 1ebe: 60 e0 ldi r22, 0x00 ; 0
- 1ec0: 8d 2d mov r24, r13
- 1ec2: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
- SwitchDrive(ch, OFF);
- 1ec6: 60 e0 ldi r22, 0x00 ; 0
- 1ec8: 8d 2d mov r24, r13
- 1eca: f9 d4 rcall .+2546 ; 0x28be <SwitchDrive>
- 1ecc: 87 eb ldi r24, 0xB7 ; 183
- 1ece: 9b e0 ldi r25, 0x0B ; 11
- 1ed0: 01 97 sbiw r24, 0x01 ; 1
- 1ed2: f1 f7 brne .-4 ; 0x1ed0 <main+0x23c>
- 1ed4: 00 c0 rjmp .+0 ; 0x1ed6 <main+0x242>
- 1ed6: 00 00 nop
- 1ed8: 8d 2d mov r24, r13
- _delay_ms(1);
- CircuitDetect(ch);
- 1eda: 0e 94 23 06 call 0xc46 ; 0xc46 <CircuitDetect>
- 1ede: 8d 2d mov r24, r13
- TMeasure(ch);
- 1ee0: 0e 94 ca 03 call 0x794 ; 0x794 <TMeasure>
- 1ee4: 93 e1 ldi r25, 0x13 ; 19
-
- if(heater[ch].status.circuit == CIRC_OPEN)
- 1ee6: 9e 9d mul r25, r14
- 1ee8: f0 01 movw r30, r0
- 1eea: 9f 9d mul r25, r15
- 1eec: f0 0d add r31, r0
- 1eee: 11 24 eor r1, r1
- 1ef0: e0 5e subi r30, 0xE0 ; 224
- 1ef2: fc 4f sbci r31, 0xFC ; 252
- 1ef4: 80 81 ld r24, Z
- 1ef6: 98 2f mov r25, r24
- 1ef8: 92 95 swap r25
- 1efa: 96 95 lsr r25
- 1efc: 96 95 lsr r25
- 1efe: 93 70 andi r25, 0x03 ; 3
- 1f00: 81 81 ldd r24, Z+1 ; 0x01
- 1f02: 81 70 andi r24, 0x01 ; 1
- 1f04: 88 0f add r24, r24
- 1f06: 88 0f add r24, r24
- 1f08: 89 2b or r24, r25
- 1f0a: 61 f4 brne .+24 ; 0x1f24 <main+0x290>
- 1f0c: 80 81 ld r24, Z
- {
- heater[ch].status.onoff = OFF;
- 1f0e: 8d 7f andi r24, 0xFD ; 253
- 1f10: 80 83 st Z, r24
- 1f12: af ef ldi r26, 0xFF ; 255
- 1f14: ea 1a sub r14, r26
- 1f16: fa 0a sbc r15, r26
- 1f18: b2 e0 ldi r27, 0x02 ; 2
- /* ------------- MEASURING SECTION ----------------- */
- tick1 = 0;
- MAX_ReadData();
-
- tmp = ch;
- for(uint8_t ch = CH0; ch <= CH1; ch++)
- 1f1a: eb 16 cp r14, r27
- 1f1c: f1 04 cpc r15, r1
- 1f1e: 09 f0 breq .+2 ; 0x1f22 <main+0x28e>
- 1f20: bc cf rjmp .-136 ; 0x1e9a <main+0x206>
- 1f22: 25 cf rjmp .-438 ; 0x1d6e <main+0xda>
- 1f24: 80 81 ld r24, Z
-
- if(heater[ch].status.circuit == CIRC_OPEN)
- {
- heater[ch].status.onoff = OFF;
- }
- else if(heater[ch].status.circuit == CIRC_RES)
- 1f26: 98 2f mov r25, r24
- 1f28: 92 95 swap r25
- 1f2a: 96 95 lsr r25
- 1f2c: 96 95 lsr r25
- 1f2e: 93 70 andi r25, 0x03 ; 3
- 1f30: 81 81 ldd r24, Z+1 ; 0x01
- 1f32: 81 70 andi r24, 0x01 ; 1
- 1f34: 88 0f add r24, r24
- 1f36: 88 0f add r24, r24
- 1f38: 89 2b or r24, r25
- 1f3a: 84 30 cpi r24, 0x04 ; 4
- 1f3c: d1 f1 breq .+116 ; 0x1fb2 <main+0x31e>
- 1f3e: 80 81 ld r24, Z
- SwitchHeating(ch, OFF);
- }
- }
- else
- {
- if((heater[ch].status.onoff == ON) && (heater[ch].tmeas < heater[ch].tset))
- 1f40: 81 ff sbrs r24, 1
- 1f42: 08 c0 rjmp .+16 ; 0x1f54 <main+0x2c0>
- 1f44: 86 81 ldd r24, Z+6 ; 0x06
- 1f46: 97 81 ldd r25, Z+7 ; 0x07
- 1f48: 22 85 ldd r18, Z+10 ; 0x0a
- 1f4a: 33 85 ldd r19, Z+11 ; 0x0b
- 1f4c: 82 17 cp r24, r18
- 1f4e: 93 07 cpc r25, r19
- 1f50: 08 f4 brcc .+2 ; 0x1f54 <main+0x2c0>
- 1f52: 74 c1 rjmp .+744 ; 0x223c <main+0x5a8>
- SwitchDrive(ch, ON);
- SwitchHeating(ch, ON);
- }
- else
- {
- SwitchDrive(ch, OFF);
- 1f54: 60 e0 ldi r22, 0x00 ; 0
- 1f56: 8d 2d mov r24, r13
- 1f58: b2 d4 rcall .+2404 ; 0x28be <SwitchDrive>
- 1f5a: 60 e0 ldi r22, 0x00 ; 0
- SwitchHeating(ch, OFF);
- 1f5c: 8d 2d mov r24, r13
- 1f5e: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
- 1f62: d7 cf rjmp .-82 ; 0x1f12 <main+0x27e>
- 1f64: bc 81 ldd r27, Y+4 ; 0x04
- } ////// switch(btn_code) end
- } ////// if(display == ON) end
- }
- else if(button.code == 0) // Button up event
- {
- if(!button.holded)
- 1f66: 60 fa bst r6, 0
- 1f68: b0 f9 bld r27, 0
- 1f6a: 50 fa bst r5, 0
- 1f6c: b1 f9 bld r27, 1
- 1f6e: 70 fa bst r7, 0
- 1f70: b2 f9 bld r27, 2
- 1f72: 00 0f add r16, r16
- 1f74: 00 0f add r16, r16
- 1f76: 00 0f add r16, r16
- 1f78: b7 70 andi r27, 0x07 ; 7
- 1f7a: b0 2b or r27, r16
- 1f7c: bc 83 std Y+4, r27 ; 0x04
- 1f7e: b2 fd sbrc r27, 2
- 1f80: 26 c0 rjmp .+76 ; 0x1fce <main+0x33a>
- 1f82: 90 7f andi r25, 0xF0 ; 240
- {
- display = DISP_MAIN;
- if(button.prev_code == 0x08)
- 1f84: 90 38 cpi r25, 0x80 ; 128
- 1f86: 09 f4 brne .+2 ; 0x1f8a <main+0x2f6>
- 1f88: 74 c1 rjmp .+744 ; 0x2272 <main+0x5de>
- 1f8a: 00 e0 ldi r16, 0x00 ; 0
- }
-
- button.pressed = 0;
- button.released = 1;
- button.holded = 0;
- button.holdcnt = 0;
- 1f8c: 71 2c mov r7, r1
- }
- }
-
- button.pressed = 0;
- button.released = 1;
- button.holded = 0;
- 1f8e: 55 24 eor r5, r5
- SwitchHeating(ch, OFF);
- }
- }
-
- button.pressed = 0;
- button.released = 1;
- 1f90: 53 94 inc r5
- 1f92: 61 2c mov r6, r1
- SwitchDrive(ch, OFF);
- SwitchHeating(ch, OFF);
- }
- }
-
- button.pressed = 0;
- 1f94: 11 e0 ldi r17, 0x01 ; 1
- }
- else if(button.code == 0) // Button up event
- {
- if(!button.holded)
- {
- display = DISP_MAIN;
- 1f96: d7 ce rjmp .-594 ; 0x1d46 <main+0xb2>
- button.holded = 0;
- button.holdcnt = 0;
- }
- else // Button hold event
- {
- switch(button.code)
- 1f98: 84 30 cpi r24, 0x04 ; 4
- 1f9a: 09 f4 brne .+2 ; 0x1f9e <main+0x30a>
- 1f9c: 5b c1 rjmp .+694 ; 0x2254 <main+0x5c0>
- 1f9e: 08 f4 brcc .+2 ; 0x1fa2 <main+0x30e>
- 1fa0: 37 c1 rjmp .+622 ; 0x2210 <main+0x57c>
- 1fa2: 88 30 cpi r24, 0x08 ; 8
- 1fa4: 09 f0 breq .+2 ; 0x1fa8 <main+0x314>
- 1fa6: cf ce rjmp .-610 ; 0x1d46 <main+0xb2>
- break;
-
- case 0x08:
- button.prev_code = 0;
- display = OFF;
- LCD_SendCmd(LCD_CLR);
- 1fa8: 81 e0 ldi r24, 0x01 ; 1
- 1faa: cb d2 rcall .+1430 ; 0x2542 <LCD_SendCmd>
- 1fac: 41 2c mov r4, r1
- button.holded = 0;
- button.holdcnt = 0;
- break;
-
- case 0x08:
- button.prev_code = 0;
- 1fae: 10 e0 ldi r17, 0x00 ; 0
- display = OFF;
- 1fb0: ca ce rjmp .-620 ; 0x1d46 <main+0xb2>
- LCD_SendCmd(LCD_CLR);
- //btn_hold = 0;
- break;
- 1fb2: 80 81 ld r24, Z
- {
- heater[ch].status.onoff = OFF;
- }
- else if(heater[ch].status.circuit == CIRC_RES)
- {
- if((heater[ch].status.onoff == ON) && (heater[ch].tcouple < heater[ch].tset))
- 1fb4: 81 ff sbrs r24, 1
- 1fb6: d1 cf rjmp .-94 ; 0x1f5a <main+0x2c6>
- 1fb8: 84 81 ldd r24, Z+4 ; 0x04
- 1fba: 95 81 ldd r25, Z+5 ; 0x05
- 1fbc: 22 85 ldd r18, Z+10 ; 0x0a
- 1fbe: 33 85 ldd r19, Z+11 ; 0x0b
- 1fc0: 82 17 cp r24, r18
- 1fc2: 93 07 cpc r25, r19
- 1fc4: 50 f6 brcc .-108 ; 0x1f5a <main+0x2c6>
- 1fc6: 8d 2d mov r24, r13
- 1fc8: 0e 94 17 01 call 0x22e ; 0x22e <SwitchHeating.part.0>
- 1fcc: a2 cf rjmp .-188 ; 0x1f12 <main+0x27e>
- }
-
- button.pressed = 0;
- button.released = 1;
- button.holded = 0;
- button.holdcnt = 0;
- 1fce: 00 e0 ldi r16, 0x00 ; 0
- }
- }
-
- button.pressed = 0;
- button.released = 1;
- button.holded = 0;
- 1fd0: 71 2c mov r7, r1
- SwitchHeating(ch, OFF);
- }
- }
-
- button.pressed = 0;
- button.released = 1;
- 1fd2: 55 24 eor r5, r5
- 1fd4: 53 94 inc r5
- SwitchDrive(ch, OFF);
- SwitchHeating(ch, OFF);
- }
- }
-
- button.pressed = 0;
- 1fd6: 61 2c mov r6, r1
- 1fd8: b6 ce rjmp .-660 ; 0x1d46 <main+0xb2>
- {
- /* ------------- DISPLAY SECTION ----------------- */
- tick2 = 0;
- if(display == DISP_MAIN)
- {
- LCD_SetPos(0, 0);
- 1fda: 60 e0 ldi r22, 0x00 ; 0
- 1fdc: 80 e0 ldi r24, 0x00 ; 0
- 1fde: d6 d2 rcall .+1452 ; 0x258c <LCD_SetPos>
- 1fe0: eb 81 ldd r30, Y+3 ; 0x03
- fprintf(&lcd_stdout, "K%.1u #%.2u Tï=", ch + 1, heater[ch].preset);
- 1fe2: ae 2e mov r10, r30
- 1fe4: b1 2c mov r11, r1
- 1fe6: f3 e1 ldi r31, 0x13 ; 19
- 1fe8: fa 9d mul r31, r10
- 1fea: 60 01 movw r12, r0
- 1fec: fb 9d mul r31, r11
- 1fee: d0 0c add r13, r0
- 1ff0: 11 24 eor r1, r1
- 1ff2: 96 01 movw r18, r12
- 1ff4: 20 5e subi r18, 0xE0 ; 224
- 1ff6: 3c 4f sbci r19, 0xFC ; 252
- 1ff8: 3a 83 std Y+2, r19 ; 0x02
- 1ffa: 29 83 std Y+1, r18 ; 0x01
- 1ffc: d9 01 movw r26, r18
- 1ffe: 12 96 adiw r26, 0x02 ; 2
- 2000: 8c 91 ld r24, X
- 2002: 1f 92 push r1
- 2004: 8f 93 push r24
- 2006: c5 01 movw r24, r10
- 2008: 01 96 adiw r24, 0x01 ; 1
- 200a: 9f 93 push r25
- 200c: 8f 93 push r24
- 200e: 3f 92 push r3
- 2010: 2f 92 push r2
- 2012: 54 e1 ldi r21, 0x14 ; 20
- 2014: e5 2e mov r14, r21
- 2016: 51 e0 ldi r21, 0x01 ; 1
- 2018: f5 2e mov r15, r21
- 201a: ff 92 push r15
- 201c: ef 92 push r14
- 201e: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- 2022: f6 01 movw r30, r12
- if(!heater[ch].status.couple)
- 2024: ef 5d subi r30, 0xDF ; 223
- 2026: fc 4f sbci r31, 0xFC ; 252
- 2028: 80 81 ld r24, Z
- 202a: 86 95 lsr r24
- 202c: 87 70 andi r24, 0x07 ; 7
- 202e: 0f b6 in r0, 0x3f ; 63
- 2030: f8 94 cli
- 2032: de bf out 0x3e, r29 ; 62
- 2034: 0f be out 0x3f, r0 ; 63
- 2036: cd bf out 0x3d, r28 ; 61
- 2038: 09 f0 breq .+2 ; 0x203c <main+0x3a8>
- 203a: f5 c0 rjmp .+490 ; 0x2226 <main+0x592>
- 203c: a9 81 ldd r26, Y+1 ; 0x01
- {
- fprintf(&lcd_stdout, "%.3d\x01", heater[ch].tcouple);
- 203e: ba 81 ldd r27, Y+2 ; 0x02
- 2040: 15 96 adiw r26, 0x05 ; 5
- 2042: 8c 91 ld r24, X
- 2044: 15 97 sbiw r26, 0x05 ; 5
- 2046: 8f 93 push r24
- 2048: 14 96 adiw r26, 0x04 ; 4
- 204a: 8c 91 ld r24, X
- 204c: 8f 93 push r24
- 204e: eb e3 ldi r30, 0x3B ; 59
- 2050: f2 e0 ldi r31, 0x02 ; 2
- 2052: ff 93 push r31
- 2054: ef 93 push r30
- 2056: ff 92 push r15
- 2058: ef 92 push r14
- 205a: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- 205e: 0f 90 pop r0
- 2060: 0f 90 pop r0
- 2062: 0f 90 pop r0
- 2064: 0f 90 pop r0
- 2066: 0f 90 pop r0
- 2068: 0f 90 pop r0
- 206a: 33 e1 ldi r19, 0x13 ; 19
- else
- {
- fprintf(&lcd_stdout, "--- ");
- }
-
- switch(heater[ch].status.circuit)
- 206c: 3a 9d mul r19, r10
- 206e: f0 01 movw r30, r0
- 2070: 3b 9d mul r19, r11
- 2072: f0 0d add r31, r0
- 2074: 11 24 eor r1, r1
- 2076: e0 5e subi r30, 0xE0 ; 224
- 2078: fc 4f sbci r31, 0xFC ; 252
- 207a: 80 81 ld r24, Z
- 207c: 98 2f mov r25, r24
- 207e: 92 95 swap r25
- 2080: 96 95 lsr r25
- 2082: 96 95 lsr r25
- 2084: 93 70 andi r25, 0x03 ; 3
- 2086: 81 81 ldd r24, Z+1 ; 0x01
- 2088: 81 70 andi r24, 0x01 ; 1
- 208a: 88 0f add r24, r24
- 208c: 88 0f add r24, r24
- 208e: 89 2b or r24, r25
- 2090: 82 30 cpi r24, 0x02 ; 2
- 2092: 09 f4 brne .+2 ; 0x2096 <main+0x402>
- 2094: 51 c1 rjmp .+674 ; 0x2338 <main+0x6a4>
- 2096: 08 f0 brcs .+2 ; 0x209a <main+0x406>
- 2098: d5 c0 rjmp .+426 ; 0x2244 <main+0x5b0>
- 209a: 88 23 and r24, r24
- 209c: 09 f4 brne .+2 ; 0x20a0 <main+0x40c>
- 209e: e6 c0 rjmp .+460 ; 0x226c <main+0x5d8>
- 20a0: 81 30 cpi r24, 0x01 ; 1
- {
- case CIRC_OPEN:
- LCD_SendData(SYM_OPEN);
- break;
- case CIRC_SHORT:
- LCD_SendData(SYM_SHORT);
- 20a2: 11 f4 brne .+4 ; 0x20a8 <main+0x414>
- 20a4: 87 e0 ldi r24, 0x07 ; 7
- 20a6: 32 d2 rcall .+1124 ; 0x250c <LCD_SendData>
- break;
- case CIRC_DIODE:
- break;
- }
- LCD_SetPos(0, 1);
- 20a8: 61 e0 ldi r22, 0x01 ; 1
- 20aa: 80 e0 ldi r24, 0x00 ; 0
- 20ac: 6f d2 rcall .+1246 ; 0x258c <LCD_SetPos>
- 20ae: a3 e1 ldi r26, 0x13 ; 19
- fprintf(&lcd_stdout, "Tó=%.3u\x01 ", heater[ch].tset);
- 20b0: aa 9d mul r26, r10
- 20b2: c0 01 movw r24, r0
- 20b4: ab 9d mul r26, r11
- 20b6: 90 0d add r25, r0
- 20b8: 11 24 eor r1, r1
- 20ba: fc 01 movw r30, r24
- 20bc: e0 5e subi r30, 0xE0 ; 224
- 20be: fc 4f sbci r31, 0xFC ; 252
- 20c0: 7f 01 movw r14, r30
- 20c2: 83 85 ldd r24, Z+11 ; 0x0b
- 20c4: 8f 93 push r24
- 20c6: 82 85 ldd r24, Z+10 ; 0x0a
- 20c8: 8f 93 push r24
- 20ca: 2d e1 ldi r18, 0x1D ; 29
- 20cc: 32 e0 ldi r19, 0x02 ; 2
- 20ce: 3f 93 push r19
- 20d0: 2f 93 push r18
- 20d2: 44 e1 ldi r20, 0x14 ; 20
- 20d4: c4 2e mov r12, r20
- 20d6: 41 e0 ldi r20, 0x01 ; 1
- 20d8: d4 2e mov r13, r20
- 20da: df 92 push r13
- 20dc: cf 92 push r12
- 20de: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- 20e2: d7 01 movw r26, r14
-
- if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_SHORT))
- 20e4: 8c 91 ld r24, X
- 20e6: 98 2f mov r25, r24
- 20e8: 92 95 swap r25
- 20ea: 96 95 lsr r25
- 20ec: 96 95 lsr r25
- 20ee: 93 70 andi r25, 0x03 ; 3
- 20f0: 11 96 adiw r26, 0x01 ; 1
- 20f2: 8c 91 ld r24, X
- 20f4: 11 97 sbiw r26, 0x01 ; 1
- 20f6: 81 70 andi r24, 0x01 ; 1
- 20f8: 88 0f add r24, r24
- 20fa: 88 0f add r24, r24
- 20fc: 89 2b or r24, r25
- 20fe: 0f 90 pop r0
- 2100: 0f 90 pop r0
- 2102: 0f 90 pop r0
- 2104: 0f 90 pop r0
- 2106: 0f 90 pop r0
- 2108: 0f 90 pop r0
- 210a: 09 f4 brne .+2 ; 0x210e <main+0x47a>
- 210c: cb c0 rjmp .+406 ; 0x22a4 <main+0x610>
- 210e: 8c 91 ld r24, X
- 2110: 98 2f mov r25, r24
- 2112: 92 95 swap r25
- 2114: 96 95 lsr r25
- 2116: 96 95 lsr r25
- 2118: 93 70 andi r25, 0x03 ; 3
- 211a: 11 96 adiw r26, 0x01 ; 1
- 211c: 8c 91 ld r24, X
- 211e: 81 70 andi r24, 0x01 ; 1
- 2120: 88 0f add r24, r24
- 2122: 88 0f add r24, r24
- 2124: 89 2b or r24, r25
- 2126: 81 30 cpi r24, 0x01 ; 1
- 2128: 09 f4 brne .+2 ; 0x212c <main+0x498>
- 212a: bc c0 rjmp .+376 ; 0x22a4 <main+0x610>
- 212c: f7 01 movw r30, r14
- {
- fprintf(&lcd_stdout, "ÎÒÊËÞ×.");
- }
- else if(heater[ch].status.circuit == CIRC_RES)
- 212e: 80 81 ld r24, Z
- 2130: 98 2f mov r25, r24
- 2132: 92 95 swap r25
- 2134: 96 95 lsr r25
- 2136: 96 95 lsr r25
- 2138: 93 70 andi r25, 0x03 ; 3
- 213a: 81 81 ldd r24, Z+1 ; 0x01
- 213c: 81 70 andi r24, 0x01 ; 1
- 213e: 88 0f add r24, r24
- 2140: 88 0f add r24, r24
- 2142: 89 2b or r24, r25
- 2144: 84 30 cpi r24, 0x04 ; 4
- 2146: 09 f4 brne .+2 ; 0x214a <main+0x4b6>
- 2148: fa c0 rjmp .+500 ; 0x233e <main+0x6aa>
- 214a: f7 01 movw r30, r14
- {
- fprintf(&lcd_stdout, "I=%4.2fA", ((float)heater[ch].current) / 1000.0);
- }
- else
- {
- fprintf(&lcd_stdout, "Òí=%.3d\x01", heater[ch].tmeas);
- 214c: 87 81 ldd r24, Z+7 ; 0x07
- 214e: 8f 93 push r24
- 2150: 86 81 ldd r24, Z+6 ; 0x06
- 2152: 8f 93 push r24
- 2154: 28 e3 ldi r18, 0x38 ; 56
- 2156: 32 e0 ldi r19, 0x02 ; 2
- 2158: 3f 93 push r19
- 215a: 2f 93 push r18
- 215c: df 92 push r13
- 215e: cf 92 push r12
- 2160: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- 2164: 0f 90 pop r0
- 2166: 0f 90 pop r0
- 2168: 0f 90 pop r0
- 216a: 0f 90 pop r0
- 216c: 0f 90 pop r0
- 216e: 0f 90 pop r0
- 2170: 93 e1 ldi r25, 0x13 ; 19
- }
-
- if(heater[ch].status.onoff)
- 2172: 9a 9d mul r25, r10
- 2174: f0 01 movw r30, r0
- 2176: 9b 9d mul r25, r11
- 2178: f0 0d add r31, r0
- 217a: 11 24 eor r1, r1
- 217c: e0 5e subi r30, 0xE0 ; 224
- 217e: fc 4f sbci r31, 0xFC ; 252
- 2180: 80 81 ld r24, Z
- 2182: 81 ff sbrs r24, 1
- 2184: 9d c0 rjmp .+314 ; 0x22c0 <main+0x62c>
- {
- if(heater[ch].status.heating)
- 2186: 80 81 ld r24, Z
- 2188: 82 ff sbrs r24, 2
- 218a: 97 c0 rjmp .+302 ; 0x22ba <main+0x626>
- {
- LCD_SendData(0xD9);
- 218c: 89 ed ldi r24, 0xD9 ; 217
- 218e: be d1 rcall .+892 ; 0x250c <LCD_SendData>
- 2190: d4 01 movw r26, r8
- else
- {
- LCD_SendData('-');
- }
-
- if(menu->set == 1)
- 2192: 8c 91 ld r24, X
- 2194: 81 30 cpi r24, 0x01 ; 1
- 2196: 09 f4 brne .+2 ; 0x219a <main+0x506>
- 2198: 96 c0 rjmp .+300 ; 0x22c6 <main+0x632>
- 219a: 82 30 cpi r24, 0x02 ; 2
- LCD_SetPos(3, 1);
- fprintf(&lcd_stdout, " ");
- }
- menu->blink_cnt++;
- }
- else if(menu->set == 2)
- 219c: 09 f4 brne .+2 ; 0x21a0 <main+0x50c>
- 219e: b0 c0 rjmp .+352 ; 0x2300 <main+0x66c>
- 21a0: fc 81 ldd r31, Y+4 ; 0x04
- fprintf(&lcd_stdout, " ");
- }
- menu->blink_cnt++;
- }
-
- if(button.pressed && !button.holded)
- 21a2: 60 fa bst r6, 0
- 21a4: f0 f9 bld r31, 0
- 21a6: 50 fa bst r5, 0
- 21a8: f1 f9 bld r31, 1
- 21aa: 70 fa bst r7, 0
- 21ac: f2 f9 bld r31, 2
- 21ae: f7 70 andi r31, 0x07 ; 7
- 21b0: 80 2f mov r24, r16
- 21b2: 88 0f add r24, r24
- 21b4: 88 0f add r24, r24
- 21b6: 88 0f add r24, r24
- 21b8: f8 2b or r31, r24
- 21ba: fc 83 std Y+4, r31 ; 0x04
- 21bc: 8f 2f mov r24, r31
- 21be: 85 70 andi r24, 0x05 ; 5
- 21c0: 81 30 cpi r24, 0x01 ; 1
- 21c2: 09 f0 breq .+2 ; 0x21c6 <main+0x532>
- 21c4: e0 cd rjmp .-1088 ; 0x1d86 <main+0xf2>
- {
- if(++button.holdcnt == 12)
- 21c6: 0f 5f subi r16, 0xFF ; 255
- 21c8: 0f 71 andi r16, 0x1F ; 31
- 21ca: 0c 30 cpi r16, 0x0C ; 12
- 21cc: 09 f0 breq .+2 ; 0x21d0 <main+0x53c>
- 21ce: db cd rjmp .-1098 ; 0x1d86 <main+0xf2>
- {
- button.holded = 1;
- btn_act = 1;
- 21d0: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 <btn_act>
-
- if(button.pressed && !button.holded)
- {
- if(++button.holdcnt == 12)
- {
- button.holded = 1;
- 21d4: 77 24 eor r7, r7
- 21d6: 73 94 inc r7
- }
- }
- }
- else if(display == DISP_VER)
- {
- LCD_SetPos(0, 0);
- 21d8: d6 cd rjmp .-1108 ; 0x1d86 <main+0xf2>
- 21da: 60 e0 ldi r22, 0x00 ; 0
- 21dc: 80 e0 ldi r24, 0x00 ; 0
- 21de: d6 d1 rcall .+940 ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "ÓÊÍ-2 09.09.2019");
- 21e0: 24 e1 ldi r18, 0x14 ; 20
- 21e2: 31 e0 ldi r19, 0x01 ; 1
- 21e4: 40 e1 ldi r20, 0x10 ; 16
- 21e6: 50 e0 ldi r21, 0x00 ; 0
- 21e8: 61 e0 ldi r22, 0x01 ; 1
- 21ea: 70 e0 ldi r23, 0x00 ; 0
- 21ec: 81 e4 ldi r24, 0x41 ; 65
- 21ee: 92 e0 ldi r25, 0x02 ; 2
- 21f0: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- LCD_SetPos(0, 1);
- 21f4: 61 e0 ldi r22, 0x01 ; 1
- 21f6: 80 e0 ldi r24, 0x00 ; 0
- 21f8: c9 d1 rcall .+914 ; 0x258c <LCD_SetPos>
- 21fa: 24 e1 ldi r18, 0x14 ; 20
- fprintf(&lcd_stdout, "Íàãàåâ Àëåêñàíäð");
- 21fc: 31 e0 ldi r19, 0x01 ; 1
- 21fe: 40 e1 ldi r20, 0x10 ; 16
- 2200: 50 e0 ldi r21, 0x00 ; 0
- 2202: 61 e0 ldi r22, 0x01 ; 1
- 2204: 70 e0 ldi r23, 0x00 ; 0
- 2206: 82 e5 ldi r24, 0x52 ; 82
- 2208: 92 e0 ldi r25, 0x02 ; 2
- 220a: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- 220e: bb cd rjmp .-1162 ; 0x1d86 <main+0xf2>
- 2210: 81 50 subi r24, 0x01 ; 1
- button.holded = 0;
- button.holdcnt = 0;
- }
- else // Button hold event
- {
- switch(button.code)
- 2212: 82 30 cpi r24, 0x02 ; 2
- 2214: 08 f0 brcs .+2 ; 0x2218 <main+0x584>
- 2216: 97 cd rjmp .-1234 ; 0x1d46 <main+0xb2>
- 2218: 81 e0 ldi r24, 0x01 ; 1
- {
- case 0x01:
- case 0x02:
- btn_act = 1;
- 221a: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 <btn_act>
- button.holded = 0;
- button.holdcnt--;
- 221e: 01 5e subi r16, 0xE1 ; 225
- 2220: 0f 71 andi r16, 0x1F ; 31
- switch(button.code)
- {
- case 0x01:
- case 0x02:
- btn_act = 1;
- button.holded = 0;
- 2222: 71 2c mov r7, r1
- button.holdcnt--;
- break;
- 2224: 90 cd rjmp .-1248 ; 0x1d46 <main+0xb2>
- {
- fprintf(&lcd_stdout, "%.3d\x01", heater[ch].tcouple);
- }
- else
- {
- fprintf(&lcd_stdout, "--- ");
- 2226: 24 e1 ldi r18, 0x14 ; 20
- 2228: 31 e0 ldi r19, 0x01 ; 1
- 222a: 44 e0 ldi r20, 0x04 ; 4
- 222c: 50 e0 ldi r21, 0x00 ; 0
- 222e: 61 e0 ldi r22, 0x01 ; 1
- 2230: 70 e0 ldi r23, 0x00 ; 0
- 2232: 88 e1 ldi r24, 0x18 ; 24
- 2234: 92 e0 ldi r25, 0x02 ; 2
- 2236: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- }
- else
- {
- if((heater[ch].status.onoff == ON) && (heater[ch].tmeas < heater[ch].tset))
- {
- SwitchDrive(ch, ON);
- 223a: 17 cf rjmp .-466 ; 0x206a <main+0x3d6>
- 223c: 61 e0 ldi r22, 0x01 ; 1
- 223e: 8d 2d mov r24, r13
- 2240: 3e d3 rcall .+1660 ; 0x28be <SwitchDrive>
- else
- {
- fprintf(&lcd_stdout, "--- ");
- }
-
- switch(heater[ch].status.circuit)
- 2242: c1 ce rjmp .-638 ; 0x1fc6 <main+0x332>
- 2244: 83 30 cpi r24, 0x03 ; 3
- 2246: 79 f0 breq .+30 ; 0x2266 <main+0x5d2>
- 2248: 84 30 cpi r24, 0x04 ; 4
- break;
- case CIRC_SHORT:
- LCD_SendData(SYM_SHORT);
- break;
- case CIRC_RES:
- LCD_SendData(SYM_RES);
- 224a: 09 f0 breq .+2 ; 0x224e <main+0x5ba>
- 224c: 2d cf rjmp .-422 ; 0x20a8 <main+0x414>
- 224e: 84 e0 ldi r24, 0x04 ; 4
- break;
- 2250: 5d d1 rcall .+698 ; 0x250c <LCD_SendData>
- button.holded = 0;
- button.holdcnt--;
- break;
-
- case 0x04:
- menu->set = 0;
- 2252: 2a cf rjmp .-428 ; 0x20a8 <main+0x414>
- 2254: d4 01 movw r26, r8
- AutoCalibration(ch);
- 2256: 1c 92 st X, r1
- 2258: 8b 81 ldd r24, Y+3 ; 0x03
- 225a: 0e 94 ce 06 call 0xd9c ; 0xd9c <AutoCalibration>
- button.pressed = 0;
- button.holded = 0;
- 225e: 00 e0 ldi r16, 0x00 ; 0
- break;
-
- case 0x04:
- menu->set = 0;
- AutoCalibration(ch);
- button.pressed = 0;
- 2260: 71 2c mov r7, r1
- button.holded = 0;
- button.holdcnt = 0;
- break;
- 2262: 61 2c mov r6, r1
- break;
- case CIRC_MOSFET:
- LCD_SendData(SYM_MOSFET);
- break;
- case CIRC_RES_DIODE:
- LCD_SendData(SYM_DIODE);
- 2264: 70 cd rjmp .-1312 ; 0x1d46 <main+0xb2>
- 2266: 83 e0 ldi r24, 0x03 ; 3
- 2268: 51 d1 rcall .+674 ; 0x250c <LCD_SendData>
- break;
- 226a: 1e cf rjmp .-452 ; 0x20a8 <main+0x414>
- }
-
- switch(heater[ch].status.circuit)
- {
- case CIRC_OPEN:
- LCD_SendData(SYM_OPEN);
- 226c: 86 e0 ldi r24, 0x06 ; 6
- 226e: 4e d1 rcall .+668 ; 0x250c <LCD_SendData>
- break;
- 2270: 1b cf rjmp .-458 ; 0x20a8 <main+0x414>
- if(!button.holded)
- {
- display = DISP_MAIN;
- if(button.prev_code == 0x08)
- {
- heater[ch].status.onoff ^= 1;
- 2272: b3 e1 ldi r27, 0x13 ; 19
- 2274: 2b 81 ldd r18, Y+3 ; 0x03
- 2276: b2 9f mul r27, r18
- 2278: f0 01 movw r30, r0
- 227a: 11 24 eor r1, r1
- 227c: e0 5e subi r30, 0xE0 ; 224
- 227e: fc 4f sbci r31, 0xFC ; 252
- 2280: 80 81 ld r24, Z
- 2282: 81 fb bst r24, 1
- 2284: 99 27 eor r25, r25
- 2286: 90 f9 bld r25, 0
- 2288: 81 e0 ldi r24, 0x01 ; 1
- 228a: 89 27 eor r24, r25
- 228c: 90 81 ld r25, Z
- 228e: 80 fb bst r24, 0
- 2290: 91 f9 bld r25, 1
- SwitchDrive(ch, OFF);
- 2292: 90 83 st Z, r25
- 2294: 60 e0 ldi r22, 0x00 ; 0
- 2296: 82 2f mov r24, r18
- SwitchHeating(ch, OFF);
- 2298: 12 d3 rcall .+1572 ; 0x28be <SwitchDrive>
- 229a: 60 e0 ldi r22, 0x00 ; 0
- 229c: 8b 81 ldd r24, Y+3 ; 0x03
- 229e: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
- LCD_SetPos(0, 1);
- fprintf(&lcd_stdout, "Tó=%.3u\x01 ", heater[ch].tset);
-
- if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_SHORT))
- {
- fprintf(&lcd_stdout, "ÎÒÊËÞ×.");
- 22a2: 73 ce rjmp .-794 ; 0x1f8a <main+0x2f6>
- 22a4: 24 e1 ldi r18, 0x14 ; 20
- 22a6: 31 e0 ldi r19, 0x01 ; 1
- 22a8: 47 e0 ldi r20, 0x07 ; 7
- 22aa: 50 e0 ldi r21, 0x00 ; 0
- 22ac: 61 e0 ldi r22, 0x01 ; 1
- 22ae: 70 e0 ldi r23, 0x00 ; 0
- 22b0: 87 e2 ldi r24, 0x27 ; 39
- 22b2: 92 e0 ldi r25, 0x02 ; 2
- 22b4: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- {
- LCD_SendData(0xD9);
- }
- else
- {
- LCD_SendData(0xDA);
- 22b8: 5b cf rjmp .-330 ; 0x2170 <main+0x4dc>
- 22ba: 8a ed ldi r24, 0xDA ; 218
- 22bc: 27 d1 rcall .+590 ; 0x250c <LCD_SendData>
- }
- }
- else
- {
- LCD_SendData('-');
- 22be: 68 cf rjmp .-304 ; 0x2190 <main+0x4fc>
- 22c0: 8d e2 ldi r24, 0x2D ; 45
- 22c2: 24 d1 rcall .+584 ; 0x250c <LCD_SendData>
- 22c4: 65 cf rjmp .-310 ; 0x2190 <main+0x4fc>
- }
-
- if(menu->set == 1)
- {
- if(menu->blink_cnt % 4 == 0)
- 22c6: 11 96 adiw r26, 0x01 ; 1
- 22c8: 8c 91 ld r24, X
- 22ca: 11 97 sbiw r26, 0x01 ; 1
- 22cc: 98 2f mov r25, r24
- 22ce: 93 70 andi r25, 0x03 ; 3
- 22d0: 91 f4 brne .+36 ; 0x22f6 <main+0x662>
- {
- if(menu->blink_cnt > 40)
- 22d2: 89 32 cpi r24, 0x29 ; 41
- 22d4: 08 f0 brcs .+2 ; 0x22d8 <main+0x644>
- 22d6: 81 c0 rjmp .+258 ; 0x23da <main+0x746>
- {
- menu->set = 0;
- menu->blink_cnt = 0;
- SavePrefs();
- }
- LCD_SetPos(3, 1);
- 22d8: 61 e0 ldi r22, 0x01 ; 1
- 22da: 83 e0 ldi r24, 0x03 ; 3
- 22dc: 57 d1 rcall .+686 ; 0x258c <LCD_SetPos>
- 22de: 24 e1 ldi r18, 0x14 ; 20
- fprintf(&lcd_stdout, " ");
- 22e0: 31 e0 ldi r19, 0x01 ; 1
- 22e2: 43 e0 ldi r20, 0x03 ; 3
- 22e4: 50 e0 ldi r21, 0x00 ; 0
- 22e6: 61 e0 ldi r22, 0x01 ; 1
- 22e8: 70 e0 ldi r23, 0x00 ; 0
- 22ea: 86 e6 ldi r24, 0x66 ; 102
- 22ec: 91 e0 ldi r25, 0x01 ; 1
- 22ee: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- 22f2: f4 01 movw r30, r8
- 22f4: 81 81 ldd r24, Z+1 ; 0x01
- }
- menu->blink_cnt++;
- 22f6: 8f 5f subi r24, 0xFF ; 255
- 22f8: d4 01 movw r26, r8
- 22fa: 11 96 adiw r26, 0x01 ; 1
- 22fc: 8c 93 st X, r24
- 22fe: 50 cf rjmp .-352 ; 0x21a0 <main+0x50c>
- }
- else if(menu->set == 2)
- {
- if(menu->blink_cnt % 4 == 0)
- 2300: f4 01 movw r30, r8
- 2302: 81 81 ldd r24, Z+1 ; 0x01
- 2304: 98 2f mov r25, r24
- 2306: 93 70 andi r25, 0x03 ; 3
- {
- if(menu->blink_cnt > 40)
- 2308: 99 f4 brne .+38 ; 0x2330 <main+0x69c>
- 230a: 89 32 cpi r24, 0x29 ; 41
- 230c: 08 f0 brcs .+2 ; 0x2310 <main+0x67c>
- {
- menu->set = 0;
- menu->blink_cnt = 0;
- SavePrefs();
- }
- LCD_SetPos(4, 0);
- 230e: 6a c0 rjmp .+212 ; 0x23e4 <main+0x750>
- 2310: 60 e0 ldi r22, 0x00 ; 0
- 2312: 84 e0 ldi r24, 0x04 ; 4
- fprintf(&lcd_stdout, " ");
- 2314: 3b d1 rcall .+630 ; 0x258c <LCD_SetPos>
- 2316: 24 e1 ldi r18, 0x14 ; 20
- 2318: 31 e0 ldi r19, 0x01 ; 1
- 231a: 42 e0 ldi r20, 0x02 ; 2
- 231c: 50 e0 ldi r21, 0x00 ; 0
- 231e: 61 e0 ldi r22, 0x01 ; 1
- 2320: 70 e0 ldi r23, 0x00 ; 0
- 2322: 87 e6 ldi r24, 0x67 ; 103
- 2324: 91 e0 ldi r25, 0x01 ; 1
- 2326: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- 232a: d4 01 movw r26, r8
- }
- menu->blink_cnt++;
- 232c: 11 96 adiw r26, 0x01 ; 1
- 232e: 8c 91 ld r24, X
- 2330: 8f 5f subi r24, 0xFF ; 255
- 2332: f4 01 movw r30, r8
- break;
- case CIRC_RES:
- LCD_SendData(SYM_RES);
- break;
- case CIRC_MOSFET:
- LCD_SendData(SYM_MOSFET);
- 2334: 81 83 std Z+1, r24 ; 0x01
- 2336: 34 cf rjmp .-408 ; 0x21a0 <main+0x50c>
- 2338: 85 e0 ldi r24, 0x05 ; 5
- break;
- 233a: e8 d0 rcall .+464 ; 0x250c <LCD_SendData>
- {
- fprintf(&lcd_stdout, "ÎÒÊËÞ×.");
- }
- else if(heater[ch].status.circuit == CIRC_RES)
- {
- fprintf(&lcd_stdout, "I=%4.2fA", ((float)heater[ch].current) / 1000.0);
- 233c: b5 ce rjmp .-662 ; 0x20a8 <main+0x414>
- 233e: 66 85 ldd r22, Z+14 ; 0x0e
- 2340: 77 85 ldd r23, Z+15 ; 0x0f
- 2342: 80 e0 ldi r24, 0x00 ; 0
- 2344: 90 e0 ldi r25, 0x00 ; 0
- 2346: b1 d4 rcall .+2402 ; 0x2caa <__floatunsisf>
- 2348: 20 e0 ldi r18, 0x00 ; 0
- 234a: 30 e0 ldi r19, 0x00 ; 0
- 234c: 4a e7 ldi r20, 0x7A ; 122
- 234e: 54 e4 ldi r21, 0x44 ; 68
- 2350: 13 d4 rcall .+2086 ; 0x2b78 <__divsf3>
- 2352: 9f 93 push r25
- 2354: 8f 93 push r24
- 2356: 7f 93 push r23
- 2358: 6f 93 push r22
- 235a: 2f e2 ldi r18, 0x2F ; 47
- 235c: 32 e0 ldi r19, 0x02 ; 2
- 235e: 3f 93 push r19
- 2360: 2f 93 push r18
- 2362: df 92 push r13
- 2364: cf 92 push r12
- 2366: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
- 236a: 0f b6 in r0, 0x3f ; 63
- 236c: f8 94 cli
- 236e: de bf out 0x3e, r29 ; 62
- 2370: 0f be out 0x3f, r0 ; 63
- 2372: cd bf out 0x3d, r28 ; 61
- 2374: fd ce rjmp .-518 ; 0x2170 <main+0x4dc>
- 2376: 81 30 cpi r24, 0x01 ; 1
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- button.prev_code = button.code;
- switch(button.code)
- 2378: 11 f5 brne .+68 ; 0x23be <main+0x72a>
- 237a: f4 01 movw r30, r8
- {
- case 0x01:
- menu->blink_cnt = 1;
- 237c: 11 83 std Z+1, r17 ; 0x01
- 237e: 80 81 ld r24, Z
- if(menu->set == 1)
- 2380: 81 30 cpi r24, 0x01 ; 1
- 2382: b1 f1 breq .+108 ; 0x23f0 <main+0x75c>
- 2384: 82 30 cpi r24, 0x02 ; 2
- {
- heater[ch].tset -= (heater[ch].tset != 0);
- }
- else if(menu->set == 2)
- 2386: 09 f4 brne .+2 ; 0x238a <main+0x6f6>
- 2388: 64 c0 rjmp .+200 ; 0x2452 <main+0x7be>
- 238a: 44 24 eor r4, r4
- 238c: 43 94 inc r4
- 238e: 51 2c mov r5, r1
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 2390: 66 24 eor r6, r6
- 2392: 63 94 inc r6
- heater[ch].preset -= (heater[ch].preset != 0);
- LoadPreset(ch);
- }
- else
- {
- ch = CH0;
- 2394: 1b 82 std Y+3, r1 ; 0x03
- 2396: d7 cc rjmp .-1618 ; 0x1d46 <main+0xb2>
- }
- break;
-
- case 0x02:
- menu->blink_cnt = 1;
- 2398: d4 01 movw r26, r8
- 239a: 11 96 adiw r26, 0x01 ; 1
- 239c: 1c 93 st X, r17
- 239e: 11 97 sbiw r26, 0x01 ; 1
- if(menu->set == 1)
- 23a0: 8c 91 ld r24, X
- 23a2: 81 30 cpi r24, 0x01 ; 1
- 23a4: 09 f4 brne .+2 ; 0x23a8 <main+0x714>
- {
- heater[ch].tset += (heater[ch].tset != 150);
- }
- else if(menu->set == 2)
- 23a6: 3d c0 rjmp .+122 ; 0x2422 <main+0x78e>
- 23a8: 82 30 cpi r24, 0x02 ; 2
- 23aa: 09 f4 brne .+2 ; 0x23ae <main+0x71a>
- 23ac: 68 c0 rjmp .+208 ; 0x247e <main+0x7ea>
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- 23ae: 62 e0 ldi r22, 0x02 ; 2
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 23b0: 46 2e mov r4, r22
- 23b2: 51 2c mov r5, r1
- heater[ch].preset += (heater[ch].preset != 24);
- LoadPreset(ch);
- }
- else
- {
- ch = CH1;
- 23b4: 66 24 eor r6, r6
- 23b6: 63 94 inc r6
- 23b8: e1 e0 ldi r30, 0x01 ; 1
- /* ---------------- BUTTON SECTION --------------- */
- if(btn_act)
- {
- _delay_ms(20);
- btn_act = 0;
- button.code = ~((BTNPIN >> 4) | 0xF0);
- 23ba: eb 83 std Y+3, r30 ; 0x03
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- 23bc: c4 cc rjmp .-1656 ; 0x1d46 <main+0xb2>
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 23be: 48 2e mov r4, r24
- 23c0: 51 2c mov r5, r1
- 23c2: 66 24 eor r6, r6
- ch = CH1;
- }
- break;
-
- case 0x03:
- LCD_SendCmd(LCD_CLR);
- 23c4: 63 94 inc r6
- 23c6: bf cc rjmp .-1666 ; 0x1d46 <main+0xb2>
- 23c8: 81 e0 ldi r24, 0x01 ; 1
- display = DISP_VER;
- break;
- 23ca: bb d0 rcall .+374 ; 0x2542 <LCD_SendCmd>
- 23cc: 93 e0 ldi r25, 0x03 ; 3
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- 23ce: 49 2e mov r4, r25
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 23d0: 51 2c mov r5, r1
- 23d2: 66 24 eor r6, r6
- }
- break;
-
- case 0x03:
- LCD_SendCmd(LCD_CLR);
- display = DISP_VER;
- 23d4: 63 94 inc r6
- break;
- 23d6: 13 e0 ldi r17, 0x03 ; 3
- {
- if(menu->blink_cnt % 4 == 0)
- {
- if(menu->blink_cnt > 40)
- {
- menu->set = 0;
- 23d8: b6 cc rjmp .-1684 ; 0x1d46 <main+0xb2>
- menu->blink_cnt = 0;
- 23da: 1c 92 st X, r1
- 23dc: 11 96 adiw r26, 0x01 ; 1
- SavePrefs();
- 23de: 1c 92 st X, r1
- 23e0: a9 d2 rcall .+1362 ; 0x2934 <SavePrefs>
- 23e2: 7a cf rjmp .-268 ; 0x22d8 <main+0x644>
- {
- if(menu->blink_cnt % 4 == 0)
- {
- if(menu->blink_cnt > 40)
- {
- menu->set = 0;
- 23e4: 10 82 st Z, r1
- menu->blink_cnt = 0;
- 23e6: 11 82 std Z+1, r1 ; 0x01
- SavePrefs();
- 23e8: a5 d2 rcall .+1354 ; 0x2934 <SavePrefs>
- 23ea: 92 cf rjmp .-220 ; 0x2310 <main+0x67c>
- 23ec: a3 d2 rcall .+1350 ; 0x2934 <SavePrefs>
- break;
-
- case 0x04:
- menu->set = (menu->set + 1) % 3;
- if(menu->set == 0)
- SavePrefs();
- 23ee: 10 cd rjmp .-1504 ; 0x1e10 <main+0x17c>
- 23f0: 23 e1 ldi r18, 0x13 ; 19
- 23f2: 3b 81 ldd r19, Y+3 ; 0x03
- {
- case 0x01:
- menu->blink_cnt = 1;
- if(menu->set == 1)
- {
- heater[ch].tset -= (heater[ch].tset != 0);
- 23f4: 23 9f mul r18, r19
- 23f6: f0 01 movw r30, r0
- 23f8: 11 24 eor r1, r1
- 23fa: e0 5e subi r30, 0xE0 ; 224
- 23fc: fc 4f sbci r31, 0xFC ; 252
- 23fe: 82 85 ldd r24, Z+10 ; 0x0a
- 2400: 93 85 ldd r25, Z+11 ; 0x0b
- 2402: 21 e0 ldi r18, 0x01 ; 1
- 2404: 30 e0 ldi r19, 0x00 ; 0
- 2406: 00 97 sbiw r24, 0x00 ; 0
- 2408: 11 f4 brne .+4 ; 0x240e <main+0x77a>
- 240a: 20 e0 ldi r18, 0x00 ; 0
- 240c: 30 e0 ldi r19, 0x00 ; 0
- 240e: 82 1b sub r24, r18
- 2410: 93 0b sbc r25, r19
- 2412: 93 87 std Z+11, r25 ; 0x0b
- 2414: 82 87 std Z+10, r24 ; 0x0a
- 2416: 44 24 eor r4, r4
- 2418: 43 94 inc r4
- 241a: 51 2c mov r5, r1
- 241c: 66 24 eor r6, r6
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- 241e: 63 94 inc r6
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 2420: 92 cc rjmp .-1756 ; 0x1d46 <main+0xb2>
- 2422: b3 e1 ldi r27, 0x13 ; 19
- 2424: 2b 81 ldd r18, Y+3 ; 0x03
-
- case 0x02:
- menu->blink_cnt = 1;
- if(menu->set == 1)
- {
- heater[ch].tset += (heater[ch].tset != 150);
- 2426: b2 9f mul r27, r18
- 2428: f0 01 movw r30, r0
- 242a: 11 24 eor r1, r1
- 242c: e0 5e subi r30, 0xE0 ; 224
- 242e: fc 4f sbci r31, 0xFC ; 252
- 2430: 82 85 ldd r24, Z+10 ; 0x0a
- 2432: 93 85 ldd r25, Z+11 ; 0x0b
- 2434: 21 e0 ldi r18, 0x01 ; 1
- 2436: 30 e0 ldi r19, 0x00 ; 0
- 2438: 86 39 cpi r24, 0x96 ; 150
- 243a: 91 05 cpc r25, r1
- 243c: a9 f1 breq .+106 ; 0x24a8 <main+0x814>
- 243e: 82 0f add r24, r18
- 2440: 93 1f adc r25, r19
- 2442: 93 87 std Z+11, r25 ; 0x0b
- 2444: 82 87 std Z+10, r24 ; 0x0a
- 2446: 32 e0 ldi r19, 0x02 ; 2
- 2448: 43 2e mov r4, r19
- 244a: 51 2c mov r5, r1
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- 244c: 66 24 eor r6, r6
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 244e: 63 94 inc r6
- 2450: 7a cc rjmp .-1804 ; 0x1d46 <main+0xb2>
- 2452: 83 e1 ldi r24, 0x13 ; 19
- {
- heater[ch].tset -= (heater[ch].tset != 0);
- }
- else if(menu->set == 2)
- {
- heater[ch].preset -= (heater[ch].preset != 0);
- 2454: 9b 81 ldd r25, Y+3 ; 0x03
- 2456: 89 9f mul r24, r25
- 2458: f0 01 movw r30, r0
- 245a: 11 24 eor r1, r1
- 245c: e0 5e subi r30, 0xE0 ; 224
- 245e: fc 4f sbci r31, 0xFC ; 252
- 2460: 82 81 ldd r24, Z+2 ; 0x02
- 2462: 91 e0 ldi r25, 0x01 ; 1
- 2464: 81 11 cpse r24, r1
- 2466: 01 c0 rjmp .+2 ; 0x246a <main+0x7d6>
- 2468: 90 e0 ldi r25, 0x00 ; 0
- 246a: 89 1b sub r24, r25
- 246c: 82 83 std Z+2, r24 ; 0x02
- LoadPreset(ch);
- 246e: 8b 81 ldd r24, Y+3 ; 0x03
- 2470: 85 d2 rcall .+1290 ; 0x297c <LoadPreset>
- 2472: 44 24 eor r4, r4
- 2474: 43 94 inc r4
- 2476: 51 2c mov r5, r1
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- 2478: 66 24 eor r6, r6
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 247a: 63 94 inc r6
- 247c: 64 cc rjmp .-1848 ; 0x1d46 <main+0xb2>
- 247e: 33 e1 ldi r19, 0x13 ; 19
- {
- heater[ch].tset += (heater[ch].tset != 150);
- }
- else if(menu->set == 2)
- {
- heater[ch].preset += (heater[ch].preset != 24);
- 2480: 8b 81 ldd r24, Y+3 ; 0x03
- 2482: 38 9f mul r19, r24
- 2484: f0 01 movw r30, r0
- 2486: 11 24 eor r1, r1
- 2488: e0 5e subi r30, 0xE0 ; 224
- 248a: fc 4f sbci r31, 0xFC ; 252
- 248c: 82 81 ldd r24, Z+2 ; 0x02
- 248e: 91 e0 ldi r25, 0x01 ; 1
- 2490: 88 31 cpi r24, 0x18 ; 24
- 2492: 69 f0 breq .+26 ; 0x24ae <main+0x81a>
- 2494: 89 0f add r24, r25
- 2496: 82 83 std Z+2, r24 ; 0x02
- 2498: 8b 81 ldd r24, Y+3 ; 0x03
- LoadPreset(ch);
- 249a: 70 d2 rcall .+1248 ; 0x297c <LoadPreset>
- 249c: 22 e0 ldi r18, 0x02 ; 2
- 249e: 42 2e mov r4, r18
- 24a0: 51 2c mov r5, r1
- 24a2: 66 24 eor r6, r6
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- button.released = 0;
- 24a4: 63 94 inc r6
- button.code = ~((BTNPIN >> 4) | 0xF0);
- if((button.code != 0x00) && (!button.holded)) // Button down event
- {
- if(display == DISP_MAIN)
- {
- button.pressed = 1;
- 24a6: 4f cc rjmp .-1890 ; 0x1d46 <main+0xb2>
- 24a8: 20 e0 ldi r18, 0x00 ; 0
- 24aa: 30 e0 ldi r19, 0x00 ; 0
-
- case 0x02:
- menu->blink_cnt = 1;
- if(menu->set == 1)
- {
- heater[ch].tset += (heater[ch].tset != 150);
- 24ac: c8 cf rjmp .-112 ; 0x243e <main+0x7aa>
- 24ae: 90 e0 ldi r25, 0x00 ; 0
- 24b0: f1 cf rjmp .-30 ; 0x2494 <main+0x800>
- 000024b2 <I2C_SendByte>:
- { 0x08, 0x08, 0x04, 0x02, 0x01, 0x08, 0x08, 0x08 }, /* 6 OPEN */
- { 0x08, 0x08, 0x04, 0x04, 0x02, 0x0F, 0x0A, 0x08 }};/* 7 SHORT */
-
- void I2C_SendByte(uint8_t byte)
- {
- cli();
- 24b2: f8 94 cli
- TWCR |= (1 << TWINT) | (1 << TWSTA);
- 24b4: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- 24b8: 90 6a ori r25, 0xA0 ; 160
- 24ba: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- while(!(TWCR & (1 << TWINT)));
- 24be: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- 24c2: 97 ff sbrs r25, 7
- 24c4: fc cf rjmp .-8 ; 0x24be <I2C_SendByte+0xc>
- TWDR = LCDI2CADDR;
- 24c6: 9e e4 ldi r25, 0x4E ; 78
- 24c8: 90 93 bb 00 sts 0x00BB, r25 ; 0x8000bb <__TEXT_REGION_LENGTH__+0x7e00bb>
- TWCR &= ~(1 << TWSTA);
- 24cc: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- 24d0: 9f 7d andi r25, 0xDF ; 223
- 24d2: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- TWCR |= (1 << TWINT);
- 24d6: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- 24da: 90 68 ori r25, 0x80 ; 128
- 24dc: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- while(!(TWCR & (1 << TWINT)));
- 24e0: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- 24e4: 97 ff sbrs r25, 7
- 24e6: fc cf rjmp .-8 ; 0x24e0 <I2C_SendByte+0x2e>
- TWDR = byte;
- 24e8: 80 93 bb 00 sts 0x00BB, r24 ; 0x8000bb <__TEXT_REGION_LENGTH__+0x7e00bb>
- TWCR |= (1 << TWINT);
- 24ec: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- 24f0: 80 68 ori r24, 0x80 ; 128
- 24f2: 80 93 bc 00 sts 0x00BC, r24 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- while(!(TWCR & (1 << TWINT)));
- 24f6: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- 24fa: 87 ff sbrs r24, 7
- 24fc: fc cf rjmp .-8 ; 0x24f6 <I2C_SendByte+0x44>
- TWCR |= (1 << TWINT) | (1 << TWSTO);
- 24fe: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- 2502: 80 69 ori r24, 0x90 ; 144
- 2504: 80 93 bc 00 sts 0x00BC, r24 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
- sei();
- 2508: 78 94 sei
- 250a: 08 95 ret
- 0000250c <LCD_SendData>:
- }
- void LCD_SendData(uint8_t data)
- {
- 250c: cf 93 push r28
- 250e: df 93 push r29
- 2510: c8 2f mov r28, r24
- I2C_SendByte((data & 0xF0) | LCD_RS | LCD_E);
- 2512: d8 2f mov r29, r24
- 2514: d0 7f andi r29, 0xF0 ; 240
- 2516: 8d 2f mov r24, r29
- 2518: 85 60 ori r24, 0x05 ; 5
- 251a: cb df rcall .-106 ; 0x24b2 <I2C_SendByte>
- I2C_SendByte((data & 0xF0) | LCD_RS);
- 251c: 8d 2f mov r24, r29
- 251e: 81 60 ori r24, 0x01 ; 1
- 2520: c8 df rcall .-112 ; 0x24b2 <I2C_SendByte>
- I2C_SendByte((data << 4) | LCD_RS | LCD_E);
- 2522: 80 e1 ldi r24, 0x10 ; 16
- 2524: c8 9f mul r28, r24
- 2526: e0 01 movw r28, r0
- 2528: 11 24 eor r1, r1
- 252a: 8c 2f mov r24, r28
- 252c: 85 60 ori r24, 0x05 ; 5
- 252e: c1 df rcall .-126 ; 0x24b2 <I2C_SendByte>
- I2C_SendByte((data << 4) | LCD_RS);
- 2530: 8c 2f mov r24, r28
- 2532: 81 60 ori r24, 0x01 ; 1
- 2534: be df rcall .-132 ; 0x24b2 <I2C_SendByte>
- 2536: 80 e1 ldi r24, 0x10 ; 16
- #else
- //round up by default
- __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
- #endif
- __builtin_avr_delay_cycles(__ticks_dc);
- 2538: 8a 95 dec r24
- 253a: f1 f7 brne .-4 ; 0x2538 <LCD_SendData+0x2c>
- 253c: df 91 pop r29
- _delay_us(4);
- }
- 253e: cf 91 pop r28
- 2540: 08 95 ret
- 00002542 <LCD_SendCmd>:
- 2542: cf 93 push r28
- void LCD_SendCmd(uint8_t cmd)
- {
- 2544: df 93 push r29
- 2546: c8 2f mov r28, r24
- I2C_SendByte(((cmd & 0xF0) & ~LCD_RS) | LCD_E);
- 2548: d8 2f mov r29, r24
- 254a: d0 7f andi r29, 0xF0 ; 240
- 254c: 8d 2f mov r24, r29
- 254e: 84 60 ori r24, 0x04 ; 4
- 2550: b0 df rcall .-160 ; 0x24b2 <I2C_SendByte>
- I2C_SendByte((cmd & 0xF0) & ~LCD_RS);
- 2552: 8d 2f mov r24, r29
- 2554: ae df rcall .-164 ; 0x24b2 <I2C_SendByte>
- I2C_SendByte(((cmd << 4) & ~LCD_RS) | LCD_E);
- 2556: 20 e1 ldi r18, 0x10 ; 16
- 2558: c2 9f mul r28, r18
- 255a: c0 01 movw r24, r0
- 255c: 11 24 eor r1, r1
- 255e: 84 60 ori r24, 0x04 ; 4
- 2560: a8 df rcall .-176 ; 0x24b2 <I2C_SendByte>
- I2C_SendByte((cmd << 4) & ~LCD_RS);
- 2562: 8c 2f mov r24, r28
- 2564: 82 95 swap r24
- 2566: 80 7f andi r24, 0xF0 ; 240
- 2568: a4 df rcall .-184 ; 0x24b2 <I2C_SendByte>
- if(cmd == LCD_CLR)
- 256a: c1 30 cpi r28, 0x01 ; 1
- 256c: 31 f0 breq .+12 ; 0x257a <LCD_SendCmd+0x38>
- 256e: 98 e2 ldi r25, 0x28 ; 40
- 2570: 9a 95 dec r25
- 2572: f1 f7 brne .-4 ; 0x2570 <LCD_SendCmd+0x2e>
- }
- else
- {
- _delay_us(10);
- }
- }
- 2574: df 91 pop r29
- 2576: cf 91 pop r28
- 2578: 08 95 ret
- #else
- //round up by default
- __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
- #endif
- __builtin_avr_delay_cycles(__ticks_dc);
- 257a: 8f e4 ldi r24, 0x4F ; 79
- 257c: 96 e4 ldi r25, 0x46 ; 70
- 257e: 01 97 sbiw r24, 0x01 ; 1
- 2580: f1 f7 brne .-4 ; 0x257e <LCD_SendCmd+0x3c>
- 2582: 00 c0 rjmp .+0 ; 0x2584 <LCD_SendCmd+0x42>
- 2584: 00 00 nop
- 2586: df 91 pop r29
- 2588: cf 91 pop r28
- 258a: 08 95 ret
- 0000258c <LCD_SetPos>:
- void LCD_SetPos(uint8_t x, uint8_t y)
- {
- y = ((y & 0x01) * 0x40);
- 258c: 61 70 andi r22, 0x01 ; 1
- x &= 0x0F;
- LCD_SendCmd(LCD_DDRAM | (x + y));
- 258e: 8f 70 andi r24, 0x0F ; 15
- 2590: 90 e4 ldi r25, 0x40 ; 64
- 2592: 69 9f mul r22, r25
- 2594: 80 0d add r24, r0
- 2596: 11 24 eor r1, r1
- 2598: 80 68 ori r24, 0x80 ; 128
- 259a: d3 cf rjmp .-90 ; 0x2542 <LCD_SendCmd>
- 0000259c <LoadSymbols>:
- }
- void LoadSymbols()
- {
- 259c: cf 92 push r12
- 259e: df 92 push r13
- 25a0: ff 92 push r15
- 25a2: 0f 93 push r16
- 25a4: 1f 93 push r17
- 25a6: cf 93 push r28
- 25a8: df 93 push r29
- 25aa: 84 ea ldi r24, 0xA4 ; 164
- 25ac: c8 2e mov r12, r24
- 25ae: 82 e0 ldi r24, 0x02 ; 2
- 25b0: d8 2e mov r13, r24
- 25b2: f1 2c mov r15, r1
- 25b4: d0 e0 ldi r29, 0x00 ; 0
- for(uint8_t i = 0; i < 8; i++)
- {
- LCD_SendCmd(LCD_CGRAM | (0x08 * i));
- 25b6: 8f 2d mov r24, r15
- 25b8: 80 64 ori r24, 0x40 ; 64
- 25ba: c3 df rcall .-122 ; 0x2542 <LCD_SendCmd>
- 25bc: 86 01 movw r16, r12
- 25be: c8 e0 ldi r28, 0x08 ; 8
- 25c0: 03 c0 rjmp .+6 ; 0x25c8 <LoadSymbols+0x2c>
- 25c2: f8 01 movw r30, r16
- 25c4: d1 91 ld r29, Z+
- 25c6: 8f 01 movw r16, r30
- for(uint8_t j = 0; j < 8; j++)
- {
- LCD_SendData(symbols[i][j]);
- 25c8: 8d 2f mov r24, r29
- 25ca: a0 df rcall .-192 ; 0x250c <LCD_SendData>
- 25cc: c1 50 subi r28, 0x01 ; 1
- void LoadSymbols()
- {
- for(uint8_t i = 0; i < 8; i++)
- {
- LCD_SendCmd(LCD_CGRAM | (0x08 * i));
- for(uint8_t j = 0; j < 8; j++)
- 25ce: c9 f7 brne .-14 ; 0x25c2 <LoadSymbols+0x26>
- 25d0: f8 e0 ldi r31, 0x08 ; 8
- 25d2: ff 0e add r15, r31
- LCD_SendCmd(LCD_DDRAM | (x + y));
- }
- void LoadSymbols()
- {
- for(uint8_t i = 0; i < 8; i++)
- 25d4: 80 e4 ldi r24, 0x40 ; 64
- 25d6: f8 16 cp r15, r24
- 25d8: 31 f0 breq .+12 ; 0x25e6 <LoadSymbols+0x4a>
- 25da: f6 01 movw r30, r12
- 25dc: d7 81 ldd r29, Z+7 ; 0x07
- 25de: f8 e0 ldi r31, 0x08 ; 8
- 25e0: cf 0e add r12, r31
- 25e2: d1 1c adc r13, r1
- 25e4: e8 cf rjmp .-48 ; 0x25b6 <LoadSymbols+0x1a>
- for(uint8_t j = 0; j < 8; j++)
- {
- LCD_SendData(symbols[i][j]);
- }
- }
- }
- 25e6: df 91 pop r29
- 25e8: cf 91 pop r28
- 25ea: 1f 91 pop r17
- 25ec: 0f 91 pop r16
- 25ee: ff 90 pop r15
- 25f0: df 90 pop r13
- 25f2: cf 90 pop r12
- 25f4: 08 95 ret
- 000025f6 <LCD_Init>:
- void LCD_Init(void)
- {
- 25f6: cf 93 push r28
- I2C_SendByte(0x00);
- 25f8: 80 e0 ldi r24, 0x00 ; 0
- 25fa: 5b df rcall .-330 ; 0x24b2 <I2C_SendByte>
- 25fc: 2f eb ldi r18, 0xBF ; 191
- 25fe: 84 ed ldi r24, 0xD4 ; 212
- 2600: 91 e0 ldi r25, 0x01 ; 1
- 2602: 21 50 subi r18, 0x01 ; 1
- 2604: 80 40 sbci r24, 0x00 ; 0
- 2606: 90 40 sbci r25, 0x00 ; 0
- 2608: e1 f7 brne .-8 ; 0x2602 <LCD_Init+0xc>
- 260a: 00 c0 rjmp .+0 ; 0x260c <LCD_Init+0x16>
- 260c: 00 00 nop
- 260e: c5 e0 ldi r28, 0x05 ; 5
- _delay_ms(50);
- for(uint8_t i = 0; i < 5; i++)
- {
- I2C_SendByte(0x00 | LCD_E);
- 2610: 84 e0 ldi r24, 0x04 ; 4
- 2612: 4f df rcall .-354 ; 0x24b2 <I2C_SendByte>
- I2C_SendByte(0x00 & ~LCD_E);
- 2614: 80 e0 ldi r24, 0x00 ; 0
- 2616: 4d df rcall .-358 ; 0x24b2 <I2C_SendByte>
- 2618: c1 50 subi r28, 0x01 ; 1
- 261a: d1 f7 brne .-12 ; 0x2610 <LCD_Init+0x1a>
- {
- I2C_SendByte(0x00);
- _delay_ms(50);
- for(uint8_t i = 0; i < 5; i++)
- 261c: 28 ec ldi r18, 0xC8 ; 200
- #else
- //round up by default
- __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
- #endif
- __builtin_avr_delay_cycles(__ticks_dc);
- 261e: 2a 95 dec r18
- 2620: f1 f7 brne .-4 ; 0x261e <LCD_Init+0x28>
- I2C_SendByte(0x00 | LCD_E);
- I2C_SendByte(0x00 & ~LCD_E);
- }
- _delay_us(50);
-
- I2C_SendByte(LCD_WIDTH | LCD_E);
- 2622: 84 e2 ldi r24, 0x24 ; 36
- 2624: 46 df rcall .-372 ; 0x24b2 <I2C_SendByte>
- I2C_SendByte(LCD_WIDTH & ~LCD_E);
- 2626: 80 e2 ldi r24, 0x20 ; 32
- 2628: 44 df rcall .-376 ; 0x24b2 <I2C_SendByte>
- LCD_SendCmd(LCD_WIDTH | LCD_WIDTH_N | LCD_WIDTH_FT1);
- 262a: 8a e2 ldi r24, 0x2A ; 42
- 262c: 8a df rcall .-236 ; 0x2542 <LCD_SendCmd>
- LCD_SendCmd(LCD_ONOFF);
- 262e: 88 e0 ldi r24, 0x08 ; 8
- 2630: 88 df rcall .-240 ; 0x2542 <LCD_SendCmd>
- LCD_SendCmd(LCD_CLR);
- 2632: 81 e0 ldi r24, 0x01 ; 1
- 2634: 86 df rcall .-244 ; 0x2542 <LCD_SendCmd>
- LCD_SendCmd(LCD_DIR | LCD_DIR_ID);
- 2636: 86 e0 ldi r24, 0x06 ; 6
- 2638: 84 df rcall .-248 ; 0x2542 <LCD_SendCmd>
- 263a: 8c e0 ldi r24, 0x0C ; 12
- LCD_SendCmd(LCD_ONOFF | LCD_ONOFF_D);
- 263c: 82 df rcall .-252 ; 0x2542 <LCD_SendCmd>
- 263e: cf 91 pop r28
- 2640: ad cf rjmp .-166 ; 0x259c <LoadSymbols>
- 00002642 <POT_SendData>:
- LoadSymbols();
- }
- 2642: 95 b1 in r25, 0x05 ; 5
- LCD_SendCmd(LCD_WIDTH | LCD_WIDTH_N | LCD_WIDTH_FT1);
- LCD_SendCmd(LCD_ONOFF);
- LCD_SendCmd(LCD_CLR);
- LCD_SendCmd(LCD_DIR | LCD_DIR_ID);
- LCD_SendCmd(LCD_ONOFF | LCD_ONOFF_D);
- LoadSymbols();
- 2644: 98 7f andi r25, 0xF8 ; 248
- 2646: 67 70 andi r22, 0x07 ; 7
- ch = (ch & 0x01) * 2;
- potval = (uint8_t)((shift * 255.0) / 2.037);
- POT_SendData(potval, ch);
- //return (((float)potval * 2.037) / 255.0);
- return potval;
- }
- 2648: 69 2b or r22, r25
- 264a: 65 b9 out 0x05, r22 ; 5
- 264c: 2c 98 cbi 0x05, 4 ; 5
- 264e: 91 e1 ldi r25, 0x11 ; 17
- 2650: 9e bd out 0x2e, r25 ; 46
- 2652: 0d b4 in r0, 0x2d ; 45
- 2654: 07 fe sbrs r0, 7
- 2656: fd cf rjmp .-6 ; 0x2652 <POT_SendData+0x10>
- 2658: 8e bd out 0x2e, r24 ; 46
- 265a: 0d b4 in r0, 0x2d ; 45
- 265c: 07 fe sbrs r0, 7
- 265e: fd cf rjmp .-6 ; 0x265a <POT_SendData+0x18>
- 2660: 2c 9a sbi 0x05, 4 ; 5
- 2662: 08 95 ret
- 00002664 <SetDriveVoltage>:
- uint8_t SetDriveVoltage(uint8_t ch, float voltage)
- {
- 2664: cf 92 push r12
- 2666: df 92 push r13
- 2668: ef 92 push r14
- 266a: ff 92 push r15
- 266c: cf 93 push r28
- 266e: df 93 push r29
- 2670: 6a 01 movw r12, r20
- 2672: 7b 01 movw r14, r22
- uint8_t potval;
- ch = POT_DRIVE1 + (ch & 0x01);
- 2674: c8 2f mov r28, r24
- 2676: c1 70 andi r28, 0x01 ; 1
- potval = (uint8_t)(voltage * 25.76);
- 2678: 2b e7 ldi r18, 0x7B ; 123
- 267a: 34 e1 ldi r19, 0x14 ; 20
- 267c: 4e ec ldi r20, 0xCE ; 206
- 267e: 51 e4 ldi r21, 0x41 ; 65
- 2680: c7 01 movw r24, r14
- 2682: b6 01 movw r22, r12
- 2684: c8 d3 rcall .+1936 ; 0x2e16 <__mulsf3>
- 2686: e5 d2 rcall .+1482 ; 0x2c52 <__fixunssfsi>
- 2688: d6 2f mov r29, r22
- POT_SendData(potval, ch);
- 268a: 64 e0 ldi r22, 0x04 ; 4
- 268c: 6c 0f add r22, r28
- 268e: 8d 2f mov r24, r29
- 2690: d8 df rcall .-80 ; 0x2642 <POT_SendData>
- //return ((float)potval / 25.76);
- return potval;
- }
- 2692: 8d 2f mov r24, r29
- 2694: df 91 pop r29
- 2696: cf 91 pop r28
- 2698: ff 90 pop r15
- 269a: ef 90 pop r14
- 269c: df 90 pop r13
- 269e: cf 90 pop r12
- 26a0: 08 95 ret
- 000026a2 <SetInputRange>:
- void SetInputRange(uint8_t ch, float vlow, float vhigh)
- {
- 26a2: 8f 92 push r8
- 26a4: 9f 92 push r9
- 26a6: af 92 push r10
- 26a8: bf 92 push r11
- 26aa: cf 92 push r12
- 26ac: df 92 push r13
- 26ae: ef 92 push r14
- 26b0: ff 92 push r15
- 26b2: 0f 93 push r16
- 26b4: 1f 93 push r17
- 26b6: cf 93 push r28
- 26b8: df 93 push r29
- 26ba: e8 2f mov r30, r24
- 26bc: 4a 01 movw r8, r20
- 26be: 5b 01 movw r10, r22
- 26c0: c9 01 movw r24, r18
- 26c2: b8 01 movw r22, r16
- heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow)));
- 26c4: ce 2e mov r12, r30
- 26c6: d1 2c mov r13, r1
- }
- uint8_t SetOpampGain(uint8_t ch, float gain)
- {
- uint8_t potval;
- ch = ((ch & 0x01) * 2) + 1;
- 26c8: 2e 2f mov r18, r30
- 26ca: 21 70 andi r18, 0x01 ; 1
- 26cc: c2 2f mov r28, r18
- 26ce: cc 0f add r28, r28
- potval = (uint8_t)((8.448 * gain) - 8.9088);
- 26d0: a5 01 movw r20, r10
- 26d2: 94 01 movw r18, r8
- 26d4: e8 d1 rcall .+976 ; 0x2aa6 <__subsf3>
- 26d6: 9b 01 movw r18, r22
- 26d8: ac 01 movw r20, r24
- 26da: 63 e3 ldi r22, 0x33 ; 51
- 26dc: 73 e3 ldi r23, 0x33 ; 51
- 26de: 83 e5 ldi r24, 0x53 ; 83
- 26e0: 90 e4 ldi r25, 0x40 ; 64
- 26e2: 4a d2 rcall .+1172 ; 0x2b78 <__divsf3>
- 26e4: 22 e0 ldi r18, 0x02 ; 2
- 26e6: 3b e2 ldi r19, 0x2B ; 43
- 26e8: 47 e0 ldi r20, 0x07 ; 7
- 26ea: 51 e4 ldi r21, 0x41 ; 65
- 26ec: 94 d3 rcall .+1832 ; 0x2e16 <__mulsf3>
- 26ee: 22 e7 ldi r18, 0x72 ; 114
- 26f0: 3a e8 ldi r19, 0x8A ; 138
- 26f2: 4e e0 ldi r20, 0x0E ; 14
- 26f4: 51 e4 ldi r21, 0x41 ; 65
- 26f6: d7 d1 rcall .+942 ; 0x2aa6 <__subsf3>
- 26f8: ac d2 rcall .+1368 ; 0x2c52 <__fixunssfsi>
- 26fa: d6 2f mov r29, r22
- POT_SendData(potval, ch);
- 26fc: 61 e0 ldi r22, 0x01 ; 1
- 26fe: 6c 0f add r22, r28
- 2700: 8d 2f mov r24, r29
- 2702: 9f df rcall .-194 ; 0x2642 <POT_SendData>
- 2704: 83 e1 ldi r24, 0x13 ; 19
- return potval;
- }
- void SetInputRange(uint8_t ch, float vlow, float vhigh)
- {
- heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow)));
- 2706: 8c 9d mul r24, r12
- 2708: 80 01 movw r16, r0
- 270a: 8d 9d mul r24, r13
- 270c: 10 0d add r17, r0
- 270e: 11 24 eor r1, r1
- 2710: 00 5e subi r16, 0xE0 ; 224
- 2712: 1c 4f sbci r17, 0xFC ; 252
- 2714: f8 01 movw r30, r16
- 2716: d0 8b std Z+16, r29 ; 0x10
- 2718: 2a e4 ldi r18, 0x4A ; 74
- uint8_t SetOpampShift(uint8_t ch, float shift)
- {
- uint8_t potval;
- ch = (ch & 0x01) * 2;
- potval = (uint8_t)((shift * 255.0) / 2.037);
- 271a: 3c e0 ldi r19, 0x0C ; 12
- 271c: 42 e4 ldi r20, 0x42 ; 66
- 271e: 5f e3 ldi r21, 0x3F ; 63
- 2720: c5 01 movw r24, r10
- 2722: b4 01 movw r22, r8
- 2724: 78 d3 rcall .+1776 ; 0x2e16 <__mulsf3>
- 2726: 20 e0 ldi r18, 0x00 ; 0
- 2728: 30 e0 ldi r19, 0x00 ; 0
- 272a: 4f e7 ldi r20, 0x7F ; 127
- 272c: 53 e4 ldi r21, 0x43 ; 67
- 272e: 73 d3 rcall .+1766 ; 0x2e16 <__mulsf3>
- 2730: 25 e3 ldi r18, 0x35 ; 53
- 2732: 3e e5 ldi r19, 0x5E ; 94
- 2734: 42 e0 ldi r20, 0x02 ; 2
- 2736: 50 e4 ldi r21, 0x40 ; 64
- 2738: 1f d2 rcall .+1086 ; 0x2b78 <__divsf3>
- 273a: 8b d2 rcall .+1302 ; 0x2c52 <__fixunssfsi>
- 273c: d6 2f mov r29, r22
- POT_SendData(potval, ch);
- 273e: 6c 2f mov r22, r28
- 2740: 8d 2f mov r24, r29
- 2742: 7f df rcall .-258 ; 0x2642 <POT_SendData>
- 2744: f8 01 movw r30, r16
- }
- void SetInputRange(uint8_t ch, float vlow, float vhigh)
- {
- heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow)));
- heater[ch].shift = SetOpampShift(ch, (0.758 * vlow));
- 2746: d1 8b std Z+17, r29 ; 0x11
- 2748: 2d e0 ldi r18, 0x0D ; 13
- opamp[ch].gain = (((float)heater[ch].gain + 8.9088) / 8.448);
- 274a: 2c 9d mul r18, r12
- 274c: c0 01 movw r24, r0
- 274e: 2d 9d mul r18, r13
- 2750: 90 0d add r25, r0
- 2752: 11 24 eor r1, r1
- 2754: 9c 01 movw r18, r24
- 2756: 22 57 subi r18, 0x72 ; 114
- 2758: 39 4f sbci r19, 0xF9 ; 249
- 275a: 79 01 movw r14, r18
- 275c: 60 89 ldd r22, Z+16 ; 0x10
- 275e: 70 e0 ldi r23, 0x00 ; 0
- 2760: 80 e0 ldi r24, 0x00 ; 0
- 2762: 90 e0 ldi r25, 0x00 ; 0
- 2764: a2 d2 rcall .+1348 ; 0x2caa <__floatunsisf>
- 2766: 22 e7 ldi r18, 0x72 ; 114
- 2768: 3a e8 ldi r19, 0x8A ; 138
- 276a: 4e e0 ldi r20, 0x0E ; 14
- 276c: 51 e4 ldi r21, 0x41 ; 65
- 276e: 9c d1 rcall .+824 ; 0x2aa8 <__addsf3>
- 2770: 22 e0 ldi r18, 0x02 ; 2
- 2772: 3b e2 ldi r19, 0x2B ; 43
- 2774: 47 e0 ldi r20, 0x07 ; 7
- 2776: 51 e4 ldi r21, 0x41 ; 65
- 2778: ff d1 rcall .+1022 ; 0x2b78 <__divsf3>
- 277a: f7 01 movw r30, r14
- 277c: 61 83 std Z+1, r22 ; 0x01
- 277e: 72 83 std Z+2, r23 ; 0x02
- 2780: 83 83 std Z+3, r24 ; 0x03
- opamp[ch].shift = (((float)heater[ch].shift * 2.037) / 255.0);
- 2782: 94 83 std Z+4, r25 ; 0x04
- 2784: 6d 2f mov r22, r29
- 2786: 70 e0 ldi r23, 0x00 ; 0
- 2788: 80 e0 ldi r24, 0x00 ; 0
- 278a: 90 e0 ldi r25, 0x00 ; 0
- 278c: 8e d2 rcall .+1308 ; 0x2caa <__floatunsisf>
- 278e: 25 e3 ldi r18, 0x35 ; 53
- 2790: 3e e5 ldi r19, 0x5E ; 94
- 2792: 42 e0 ldi r20, 0x02 ; 2
- 2794: 50 e4 ldi r21, 0x40 ; 64
- 2796: 3f d3 rcall .+1662 ; 0x2e16 <__mulsf3>
- 2798: 20 e0 ldi r18, 0x00 ; 0
- 279a: 30 e0 ldi r19, 0x00 ; 0
- 279c: 4f e7 ldi r20, 0x7F ; 127
- 279e: 53 e4 ldi r21, 0x43 ; 67
- 27a0: eb d1 rcall .+982 ; 0x2b78 <__divsf3>
- 27a2: f7 01 movw r30, r14
- 27a4: 65 83 std Z+5, r22 ; 0x05
- 27a6: 76 83 std Z+6, r23 ; 0x06
- 27a8: 87 83 std Z+7, r24 ; 0x07
- 27aa: 90 87 std Z+8, r25 ; 0x08
- 27ac: df 91 pop r29
- }
- 27ae: cf 91 pop r28
- 27b0: 1f 91 pop r17
- 27b2: 0f 91 pop r16
- 27b4: ff 90 pop r15
- 27b6: ef 90 pop r14
- 27b8: df 90 pop r13
- 27ba: cf 90 pop r12
- 27bc: bf 90 pop r11
- 27be: af 90 pop r10
- 27c0: 9f 90 pop r9
- 27c2: 8f 90 pop r8
- 27c4: 08 95 ret
- 000027c6 <SetGainData>:
- 27c6: 1f 93 push r17
- void SetGainData(uint8_t ch, uint8_t data)
- {
- 27c8: cf 93 push r28
- 27ca: df 93 push r29
- 27cc: c8 2f mov r28, r24
- 27ce: 16 2f mov r17, r22
- POT_SendData(data, ((ch & 0x01) * 2) + 1);
- 27d0: 68 2f mov r22, r24
- 27d2: 61 70 andi r22, 0x01 ; 1
- 27d4: 66 0f add r22, r22
- 27d6: 6f 5f subi r22, 0xFF ; 255
- 27d8: 81 2f mov r24, r17
- 27da: 33 df rcall .-410 ; 0x2642 <POT_SendData>
- heater[ch].gain = data;
- 27dc: 83 e1 ldi r24, 0x13 ; 19
- 27de: c8 9f mul r28, r24
- 27e0: f0 01 movw r30, r0
- 27e2: 11 24 eor r1, r1
- 27e4: e0 5e subi r30, 0xE0 ; 224
- 27e6: fc 4f sbci r31, 0xFC ; 252
- 27e8: 10 8b std Z+16, r17 ; 0x10
- opamp[ch].gain = (((float)data + 8.9088) / 8.448);
- 27ea: 8d e0 ldi r24, 0x0D ; 13
- 27ec: c8 9f mul r28, r24
- 27ee: e0 01 movw r28, r0
- 27f0: 11 24 eor r1, r1
- 27f2: c2 57 subi r28, 0x72 ; 114
- 27f4: d9 4f sbci r29, 0xF9 ; 249
- 27f6: 61 2f mov r22, r17
- 27f8: 70 e0 ldi r23, 0x00 ; 0
- 27fa: 80 e0 ldi r24, 0x00 ; 0
- 27fc: 90 e0 ldi r25, 0x00 ; 0
- 27fe: 55 d2 rcall .+1194 ; 0x2caa <__floatunsisf>
- 2800: 22 e7 ldi r18, 0x72 ; 114
- 2802: 3a e8 ldi r19, 0x8A ; 138
- 2804: 4e e0 ldi r20, 0x0E ; 14
- 2806: 51 e4 ldi r21, 0x41 ; 65
- 2808: 4f d1 rcall .+670 ; 0x2aa8 <__addsf3>
- 280a: 22 e0 ldi r18, 0x02 ; 2
- 280c: 3b e2 ldi r19, 0x2B ; 43
- 280e: 47 e0 ldi r20, 0x07 ; 7
- 2810: 51 e4 ldi r21, 0x41 ; 65
- 2812: b2 d1 rcall .+868 ; 0x2b78 <__divsf3>
- 2814: 69 83 std Y+1, r22 ; 0x01
- 2816: 7a 83 std Y+2, r23 ; 0x02
- 2818: 8b 83 std Y+3, r24 ; 0x03
- 281a: 9c 83 std Y+4, r25 ; 0x04
- }
- 281c: df 91 pop r29
- 281e: cf 91 pop r28
- 2820: 1f 91 pop r17
- 2822: 08 95 ret
- 00002824 <SetShiftData>:
- void SetShiftData(uint8_t ch, uint8_t data)
- {
- 2824: 1f 93 push r17
- 2826: cf 93 push r28
- 2828: df 93 push r29
- 282a: c8 2f mov r28, r24
- 282c: 16 2f mov r17, r22
- POT_SendData(data, (ch & 0x01) * 2);
- 282e: 68 2f mov r22, r24
- 2830: 61 70 andi r22, 0x01 ; 1
- 2832: 66 0f add r22, r22
- 2834: 81 2f mov r24, r17
- 2836: 05 df rcall .-502 ; 0x2642 <POT_SendData>
- heater[ch].shift = data;
- 2838: 83 e1 ldi r24, 0x13 ; 19
- 283a: c8 9f mul r28, r24
- 283c: f0 01 movw r30, r0
- 283e: 11 24 eor r1, r1
- 2840: e0 5e subi r30, 0xE0 ; 224
- 2842: fc 4f sbci r31, 0xFC ; 252
- 2844: 11 8b std Z+17, r17 ; 0x11
- opamp[ch].shift = (((float)data * 2.037) / 255.0);
- 2846: 8d e0 ldi r24, 0x0D ; 13
- 2848: c8 9f mul r28, r24
- 284a: e0 01 movw r28, r0
- 284c: 11 24 eor r1, r1
- 284e: c2 57 subi r28, 0x72 ; 114
- 2850: d9 4f sbci r29, 0xF9 ; 249
- 2852: 61 2f mov r22, r17
- 2854: 70 e0 ldi r23, 0x00 ; 0
- 2856: 80 e0 ldi r24, 0x00 ; 0
- 2858: 90 e0 ldi r25, 0x00 ; 0
- 285a: 27 d2 rcall .+1102 ; 0x2caa <__floatunsisf>
- 285c: 25 e3 ldi r18, 0x35 ; 53
- 285e: 3e e5 ldi r19, 0x5E ; 94
- 2860: 42 e0 ldi r20, 0x02 ; 2
- 2862: 50 e4 ldi r21, 0x40 ; 64
- 2864: d8 d2 rcall .+1456 ; 0x2e16 <__mulsf3>
- 2866: 20 e0 ldi r18, 0x00 ; 0
- 2868: 30 e0 ldi r19, 0x00 ; 0
- 286a: 4f e7 ldi r20, 0x7F ; 127
- 286c: 53 e4 ldi r21, 0x43 ; 67
- 286e: 84 d1 rcall .+776 ; 0x2b78 <__divsf3>
- 2870: 6d 83 std Y+5, r22 ; 0x05
- 2872: 7e 83 std Y+6, r23 ; 0x06
- 2874: 8f 83 std Y+7, r24 ; 0x07
- 2876: 98 87 std Y+8, r25 ; 0x08
- }
- 2878: df 91 pop r29
- 287a: cf 91 pop r28
- 287c: 1f 91 pop r17
- 287e: 08 95 ret
- 00002880 <SetDriveData>:
- void SetDriveData(uint8_t ch, uint8_t data)
- {
- 2880: cf 93 push r28
- 2882: df 93 push r29
- heater[ch].drive = data;
- 2884: 93 e1 ldi r25, 0x13 ; 19
- 2886: 89 9f mul r24, r25
- 2888: f0 01 movw r30, r0
- 288a: 11 24 eor r1, r1
- 288c: e0 5e subi r30, 0xE0 ; 224
- 288e: fc 4f sbci r31, 0xFC ; 252
- 2890: 62 8b std Z+18, r22 ; 0x12
- opamp[ch].drive = ((float)data / 25.76);
- 2892: 9d e0 ldi r25, 0x0D ; 13
- 2894: 89 9f mul r24, r25
- 2896: e0 01 movw r28, r0
- 2898: 11 24 eor r1, r1
- 289a: c2 57 subi r28, 0x72 ; 114
- 289c: d9 4f sbci r29, 0xF9 ; 249
- 289e: 70 e0 ldi r23, 0x00 ; 0
- 28a0: 80 e0 ldi r24, 0x00 ; 0
- 28a2: 90 e0 ldi r25, 0x00 ; 0
- 28a4: 02 d2 rcall .+1028 ; 0x2caa <__floatunsisf>
- 28a6: 2b e7 ldi r18, 0x7B ; 123
- 28a8: 34 e1 ldi r19, 0x14 ; 20
- 28aa: 4e ec ldi r20, 0xCE ; 206
- 28ac: 51 e4 ldi r21, 0x41 ; 65
- 28ae: 64 d1 rcall .+712 ; 0x2b78 <__divsf3>
- 28b0: 69 87 std Y+9, r22 ; 0x09
- 28b2: 7a 87 std Y+10, r23 ; 0x0a
- 28b4: 8b 87 std Y+11, r24 ; 0x0b
- 28b6: 9c 87 std Y+12, r25 ; 0x0c
- }
- 28b8: df 91 pop r29
- 28ba: cf 91 pop r28
- 28bc: 08 95 ret
- 000028be <SwitchDrive>:
- void SwitchDrive(uint8_t ch, uint8_t onoff)
- {
- 28be: 96 2f mov r25, r22
- uint8_t potnum = POT_DRIVE1 + (ch & 0x01);
- POT_SendData(heater[ch].drive * (onoff & 0x01), potnum);
- 28c0: 68 2f mov r22, r24
- 28c2: 61 70 andi r22, 0x01 ; 1
- 28c4: 6c 5f subi r22, 0xFC ; 252
- 28c6: 23 e1 ldi r18, 0x13 ; 19
- 28c8: 82 9f mul r24, r18
- 28ca: f0 01 movw r30, r0
- 28cc: 11 24 eor r1, r1
- 28ce: e0 5e subi r30, 0xE0 ; 224
- 28d0: fc 4f sbci r31, 0xFC ; 252
- 28d2: 89 2f mov r24, r25
- 28d4: 81 70 andi r24, 0x01 ; 1
- 28d6: 92 89 ldd r25, Z+18 ; 0x12
- 28d8: 89 9f mul r24, r25
- 28da: 80 2d mov r24, r0
- 28dc: 11 24 eor r1, r1
- 28de: b1 ce rjmp .-670 ; 0x2642 <POT_SendData>
- 000028e0 <LoadPrefs>:
- extern heater_str heater[2];
- extern opamp_str opamp[2];
- extern preset_str preset[2];
- void LoadPrefs()
- {
- 28e0: 21 e0 ldi r18, 0x01 ; 1
- 28e2: 80 e0 ldi r24, 0x00 ; 0
- 28e4: 90 e0 ldi r25, 0x00 ; 0
- for(uint8_t addr = 0; addr < 4; addr++)
- {
- EEAR = addr;
- 28e6: 92 bd out 0x22, r25 ; 34
- 28e8: 81 bd out 0x21, r24 ; 33
- EECR |= (1 << EERE);
- 28ea: f8 9a sbi 0x1f, 0 ; 31
- switch(addr)
- 28ec: 82 30 cpi r24, 0x02 ; 2
- 28ee: 81 f0 breq .+32 ; 0x2910 <LoadPrefs+0x30>
- 28f0: 83 30 cpi r24, 0x03 ; 3
- 28f2: c1 f0 breq .+48 ; 0x2924 <LoadPrefs+0x44>
- {
- case 0:
- heater[CH0].preset = EEDR;
- break;
- case 1:
- heater[CH1].preset = EEDR;
- 28f4: 30 b5 in r19, 0x20 ; 32
- {
- for(uint8_t addr = 0; addr < 4; addr++)
- {
- EEAR = addr;
- EECR |= (1 << EERE);
- switch(addr)
- 28f6: 81 30 cpi r24, 0x01 ; 1
- 28f8: 91 f0 breq .+36 ; 0x291e <LoadPrefs+0x3e>
- {
- case 0:
- heater[CH0].preset = EEDR;
- 28fa: 30 93 22 03 sts 0x0322, r19 ; 0x800322 <heater+0x2>
- extern opamp_str opamp[2];
- extern preset_str preset[2];
- void LoadPrefs()
- {
- for(uint8_t addr = 0; addr < 4; addr++)
- 28fe: 24 30 cpi r18, 0x04 ; 4
- 2900: c1 f0 breq .+48 ; 0x2932 <LoadPrefs+0x52>
- 2902: 01 96 adiw r24, 0x01 ; 1
- 2904: 2f 5f subi r18, 0xFF ; 255
- {
- EEAR = addr;
- 2906: 92 bd out 0x22, r25 ; 34
- 2908: 81 bd out 0x21, r24 ; 33
- EECR |= (1 << EERE);
- 290a: f8 9a sbi 0x1f, 0 ; 31
- switch(addr)
- 290c: 82 30 cpi r24, 0x02 ; 2
- 290e: 81 f7 brne .-32 ; 0x28f0 <LoadPrefs+0x10>
- break;
- case 1:
- heater[CH1].preset = EEDR;
- break;
- case 2:
- heater[CH0].tset = EEDR;
- 2910: 40 b5 in r20, 0x20 ; 32
- 2912: 50 e0 ldi r21, 0x00 ; 0
- 2914: 50 93 2b 03 sts 0x032B, r21 ; 0x80032b <heater+0xb>
- 2918: 40 93 2a 03 sts 0x032A, r20 ; 0x80032a <heater+0xa>
- break;
- 291c: f2 cf rjmp .-28 ; 0x2902 <LoadPrefs+0x22>
- {
- case 0:
- heater[CH0].preset = EEDR;
- break;
- case 1:
- heater[CH1].preset = EEDR;
- 291e: 30 93 35 03 sts 0x0335, r19 ; 0x800335 <heater+0x15>
- break;
- 2922: ef cf rjmp .-34 ; 0x2902 <LoadPrefs+0x22>
- case 2:
- heater[CH0].tset = EEDR;
- break;
- case 3:
- heater[CH1].tset = EEDR;
- 2924: 80 b5 in r24, 0x20 ; 32
- 2926: 90 e0 ldi r25, 0x00 ; 0
- 2928: 90 93 3e 03 sts 0x033E, r25 ; 0x80033e <heater+0x1e>
- 292c: 80 93 3d 03 sts 0x033D, r24 ; 0x80033d <heater+0x1d>
- 2930: 08 95 ret
- 2932: 08 95 ret
- 00002934 <SavePrefs>:
- }
- }
- void SavePrefs()
- {
- cli();
- 2934: f8 94 cli
- 2936: 80 e0 ldi r24, 0x00 ; 0
- 2938: 90 e0 ldi r25, 0x00 ; 0
- for(uint8_t addr = 0; addr < 4; addr++)
- {
- EEAR = addr;
- 293a: 92 bd out 0x22, r25 ; 34
- 293c: 81 bd out 0x21, r24 ; 33
- switch(addr)
- 293e: 82 30 cpi r24, 0x02 ; 2
- 2940: c9 f0 breq .+50 ; 0x2974 <SavePrefs+0x40>
- 2942: 83 30 cpi r24, 0x03 ; 3
- 2944: 99 f0 breq .+38 ; 0x296c <SavePrefs+0x38>
- 2946: 81 30 cpi r24, 0x01 ; 1
- 2948: 69 f0 breq .+26 ; 0x2964 <SavePrefs+0x30>
- {
- case 0:
- EEDR = heater[CH0].preset;
- 294a: 20 91 22 03 lds r18, 0x0322 ; 0x800322 <heater+0x2>
- 294e: 20 bd out 0x20, r18 ; 32
- case 3:
- EEDR = heater[CH1].tset;
- break;
- }
- EECR |= (1 << EEMPE);
- 2950: fa 9a sbi 0x1f, 2 ; 31
- EECR |= (1 << EEPE);
- 2952: f9 9a sbi 0x1f, 1 ; 31
- while(EECR & (1 << EEPE));
- 2954: f9 99 sbic 0x1f, 1 ; 31
- 2956: fe cf rjmp .-4 ; 0x2954 <SavePrefs+0x20>
- 2958: 01 96 adiw r24, 0x01 ; 1
- }
- void SavePrefs()
- {
- cli();
- for(uint8_t addr = 0; addr < 4; addr++)
- 295a: 84 30 cpi r24, 0x04 ; 4
- 295c: 91 05 cpc r25, r1
- 295e: 69 f7 brne .-38 ; 0x293a <SavePrefs+0x6>
- EECR |= (1 << EEMPE);
- EECR |= (1 << EEPE);
- while(EECR & (1 << EEPE));
- }
- sei();
- 2960: 78 94 sei
- 2962: 08 95 ret
- {
- case 0:
- EEDR = heater[CH0].preset;
- break;
- case 1:
- EEDR = heater[CH1].preset;
- 2964: 20 91 35 03 lds r18, 0x0335 ; 0x800335 <heater+0x15>
- 2968: 20 bd out 0x20, r18 ; 32
- break;
- 296a: f2 cf rjmp .-28 ; 0x2950 <SavePrefs+0x1c>
- case 2:
- EEDR = heater[CH0].tset;
- break;
- case 3:
- EEDR = heater[CH1].tset;
- 296c: 20 91 3d 03 lds r18, 0x033D ; 0x80033d <heater+0x1d>
- 2970: 20 bd out 0x20, r18 ; 32
- break;
- 2972: ee cf rjmp .-36 ; 0x2950 <SavePrefs+0x1c>
- break;
- case 1:
- EEDR = heater[CH1].preset;
- break;
- case 2:
- EEDR = heater[CH0].tset;
- 2974: 20 91 2a 03 lds r18, 0x032A ; 0x80032a <heater+0xa>
- 2978: 20 bd out 0x20, r18 ; 32
- break;
- 297a: ea cf rjmp .-44 ; 0x2950 <SavePrefs+0x1c>
- 0000297c <LoadPreset>:
- }
- sei();
- }
- void LoadPreset(uint8_t ch)
- {
- 297c: 0f 93 push r16
- 297e: 1f 93 push r17
- 2980: cf 93 push r28
- 2982: df 93 push r29
- 2984: c8 2f mov r28, r24
- 2986: 20 e5 ldi r18, 0x50 ; 80
- 2988: 82 9f mul r24, r18
- 298a: f0 01 movw r30, r0
- 298c: 11 24 eor r1, r1
- 298e: ea 5b subi r30, 0xBA ; 186
- 2990: fc 4f sbci r31, 0xFC ; 252
- 2992: 80 e0 ldi r24, 0x00 ; 0
- 2994: 90 e0 ldi r25, 0x00 ; 0
- uint8_t offset;
- for(offset = 0; offset < sizeof(preset_str); offset++)
- {
- EEAR = 0x30 + (heater[ch].preset * sizeof(preset_str)) + offset;
- 2996: 4c 2f mov r20, r28
- 2998: 50 e0 ldi r21, 0x00 ; 0
- 299a: 63 e1 ldi r22, 0x13 ; 19
- 299c: c6 9f mul r28, r22
- 299e: d0 01 movw r26, r0
- 29a0: 11 24 eor r1, r1
- 29a2: ae 5d subi r26, 0xDE ; 222
- 29a4: bc 4f sbci r27, 0xFC ; 252
- 29a6: 2c 91 ld r18, X
- 29a8: bc 01 movw r22, r24
- 29aa: d0 e5 ldi r29, 0x50 ; 80
- 29ac: 2d 9f mul r18, r29
- 29ae: 60 0d add r22, r0
- 29b0: 71 1d adc r23, r1
- 29b2: 11 24 eor r1, r1
- 29b4: 9b 01 movw r18, r22
- 29b6: 20 5d subi r18, 0xD0 ; 208
- 29b8: 3f 4f sbci r19, 0xFF ; 255
- 29ba: 32 bd out 0x22, r19 ; 34
- 29bc: 21 bd out 0x21, r18 ; 33
- EECR |= (1 << EERE);
- 29be: f8 9a sbi 0x1f, 0 ; 31
- ((uint8_t*)&preset[ch])[offset] = EEDR;
- 29c0: 20 b5 in r18, 0x20 ; 32
- 29c2: 21 93 st Z+, r18
- 29c4: 01 96 adiw r24, 0x01 ; 1
- }
- void LoadPreset(uint8_t ch)
- {
- uint8_t offset;
- for(offset = 0; offset < sizeof(preset_str); offset++)
- 29c6: 80 35 cpi r24, 0x50 ; 80
- 29c8: 91 05 cpc r25, r1
- 29ca: 69 f7 brne .-38 ; 0x29a6 <LoadPreset+0x2a>
- EEAR = 0x30 + (heater[ch].preset * sizeof(preset_str)) + offset;
- EECR |= (1 << EERE);
- ((uint8_t*)&preset[ch])[offset] = EEDR;
- }
-
- SetGainData(ch, preset[ch].gain);
- 29cc: 80 e5 ldi r24, 0x50 ; 80
- 29ce: 84 9f mul r24, r20
- 29d0: 80 01 movw r16, r0
- 29d2: 85 9f mul r24, r21
- 29d4: 10 0d add r17, r0
- 29d6: 11 24 eor r1, r1
- 29d8: 0a 5b subi r16, 0xBA ; 186
- 29da: 1c 4f sbci r17, 0xFC ; 252
- 29dc: f8 01 movw r30, r16
- 29de: 65 85 ldd r22, Z+13 ; 0x0d
- 29e0: 8c 2f mov r24, r28
- 29e2: f1 de rcall .-542 ; 0x27c6 <SetGainData>
- SetShiftData(ch, preset[ch].shift);
- 29e4: f8 01 movw r30, r16
- 29e6: 66 85 ldd r22, Z+14 ; 0x0e
- 29e8: 8c 2f mov r24, r28
- 29ea: 1c df rcall .-456 ; 0x2824 <SetShiftData>
- SetDriveData(ch, preset[ch].drive);
- 29ec: f8 01 movw r30, r16
- 29ee: 67 85 ldd r22, Z+15 ; 0x0f
- 29f0: 8c 2f mov r24, r28
- 29f2: 46 df rcall .-372 ; 0x2880 <SetDriveData>
- SwitchDrive(ch, OFF);
- 29f4: 60 e0 ldi r22, 0x00 ; 0
- 29f6: 8c 2f mov r24, r28
- }
- 29f8: df 91 pop r29
- 29fa: cf 91 pop r28
- 29fc: 1f 91 pop r17
- }
-
- SetGainData(ch, preset[ch].gain);
- SetShiftData(ch, preset[ch].shift);
- SetDriveData(ch, preset[ch].drive);
- SwitchDrive(ch, OFF);
- 29fe: 0f 91 pop r16
- 2a00: 5e cf rjmp .-324 ; 0x28be <SwitchDrive>
- 00002a02 <SavePreset>:
- }
- void SavePreset(uint8_t ch)
- {
- 2a02: cf 92 push r12
- 2a04: df 92 push r13
- 2a06: ef 92 push r14
- 2a08: ff 92 push r15
- 2a0a: 0f 93 push r16
- 2a0c: 1f 93 push r17
- 2a0e: cf 93 push r28
- 2a10: df 93 push r29
- 2a12: 08 2f mov r16, r24
- uint8_t offset;
- static FILE lcd_stdout = FDEV_SETUP_STREAM(lcd_putchar, NULL, _FDEV_SETUP_WRITE);
-
- cli();
- 2a14: f8 94 cli
- LCD_SendCmd(LCD_CLR);
- 2a16: 81 e0 ldi r24, 0x01 ; 1
- 2a18: 94 dd rcall .-1240 ; 0x2542 <LCD_SendCmd>
- LCD_SetPos(0, 0);
- 2a1a: 60 e0 ldi r22, 0x00 ; 0
- 2a1c: 80 e0 ldi r24, 0x00 ; 0
- 2a1e: b6 dd rcall .-1172 ; 0x258c <LCD_SetPos>
- fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ...");
- 2a20: 24 e2 ldi r18, 0x24 ; 36
- 2a22: 31 e0 ldi r19, 0x01 ; 1
- 2a24: 4d e0 ldi r20, 0x0D ; 13
- 2a26: 50 e0 ldi r21, 0x00 ; 0
- 2a28: 61 e0 ldi r22, 0x01 ; 1
- 2a2a: 70 e0 ldi r23, 0x00 ; 0
- 2a2c: 83 ee ldi r24, 0xE3 ; 227
- 2a2e: 92 e0 ldi r25, 0x02 ; 2
- 2a30: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
- LCD_SetPos(0, 1);
- 2a34: 61 e0 ldi r22, 0x01 ; 1
- 2a36: 80 e0 ldi r24, 0x00 ; 0
- 2a38: a9 dd rcall .-1198 ; 0x258c <LCD_SetPos>
- 2a3a: 20 e5 ldi r18, 0x50 ; 80
- 2a3c: 02 9f mul r16, r18
- 2a3e: 80 01 movw r16, r0
- 2a40: 11 24 eor r1, r1
- 2a42: 0a 5b subi r16, 0xBA ; 186
- 2a44: 1c 4f sbci r17, 0xFC ; 252
- 2a46: c0 e0 ldi r28, 0x00 ; 0
- 2a48: d0 e0 ldi r29, 0x00 ; 0
- for(offset = 0; offset < sizeof(preset_str); offset++)
- {
- EEAR = 0x30 + (preset[ch].number * sizeof(preset_str)) + offset;
- 2a4a: 68 01 movw r12, r16
- EEDR = ((uint8_t*)&preset[ch])[offset];
- EECR |= (1 << EEMPE);
- EECR |= (1 << EEPE);
- while(EECR & (1 << EEPE));
- if((offset + 1) % 5 == 0)
- 2a4c: 85 e0 ldi r24, 0x05 ; 5
- 2a4e: e8 2e mov r14, r24
- 2a50: f1 2c mov r15, r1
- LCD_SetPos(0, 0);
- fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ...");
- LCD_SetPos(0, 1);
- for(offset = 0; offset < sizeof(preset_str); offset++)
- {
- EEAR = 0x30 + (preset[ch].number * sizeof(preset_str)) + offset;
- 2a52: f6 01 movw r30, r12
- 2a54: 80 81 ld r24, Z
- 2a56: 9e 01 movw r18, r28
- 2a58: 40 e5 ldi r20, 0x50 ; 80
- 2a5a: 84 9f mul r24, r20
- 2a5c: 20 0d add r18, r0
- 2a5e: 31 1d adc r19, r1
- 2a60: 11 24 eor r1, r1
- 2a62: c9 01 movw r24, r18
- 2a64: c0 96 adiw r24, 0x30 ; 48
- 2a66: 92 bd out 0x22, r25 ; 34
- 2a68: 81 bd out 0x21, r24 ; 33
- EEDR = ((uint8_t*)&preset[ch])[offset];
- 2a6a: f8 01 movw r30, r16
- 2a6c: 81 91 ld r24, Z+
- 2a6e: 8f 01 movw r16, r30
- 2a70: 21 96 adiw r28, 0x01 ; 1
- 2a72: 80 bd out 0x20, r24 ; 32
- EECR |= (1 << EEMPE);
- 2a74: fa 9a sbi 0x1f, 2 ; 31
- EECR |= (1 << EEPE);
- 2a76: f9 9a sbi 0x1f, 1 ; 31
- while(EECR & (1 << EEPE));
- 2a78: f9 99 sbic 0x1f, 1 ; 31
- if((offset + 1) % 5 == 0)
- 2a7a: fe cf rjmp .-4 ; 0x2a78 <SavePreset+0x76>
- 2a7c: ce 01 movw r24, r28
- 2a7e: b7 01 movw r22, r14
- 2a80: 8b d5 rcall .+2838 ; 0x3598 <__divmodhi4>
- 2a82: 89 2b or r24, r25
- 2a84: 69 f0 breq .+26 ; 0x2aa0 <SavePreset+0x9e>
- cli();
- LCD_SendCmd(LCD_CLR);
- LCD_SetPos(0, 0);
- fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ...");
- LCD_SetPos(0, 1);
- for(offset = 0; offset < sizeof(preset_str); offset++)
- 2a86: c0 35 cpi r28, 0x50 ; 80
- 2a88: d1 05 cpc r29, r1
- 2a8a: 19 f7 brne .-58 ; 0x2a52 <SavePreset+0x50>
- EECR |= (1 << EEPE);
- while(EECR & (1 << EEPE));
- if((offset + 1) % 5 == 0)
- LCD_SendData(0xFF);
- }
- sei();
- 2a8c: 78 94 sei
- }
- 2a8e: df 91 pop r29
- 2a90: cf 91 pop r28
- 2a92: 1f 91 pop r17
- 2a94: 0f 91 pop r16
- 2a96: ff 90 pop r15
- 2a98: ef 90 pop r14
- 2a9a: df 90 pop r13
- 2a9c: cf 90 pop r12
- EEDR = ((uint8_t*)&preset[ch])[offset];
- EECR |= (1 << EEMPE);
- EECR |= (1 << EEPE);
- while(EECR & (1 << EEPE));
- if((offset + 1) % 5 == 0)
- LCD_SendData(0xFF);
- 2a9e: 08 95 ret
- 2aa0: 8f ef ldi r24, 0xFF ; 255
- 2aa2: 34 dd rcall .-1432 ; 0x250c <LCD_SendData>
- 2aa4: f0 cf rjmp .-32 ; 0x2a86 <SavePreset+0x84>
- 00002aa6 <__subsf3>:
- 2aa6: 50 58 subi r21, 0x80 ; 128
- 00002aa8 <__addsf3>:
- 2aa8: bb 27 eor r27, r27
- 2aaa: aa 27 eor r26, r26
- 2aac: 0e d0 rcall .+28 ; 0x2aca <__addsf3x>
- 2aae: 75 c1 rjmp .+746 ; 0x2d9a <__fp_round>
- 2ab0: 66 d1 rcall .+716 ; 0x2d7e <__fp_pscA>
- 2ab2: 30 f0 brcs .+12 ; 0x2ac0 <__addsf3+0x18>
- 2ab4: 6b d1 rcall .+726 ; 0x2d8c <__fp_pscB>
- 2ab6: 20 f0 brcs .+8 ; 0x2ac0 <__addsf3+0x18>
- 2ab8: 31 f4 brne .+12 ; 0x2ac6 <__addsf3+0x1e>
- 2aba: 9f 3f cpi r25, 0xFF ; 255
- 2abc: 11 f4 brne .+4 ; 0x2ac2 <__addsf3+0x1a>
- 2abe: 1e f4 brtc .+6 ; 0x2ac6 <__addsf3+0x1e>
- 2ac0: 5b c1 rjmp .+694 ; 0x2d78 <__fp_nan>
- 2ac2: 0e f4 brtc .+2 ; 0x2ac6 <__addsf3+0x1e>
- 2ac4: e0 95 com r30
- 2ac6: e7 fb bst r30, 7
- 2ac8: 51 c1 rjmp .+674 ; 0x2d6c <__fp_inf>
- 00002aca <__addsf3x>:
- 2aca: e9 2f mov r30, r25
- 2acc: 77 d1 rcall .+750 ; 0x2dbc <__fp_split3>
- 2ace: 80 f3 brcs .-32 ; 0x2ab0 <__addsf3+0x8>
- 2ad0: ba 17 cp r27, r26
- 2ad2: 62 07 cpc r22, r18
- 2ad4: 73 07 cpc r23, r19
- 2ad6: 84 07 cpc r24, r20
- 2ad8: 95 07 cpc r25, r21
- 2ada: 18 f0 brcs .+6 ; 0x2ae2 <__addsf3x+0x18>
- 2adc: 71 f4 brne .+28 ; 0x2afa <__addsf3x+0x30>
- 2ade: 9e f5 brtc .+102 ; 0x2b46 <__addsf3x+0x7c>
- 2ae0: 8f c1 rjmp .+798 ; 0x2e00 <__fp_zero>
- 2ae2: 0e f4 brtc .+2 ; 0x2ae6 <__addsf3x+0x1c>
- 2ae4: e0 95 com r30
- 2ae6: 0b 2e mov r0, r27
- 2ae8: ba 2f mov r27, r26
- 2aea: a0 2d mov r26, r0
- 2aec: 0b 01 movw r0, r22
- 2aee: b9 01 movw r22, r18
- 2af0: 90 01 movw r18, r0
- 2af2: 0c 01 movw r0, r24
- 2af4: ca 01 movw r24, r20
- 2af6: a0 01 movw r20, r0
- 2af8: 11 24 eor r1, r1
- 2afa: ff 27 eor r31, r31
- 2afc: 59 1b sub r21, r25
- 2afe: 99 f0 breq .+38 ; 0x2b26 <__addsf3x+0x5c>
- 2b00: 59 3f cpi r21, 0xF9 ; 249
- 2b02: 50 f4 brcc .+20 ; 0x2b18 <__addsf3x+0x4e>
- 2b04: 50 3e cpi r21, 0xE0 ; 224
- 2b06: 68 f1 brcs .+90 ; 0x2b62 <__addsf3x+0x98>
- 2b08: 1a 16 cp r1, r26
- 2b0a: f0 40 sbci r31, 0x00 ; 0
- 2b0c: a2 2f mov r26, r18
- 2b0e: 23 2f mov r18, r19
- 2b10: 34 2f mov r19, r20
- 2b12: 44 27 eor r20, r20
- 2b14: 58 5f subi r21, 0xF8 ; 248
- 2b16: f3 cf rjmp .-26 ; 0x2afe <__addsf3x+0x34>
- 2b18: 46 95 lsr r20
- 2b1a: 37 95 ror r19
- 2b1c: 27 95 ror r18
- 2b1e: a7 95 ror r26
- 2b20: f0 40 sbci r31, 0x00 ; 0
- 2b22: 53 95 inc r21
- 2b24: c9 f7 brne .-14 ; 0x2b18 <__addsf3x+0x4e>
- 2b26: 7e f4 brtc .+30 ; 0x2b46 <__addsf3x+0x7c>
- 2b28: 1f 16 cp r1, r31
- 2b2a: ba 0b sbc r27, r26
- 2b2c: 62 0b sbc r22, r18
- 2b2e: 73 0b sbc r23, r19
- 2b30: 84 0b sbc r24, r20
- 2b32: ba f0 brmi .+46 ; 0x2b62 <__addsf3x+0x98>
- 2b34: 91 50 subi r25, 0x01 ; 1
- 2b36: a1 f0 breq .+40 ; 0x2b60 <__addsf3x+0x96>
- 2b38: ff 0f add r31, r31
- 2b3a: bb 1f adc r27, r27
- 2b3c: 66 1f adc r22, r22
- 2b3e: 77 1f adc r23, r23
- 2b40: 88 1f adc r24, r24
- 2b42: c2 f7 brpl .-16 ; 0x2b34 <__addsf3x+0x6a>
- 2b44: 0e c0 rjmp .+28 ; 0x2b62 <__addsf3x+0x98>
- 2b46: ba 0f add r27, r26
- 2b48: 62 1f adc r22, r18
- 2b4a: 73 1f adc r23, r19
- 2b4c: 84 1f adc r24, r20
- 2b4e: 48 f4 brcc .+18 ; 0x2b62 <__addsf3x+0x98>
- 2b50: 87 95 ror r24
- 2b52: 77 95 ror r23
- 2b54: 67 95 ror r22
- 2b56: b7 95 ror r27
- 2b58: f7 95 ror r31
- 2b5a: 9e 3f cpi r25, 0xFE ; 254
- 2b5c: 08 f0 brcs .+2 ; 0x2b60 <__addsf3x+0x96>
- 2b5e: b3 cf rjmp .-154 ; 0x2ac6 <__addsf3+0x1e>
- 2b60: 93 95 inc r25
- 2b62: 88 0f add r24, r24
- 2b64: 08 f0 brcs .+2 ; 0x2b68 <__addsf3x+0x9e>
- 2b66: 99 27 eor r25, r25
- 2b68: ee 0f add r30, r30
- 2b6a: 97 95 ror r25
- 2b6c: 87 95 ror r24
- 2b6e: 08 95 ret
- 00002b70 <__cmpsf2>:
- 2b70: d9 d0 rcall .+434 ; 0x2d24 <__fp_cmp>
- 2b72: 08 f4 brcc .+2 ; 0x2b76 <__cmpsf2+0x6>
- 2b74: 81 e0 ldi r24, 0x01 ; 1
- 2b76: 08 95 ret
- 00002b78 <__divsf3>:
- 2b78: 0c d0 rcall .+24 ; 0x2b92 <__divsf3x>
- 2b7a: 0f c1 rjmp .+542 ; 0x2d9a <__fp_round>
- 2b7c: 07 d1 rcall .+526 ; 0x2d8c <__fp_pscB>
- 2b7e: 40 f0 brcs .+16 ; 0x2b90 <__divsf3+0x18>
- 2b80: fe d0 rcall .+508 ; 0x2d7e <__fp_pscA>
- 2b82: 30 f0 brcs .+12 ; 0x2b90 <__divsf3+0x18>
- 2b84: 21 f4 brne .+8 ; 0x2b8e <__divsf3+0x16>
- 2b86: 5f 3f cpi r21, 0xFF ; 255
- 2b88: 19 f0 breq .+6 ; 0x2b90 <__divsf3+0x18>
- 2b8a: f0 c0 rjmp .+480 ; 0x2d6c <__fp_inf>
- 2b8c: 51 11 cpse r21, r1
- 2b8e: 39 c1 rjmp .+626 ; 0x2e02 <__fp_szero>
- 2b90: f3 c0 rjmp .+486 ; 0x2d78 <__fp_nan>
- 00002b92 <__divsf3x>:
- 2b92: 14 d1 rcall .+552 ; 0x2dbc <__fp_split3>
- 2b94: 98 f3 brcs .-26 ; 0x2b7c <__divsf3+0x4>
- 00002b96 <__divsf3_pse>:
- 2b96: 99 23 and r25, r25
- 2b98: c9 f3 breq .-14 ; 0x2b8c <__divsf3+0x14>
- 2b9a: 55 23 and r21, r21
- 2b9c: b1 f3 breq .-20 ; 0x2b8a <__divsf3+0x12>
- 2b9e: 95 1b sub r25, r21
- 2ba0: 55 0b sbc r21, r21
- 2ba2: bb 27 eor r27, r27
- 2ba4: aa 27 eor r26, r26
- 2ba6: 62 17 cp r22, r18
- 2ba8: 73 07 cpc r23, r19
- 2baa: 84 07 cpc r24, r20
- 2bac: 38 f0 brcs .+14 ; 0x2bbc <__divsf3_pse+0x26>
- 2bae: 9f 5f subi r25, 0xFF ; 255
- 2bb0: 5f 4f sbci r21, 0xFF ; 255
- 2bb2: 22 0f add r18, r18
- 2bb4: 33 1f adc r19, r19
- 2bb6: 44 1f adc r20, r20
- 2bb8: aa 1f adc r26, r26
- 2bba: a9 f3 breq .-22 ; 0x2ba6 <__divsf3_pse+0x10>
- 2bbc: 33 d0 rcall .+102 ; 0x2c24 <__divsf3_pse+0x8e>
- 2bbe: 0e 2e mov r0, r30
- 2bc0: 3a f0 brmi .+14 ; 0x2bd0 <__divsf3_pse+0x3a>
- 2bc2: e0 e8 ldi r30, 0x80 ; 128
- 2bc4: 30 d0 rcall .+96 ; 0x2c26 <__divsf3_pse+0x90>
- 2bc6: 91 50 subi r25, 0x01 ; 1
- 2bc8: 50 40 sbci r21, 0x00 ; 0
- 2bca: e6 95 lsr r30
- 2bcc: 00 1c adc r0, r0
- 2bce: ca f7 brpl .-14 ; 0x2bc2 <__divsf3_pse+0x2c>
- 2bd0: 29 d0 rcall .+82 ; 0x2c24 <__divsf3_pse+0x8e>
- 2bd2: fe 2f mov r31, r30
- 2bd4: 27 d0 rcall .+78 ; 0x2c24 <__divsf3_pse+0x8e>
- 2bd6: 66 0f add r22, r22
- 2bd8: 77 1f adc r23, r23
- 2bda: 88 1f adc r24, r24
- 2bdc: bb 1f adc r27, r27
- 2bde: 26 17 cp r18, r22
- 2be0: 37 07 cpc r19, r23
- 2be2: 48 07 cpc r20, r24
- 2be4: ab 07 cpc r26, r27
- 2be6: b0 e8 ldi r27, 0x80 ; 128
- 2be8: 09 f0 breq .+2 ; 0x2bec <__divsf3_pse+0x56>
- 2bea: bb 0b sbc r27, r27
- 2bec: 80 2d mov r24, r0
- 2bee: bf 01 movw r22, r30
- 2bf0: ff 27 eor r31, r31
- 2bf2: 93 58 subi r25, 0x83 ; 131
- 2bf4: 5f 4f sbci r21, 0xFF ; 255
- 2bf6: 2a f0 brmi .+10 ; 0x2c02 <__divsf3_pse+0x6c>
- 2bf8: 9e 3f cpi r25, 0xFE ; 254
- 2bfa: 51 05 cpc r21, r1
- 2bfc: 68 f0 brcs .+26 ; 0x2c18 <__divsf3_pse+0x82>
- 2bfe: b6 c0 rjmp .+364 ; 0x2d6c <__fp_inf>
- 2c00: 00 c1 rjmp .+512 ; 0x2e02 <__fp_szero>
- 2c02: 5f 3f cpi r21, 0xFF ; 255
- 2c04: ec f3 brlt .-6 ; 0x2c00 <__divsf3_pse+0x6a>
- 2c06: 98 3e cpi r25, 0xE8 ; 232
- 2c08: dc f3 brlt .-10 ; 0x2c00 <__divsf3_pse+0x6a>
- 2c0a: 86 95 lsr r24
- 2c0c: 77 95 ror r23
- 2c0e: 67 95 ror r22
- 2c10: b7 95 ror r27
- 2c12: f7 95 ror r31
- 2c14: 9f 5f subi r25, 0xFF ; 255
- 2c16: c9 f7 brne .-14 ; 0x2c0a <__divsf3_pse+0x74>
- 2c18: 88 0f add r24, r24
- 2c1a: 91 1d adc r25, r1
- 2c1c: 96 95 lsr r25
- 2c1e: 87 95 ror r24
- 2c20: 97 f9 bld r25, 7
- 2c22: 08 95 ret
- 2c24: e1 e0 ldi r30, 0x01 ; 1
- 2c26: 66 0f add r22, r22
- 2c28: 77 1f adc r23, r23
- 2c2a: 88 1f adc r24, r24
- 2c2c: bb 1f adc r27, r27
- 2c2e: 62 17 cp r22, r18
- 2c30: 73 07 cpc r23, r19
- 2c32: 84 07 cpc r24, r20
- 2c34: ba 07 cpc r27, r26
- 2c36: 20 f0 brcs .+8 ; 0x2c40 <__divsf3_pse+0xaa>
- 2c38: 62 1b sub r22, r18
- 2c3a: 73 0b sbc r23, r19
- 2c3c: 84 0b sbc r24, r20
- 2c3e: ba 0b sbc r27, r26
- 2c40: ee 1f adc r30, r30
- 2c42: 88 f7 brcc .-30 ; 0x2c26 <__divsf3_pse+0x90>
- 2c44: e0 95 com r30
- 2c46: 08 95 ret
- 00002c48 <__fixsfsi>:
- 2c48: 04 d0 rcall .+8 ; 0x2c52 <__fixunssfsi>
- 2c4a: 68 94 set
- 2c4c: b1 11 cpse r27, r1
- 2c4e: d9 c0 rjmp .+434 ; 0x2e02 <__fp_szero>
- 2c50: 08 95 ret
- 00002c52 <__fixunssfsi>:
- 2c52: bc d0 rcall .+376 ; 0x2dcc <__fp_splitA>
- 2c54: 88 f0 brcs .+34 ; 0x2c78 <__fixunssfsi+0x26>
- 2c56: 9f 57 subi r25, 0x7F ; 127
- 2c58: 90 f0 brcs .+36 ; 0x2c7e <__fixunssfsi+0x2c>
- 2c5a: b9 2f mov r27, r25
- 2c5c: 99 27 eor r25, r25
- 2c5e: b7 51 subi r27, 0x17 ; 23
- 2c60: a0 f0 brcs .+40 ; 0x2c8a <__fixunssfsi+0x38>
- 2c62: d1 f0 breq .+52 ; 0x2c98 <__fixunssfsi+0x46>
- 2c64: 66 0f add r22, r22
- 2c66: 77 1f adc r23, r23
- 2c68: 88 1f adc r24, r24
- 2c6a: 99 1f adc r25, r25
- 2c6c: 1a f0 brmi .+6 ; 0x2c74 <__fixunssfsi+0x22>
- 2c6e: ba 95 dec r27
- 2c70: c9 f7 brne .-14 ; 0x2c64 <__fixunssfsi+0x12>
- 2c72: 12 c0 rjmp .+36 ; 0x2c98 <__fixunssfsi+0x46>
- 2c74: b1 30 cpi r27, 0x01 ; 1
- 2c76: 81 f0 breq .+32 ; 0x2c98 <__fixunssfsi+0x46>
- 2c78: c3 d0 rcall .+390 ; 0x2e00 <__fp_zero>
- 2c7a: b1 e0 ldi r27, 0x01 ; 1
- 2c7c: 08 95 ret
- 2c7e: c0 c0 rjmp .+384 ; 0x2e00 <__fp_zero>
- 2c80: 67 2f mov r22, r23
- 2c82: 78 2f mov r23, r24
- 2c84: 88 27 eor r24, r24
- 2c86: b8 5f subi r27, 0xF8 ; 248
- 2c88: 39 f0 breq .+14 ; 0x2c98 <__fixunssfsi+0x46>
- 2c8a: b9 3f cpi r27, 0xF9 ; 249
- 2c8c: cc f3 brlt .-14 ; 0x2c80 <__fixunssfsi+0x2e>
- 2c8e: 86 95 lsr r24
- 2c90: 77 95 ror r23
- 2c92: 67 95 ror r22
- 2c94: b3 95 inc r27
- 2c96: d9 f7 brne .-10 ; 0x2c8e <__fixunssfsi+0x3c>
- 2c98: 3e f4 brtc .+14 ; 0x2ca8 <__fixunssfsi+0x56>
- 2c9a: 90 95 com r25
- 2c9c: 80 95 com r24
- 2c9e: 70 95 com r23
- 2ca0: 61 95 neg r22
- 2ca2: 7f 4f sbci r23, 0xFF ; 255
- 2ca4: 8f 4f sbci r24, 0xFF ; 255
- 2ca6: 9f 4f sbci r25, 0xFF ; 255
- 2ca8: 08 95 ret
- 00002caa <__floatunsisf>:
- 2caa: e8 94 clt
- 2cac: 09 c0 rjmp .+18 ; 0x2cc0 <__floatsisf+0x12>
- 00002cae <__floatsisf>:
- 2cae: 97 fb bst r25, 7
- 2cb0: 3e f4 brtc .+14 ; 0x2cc0 <__floatsisf+0x12>
- 2cb2: 90 95 com r25
- 2cb4: 80 95 com r24
- 2cb6: 70 95 com r23
- 2cb8: 61 95 neg r22
- 2cba: 7f 4f sbci r23, 0xFF ; 255
- 2cbc: 8f 4f sbci r24, 0xFF ; 255
- 2cbe: 9f 4f sbci r25, 0xFF ; 255
- 2cc0: 99 23 and r25, r25
- 2cc2: a9 f0 breq .+42 ; 0x2cee <__floatsisf+0x40>
- 2cc4: f9 2f mov r31, r25
- 2cc6: 96 e9 ldi r25, 0x96 ; 150
- 2cc8: bb 27 eor r27, r27
- 2cca: 93 95 inc r25
- 2ccc: f6 95 lsr r31
- 2cce: 87 95 ror r24
- 2cd0: 77 95 ror r23
- 2cd2: 67 95 ror r22
- 2cd4: b7 95 ror r27
- 2cd6: f1 11 cpse r31, r1
- 2cd8: f8 cf rjmp .-16 ; 0x2cca <__floatsisf+0x1c>
- 2cda: fa f4 brpl .+62 ; 0x2d1a <__floatsisf+0x6c>
- 2cdc: bb 0f add r27, r27
- 2cde: 11 f4 brne .+4 ; 0x2ce4 <__floatsisf+0x36>
- 2ce0: 60 ff sbrs r22, 0
- 2ce2: 1b c0 rjmp .+54 ; 0x2d1a <__floatsisf+0x6c>
- 2ce4: 6f 5f subi r22, 0xFF ; 255
- 2ce6: 7f 4f sbci r23, 0xFF ; 255
- 2ce8: 8f 4f sbci r24, 0xFF ; 255
- 2cea: 9f 4f sbci r25, 0xFF ; 255
- 2cec: 16 c0 rjmp .+44 ; 0x2d1a <__floatsisf+0x6c>
- 2cee: 88 23 and r24, r24
- 2cf0: 11 f0 breq .+4 ; 0x2cf6 <__floatsisf+0x48>
- 2cf2: 96 e9 ldi r25, 0x96 ; 150
- 2cf4: 11 c0 rjmp .+34 ; 0x2d18 <__floatsisf+0x6a>
- 2cf6: 77 23 and r23, r23
- 2cf8: 21 f0 breq .+8 ; 0x2d02 <__floatsisf+0x54>
- 2cfa: 9e e8 ldi r25, 0x8E ; 142
- 2cfc: 87 2f mov r24, r23
- 2cfe: 76 2f mov r23, r22
- 2d00: 05 c0 rjmp .+10 ; 0x2d0c <__floatsisf+0x5e>
- 2d02: 66 23 and r22, r22
- 2d04: 71 f0 breq .+28 ; 0x2d22 <__floatsisf+0x74>
- 2d06: 96 e8 ldi r25, 0x86 ; 134
- 2d08: 86 2f mov r24, r22
- 2d0a: 70 e0 ldi r23, 0x00 ; 0
- 2d0c: 60 e0 ldi r22, 0x00 ; 0
- 2d0e: 2a f0 brmi .+10 ; 0x2d1a <__floatsisf+0x6c>
- 2d10: 9a 95 dec r25
- 2d12: 66 0f add r22, r22
- 2d14: 77 1f adc r23, r23
- 2d16: 88 1f adc r24, r24
- 2d18: da f7 brpl .-10 ; 0x2d10 <__floatsisf+0x62>
- 2d1a: 88 0f add r24, r24
- 2d1c: 96 95 lsr r25
- 2d1e: 87 95 ror r24
- 2d20: 97 f9 bld r25, 7
- 2d22: 08 95 ret
- 00002d24 <__fp_cmp>:
- 2d24: 99 0f add r25, r25
- 2d26: 00 08 sbc r0, r0
- 2d28: 55 0f add r21, r21
- 2d2a: aa 0b sbc r26, r26
- 2d2c: e0 e8 ldi r30, 0x80 ; 128
- 2d2e: fe ef ldi r31, 0xFE ; 254
- 2d30: 16 16 cp r1, r22
- 2d32: 17 06 cpc r1, r23
- 2d34: e8 07 cpc r30, r24
- 2d36: f9 07 cpc r31, r25
- 2d38: c0 f0 brcs .+48 ; 0x2d6a <__fp_cmp+0x46>
- 2d3a: 12 16 cp r1, r18
- 2d3c: 13 06 cpc r1, r19
- 2d3e: e4 07 cpc r30, r20
- 2d40: f5 07 cpc r31, r21
- 2d42: 98 f0 brcs .+38 ; 0x2d6a <__fp_cmp+0x46>
- 2d44: 62 1b sub r22, r18
- 2d46: 73 0b sbc r23, r19
- 2d48: 84 0b sbc r24, r20
- 2d4a: 95 0b sbc r25, r21
- 2d4c: 39 f4 brne .+14 ; 0x2d5c <__fp_cmp+0x38>
- 2d4e: 0a 26 eor r0, r26
- 2d50: 61 f0 breq .+24 ; 0x2d6a <__fp_cmp+0x46>
- 2d52: 23 2b or r18, r19
- 2d54: 24 2b or r18, r20
- 2d56: 25 2b or r18, r21
- 2d58: 21 f4 brne .+8 ; 0x2d62 <__fp_cmp+0x3e>
- 2d5a: 08 95 ret
- 2d5c: 0a 26 eor r0, r26
- 2d5e: 09 f4 brne .+2 ; 0x2d62 <__fp_cmp+0x3e>
- 2d60: a1 40 sbci r26, 0x01 ; 1
- 2d62: a6 95 lsr r26
- 2d64: 8f ef ldi r24, 0xFF ; 255
- 2d66: 81 1d adc r24, r1
- 2d68: 81 1d adc r24, r1
- 2d6a: 08 95 ret
- 00002d6c <__fp_inf>:
- 2d6c: 97 f9 bld r25, 7
- 2d6e: 9f 67 ori r25, 0x7F ; 127
- 2d70: 80 e8 ldi r24, 0x80 ; 128
- 2d72: 70 e0 ldi r23, 0x00 ; 0
- 2d74: 60 e0 ldi r22, 0x00 ; 0
- 2d76: 08 95 ret
- 00002d78 <__fp_nan>:
- 2d78: 9f ef ldi r25, 0xFF ; 255
- 2d7a: 80 ec ldi r24, 0xC0 ; 192
- 2d7c: 08 95 ret
- 00002d7e <__fp_pscA>:
- 2d7e: 00 24 eor r0, r0
- 2d80: 0a 94 dec r0
- 2d82: 16 16 cp r1, r22
- 2d84: 17 06 cpc r1, r23
- 2d86: 18 06 cpc r1, r24
- 2d88: 09 06 cpc r0, r25
- 2d8a: 08 95 ret
- 00002d8c <__fp_pscB>:
- 2d8c: 00 24 eor r0, r0
- 2d8e: 0a 94 dec r0
- 2d90: 12 16 cp r1, r18
- 2d92: 13 06 cpc r1, r19
- 2d94: 14 06 cpc r1, r20
- 2d96: 05 06 cpc r0, r21
- 2d98: 08 95 ret
- 00002d9a <__fp_round>:
- 2d9a: 09 2e mov r0, r25
- 2d9c: 03 94 inc r0
- 2d9e: 00 0c add r0, r0
- 2da0: 11 f4 brne .+4 ; 0x2da6 <__fp_round+0xc>
- 2da2: 88 23 and r24, r24
- 2da4: 52 f0 brmi .+20 ; 0x2dba <__fp_round+0x20>
- 2da6: bb 0f add r27, r27
- 2da8: 40 f4 brcc .+16 ; 0x2dba <__fp_round+0x20>
- 2daa: bf 2b or r27, r31
- 2dac: 11 f4 brne .+4 ; 0x2db2 <__fp_round+0x18>
- 2dae: 60 ff sbrs r22, 0
- 2db0: 04 c0 rjmp .+8 ; 0x2dba <__fp_round+0x20>
- 2db2: 6f 5f subi r22, 0xFF ; 255
- 2db4: 7f 4f sbci r23, 0xFF ; 255
- 2db6: 8f 4f sbci r24, 0xFF ; 255
- 2db8: 9f 4f sbci r25, 0xFF ; 255
- 2dba: 08 95 ret
- 00002dbc <__fp_split3>:
- 2dbc: 57 fd sbrc r21, 7
- 2dbe: 90 58 subi r25, 0x80 ; 128
- 2dc0: 44 0f add r20, r20
- 2dc2: 55 1f adc r21, r21
- 2dc4: 59 f0 breq .+22 ; 0x2ddc <__fp_splitA+0x10>
- 2dc6: 5f 3f cpi r21, 0xFF ; 255
- 2dc8: 71 f0 breq .+28 ; 0x2de6 <__fp_splitA+0x1a>
- 2dca: 47 95 ror r20
- 00002dcc <__fp_splitA>:
- 2dcc: 88 0f add r24, r24
- 2dce: 97 fb bst r25, 7
- 2dd0: 99 1f adc r25, r25
- 2dd2: 61 f0 breq .+24 ; 0x2dec <__fp_splitA+0x20>
- 2dd4: 9f 3f cpi r25, 0xFF ; 255
- 2dd6: 79 f0 breq .+30 ; 0x2df6 <__fp_splitA+0x2a>
- 2dd8: 87 95 ror r24
- 2dda: 08 95 ret
- 2ddc: 12 16 cp r1, r18
- 2dde: 13 06 cpc r1, r19
- 2de0: 14 06 cpc r1, r20
- 2de2: 55 1f adc r21, r21
- 2de4: f2 cf rjmp .-28 ; 0x2dca <__fp_split3+0xe>
- 2de6: 46 95 lsr r20
- 2de8: f1 df rcall .-30 ; 0x2dcc <__fp_splitA>
- 2dea: 08 c0 rjmp .+16 ; 0x2dfc <__fp_splitA+0x30>
- 2dec: 16 16 cp r1, r22
- 2dee: 17 06 cpc r1, r23
- 2df0: 18 06 cpc r1, r24
- 2df2: 99 1f adc r25, r25
- 2df4: f1 cf rjmp .-30 ; 0x2dd8 <__fp_splitA+0xc>
- 2df6: 86 95 lsr r24
- 2df8: 71 05 cpc r23, r1
- 2dfa: 61 05 cpc r22, r1
- 2dfc: 08 94 sec
- 2dfe: 08 95 ret
- 00002e00 <__fp_zero>:
- 2e00: e8 94 clt
- 00002e02 <__fp_szero>:
- 2e02: bb 27 eor r27, r27
- 2e04: 66 27 eor r22, r22
- 2e06: 77 27 eor r23, r23
- 2e08: cb 01 movw r24, r22
- 2e0a: 97 f9 bld r25, 7
- 2e0c: 08 95 ret
- 00002e0e <__gesf2>:
- 2e0e: 8a df rcall .-236 ; 0x2d24 <__fp_cmp>
- 2e10: 08 f4 brcc .+2 ; 0x2e14 <__gesf2+0x6>
- 2e12: 8f ef ldi r24, 0xFF ; 255
- 2e14: 08 95 ret
- 00002e16 <__mulsf3>:
- 2e16: 0b d0 rcall .+22 ; 0x2e2e <__mulsf3x>
- 2e18: c0 cf rjmp .-128 ; 0x2d9a <__fp_round>
- 2e1a: b1 df rcall .-158 ; 0x2d7e <__fp_pscA>
- 2e1c: 28 f0 brcs .+10 ; 0x2e28 <__mulsf3+0x12>
- 2e1e: b6 df rcall .-148 ; 0x2d8c <__fp_pscB>
- 2e20: 18 f0 brcs .+6 ; 0x2e28 <__mulsf3+0x12>
- 2e22: 95 23 and r25, r21
- 2e24: 09 f0 breq .+2 ; 0x2e28 <__mulsf3+0x12>
- 2e26: a2 cf rjmp .-188 ; 0x2d6c <__fp_inf>
- 2e28: a7 cf rjmp .-178 ; 0x2d78 <__fp_nan>
- 2e2a: 11 24 eor r1, r1
- 2e2c: ea cf rjmp .-44 ; 0x2e02 <__fp_szero>
- 00002e2e <__mulsf3x>:
- 2e2e: c6 df rcall .-116 ; 0x2dbc <__fp_split3>
- 2e30: a0 f3 brcs .-24 ; 0x2e1a <__mulsf3+0x4>
- 00002e32 <__mulsf3_pse>:
- 2e32: 95 9f mul r25, r21
- 2e34: d1 f3 breq .-12 ; 0x2e2a <__mulsf3+0x14>
- 2e36: 95 0f add r25, r21
- 2e38: 50 e0 ldi r21, 0x00 ; 0
- 2e3a: 55 1f adc r21, r21
- 2e3c: 62 9f mul r22, r18
- 2e3e: f0 01 movw r30, r0
- 2e40: 72 9f mul r23, r18
- 2e42: bb 27 eor r27, r27
- 2e44: f0 0d add r31, r0
- 2e46: b1 1d adc r27, r1
- 2e48: 63 9f mul r22, r19
- 2e4a: aa 27 eor r26, r26
- 2e4c: f0 0d add r31, r0
- 2e4e: b1 1d adc r27, r1
- 2e50: aa 1f adc r26, r26
- 2e52: 64 9f mul r22, r20
- 2e54: 66 27 eor r22, r22
- 2e56: b0 0d add r27, r0
- 2e58: a1 1d adc r26, r1
- 2e5a: 66 1f adc r22, r22
- 2e5c: 82 9f mul r24, r18
- 2e5e: 22 27 eor r18, r18
- 2e60: b0 0d add r27, r0
- 2e62: a1 1d adc r26, r1
- 2e64: 62 1f adc r22, r18
- 2e66: 73 9f mul r23, r19
- 2e68: b0 0d add r27, r0
- 2e6a: a1 1d adc r26, r1
- 2e6c: 62 1f adc r22, r18
- 2e6e: 83 9f mul r24, r19
- 2e70: a0 0d add r26, r0
- 2e72: 61 1d adc r22, r1
- 2e74: 22 1f adc r18, r18
- 2e76: 74 9f mul r23, r20
- 2e78: 33 27 eor r19, r19
- 2e7a: a0 0d add r26, r0
- 2e7c: 61 1d adc r22, r1
- 2e7e: 23 1f adc r18, r19
- 2e80: 84 9f mul r24, r20
- 2e82: 60 0d add r22, r0
- 2e84: 21 1d adc r18, r1
- 2e86: 82 2f mov r24, r18
- 2e88: 76 2f mov r23, r22
- 2e8a: 6a 2f mov r22, r26
- 2e8c: 11 24 eor r1, r1
- 2e8e: 9f 57 subi r25, 0x7F ; 127
- 2e90: 50 40 sbci r21, 0x00 ; 0
- 2e92: 8a f0 brmi .+34 ; 0x2eb6 <__mulsf3_pse+0x84>
- 2e94: e1 f0 breq .+56 ; 0x2ece <__mulsf3_pse+0x9c>
- 2e96: 88 23 and r24, r24
- 2e98: 4a f0 brmi .+18 ; 0x2eac <__mulsf3_pse+0x7a>
- 2e9a: ee 0f add r30, r30
- 2e9c: ff 1f adc r31, r31
- 2e9e: bb 1f adc r27, r27
- 2ea0: 66 1f adc r22, r22
- 2ea2: 77 1f adc r23, r23
- 2ea4: 88 1f adc r24, r24
- 2ea6: 91 50 subi r25, 0x01 ; 1
- 2ea8: 50 40 sbci r21, 0x00 ; 0
- 2eaa: a9 f7 brne .-22 ; 0x2e96 <__mulsf3_pse+0x64>
- 2eac: 9e 3f cpi r25, 0xFE ; 254
- 2eae: 51 05 cpc r21, r1
- 2eb0: 70 f0 brcs .+28 ; 0x2ece <__mulsf3_pse+0x9c>
- 2eb2: 5c cf rjmp .-328 ; 0x2d6c <__fp_inf>
- 2eb4: a6 cf rjmp .-180 ; 0x2e02 <__fp_szero>
- 2eb6: 5f 3f cpi r21, 0xFF ; 255
- 2eb8: ec f3 brlt .-6 ; 0x2eb4 <__mulsf3_pse+0x82>
- 2eba: 98 3e cpi r25, 0xE8 ; 232
- 2ebc: dc f3 brlt .-10 ; 0x2eb4 <__mulsf3_pse+0x82>
- 2ebe: 86 95 lsr r24
- 2ec0: 77 95 ror r23
- 2ec2: 67 95 ror r22
- 2ec4: b7 95 ror r27
- 2ec6: f7 95 ror r31
- 2ec8: e7 95 ror r30
- 2eca: 9f 5f subi r25, 0xFF ; 255
- 2ecc: c1 f7 brne .-16 ; 0x2ebe <__mulsf3_pse+0x8c>
- 2ece: fe 2b or r31, r30
- 2ed0: 88 0f add r24, r24
- 2ed2: 91 1d adc r25, r1
- 2ed4: 96 95 lsr r25
- 2ed6: 87 95 ror r24
- 2ed8: 97 f9 bld r25, 7
- 2eda: 08 95 ret
- 00002edc <vfprintf>:
- 2edc: a0 e1 ldi r26, 0x10 ; 16
- 2ede: b0 e0 ldi r27, 0x00 ; 0
- 2ee0: e3 e7 ldi r30, 0x73 ; 115
- 2ee2: f7 e1 ldi r31, 0x17 ; 23
- 2ee4: 81 c3 rjmp .+1794 ; 0x35e8 <__prologue_saves__>
- 2ee6: 7c 01 movw r14, r24
- 2ee8: 1b 01 movw r2, r22
- 2eea: 6a 01 movw r12, r20
- 2eec: fc 01 movw r30, r24
- 2eee: 17 82 std Z+7, r1 ; 0x07
- 2ef0: 16 82 std Z+6, r1 ; 0x06
- 2ef2: 83 81 ldd r24, Z+3 ; 0x03
- 2ef4: 81 ff sbrs r24, 1
- 2ef6: 2a c3 rjmp .+1620 ; 0x354c <vfprintf+0x670>
- 2ef8: 9e 01 movw r18, r28
- 2efa: 2f 5f subi r18, 0xFF ; 255
- 2efc: 3f 4f sbci r19, 0xFF ; 255
- 2efe: 39 01 movw r6, r18
- 2f00: f7 01 movw r30, r14
- 2f02: 93 81 ldd r25, Z+3 ; 0x03
- 2f04: f1 01 movw r30, r2
- 2f06: 93 fd sbrc r25, 3
- 2f08: 85 91 lpm r24, Z+
- 2f0a: 93 ff sbrs r25, 3
- 2f0c: 81 91 ld r24, Z+
- 2f0e: 1f 01 movw r2, r30
- 2f10: 88 23 and r24, r24
- 2f12: 09 f4 brne .+2 ; 0x2f16 <vfprintf+0x3a>
- 2f14: 17 c3 rjmp .+1582 ; 0x3544 <vfprintf+0x668>
- 2f16: 85 32 cpi r24, 0x25 ; 37
- 2f18: 39 f4 brne .+14 ; 0x2f28 <vfprintf+0x4c>
- 2f1a: 93 fd sbrc r25, 3
- 2f1c: 85 91 lpm r24, Z+
- 2f1e: 93 ff sbrs r25, 3
- 2f20: 81 91 ld r24, Z+
- 2f22: 1f 01 movw r2, r30
- 2f24: 85 32 cpi r24, 0x25 ; 37
- 2f26: 31 f4 brne .+12 ; 0x2f34 <vfprintf+0x58>
- 2f28: b7 01 movw r22, r14
- 2f2a: 90 e0 ldi r25, 0x00 ; 0
- 2f2c: ff d5 rcall .+3070 ; 0x3b2c <fputc>
- 2f2e: 56 01 movw r10, r12
- 2f30: 65 01 movw r12, r10
- 2f32: e6 cf rjmp .-52 ; 0x2f00 <vfprintf+0x24>
- 2f34: 10 e0 ldi r17, 0x00 ; 0
- 2f36: 51 2c mov r5, r1
- 2f38: 91 2c mov r9, r1
- 2f3a: ff e1 ldi r31, 0x1F ; 31
- 2f3c: f9 15 cp r31, r9
- 2f3e: d8 f0 brcs .+54 ; 0x2f76 <vfprintf+0x9a>
- 2f40: 8b 32 cpi r24, 0x2B ; 43
- 2f42: 79 f0 breq .+30 ; 0x2f62 <vfprintf+0x86>
- 2f44: 38 f4 brcc .+14 ; 0x2f54 <vfprintf+0x78>
- 2f46: 80 32 cpi r24, 0x20 ; 32
- 2f48: 79 f0 breq .+30 ; 0x2f68 <vfprintf+0x8c>
- 2f4a: 83 32 cpi r24, 0x23 ; 35
- 2f4c: a1 f4 brne .+40 ; 0x2f76 <vfprintf+0x9a>
- 2f4e: f9 2d mov r31, r9
- 2f50: f0 61 ori r31, 0x10 ; 16
- 2f52: 2e c0 rjmp .+92 ; 0x2fb0 <vfprintf+0xd4>
- 2f54: 8d 32 cpi r24, 0x2D ; 45
- 2f56: 61 f0 breq .+24 ; 0x2f70 <vfprintf+0x94>
- 2f58: 80 33 cpi r24, 0x30 ; 48
- 2f5a: 69 f4 brne .+26 ; 0x2f76 <vfprintf+0x9a>
- 2f5c: 29 2d mov r18, r9
- 2f5e: 21 60 ori r18, 0x01 ; 1
- 2f60: 2d c0 rjmp .+90 ; 0x2fbc <vfprintf+0xe0>
- 2f62: 39 2d mov r19, r9
- 2f64: 32 60 ori r19, 0x02 ; 2
- 2f66: 93 2e mov r9, r19
- 2f68: 89 2d mov r24, r9
- 2f6a: 84 60 ori r24, 0x04 ; 4
- 2f6c: 98 2e mov r9, r24
- 2f6e: 2a c0 rjmp .+84 ; 0x2fc4 <vfprintf+0xe8>
- 2f70: e9 2d mov r30, r9
- 2f72: e8 60 ori r30, 0x08 ; 8
- 2f74: 15 c0 rjmp .+42 ; 0x2fa0 <vfprintf+0xc4>
- 2f76: 97 fc sbrc r9, 7
- 2f78: 2d c0 rjmp .+90 ; 0x2fd4 <vfprintf+0xf8>
- 2f7a: 20 ed ldi r18, 0xD0 ; 208
- 2f7c: 28 0f add r18, r24
- 2f7e: 2a 30 cpi r18, 0x0A ; 10
- 2f80: 88 f4 brcc .+34 ; 0x2fa4 <vfprintf+0xc8>
- 2f82: 96 fe sbrs r9, 6
- 2f84: 06 c0 rjmp .+12 ; 0x2f92 <vfprintf+0xb6>
- 2f86: 3a e0 ldi r19, 0x0A ; 10
- 2f88: 13 9f mul r17, r19
- 2f8a: 20 0d add r18, r0
- 2f8c: 11 24 eor r1, r1
- 2f8e: 12 2f mov r17, r18
- 2f90: 19 c0 rjmp .+50 ; 0x2fc4 <vfprintf+0xe8>
- 2f92: 8a e0 ldi r24, 0x0A ; 10
- 2f94: 58 9e mul r5, r24
- 2f96: 20 0d add r18, r0
- 2f98: 11 24 eor r1, r1
- 2f9a: 52 2e mov r5, r18
- 2f9c: e9 2d mov r30, r9
- 2f9e: e0 62 ori r30, 0x20 ; 32
- 2fa0: 9e 2e mov r9, r30
- 2fa2: 10 c0 rjmp .+32 ; 0x2fc4 <vfprintf+0xe8>
- 2fa4: 8e 32 cpi r24, 0x2E ; 46
- 2fa6: 31 f4 brne .+12 ; 0x2fb4 <vfprintf+0xd8>
- 2fa8: 96 fc sbrc r9, 6
- 2faa: cc c2 rjmp .+1432 ; 0x3544 <vfprintf+0x668>
- 2fac: f9 2d mov r31, r9
- 2fae: f0 64 ori r31, 0x40 ; 64
- 2fb0: 9f 2e mov r9, r31
- 2fb2: 08 c0 rjmp .+16 ; 0x2fc4 <vfprintf+0xe8>
- 2fb4: 8c 36 cpi r24, 0x6C ; 108
- 2fb6: 21 f4 brne .+8 ; 0x2fc0 <vfprintf+0xe4>
- 2fb8: 29 2d mov r18, r9
- 2fba: 20 68 ori r18, 0x80 ; 128
- 2fbc: 92 2e mov r9, r18
- 2fbe: 02 c0 rjmp .+4 ; 0x2fc4 <vfprintf+0xe8>
- 2fc0: 88 36 cpi r24, 0x68 ; 104
- 2fc2: 41 f4 brne .+16 ; 0x2fd4 <vfprintf+0xf8>
- 2fc4: f1 01 movw r30, r2
- 2fc6: 93 fd sbrc r25, 3
- 2fc8: 85 91 lpm r24, Z+
- 2fca: 93 ff sbrs r25, 3
- 2fcc: 81 91 ld r24, Z+
- 2fce: 1f 01 movw r2, r30
- 2fd0: 81 11 cpse r24, r1
- 2fd2: b3 cf rjmp .-154 ; 0x2f3a <vfprintf+0x5e>
- 2fd4: 9b eb ldi r25, 0xBB ; 187
- 2fd6: 98 0f add r25, r24
- 2fd8: 93 30 cpi r25, 0x03 ; 3
- 2fda: 20 f4 brcc .+8 ; 0x2fe4 <vfprintf+0x108>
- 2fdc: 99 2d mov r25, r9
- 2fde: 90 61 ori r25, 0x10 ; 16
- 2fe0: 80 5e subi r24, 0xE0 ; 224
- 2fe2: 07 c0 rjmp .+14 ; 0x2ff2 <vfprintf+0x116>
- 2fe4: 9b e9 ldi r25, 0x9B ; 155
- 2fe6: 98 0f add r25, r24
- 2fe8: 93 30 cpi r25, 0x03 ; 3
- 2fea: 08 f0 brcs .+2 ; 0x2fee <vfprintf+0x112>
- 2fec: 59 c1 rjmp .+690 ; 0x32a0 <vfprintf+0x3c4>
- 2fee: 99 2d mov r25, r9
- 2ff0: 9f 7e andi r25, 0xEF ; 239
- 2ff2: 96 ff sbrs r25, 6
- 2ff4: 16 e0 ldi r17, 0x06 ; 6
- 2ff6: 9f 73 andi r25, 0x3F ; 63
- 2ff8: 99 2e mov r9, r25
- 2ffa: 85 36 cpi r24, 0x65 ; 101
- 2ffc: 19 f4 brne .+6 ; 0x3004 <vfprintf+0x128>
- 2ffe: 90 64 ori r25, 0x40 ; 64
- 3000: 99 2e mov r9, r25
- 3002: 08 c0 rjmp .+16 ; 0x3014 <vfprintf+0x138>
- 3004: 86 36 cpi r24, 0x66 ; 102
- 3006: 21 f4 brne .+8 ; 0x3010 <vfprintf+0x134>
- 3008: 39 2f mov r19, r25
- 300a: 30 68 ori r19, 0x80 ; 128
- 300c: 93 2e mov r9, r19
- 300e: 02 c0 rjmp .+4 ; 0x3014 <vfprintf+0x138>
- 3010: 11 11 cpse r17, r1
- 3012: 11 50 subi r17, 0x01 ; 1
- 3014: 97 fe sbrs r9, 7
- 3016: 07 c0 rjmp .+14 ; 0x3026 <vfprintf+0x14a>
- 3018: 1c 33 cpi r17, 0x3C ; 60
- 301a: 50 f4 brcc .+20 ; 0x3030 <vfprintf+0x154>
- 301c: 44 24 eor r4, r4
- 301e: 43 94 inc r4
- 3020: 41 0e add r4, r17
- 3022: 27 e0 ldi r18, 0x07 ; 7
- 3024: 0b c0 rjmp .+22 ; 0x303c <vfprintf+0x160>
- 3026: 18 30 cpi r17, 0x08 ; 8
- 3028: 38 f0 brcs .+14 ; 0x3038 <vfprintf+0x15c>
- 302a: 27 e0 ldi r18, 0x07 ; 7
- 302c: 17 e0 ldi r17, 0x07 ; 7
- 302e: 05 c0 rjmp .+10 ; 0x303a <vfprintf+0x15e>
- 3030: 27 e0 ldi r18, 0x07 ; 7
- 3032: 9c e3 ldi r25, 0x3C ; 60
- 3034: 49 2e mov r4, r25
- 3036: 02 c0 rjmp .+4 ; 0x303c <vfprintf+0x160>
- 3038: 21 2f mov r18, r17
- 303a: 41 2c mov r4, r1
- 303c: 56 01 movw r10, r12
- 303e: 84 e0 ldi r24, 0x04 ; 4
- 3040: a8 0e add r10, r24
- 3042: b1 1c adc r11, r1
- 3044: f6 01 movw r30, r12
- 3046: 60 81 ld r22, Z
- 3048: 71 81 ldd r23, Z+1 ; 0x01
- 304a: 82 81 ldd r24, Z+2 ; 0x02
- 304c: 93 81 ldd r25, Z+3 ; 0x03
- 304e: 04 2d mov r16, r4
- 3050: a3 01 movw r20, r6
- 3052: 50 d4 rcall .+2208 ; 0x38f4 <__ftoa_engine>
- 3054: 6c 01 movw r12, r24
- 3056: f9 81 ldd r31, Y+1 ; 0x01
- 3058: fc 87 std Y+12, r31 ; 0x0c
- 305a: f0 ff sbrs r31, 0
- 305c: 02 c0 rjmp .+4 ; 0x3062 <vfprintf+0x186>
- 305e: f3 ff sbrs r31, 3
- 3060: 06 c0 rjmp .+12 ; 0x306e <vfprintf+0x192>
- 3062: 91 fc sbrc r9, 1
- 3064: 06 c0 rjmp .+12 ; 0x3072 <vfprintf+0x196>
- 3066: 92 fe sbrs r9, 2
- 3068: 06 c0 rjmp .+12 ; 0x3076 <vfprintf+0x19a>
- 306a: 00 e2 ldi r16, 0x20 ; 32
- 306c: 05 c0 rjmp .+10 ; 0x3078 <vfprintf+0x19c>
- 306e: 0d e2 ldi r16, 0x2D ; 45
- 3070: 03 c0 rjmp .+6 ; 0x3078 <vfprintf+0x19c>
- 3072: 0b e2 ldi r16, 0x2B ; 43
- 3074: 01 c0 rjmp .+2 ; 0x3078 <vfprintf+0x19c>
- 3076: 00 e0 ldi r16, 0x00 ; 0
- 3078: 8c 85 ldd r24, Y+12 ; 0x0c
- 307a: 8c 70 andi r24, 0x0C ; 12
- 307c: 19 f0 breq .+6 ; 0x3084 <vfprintf+0x1a8>
- 307e: 01 11 cpse r16, r1
- 3080: 43 c2 rjmp .+1158 ; 0x3508 <vfprintf+0x62c>
- 3082: 80 c2 rjmp .+1280 ; 0x3584 <vfprintf+0x6a8>
- 3084: 97 fe sbrs r9, 7
- 3086: 10 c0 rjmp .+32 ; 0x30a8 <vfprintf+0x1cc>
- 3088: 4c 0c add r4, r12
- 308a: fc 85 ldd r31, Y+12 ; 0x0c
- 308c: f4 ff sbrs r31, 4
- 308e: 04 c0 rjmp .+8 ; 0x3098 <vfprintf+0x1bc>
- 3090: 8a 81 ldd r24, Y+2 ; 0x02
- 3092: 81 33 cpi r24, 0x31 ; 49
- 3094: 09 f4 brne .+2 ; 0x3098 <vfprintf+0x1bc>
- 3096: 4a 94 dec r4
- 3098: 14 14 cp r1, r4
- 309a: 74 f5 brge .+92 ; 0x30f8 <vfprintf+0x21c>
- 309c: 28 e0 ldi r18, 0x08 ; 8
- 309e: 24 15 cp r18, r4
- 30a0: 78 f5 brcc .+94 ; 0x3100 <vfprintf+0x224>
- 30a2: 88 e0 ldi r24, 0x08 ; 8
- 30a4: 48 2e mov r4, r24
- 30a6: 2c c0 rjmp .+88 ; 0x3100 <vfprintf+0x224>
- 30a8: 96 fc sbrc r9, 6
- 30aa: 2a c0 rjmp .+84 ; 0x3100 <vfprintf+0x224>
- 30ac: 81 2f mov r24, r17
- 30ae: 90 e0 ldi r25, 0x00 ; 0
- 30b0: 8c 15 cp r24, r12
- 30b2: 9d 05 cpc r25, r13
- 30b4: 9c f0 brlt .+38 ; 0x30dc <vfprintf+0x200>
- 30b6: 3c ef ldi r19, 0xFC ; 252
- 30b8: c3 16 cp r12, r19
- 30ba: 3f ef ldi r19, 0xFF ; 255
- 30bc: d3 06 cpc r13, r19
- 30be: 74 f0 brlt .+28 ; 0x30dc <vfprintf+0x200>
- 30c0: 89 2d mov r24, r9
- 30c2: 80 68 ori r24, 0x80 ; 128
- 30c4: 98 2e mov r9, r24
- 30c6: 0a c0 rjmp .+20 ; 0x30dc <vfprintf+0x200>
- 30c8: e2 e0 ldi r30, 0x02 ; 2
- 30ca: f0 e0 ldi r31, 0x00 ; 0
- 30cc: ec 0f add r30, r28
- 30ce: fd 1f adc r31, r29
- 30d0: e1 0f add r30, r17
- 30d2: f1 1d adc r31, r1
- 30d4: 80 81 ld r24, Z
- 30d6: 80 33 cpi r24, 0x30 ; 48
- 30d8: 19 f4 brne .+6 ; 0x30e0 <vfprintf+0x204>
- 30da: 11 50 subi r17, 0x01 ; 1
- 30dc: 11 11 cpse r17, r1
- 30de: f4 cf rjmp .-24 ; 0x30c8 <vfprintf+0x1ec>
- 30e0: 97 fe sbrs r9, 7
- 30e2: 0e c0 rjmp .+28 ; 0x3100 <vfprintf+0x224>
- 30e4: 44 24 eor r4, r4
- 30e6: 43 94 inc r4
- 30e8: 41 0e add r4, r17
- 30ea: 81 2f mov r24, r17
- 30ec: 90 e0 ldi r25, 0x00 ; 0
- 30ee: c8 16 cp r12, r24
- 30f0: d9 06 cpc r13, r25
- 30f2: 2c f4 brge .+10 ; 0x30fe <vfprintf+0x222>
- 30f4: 1c 19 sub r17, r12
- 30f6: 04 c0 rjmp .+8 ; 0x3100 <vfprintf+0x224>
- 30f8: 44 24 eor r4, r4
- 30fa: 43 94 inc r4
- 30fc: 01 c0 rjmp .+2 ; 0x3100 <vfprintf+0x224>
- 30fe: 10 e0 ldi r17, 0x00 ; 0
- 3100: 97 fe sbrs r9, 7
- 3102: 06 c0 rjmp .+12 ; 0x3110 <vfprintf+0x234>
- 3104: 1c 14 cp r1, r12
- 3106: 1d 04 cpc r1, r13
- 3108: 34 f4 brge .+12 ; 0x3116 <vfprintf+0x23a>
- 310a: c6 01 movw r24, r12
- 310c: 01 96 adiw r24, 0x01 ; 1
- 310e: 05 c0 rjmp .+10 ; 0x311a <vfprintf+0x23e>
- 3110: 85 e0 ldi r24, 0x05 ; 5
- 3112: 90 e0 ldi r25, 0x00 ; 0
- 3114: 02 c0 rjmp .+4 ; 0x311a <vfprintf+0x23e>
- 3116: 81 e0 ldi r24, 0x01 ; 1
- 3118: 90 e0 ldi r25, 0x00 ; 0
- 311a: 01 11 cpse r16, r1
- 311c: 01 96 adiw r24, 0x01 ; 1
- 311e: 11 23 and r17, r17
- 3120: 31 f0 breq .+12 ; 0x312e <vfprintf+0x252>
- 3122: 21 2f mov r18, r17
- 3124: 30 e0 ldi r19, 0x00 ; 0
- 3126: 2f 5f subi r18, 0xFF ; 255
- 3128: 3f 4f sbci r19, 0xFF ; 255
- 312a: 82 0f add r24, r18
- 312c: 93 1f adc r25, r19
- 312e: 25 2d mov r18, r5
- 3130: 30 e0 ldi r19, 0x00 ; 0
- 3132: 82 17 cp r24, r18
- 3134: 93 07 cpc r25, r19
- 3136: 14 f4 brge .+4 ; 0x313c <vfprintf+0x260>
- 3138: 58 1a sub r5, r24
- 313a: 01 c0 rjmp .+2 ; 0x313e <vfprintf+0x262>
- 313c: 51 2c mov r5, r1
- 313e: 89 2d mov r24, r9
- 3140: 89 70 andi r24, 0x09 ; 9
- 3142: 41 f4 brne .+16 ; 0x3154 <vfprintf+0x278>
- 3144: 55 20 and r5, r5
- 3146: 31 f0 breq .+12 ; 0x3154 <vfprintf+0x278>
- 3148: b7 01 movw r22, r14
- 314a: 80 e2 ldi r24, 0x20 ; 32
- 314c: 90 e0 ldi r25, 0x00 ; 0
- 314e: ee d4 rcall .+2524 ; 0x3b2c <fputc>
- 3150: 5a 94 dec r5
- 3152: f8 cf rjmp .-16 ; 0x3144 <vfprintf+0x268>
- 3154: 00 23 and r16, r16
- 3156: 21 f0 breq .+8 ; 0x3160 <vfprintf+0x284>
- 3158: b7 01 movw r22, r14
- 315a: 80 2f mov r24, r16
- 315c: 90 e0 ldi r25, 0x00 ; 0
- 315e: e6 d4 rcall .+2508 ; 0x3b2c <fputc>
- 3160: 93 fc sbrc r9, 3
- 3162: 08 c0 rjmp .+16 ; 0x3174 <vfprintf+0x298>
- 3164: 55 20 and r5, r5
- 3166: 31 f0 breq .+12 ; 0x3174 <vfprintf+0x298>
- 3168: b7 01 movw r22, r14
- 316a: 80 e3 ldi r24, 0x30 ; 48
- 316c: 90 e0 ldi r25, 0x00 ; 0
- 316e: de d4 rcall .+2492 ; 0x3b2c <fputc>
- 3170: 5a 94 dec r5
- 3172: f8 cf rjmp .-16 ; 0x3164 <vfprintf+0x288>
- 3174: 97 fe sbrs r9, 7
- 3176: 4a c0 rjmp .+148 ; 0x320c <vfprintf+0x330>
- 3178: 46 01 movw r8, r12
- 317a: d7 fe sbrs r13, 7
- 317c: 02 c0 rjmp .+4 ; 0x3182 <vfprintf+0x2a6>
- 317e: 81 2c mov r8, r1
- 3180: 91 2c mov r9, r1
- 3182: c6 01 movw r24, r12
- 3184: 88 19 sub r24, r8
- 3186: 99 09 sbc r25, r9
- 3188: f3 01 movw r30, r6
- 318a: e8 0f add r30, r24
- 318c: f9 1f adc r31, r25
- 318e: fe 87 std Y+14, r31 ; 0x0e
- 3190: ed 87 std Y+13, r30 ; 0x0d
- 3192: 96 01 movw r18, r12
- 3194: 24 19 sub r18, r4
- 3196: 31 09 sbc r19, r1
- 3198: 38 8b std Y+16, r19 ; 0x10
- 319a: 2f 87 std Y+15, r18 ; 0x0f
- 319c: 01 2f mov r16, r17
- 319e: 10 e0 ldi r17, 0x00 ; 0
- 31a0: 11 95 neg r17
- 31a2: 01 95 neg r16
- 31a4: 11 09 sbc r17, r1
- 31a6: 3f ef ldi r19, 0xFF ; 255
- 31a8: 83 16 cp r8, r19
- 31aa: 93 06 cpc r9, r19
- 31ac: 21 f4 brne .+8 ; 0x31b6 <vfprintf+0x2da>
- 31ae: b7 01 movw r22, r14
- 31b0: 8e e2 ldi r24, 0x2E ; 46
- 31b2: 90 e0 ldi r25, 0x00 ; 0
- 31b4: bb d4 rcall .+2422 ; 0x3b2c <fputc>
- 31b6: c8 14 cp r12, r8
- 31b8: d9 04 cpc r13, r9
- 31ba: 4c f0 brlt .+18 ; 0x31ce <vfprintf+0x2f2>
- 31bc: 8f 85 ldd r24, Y+15 ; 0x0f
- 31be: 98 89 ldd r25, Y+16 ; 0x10
- 31c0: 88 15 cp r24, r8
- 31c2: 99 05 cpc r25, r9
- 31c4: 24 f4 brge .+8 ; 0x31ce <vfprintf+0x2f2>
- 31c6: ed 85 ldd r30, Y+13 ; 0x0d
- 31c8: fe 85 ldd r31, Y+14 ; 0x0e
- 31ca: 81 81 ldd r24, Z+1 ; 0x01
- 31cc: 01 c0 rjmp .+2 ; 0x31d0 <vfprintf+0x2f4>
- 31ce: 80 e3 ldi r24, 0x30 ; 48
- 31d0: f1 e0 ldi r31, 0x01 ; 1
- 31d2: 8f 1a sub r8, r31
- 31d4: 91 08 sbc r9, r1
- 31d6: 2d 85 ldd r18, Y+13 ; 0x0d
- 31d8: 3e 85 ldd r19, Y+14 ; 0x0e
- 31da: 2f 5f subi r18, 0xFF ; 255
- 31dc: 3f 4f sbci r19, 0xFF ; 255
- 31de: 3e 87 std Y+14, r19 ; 0x0e
- 31e0: 2d 87 std Y+13, r18 ; 0x0d
- 31e2: 80 16 cp r8, r16
- 31e4: 91 06 cpc r9, r17
- 31e6: 24 f0 brlt .+8 ; 0x31f0 <vfprintf+0x314>
- 31e8: b7 01 movw r22, r14
- 31ea: 90 e0 ldi r25, 0x00 ; 0
- 31ec: 9f d4 rcall .+2366 ; 0x3b2c <fputc>
- 31ee: db cf rjmp .-74 ; 0x31a6 <vfprintf+0x2ca>
- 31f0: c8 14 cp r12, r8
- 31f2: d9 04 cpc r13, r9
- 31f4: 41 f4 brne .+16 ; 0x3206 <vfprintf+0x32a>
- 31f6: 9a 81 ldd r25, Y+2 ; 0x02
- 31f8: 96 33 cpi r25, 0x36 ; 54
- 31fa: 20 f4 brcc .+8 ; 0x3204 <vfprintf+0x328>
- 31fc: 95 33 cpi r25, 0x35 ; 53
- 31fe: 19 f4 brne .+6 ; 0x3206 <vfprintf+0x32a>
- 3200: 3c 85 ldd r19, Y+12 ; 0x0c
- 3202: 34 ff sbrs r19, 4
- 3204: 81 e3 ldi r24, 0x31 ; 49
- 3206: b7 01 movw r22, r14
- 3208: 90 e0 ldi r25, 0x00 ; 0
- 320a: 48 c0 rjmp .+144 ; 0x329c <vfprintf+0x3c0>
- 320c: 8a 81 ldd r24, Y+2 ; 0x02
- 320e: 81 33 cpi r24, 0x31 ; 49
- 3210: 19 f0 breq .+6 ; 0x3218 <vfprintf+0x33c>
- 3212: 9c 85 ldd r25, Y+12 ; 0x0c
- 3214: 9f 7e andi r25, 0xEF ; 239
- 3216: 9c 87 std Y+12, r25 ; 0x0c
- 3218: b7 01 movw r22, r14
- 321a: 90 e0 ldi r25, 0x00 ; 0
- 321c: 87 d4 rcall .+2318 ; 0x3b2c <fputc>
- 321e: 11 11 cpse r17, r1
- 3220: 05 c0 rjmp .+10 ; 0x322c <vfprintf+0x350>
- 3222: 94 fc sbrc r9, 4
- 3224: 16 c0 rjmp .+44 ; 0x3252 <vfprintf+0x376>
- 3226: 85 e6 ldi r24, 0x65 ; 101
- 3228: 90 e0 ldi r25, 0x00 ; 0
- 322a: 15 c0 rjmp .+42 ; 0x3256 <vfprintf+0x37a>
- 322c: b7 01 movw r22, r14
- 322e: 8e e2 ldi r24, 0x2E ; 46
- 3230: 90 e0 ldi r25, 0x00 ; 0
- 3232: 7c d4 rcall .+2296 ; 0x3b2c <fputc>
- 3234: 1e 5f subi r17, 0xFE ; 254
- 3236: 82 e0 ldi r24, 0x02 ; 2
- 3238: 01 e0 ldi r16, 0x01 ; 1
- 323a: 08 0f add r16, r24
- 323c: f3 01 movw r30, r6
- 323e: e8 0f add r30, r24
- 3240: f1 1d adc r31, r1
- 3242: 80 81 ld r24, Z
- 3244: b7 01 movw r22, r14
- 3246: 90 e0 ldi r25, 0x00 ; 0
- 3248: 71 d4 rcall .+2274 ; 0x3b2c <fputc>
- 324a: 80 2f mov r24, r16
- 324c: 01 13 cpse r16, r17
- 324e: f4 cf rjmp .-24 ; 0x3238 <vfprintf+0x35c>
- 3250: e8 cf rjmp .-48 ; 0x3222 <vfprintf+0x346>
- 3252: 85 e4 ldi r24, 0x45 ; 69
- 3254: 90 e0 ldi r25, 0x00 ; 0
- 3256: b7 01 movw r22, r14
- 3258: 69 d4 rcall .+2258 ; 0x3b2c <fputc>
- 325a: d7 fc sbrc r13, 7
- 325c: 06 c0 rjmp .+12 ; 0x326a <vfprintf+0x38e>
- 325e: c1 14 cp r12, r1
- 3260: d1 04 cpc r13, r1
- 3262: 41 f4 brne .+16 ; 0x3274 <vfprintf+0x398>
- 3264: ec 85 ldd r30, Y+12 ; 0x0c
- 3266: e4 ff sbrs r30, 4
- 3268: 05 c0 rjmp .+10 ; 0x3274 <vfprintf+0x398>
- 326a: d1 94 neg r13
- 326c: c1 94 neg r12
- 326e: d1 08 sbc r13, r1
- 3270: 8d e2 ldi r24, 0x2D ; 45
- 3272: 01 c0 rjmp .+2 ; 0x3276 <vfprintf+0x39a>
- 3274: 8b e2 ldi r24, 0x2B ; 43
- 3276: b7 01 movw r22, r14
- 3278: 90 e0 ldi r25, 0x00 ; 0
- 327a: 58 d4 rcall .+2224 ; 0x3b2c <fputc>
- 327c: 80 e3 ldi r24, 0x30 ; 48
- 327e: 2a e0 ldi r18, 0x0A ; 10
- 3280: c2 16 cp r12, r18
- 3282: d1 04 cpc r13, r1
- 3284: 2c f0 brlt .+10 ; 0x3290 <vfprintf+0x3b4>
- 3286: 8f 5f subi r24, 0xFF ; 255
- 3288: fa e0 ldi r31, 0x0A ; 10
- 328a: cf 1a sub r12, r31
- 328c: d1 08 sbc r13, r1
- 328e: f7 cf rjmp .-18 ; 0x327e <vfprintf+0x3a2>
- 3290: b7 01 movw r22, r14
- 3292: 90 e0 ldi r25, 0x00 ; 0
- 3294: 4b d4 rcall .+2198 ; 0x3b2c <fputc>
- 3296: b7 01 movw r22, r14
- 3298: c6 01 movw r24, r12
- 329a: c0 96 adiw r24, 0x30 ; 48
- 329c: 47 d4 rcall .+2190 ; 0x3b2c <fputc>
- 329e: 49 c1 rjmp .+658 ; 0x3532 <vfprintf+0x656>
- 32a0: 83 36 cpi r24, 0x63 ; 99
- 32a2: 31 f0 breq .+12 ; 0x32b0 <vfprintf+0x3d4>
- 32a4: 83 37 cpi r24, 0x73 ; 115
- 32a6: 79 f0 breq .+30 ; 0x32c6 <vfprintf+0x3ea>
- 32a8: 83 35 cpi r24, 0x53 ; 83
- 32aa: 09 f0 breq .+2 ; 0x32ae <vfprintf+0x3d2>
- 32ac: 52 c0 rjmp .+164 ; 0x3352 <vfprintf+0x476>
- 32ae: 1f c0 rjmp .+62 ; 0x32ee <vfprintf+0x412>
- 32b0: 56 01 movw r10, r12
- 32b2: 32 e0 ldi r19, 0x02 ; 2
- 32b4: a3 0e add r10, r19
- 32b6: b1 1c adc r11, r1
- 32b8: f6 01 movw r30, r12
- 32ba: 80 81 ld r24, Z
- 32bc: 89 83 std Y+1, r24 ; 0x01
- 32be: 01 e0 ldi r16, 0x01 ; 1
- 32c0: 10 e0 ldi r17, 0x00 ; 0
- 32c2: 63 01 movw r12, r6
- 32c4: 11 c0 rjmp .+34 ; 0x32e8 <vfprintf+0x40c>
- 32c6: 56 01 movw r10, r12
- 32c8: f2 e0 ldi r31, 0x02 ; 2
- 32ca: af 0e add r10, r31
- 32cc: b1 1c adc r11, r1
- 32ce: f6 01 movw r30, r12
- 32d0: c0 80 ld r12, Z
- 32d2: d1 80 ldd r13, Z+1 ; 0x01
- 32d4: 96 fe sbrs r9, 6
- 32d6: 03 c0 rjmp .+6 ; 0x32de <vfprintf+0x402>
- 32d8: 61 2f mov r22, r17
- 32da: 70 e0 ldi r23, 0x00 ; 0
- 32dc: 02 c0 rjmp .+4 ; 0x32e2 <vfprintf+0x406>
- 32de: 6f ef ldi r22, 0xFF ; 255
- 32e0: 7f ef ldi r23, 0xFF ; 255
- 32e2: c6 01 movw r24, r12
- 32e4: 09 d4 rcall .+2066 ; 0x3af8 <strnlen>
- 32e6: 8c 01 movw r16, r24
- 32e8: f9 2d mov r31, r9
- 32ea: ff 77 andi r31, 0x7F ; 127
- 32ec: 13 c0 rjmp .+38 ; 0x3314 <vfprintf+0x438>
- 32ee: 56 01 movw r10, r12
- 32f0: 22 e0 ldi r18, 0x02 ; 2
- 32f2: a2 0e add r10, r18
- 32f4: b1 1c adc r11, r1
- 32f6: f6 01 movw r30, r12
- 32f8: c0 80 ld r12, Z
- 32fa: d1 80 ldd r13, Z+1 ; 0x01
- 32fc: 96 fe sbrs r9, 6
- 32fe: 03 c0 rjmp .+6 ; 0x3306 <vfprintf+0x42a>
- 3300: 61 2f mov r22, r17
- 3302: 70 e0 ldi r23, 0x00 ; 0
- 3304: 02 c0 rjmp .+4 ; 0x330a <vfprintf+0x42e>
- 3306: 6f ef ldi r22, 0xFF ; 255
- 3308: 7f ef ldi r23, 0xFF ; 255
- 330a: c6 01 movw r24, r12
- 330c: cb d3 rcall .+1942 ; 0x3aa4 <strnlen_P>
- 330e: 8c 01 movw r16, r24
- 3310: f9 2d mov r31, r9
- 3312: f0 68 ori r31, 0x80 ; 128
- 3314: 9f 2e mov r9, r31
- 3316: f3 fd sbrc r31, 3
- 3318: 18 c0 rjmp .+48 ; 0x334a <vfprintf+0x46e>
- 331a: 85 2d mov r24, r5
- 331c: 90 e0 ldi r25, 0x00 ; 0
- 331e: 08 17 cp r16, r24
- 3320: 19 07 cpc r17, r25
- 3322: 98 f4 brcc .+38 ; 0x334a <vfprintf+0x46e>
- 3324: b7 01 movw r22, r14
- 3326: 80 e2 ldi r24, 0x20 ; 32
- 3328: 90 e0 ldi r25, 0x00 ; 0
- 332a: 00 d4 rcall .+2048 ; 0x3b2c <fputc>
- 332c: 5a 94 dec r5
- 332e: f5 cf rjmp .-22 ; 0x331a <vfprintf+0x43e>
- 3330: f6 01 movw r30, r12
- 3332: 97 fc sbrc r9, 7
- 3334: 85 91 lpm r24, Z+
- 3336: 97 fe sbrs r9, 7
- 3338: 81 91 ld r24, Z+
- 333a: 6f 01 movw r12, r30
- 333c: b7 01 movw r22, r14
- 333e: 90 e0 ldi r25, 0x00 ; 0
- 3340: f5 d3 rcall .+2026 ; 0x3b2c <fputc>
- 3342: 51 10 cpse r5, r1
- 3344: 5a 94 dec r5
- 3346: 01 50 subi r16, 0x01 ; 1
- 3348: 11 09 sbc r17, r1
- 334a: 01 15 cp r16, r1
- 334c: 11 05 cpc r17, r1
- 334e: 81 f7 brne .-32 ; 0x3330 <vfprintf+0x454>
- 3350: f0 c0 rjmp .+480 ; 0x3532 <vfprintf+0x656>
- 3352: 84 36 cpi r24, 0x64 ; 100
- 3354: 11 f0 breq .+4 ; 0x335a <vfprintf+0x47e>
- 3356: 89 36 cpi r24, 0x69 ; 105
- 3358: 59 f5 brne .+86 ; 0x33b0 <vfprintf+0x4d4>
- 335a: 56 01 movw r10, r12
- 335c: 97 fe sbrs r9, 7
- 335e: 09 c0 rjmp .+18 ; 0x3372 <vfprintf+0x496>
- 3360: 24 e0 ldi r18, 0x04 ; 4
- 3362: a2 0e add r10, r18
- 3364: b1 1c adc r11, r1
- 3366: f6 01 movw r30, r12
- 3368: 60 81 ld r22, Z
- 336a: 71 81 ldd r23, Z+1 ; 0x01
- 336c: 82 81 ldd r24, Z+2 ; 0x02
- 336e: 93 81 ldd r25, Z+3 ; 0x03
- 3370: 0a c0 rjmp .+20 ; 0x3386 <vfprintf+0x4aa>
- 3372: f2 e0 ldi r31, 0x02 ; 2
- 3374: af 0e add r10, r31
- 3376: b1 1c adc r11, r1
- 3378: f6 01 movw r30, r12
- 337a: 60 81 ld r22, Z
- 337c: 71 81 ldd r23, Z+1 ; 0x01
- 337e: 07 2e mov r0, r23
- 3380: 00 0c add r0, r0
- 3382: 88 0b sbc r24, r24
- 3384: 99 0b sbc r25, r25
- 3386: f9 2d mov r31, r9
- 3388: ff 76 andi r31, 0x6F ; 111
- 338a: 9f 2e mov r9, r31
- 338c: 97 ff sbrs r25, 7
- 338e: 09 c0 rjmp .+18 ; 0x33a2 <vfprintf+0x4c6>
- 3390: 90 95 com r25
- 3392: 80 95 com r24
- 3394: 70 95 com r23
- 3396: 61 95 neg r22
- 3398: 7f 4f sbci r23, 0xFF ; 255
- 339a: 8f 4f sbci r24, 0xFF ; 255
- 339c: 9f 4f sbci r25, 0xFF ; 255
- 339e: f0 68 ori r31, 0x80 ; 128
- 33a0: 9f 2e mov r9, r31
- 33a2: 2a e0 ldi r18, 0x0A ; 10
- 33a4: 30 e0 ldi r19, 0x00 ; 0
- 33a6: a3 01 movw r20, r6
- 33a8: 2f d4 rcall .+2142 ; 0x3c08 <__ultoa_invert>
- 33aa: c8 2e mov r12, r24
- 33ac: c6 18 sub r12, r6
- 33ae: 3e c0 rjmp .+124 ; 0x342c <vfprintf+0x550>
- 33b0: 09 2d mov r16, r9
- 33b2: 85 37 cpi r24, 0x75 ; 117
- 33b4: 21 f4 brne .+8 ; 0x33be <vfprintf+0x4e2>
- 33b6: 0f 7e andi r16, 0xEF ; 239
- 33b8: 2a e0 ldi r18, 0x0A ; 10
- 33ba: 30 e0 ldi r19, 0x00 ; 0
- 33bc: 1d c0 rjmp .+58 ; 0x33f8 <vfprintf+0x51c>
- 33be: 09 7f andi r16, 0xF9 ; 249
- 33c0: 8f 36 cpi r24, 0x6F ; 111
- 33c2: 91 f0 breq .+36 ; 0x33e8 <vfprintf+0x50c>
- 33c4: 18 f4 brcc .+6 ; 0x33cc <vfprintf+0x4f0>
- 33c6: 88 35 cpi r24, 0x58 ; 88
- 33c8: 59 f0 breq .+22 ; 0x33e0 <vfprintf+0x504>
- 33ca: bc c0 rjmp .+376 ; 0x3544 <vfprintf+0x668>
- 33cc: 80 37 cpi r24, 0x70 ; 112
- 33ce: 19 f0 breq .+6 ; 0x33d6 <vfprintf+0x4fa>
- 33d0: 88 37 cpi r24, 0x78 ; 120
- 33d2: 11 f0 breq .+4 ; 0x33d8 <vfprintf+0x4fc>
- 33d4: b7 c0 rjmp .+366 ; 0x3544 <vfprintf+0x668>
- 33d6: 00 61 ori r16, 0x10 ; 16
- 33d8: 04 ff sbrs r16, 4
- 33da: 09 c0 rjmp .+18 ; 0x33ee <vfprintf+0x512>
- 33dc: 04 60 ori r16, 0x04 ; 4
- 33de: 07 c0 rjmp .+14 ; 0x33ee <vfprintf+0x512>
- 33e0: 94 fe sbrs r9, 4
- 33e2: 08 c0 rjmp .+16 ; 0x33f4 <vfprintf+0x518>
- 33e4: 06 60 ori r16, 0x06 ; 6
- 33e6: 06 c0 rjmp .+12 ; 0x33f4 <vfprintf+0x518>
- 33e8: 28 e0 ldi r18, 0x08 ; 8
- 33ea: 30 e0 ldi r19, 0x00 ; 0
- 33ec: 05 c0 rjmp .+10 ; 0x33f8 <vfprintf+0x51c>
- 33ee: 20 e1 ldi r18, 0x10 ; 16
- 33f0: 30 e0 ldi r19, 0x00 ; 0
- 33f2: 02 c0 rjmp .+4 ; 0x33f8 <vfprintf+0x51c>
- 33f4: 20 e1 ldi r18, 0x10 ; 16
- 33f6: 32 e0 ldi r19, 0x02 ; 2
- 33f8: 56 01 movw r10, r12
- 33fa: 07 ff sbrs r16, 7
- 33fc: 09 c0 rjmp .+18 ; 0x3410 <vfprintf+0x534>
- 33fe: 84 e0 ldi r24, 0x04 ; 4
- 3400: a8 0e add r10, r24
- 3402: b1 1c adc r11, r1
- 3404: f6 01 movw r30, r12
- 3406: 60 81 ld r22, Z
- 3408: 71 81 ldd r23, Z+1 ; 0x01
- 340a: 82 81 ldd r24, Z+2 ; 0x02
- 340c: 93 81 ldd r25, Z+3 ; 0x03
- 340e: 08 c0 rjmp .+16 ; 0x3420 <vfprintf+0x544>
- 3410: f2 e0 ldi r31, 0x02 ; 2
- 3412: af 0e add r10, r31
- 3414: b1 1c adc r11, r1
- 3416: f6 01 movw r30, r12
- 3418: 60 81 ld r22, Z
- 341a: 71 81 ldd r23, Z+1 ; 0x01
- 341c: 80 e0 ldi r24, 0x00 ; 0
- 341e: 90 e0 ldi r25, 0x00 ; 0
- 3420: a3 01 movw r20, r6
- 3422: f2 d3 rcall .+2020 ; 0x3c08 <__ultoa_invert>
- 3424: c8 2e mov r12, r24
- 3426: c6 18 sub r12, r6
- 3428: 0f 77 andi r16, 0x7F ; 127
- 342a: 90 2e mov r9, r16
- 342c: 96 fe sbrs r9, 6
- 342e: 0b c0 rjmp .+22 ; 0x3446 <vfprintf+0x56a>
- 3430: 09 2d mov r16, r9
- 3432: 0e 7f andi r16, 0xFE ; 254
- 3434: c1 16 cp r12, r17
- 3436: 50 f4 brcc .+20 ; 0x344c <vfprintf+0x570>
- 3438: 94 fe sbrs r9, 4
- 343a: 0a c0 rjmp .+20 ; 0x3450 <vfprintf+0x574>
- 343c: 92 fc sbrc r9, 2
- 343e: 08 c0 rjmp .+16 ; 0x3450 <vfprintf+0x574>
- 3440: 09 2d mov r16, r9
- 3442: 0e 7e andi r16, 0xEE ; 238
- 3444: 05 c0 rjmp .+10 ; 0x3450 <vfprintf+0x574>
- 3446: dc 2c mov r13, r12
- 3448: 09 2d mov r16, r9
- 344a: 03 c0 rjmp .+6 ; 0x3452 <vfprintf+0x576>
- 344c: dc 2c mov r13, r12
- 344e: 01 c0 rjmp .+2 ; 0x3452 <vfprintf+0x576>
- 3450: d1 2e mov r13, r17
- 3452: 04 ff sbrs r16, 4
- 3454: 0d c0 rjmp .+26 ; 0x3470 <vfprintf+0x594>
- 3456: fe 01 movw r30, r28
- 3458: ec 0d add r30, r12
- 345a: f1 1d adc r31, r1
- 345c: 80 81 ld r24, Z
- 345e: 80 33 cpi r24, 0x30 ; 48
- 3460: 11 f4 brne .+4 ; 0x3466 <vfprintf+0x58a>
- 3462: 09 7e andi r16, 0xE9 ; 233
- 3464: 09 c0 rjmp .+18 ; 0x3478 <vfprintf+0x59c>
- 3466: 02 ff sbrs r16, 2
- 3468: 06 c0 rjmp .+12 ; 0x3476 <vfprintf+0x59a>
- 346a: d3 94 inc r13
- 346c: d3 94 inc r13
- 346e: 04 c0 rjmp .+8 ; 0x3478 <vfprintf+0x59c>
- 3470: 80 2f mov r24, r16
- 3472: 86 78 andi r24, 0x86 ; 134
- 3474: 09 f0 breq .+2 ; 0x3478 <vfprintf+0x59c>
- 3476: d3 94 inc r13
- 3478: 03 fd sbrc r16, 3
- 347a: 10 c0 rjmp .+32 ; 0x349c <vfprintf+0x5c0>
- 347c: 00 ff sbrs r16, 0
- 347e: 06 c0 rjmp .+12 ; 0x348c <vfprintf+0x5b0>
- 3480: 1c 2d mov r17, r12
- 3482: d5 14 cp r13, r5
- 3484: 78 f4 brcc .+30 ; 0x34a4 <vfprintf+0x5c8>
- 3486: 15 0d add r17, r5
- 3488: 1d 19 sub r17, r13
- 348a: 0c c0 rjmp .+24 ; 0x34a4 <vfprintf+0x5c8>
- 348c: d5 14 cp r13, r5
- 348e: 50 f4 brcc .+20 ; 0x34a4 <vfprintf+0x5c8>
- 3490: b7 01 movw r22, r14
- 3492: 80 e2 ldi r24, 0x20 ; 32
- 3494: 90 e0 ldi r25, 0x00 ; 0
- 3496: 4a d3 rcall .+1684 ; 0x3b2c <fputc>
- 3498: d3 94 inc r13
- 349a: f8 cf rjmp .-16 ; 0x348c <vfprintf+0x5b0>
- 349c: d5 14 cp r13, r5
- 349e: 10 f4 brcc .+4 ; 0x34a4 <vfprintf+0x5c8>
- 34a0: 5d 18 sub r5, r13
- 34a2: 01 c0 rjmp .+2 ; 0x34a6 <vfprintf+0x5ca>
- 34a4: 51 2c mov r5, r1
- 34a6: 04 ff sbrs r16, 4
- 34a8: 0f c0 rjmp .+30 ; 0x34c8 <vfprintf+0x5ec>
- 34aa: b7 01 movw r22, r14
- 34ac: 80 e3 ldi r24, 0x30 ; 48
- 34ae: 90 e0 ldi r25, 0x00 ; 0
- 34b0: 3d d3 rcall .+1658 ; 0x3b2c <fputc>
- 34b2: 02 ff sbrs r16, 2
- 34b4: 16 c0 rjmp .+44 ; 0x34e2 <vfprintf+0x606>
- 34b6: 01 fd sbrc r16, 1
- 34b8: 03 c0 rjmp .+6 ; 0x34c0 <vfprintf+0x5e4>
- 34ba: 88 e7 ldi r24, 0x78 ; 120
- 34bc: 90 e0 ldi r25, 0x00 ; 0
- 34be: 02 c0 rjmp .+4 ; 0x34c4 <vfprintf+0x5e8>
- 34c0: 88 e5 ldi r24, 0x58 ; 88
- 34c2: 90 e0 ldi r25, 0x00 ; 0
- 34c4: b7 01 movw r22, r14
- 34c6: 0c c0 rjmp .+24 ; 0x34e0 <vfprintf+0x604>
- 34c8: 80 2f mov r24, r16
- 34ca: 86 78 andi r24, 0x86 ; 134
- 34cc: 51 f0 breq .+20 ; 0x34e2 <vfprintf+0x606>
- 34ce: 01 ff sbrs r16, 1
- 34d0: 02 c0 rjmp .+4 ; 0x34d6 <vfprintf+0x5fa>
- 34d2: 8b e2 ldi r24, 0x2B ; 43
- 34d4: 01 c0 rjmp .+2 ; 0x34d8 <vfprintf+0x5fc>
- 34d6: 80 e2 ldi r24, 0x20 ; 32
- 34d8: 07 fd sbrc r16, 7
- 34da: 8d e2 ldi r24, 0x2D ; 45
- 34dc: b7 01 movw r22, r14
- 34de: 90 e0 ldi r25, 0x00 ; 0
- 34e0: 25 d3 rcall .+1610 ; 0x3b2c <fputc>
- 34e2: c1 16 cp r12, r17
- 34e4: 30 f4 brcc .+12 ; 0x34f2 <vfprintf+0x616>
- 34e6: b7 01 movw r22, r14
- 34e8: 80 e3 ldi r24, 0x30 ; 48
- 34ea: 90 e0 ldi r25, 0x00 ; 0
- 34ec: 1f d3 rcall .+1598 ; 0x3b2c <fputc>
- 34ee: 11 50 subi r17, 0x01 ; 1
- 34f0: f8 cf rjmp .-16 ; 0x34e2 <vfprintf+0x606>
- 34f2: ca 94 dec r12
- 34f4: f3 01 movw r30, r6
- 34f6: ec 0d add r30, r12
- 34f8: f1 1d adc r31, r1
- 34fa: 80 81 ld r24, Z
- 34fc: b7 01 movw r22, r14
- 34fe: 90 e0 ldi r25, 0x00 ; 0
- 3500: 15 d3 rcall .+1578 ; 0x3b2c <fputc>
- 3502: c1 10 cpse r12, r1
- 3504: f6 cf rjmp .-20 ; 0x34f2 <vfprintf+0x616>
- 3506: 15 c0 rjmp .+42 ; 0x3532 <vfprintf+0x656>
- 3508: f4 e0 ldi r31, 0x04 ; 4
- 350a: f5 15 cp r31, r5
- 350c: 50 f5 brcc .+84 ; 0x3562 <vfprintf+0x686>
- 350e: 84 e0 ldi r24, 0x04 ; 4
- 3510: 58 1a sub r5, r24
- 3512: 93 fe sbrs r9, 3
- 3514: 1e c0 rjmp .+60 ; 0x3552 <vfprintf+0x676>
- 3516: 01 11 cpse r16, r1
- 3518: 25 c0 rjmp .+74 ; 0x3564 <vfprintf+0x688>
- 351a: 2c 85 ldd r18, Y+12 ; 0x0c
- 351c: 23 ff sbrs r18, 3
- 351e: 27 c0 rjmp .+78 ; 0x356e <vfprintf+0x692>
- 3520: 00 e9 ldi r16, 0x90 ; 144
- 3522: 10 e0 ldi r17, 0x00 ; 0
- 3524: 39 2d mov r19, r9
- 3526: 30 71 andi r19, 0x10 ; 16
- 3528: 93 2e mov r9, r19
- 352a: f8 01 movw r30, r16
- 352c: 84 91 lpm r24, Z
- 352e: 81 11 cpse r24, r1
- 3530: 21 c0 rjmp .+66 ; 0x3574 <vfprintf+0x698>
- 3532: 55 20 and r5, r5
- 3534: 09 f4 brne .+2 ; 0x3538 <vfprintf+0x65c>
- 3536: fc cc rjmp .-1544 ; 0x2f30 <vfprintf+0x54>
- 3538: b7 01 movw r22, r14
- 353a: 80 e2 ldi r24, 0x20 ; 32
- 353c: 90 e0 ldi r25, 0x00 ; 0
- 353e: f6 d2 rcall .+1516 ; 0x3b2c <fputc>
- 3540: 5a 94 dec r5
- 3542: f7 cf rjmp .-18 ; 0x3532 <vfprintf+0x656>
- 3544: f7 01 movw r30, r14
- 3546: 86 81 ldd r24, Z+6 ; 0x06
- 3548: 97 81 ldd r25, Z+7 ; 0x07
- 354a: 23 c0 rjmp .+70 ; 0x3592 <vfprintf+0x6b6>
- 354c: 8f ef ldi r24, 0xFF ; 255
- 354e: 9f ef ldi r25, 0xFF ; 255
- 3550: 20 c0 rjmp .+64 ; 0x3592 <vfprintf+0x6b6>
- 3552: b7 01 movw r22, r14
- 3554: 80 e2 ldi r24, 0x20 ; 32
- 3556: 90 e0 ldi r25, 0x00 ; 0
- 3558: e9 d2 rcall .+1490 ; 0x3b2c <fputc>
- 355a: 5a 94 dec r5
- 355c: 51 10 cpse r5, r1
- 355e: f9 cf rjmp .-14 ; 0x3552 <vfprintf+0x676>
- 3560: da cf rjmp .-76 ; 0x3516 <vfprintf+0x63a>
- 3562: 51 2c mov r5, r1
- 3564: b7 01 movw r22, r14
- 3566: 80 2f mov r24, r16
- 3568: 90 e0 ldi r25, 0x00 ; 0
- 356a: e0 d2 rcall .+1472 ; 0x3b2c <fputc>
- 356c: d6 cf rjmp .-84 ; 0x351a <vfprintf+0x63e>
- 356e: 04 e9 ldi r16, 0x94 ; 148
- 3570: 10 e0 ldi r17, 0x00 ; 0
- 3572: d8 cf rjmp .-80 ; 0x3524 <vfprintf+0x648>
- 3574: 91 10 cpse r9, r1
- 3576: 80 52 subi r24, 0x20 ; 32
- 3578: b7 01 movw r22, r14
- 357a: 90 e0 ldi r25, 0x00 ; 0
- 357c: d7 d2 rcall .+1454 ; 0x3b2c <fputc>
- 357e: 0f 5f subi r16, 0xFF ; 255
- 3580: 1f 4f sbci r17, 0xFF ; 255
- 3582: d3 cf rjmp .-90 ; 0x352a <vfprintf+0x64e>
- 3584: 23 e0 ldi r18, 0x03 ; 3
- 3586: 25 15 cp r18, r5
- 3588: 10 f4 brcc .+4 ; 0x358e <vfprintf+0x6b2>
- 358a: 83 e0 ldi r24, 0x03 ; 3
- 358c: c1 cf rjmp .-126 ; 0x3510 <vfprintf+0x634>
- 358e: 51 2c mov r5, r1
- 3590: c4 cf rjmp .-120 ; 0x351a <vfprintf+0x63e>
- 3592: 60 96 adiw r28, 0x10 ; 16
- 3594: e2 e1 ldi r30, 0x12 ; 18
- 3596: 44 c0 rjmp .+136 ; 0x3620 <__epilogue_restores__>
- 00003598 <__divmodhi4>:
- 3598: 97 fb bst r25, 7
- 359a: 07 2e mov r0, r23
- 359c: 16 f4 brtc .+4 ; 0x35a2 <__divmodhi4+0xa>
- 359e: 00 94 com r0
- 35a0: 06 d0 rcall .+12 ; 0x35ae <__divmodhi4_neg1>
- 35a2: 77 fd sbrc r23, 7
- 35a4: 08 d0 rcall .+16 ; 0x35b6 <__divmodhi4_neg2>
- 35a6: 57 d0 rcall .+174 ; 0x3656 <__udivmodhi4>
- 35a8: 07 fc sbrc r0, 7
- 35aa: 05 d0 rcall .+10 ; 0x35b6 <__divmodhi4_neg2>
- 35ac: 3e f4 brtc .+14 ; 0x35bc <__divmodhi4_exit>
- 000035ae <__divmodhi4_neg1>:
- 35ae: 90 95 com r25
- 35b0: 81 95 neg r24
- 35b2: 9f 4f sbci r25, 0xFF ; 255
- 35b4: 08 95 ret
- 000035b6 <__divmodhi4_neg2>:
- 35b6: 70 95 com r23
- 35b8: 61 95 neg r22
- 35ba: 7f 4f sbci r23, 0xFF ; 255
- 000035bc <__divmodhi4_exit>:
- 35bc: 08 95 ret
- 000035be <__tablejump2__>:
- 35be: ee 0f add r30, r30
- 35c0: ff 1f adc r31, r31
- 35c2: 05 90 lpm r0, Z+
- 35c4: f4 91 lpm r31, Z
- 35c6: e0 2d mov r30, r0
- 35c8: 09 94 ijmp
- 000035ca <__umulhisi3>:
- 35ca: a2 9f mul r26, r18
- 35cc: b0 01 movw r22, r0
- 35ce: b3 9f mul r27, r19
- 35d0: c0 01 movw r24, r0
- 35d2: a3 9f mul r26, r19
- 35d4: 70 0d add r23, r0
- 35d6: 81 1d adc r24, r1
- 35d8: 11 24 eor r1, r1
- 35da: 91 1d adc r25, r1
- 35dc: b2 9f mul r27, r18
- 35de: 70 0d add r23, r0
- 35e0: 81 1d adc r24, r1
- 35e2: 11 24 eor r1, r1
- 35e4: 91 1d adc r25, r1
- 35e6: 08 95 ret
- 000035e8 <__prologue_saves__>:
- 35e8: 2f 92 push r2
- 35ea: 3f 92 push r3
- 35ec: 4f 92 push r4
- 35ee: 5f 92 push r5
- 35f0: 6f 92 push r6
- 35f2: 7f 92 push r7
- 35f4: 8f 92 push r8
- 35f6: 9f 92 push r9
- 35f8: af 92 push r10
- 35fa: bf 92 push r11
- 35fc: cf 92 push r12
- 35fe: df 92 push r13
- 3600: ef 92 push r14
- 3602: ff 92 push r15
- 3604: 0f 93 push r16
- 3606: 1f 93 push r17
- 3608: cf 93 push r28
- 360a: df 93 push r29
- 360c: cd b7 in r28, 0x3d ; 61
- 360e: de b7 in r29, 0x3e ; 62
- 3610: ca 1b sub r28, r26
- 3612: db 0b sbc r29, r27
- 3614: 0f b6 in r0, 0x3f ; 63
- 3616: f8 94 cli
- 3618: de bf out 0x3e, r29 ; 62
- 361a: 0f be out 0x3f, r0 ; 63
- 361c: cd bf out 0x3d, r28 ; 61
- 361e: 09 94 ijmp
- 00003620 <__epilogue_restores__>:
- 3620: 2a 88 ldd r2, Y+18 ; 0x12
- 3622: 39 88 ldd r3, Y+17 ; 0x11
- 3624: 48 88 ldd r4, Y+16 ; 0x10
- 3626: 5f 84 ldd r5, Y+15 ; 0x0f
- 3628: 6e 84 ldd r6, Y+14 ; 0x0e
- 362a: 7d 84 ldd r7, Y+13 ; 0x0d
- 362c: 8c 84 ldd r8, Y+12 ; 0x0c
- 362e: 9b 84 ldd r9, Y+11 ; 0x0b
- 3630: aa 84 ldd r10, Y+10 ; 0x0a
- 3632: b9 84 ldd r11, Y+9 ; 0x09
- 3634: c8 84 ldd r12, Y+8 ; 0x08
- 3636: df 80 ldd r13, Y+7 ; 0x07
- 3638: ee 80 ldd r14, Y+6 ; 0x06
- 363a: fd 80 ldd r15, Y+5 ; 0x05
- 363c: 0c 81 ldd r16, Y+4 ; 0x04
- 363e: 1b 81 ldd r17, Y+3 ; 0x03
- 3640: aa 81 ldd r26, Y+2 ; 0x02
- 3642: b9 81 ldd r27, Y+1 ; 0x01
- 3644: ce 0f add r28, r30
- 3646: d1 1d adc r29, r1
- 3648: 0f b6 in r0, 0x3f ; 63
- 364a: f8 94 cli
- 364c: de bf out 0x3e, r29 ; 62
- 364e: 0f be out 0x3f, r0 ; 63
- 3650: cd bf out 0x3d, r28 ; 61
- 3652: ed 01 movw r28, r26
- 3654: 08 95 ret
- 00003656 <__udivmodhi4>:
- 3656: aa 1b sub r26, r26
- 3658: bb 1b sub r27, r27
- 365a: 51 e1 ldi r21, 0x11 ; 17
- 365c: 07 c0 rjmp .+14 ; 0x366c <__udivmodhi4_ep>
- 0000365e <__udivmodhi4_loop>:
- 365e: aa 1f adc r26, r26
- 3660: bb 1f adc r27, r27
- 3662: a6 17 cp r26, r22
- 3664: b7 07 cpc r27, r23
- 3666: 10 f0 brcs .+4 ; 0x366c <__udivmodhi4_ep>
- 3668: a6 1b sub r26, r22
- 366a: b7 0b sbc r27, r23
- 0000366c <__udivmodhi4_ep>:
- 366c: 88 1f adc r24, r24
- 366e: 99 1f adc r25, r25
- 3670: 5a 95 dec r21
- 3672: a9 f7 brne .-22 ; 0x365e <__udivmodhi4_loop>
- 3674: 80 95 com r24
- 3676: 90 95 com r25
- 3678: bc 01 movw r22, r24
- 367a: cd 01 movw r24, r26
- 367c: 08 95 ret
- 0000367e <calloc>:
- 367e: 0f 93 push r16
- 3680: 1f 93 push r17
- 3682: cf 93 push r28
- 3684: df 93 push r29
- 3686: 86 9f mul r24, r22
- 3688: 80 01 movw r16, r0
- 368a: 87 9f mul r24, r23
- 368c: 10 0d add r17, r0
- 368e: 96 9f mul r25, r22
- 3690: 10 0d add r17, r0
- 3692: 11 24 eor r1, r1
- 3694: c8 01 movw r24, r16
- 3696: 0d d0 rcall .+26 ; 0x36b2 <malloc>
- 3698: ec 01 movw r28, r24
- 369a: 00 97 sbiw r24, 0x00 ; 0
- 369c: 21 f0 breq .+8 ; 0x36a6 <calloc+0x28>
- 369e: a8 01 movw r20, r16
- 36a0: 60 e0 ldi r22, 0x00 ; 0
- 36a2: 70 e0 ldi r23, 0x00 ; 0
- 36a4: 13 d2 rcall .+1062 ; 0x3acc <memset>
- 36a6: ce 01 movw r24, r28
- 36a8: df 91 pop r29
- 36aa: cf 91 pop r28
- 36ac: 1f 91 pop r17
- 36ae: 0f 91 pop r16
- 36b0: 08 95 ret
- 000036b2 <malloc>:
- 36b2: 0f 93 push r16
- 36b4: 1f 93 push r17
- 36b6: cf 93 push r28
- 36b8: df 93 push r29
- 36ba: 82 30 cpi r24, 0x02 ; 2
- 36bc: 91 05 cpc r25, r1
- 36be: 10 f4 brcc .+4 ; 0x36c4 <malloc+0x12>
- 36c0: 82 e0 ldi r24, 0x02 ; 2
- 36c2: 90 e0 ldi r25, 0x00 ; 0
- 36c4: e0 91 aa 06 lds r30, 0x06AA ; 0x8006aa <__flp>
- 36c8: f0 91 ab 06 lds r31, 0x06AB ; 0x8006ab <__flp+0x1>
- 36cc: 20 e0 ldi r18, 0x00 ; 0
- 36ce: 30 e0 ldi r19, 0x00 ; 0
- 36d0: a0 e0 ldi r26, 0x00 ; 0
- 36d2: b0 e0 ldi r27, 0x00 ; 0
- 36d4: 30 97 sbiw r30, 0x00 ; 0
- 36d6: 19 f1 breq .+70 ; 0x371e <malloc+0x6c>
- 36d8: 40 81 ld r20, Z
- 36da: 51 81 ldd r21, Z+1 ; 0x01
- 36dc: 02 81 ldd r16, Z+2 ; 0x02
- 36de: 13 81 ldd r17, Z+3 ; 0x03
- 36e0: 48 17 cp r20, r24
- 36e2: 59 07 cpc r21, r25
- 36e4: c8 f0 brcs .+50 ; 0x3718 <malloc+0x66>
- 36e6: 84 17 cp r24, r20
- 36e8: 95 07 cpc r25, r21
- 36ea: 69 f4 brne .+26 ; 0x3706 <malloc+0x54>
- 36ec: 10 97 sbiw r26, 0x00 ; 0
- 36ee: 31 f0 breq .+12 ; 0x36fc <malloc+0x4a>
- 36f0: 12 96 adiw r26, 0x02 ; 2
- 36f2: 0c 93 st X, r16
- 36f4: 12 97 sbiw r26, 0x02 ; 2
- 36f6: 13 96 adiw r26, 0x03 ; 3
- 36f8: 1c 93 st X, r17
- 36fa: 27 c0 rjmp .+78 ; 0x374a <malloc+0x98>
- 36fc: 00 93 aa 06 sts 0x06AA, r16 ; 0x8006aa <__flp>
- 3700: 10 93 ab 06 sts 0x06AB, r17 ; 0x8006ab <__flp+0x1>
- 3704: 22 c0 rjmp .+68 ; 0x374a <malloc+0x98>
- 3706: 21 15 cp r18, r1
- 3708: 31 05 cpc r19, r1
- 370a: 19 f0 breq .+6 ; 0x3712 <malloc+0x60>
- 370c: 42 17 cp r20, r18
- 370e: 53 07 cpc r21, r19
- 3710: 18 f4 brcc .+6 ; 0x3718 <malloc+0x66>
- 3712: 9a 01 movw r18, r20
- 3714: bd 01 movw r22, r26
- 3716: ef 01 movw r28, r30
- 3718: df 01 movw r26, r30
- 371a: f8 01 movw r30, r16
- 371c: db cf rjmp .-74 ; 0x36d4 <malloc+0x22>
- 371e: 21 15 cp r18, r1
- 3720: 31 05 cpc r19, r1
- 3722: f9 f0 breq .+62 ; 0x3762 <malloc+0xb0>
- 3724: 28 1b sub r18, r24
- 3726: 39 0b sbc r19, r25
- 3728: 24 30 cpi r18, 0x04 ; 4
- 372a: 31 05 cpc r19, r1
- 372c: 80 f4 brcc .+32 ; 0x374e <malloc+0x9c>
- 372e: 8a 81 ldd r24, Y+2 ; 0x02
- 3730: 9b 81 ldd r25, Y+3 ; 0x03
- 3732: 61 15 cp r22, r1
- 3734: 71 05 cpc r23, r1
- 3736: 21 f0 breq .+8 ; 0x3740 <malloc+0x8e>
- 3738: fb 01 movw r30, r22
- 373a: 93 83 std Z+3, r25 ; 0x03
- 373c: 82 83 std Z+2, r24 ; 0x02
- 373e: 04 c0 rjmp .+8 ; 0x3748 <malloc+0x96>
- 3740: 90 93 ab 06 sts 0x06AB, r25 ; 0x8006ab <__flp+0x1>
- 3744: 80 93 aa 06 sts 0x06AA, r24 ; 0x8006aa <__flp>
- 3748: fe 01 movw r30, r28
- 374a: 32 96 adiw r30, 0x02 ; 2
- 374c: 44 c0 rjmp .+136 ; 0x37d6 <malloc+0x124>
- 374e: fe 01 movw r30, r28
- 3750: e2 0f add r30, r18
- 3752: f3 1f adc r31, r19
- 3754: 81 93 st Z+, r24
- 3756: 91 93 st Z+, r25
- 3758: 22 50 subi r18, 0x02 ; 2
- 375a: 31 09 sbc r19, r1
- 375c: 39 83 std Y+1, r19 ; 0x01
- 375e: 28 83 st Y, r18
- 3760: 3a c0 rjmp .+116 ; 0x37d6 <malloc+0x124>
- 3762: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval>
- 3766: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1>
- 376a: 23 2b or r18, r19
- 376c: 41 f4 brne .+16 ; 0x377e <malloc+0xcc>
- 376e: 20 91 02 01 lds r18, 0x0102 ; 0x800102 <__malloc_heap_start>
- 3772: 30 91 03 01 lds r19, 0x0103 ; 0x800103 <__malloc_heap_start+0x1>
- 3776: 30 93 a9 06 sts 0x06A9, r19 ; 0x8006a9 <__brkval+0x1>
- 377a: 20 93 a8 06 sts 0x06A8, r18 ; 0x8006a8 <__brkval>
- 377e: 20 91 00 01 lds r18, 0x0100 ; 0x800100 <__data_start>
- 3782: 30 91 01 01 lds r19, 0x0101 ; 0x800101 <__data_start+0x1>
- 3786: 21 15 cp r18, r1
- 3788: 31 05 cpc r19, r1
- 378a: 41 f4 brne .+16 ; 0x379c <malloc+0xea>
- 378c: 2d b7 in r18, 0x3d ; 61
- 378e: 3e b7 in r19, 0x3e ; 62
- 3790: 40 91 04 01 lds r20, 0x0104 ; 0x800104 <__malloc_margin>
- 3794: 50 91 05 01 lds r21, 0x0105 ; 0x800105 <__malloc_margin+0x1>
- 3798: 24 1b sub r18, r20
- 379a: 35 0b sbc r19, r21
- 379c: e0 91 a8 06 lds r30, 0x06A8 ; 0x8006a8 <__brkval>
- 37a0: f0 91 a9 06 lds r31, 0x06A9 ; 0x8006a9 <__brkval+0x1>
- 37a4: e2 17 cp r30, r18
- 37a6: f3 07 cpc r31, r19
- 37a8: a0 f4 brcc .+40 ; 0x37d2 <malloc+0x120>
- 37aa: 2e 1b sub r18, r30
- 37ac: 3f 0b sbc r19, r31
- 37ae: 28 17 cp r18, r24
- 37b0: 39 07 cpc r19, r25
- 37b2: 78 f0 brcs .+30 ; 0x37d2 <malloc+0x120>
- 37b4: ac 01 movw r20, r24
- 37b6: 4e 5f subi r20, 0xFE ; 254
- 37b8: 5f 4f sbci r21, 0xFF ; 255
- 37ba: 24 17 cp r18, r20
- 37bc: 35 07 cpc r19, r21
- 37be: 48 f0 brcs .+18 ; 0x37d2 <malloc+0x120>
- 37c0: 4e 0f add r20, r30
- 37c2: 5f 1f adc r21, r31
- 37c4: 50 93 a9 06 sts 0x06A9, r21 ; 0x8006a9 <__brkval+0x1>
- 37c8: 40 93 a8 06 sts 0x06A8, r20 ; 0x8006a8 <__brkval>
- 37cc: 81 93 st Z+, r24
- 37ce: 91 93 st Z+, r25
- 37d0: 02 c0 rjmp .+4 ; 0x37d6 <malloc+0x124>
- 37d2: e0 e0 ldi r30, 0x00 ; 0
- 37d4: f0 e0 ldi r31, 0x00 ; 0
- 37d6: cf 01 movw r24, r30
- 37d8: df 91 pop r29
- 37da: cf 91 pop r28
- 37dc: 1f 91 pop r17
- 37de: 0f 91 pop r16
- 37e0: 08 95 ret
- 000037e2 <free>:
- 37e2: cf 93 push r28
- 37e4: df 93 push r29
- 37e6: 00 97 sbiw r24, 0x00 ; 0
- 37e8: 09 f4 brne .+2 ; 0x37ec <free+0xa>
- 37ea: 81 c0 rjmp .+258 ; 0x38ee <free+0x10c>
- 37ec: fc 01 movw r30, r24
- 37ee: 32 97 sbiw r30, 0x02 ; 2
- 37f0: 13 82 std Z+3, r1 ; 0x03
- 37f2: 12 82 std Z+2, r1 ; 0x02
- 37f4: a0 91 aa 06 lds r26, 0x06AA ; 0x8006aa <__flp>
- 37f8: b0 91 ab 06 lds r27, 0x06AB ; 0x8006ab <__flp+0x1>
- 37fc: 10 97 sbiw r26, 0x00 ; 0
- 37fe: 81 f4 brne .+32 ; 0x3820 <free+0x3e>
- 3800: 20 81 ld r18, Z
- 3802: 31 81 ldd r19, Z+1 ; 0x01
- 3804: 82 0f add r24, r18
- 3806: 93 1f adc r25, r19
- 3808: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval>
- 380c: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1>
- 3810: 28 17 cp r18, r24
- 3812: 39 07 cpc r19, r25
- 3814: 51 f5 brne .+84 ; 0x386a <free+0x88>
- 3816: f0 93 a9 06 sts 0x06A9, r31 ; 0x8006a9 <__brkval+0x1>
- 381a: e0 93 a8 06 sts 0x06A8, r30 ; 0x8006a8 <__brkval>
- 381e: 67 c0 rjmp .+206 ; 0x38ee <free+0x10c>
- 3820: ed 01 movw r28, r26
- 3822: 20 e0 ldi r18, 0x00 ; 0
- 3824: 30 e0 ldi r19, 0x00 ; 0
- 3826: ce 17 cp r28, r30
- 3828: df 07 cpc r29, r31
- 382a: 40 f4 brcc .+16 ; 0x383c <free+0x5a>
- 382c: 4a 81 ldd r20, Y+2 ; 0x02
- 382e: 5b 81 ldd r21, Y+3 ; 0x03
- 3830: 9e 01 movw r18, r28
- 3832: 41 15 cp r20, r1
- 3834: 51 05 cpc r21, r1
- 3836: f1 f0 breq .+60 ; 0x3874 <free+0x92>
- 3838: ea 01 movw r28, r20
- 383a: f5 cf rjmp .-22 ; 0x3826 <free+0x44>
- 383c: d3 83 std Z+3, r29 ; 0x03
- 383e: c2 83 std Z+2, r28 ; 0x02
- 3840: 40 81 ld r20, Z
- 3842: 51 81 ldd r21, Z+1 ; 0x01
- 3844: 84 0f add r24, r20
- 3846: 95 1f adc r25, r21
- 3848: c8 17 cp r28, r24
- 384a: d9 07 cpc r29, r25
- 384c: 59 f4 brne .+22 ; 0x3864 <free+0x82>
- 384e: 88 81 ld r24, Y
- 3850: 99 81 ldd r25, Y+1 ; 0x01
- 3852: 84 0f add r24, r20
- 3854: 95 1f adc r25, r21
- 3856: 02 96 adiw r24, 0x02 ; 2
- 3858: 91 83 std Z+1, r25 ; 0x01
- 385a: 80 83 st Z, r24
- 385c: 8a 81 ldd r24, Y+2 ; 0x02
- 385e: 9b 81 ldd r25, Y+3 ; 0x03
- 3860: 93 83 std Z+3, r25 ; 0x03
- 3862: 82 83 std Z+2, r24 ; 0x02
- 3864: 21 15 cp r18, r1
- 3866: 31 05 cpc r19, r1
- 3868: 29 f4 brne .+10 ; 0x3874 <free+0x92>
- 386a: f0 93 ab 06 sts 0x06AB, r31 ; 0x8006ab <__flp+0x1>
- 386e: e0 93 aa 06 sts 0x06AA, r30 ; 0x8006aa <__flp>
- 3872: 3d c0 rjmp .+122 ; 0x38ee <free+0x10c>
- 3874: e9 01 movw r28, r18
- 3876: fb 83 std Y+3, r31 ; 0x03
- 3878: ea 83 std Y+2, r30 ; 0x02
- 387a: 49 91 ld r20, Y+
- 387c: 59 91 ld r21, Y+
- 387e: c4 0f add r28, r20
- 3880: d5 1f adc r29, r21
- 3882: ec 17 cp r30, r28
- 3884: fd 07 cpc r31, r29
- 3886: 61 f4 brne .+24 ; 0x38a0 <free+0xbe>
- 3888: 80 81 ld r24, Z
- 388a: 91 81 ldd r25, Z+1 ; 0x01
- 388c: 84 0f add r24, r20
- 388e: 95 1f adc r25, r21
- 3890: 02 96 adiw r24, 0x02 ; 2
- 3892: e9 01 movw r28, r18
- 3894: 99 83 std Y+1, r25 ; 0x01
- 3896: 88 83 st Y, r24
- 3898: 82 81 ldd r24, Z+2 ; 0x02
- 389a: 93 81 ldd r25, Z+3 ; 0x03
- 389c: 9b 83 std Y+3, r25 ; 0x03
- 389e: 8a 83 std Y+2, r24 ; 0x02
- 38a0: e0 e0 ldi r30, 0x00 ; 0
- 38a2: f0 e0 ldi r31, 0x00 ; 0
- 38a4: 12 96 adiw r26, 0x02 ; 2
- 38a6: 8d 91 ld r24, X+
- 38a8: 9c 91 ld r25, X
- 38aa: 13 97 sbiw r26, 0x03 ; 3
- 38ac: 00 97 sbiw r24, 0x00 ; 0
- 38ae: 19 f0 breq .+6 ; 0x38b6 <free+0xd4>
- 38b0: fd 01 movw r30, r26
- 38b2: dc 01 movw r26, r24
- 38b4: f7 cf rjmp .-18 ; 0x38a4 <free+0xc2>
- 38b6: 8d 91 ld r24, X+
- 38b8: 9c 91 ld r25, X
- 38ba: 11 97 sbiw r26, 0x01 ; 1
- 38bc: 9d 01 movw r18, r26
- 38be: 2e 5f subi r18, 0xFE ; 254
- 38c0: 3f 4f sbci r19, 0xFF ; 255
- 38c2: 82 0f add r24, r18
- 38c4: 93 1f adc r25, r19
- 38c6: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval>
- 38ca: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1>
- 38ce: 28 17 cp r18, r24
- 38d0: 39 07 cpc r19, r25
- 38d2: 69 f4 brne .+26 ; 0x38ee <free+0x10c>
- 38d4: 30 97 sbiw r30, 0x00 ; 0
- 38d6: 29 f4 brne .+10 ; 0x38e2 <free+0x100>
- 38d8: 10 92 ab 06 sts 0x06AB, r1 ; 0x8006ab <__flp+0x1>
- 38dc: 10 92 aa 06 sts 0x06AA, r1 ; 0x8006aa <__flp>
- 38e0: 02 c0 rjmp .+4 ; 0x38e6 <free+0x104>
- 38e2: 13 82 std Z+3, r1 ; 0x03
- 38e4: 12 82 std Z+2, r1 ; 0x02
- 38e6: b0 93 a9 06 sts 0x06A9, r27 ; 0x8006a9 <__brkval+0x1>
- 38ea: a0 93 a8 06 sts 0x06A8, r26 ; 0x8006a8 <__brkval>
- 38ee: df 91 pop r29
- 38f0: cf 91 pop r28
- 38f2: 08 95 ret
- 000038f4 <__ftoa_engine>:
- 38f4: 28 30 cpi r18, 0x08 ; 8
- 38f6: 08 f0 brcs .+2 ; 0x38fa <__ftoa_engine+0x6>
- 38f8: 27 e0 ldi r18, 0x07 ; 7
- 38fa: 33 27 eor r19, r19
- 38fc: da 01 movw r26, r20
- 38fe: 99 0f add r25, r25
- 3900: 31 1d adc r19, r1
- 3902: 87 fd sbrc r24, 7
- 3904: 91 60 ori r25, 0x01 ; 1
- 3906: 00 96 adiw r24, 0x00 ; 0
- 3908: 61 05 cpc r22, r1
- 390a: 71 05 cpc r23, r1
- 390c: 39 f4 brne .+14 ; 0x391c <__ftoa_engine+0x28>
- 390e: 32 60 ori r19, 0x02 ; 2
- 3910: 2e 5f subi r18, 0xFE ; 254
- 3912: 3d 93 st X+, r19
- 3914: 30 e3 ldi r19, 0x30 ; 48
- 3916: 2a 95 dec r18
- 3918: e1 f7 brne .-8 ; 0x3912 <__ftoa_engine+0x1e>
- 391a: 08 95 ret
- 391c: 9f 3f cpi r25, 0xFF ; 255
- 391e: 30 f0 brcs .+12 ; 0x392c <__ftoa_engine+0x38>
- 3920: 80 38 cpi r24, 0x80 ; 128
- 3922: 71 05 cpc r23, r1
- 3924: 61 05 cpc r22, r1
- 3926: 09 f0 breq .+2 ; 0x392a <__ftoa_engine+0x36>
- 3928: 3c 5f subi r19, 0xFC ; 252
- 392a: 3c 5f subi r19, 0xFC ; 252
- 392c: 3d 93 st X+, r19
- 392e: 91 30 cpi r25, 0x01 ; 1
- 3930: 08 f0 brcs .+2 ; 0x3934 <__ftoa_engine+0x40>
- 3932: 80 68 ori r24, 0x80 ; 128
- 3934: 91 1d adc r25, r1
- 3936: df 93 push r29
- 3938: cf 93 push r28
- 393a: 1f 93 push r17
- 393c: 0f 93 push r16
- 393e: ff 92 push r15
- 3940: ef 92 push r14
- 3942: 19 2f mov r17, r25
- 3944: 98 7f andi r25, 0xF8 ; 248
- 3946: 96 95 lsr r25
- 3948: e9 2f mov r30, r25
- 394a: 96 95 lsr r25
- 394c: 96 95 lsr r25
- 394e: e9 0f add r30, r25
- 3950: ff 27 eor r31, r31
- 3952: ee 50 subi r30, 0x0E ; 14
- 3954: ff 4f sbci r31, 0xFF ; 255
- 3956: 99 27 eor r25, r25
- 3958: 33 27 eor r19, r19
- 395a: ee 24 eor r14, r14
- 395c: ff 24 eor r15, r15
- 395e: a7 01 movw r20, r14
- 3960: e7 01 movw r28, r14
- 3962: 05 90 lpm r0, Z+
- 3964: 08 94 sec
- 3966: 07 94 ror r0
- 3968: 28 f4 brcc .+10 ; 0x3974 <__ftoa_engine+0x80>
- 396a: 36 0f add r19, r22
- 396c: e7 1e adc r14, r23
- 396e: f8 1e adc r15, r24
- 3970: 49 1f adc r20, r25
- 3972: 51 1d adc r21, r1
- 3974: 66 0f add r22, r22
- 3976: 77 1f adc r23, r23
- 3978: 88 1f adc r24, r24
- 397a: 99 1f adc r25, r25
- 397c: 06 94 lsr r0
- 397e: a1 f7 brne .-24 ; 0x3968 <__ftoa_engine+0x74>
- 3980: 05 90 lpm r0, Z+
- 3982: 07 94 ror r0
- 3984: 28 f4 brcc .+10 ; 0x3990 <__ftoa_engine+0x9c>
- 3986: e7 0e add r14, r23
- 3988: f8 1e adc r15, r24
- 398a: 49 1f adc r20, r25
- 398c: 56 1f adc r21, r22
- 398e: c1 1d adc r28, r1
- 3990: 77 0f add r23, r23
- 3992: 88 1f adc r24, r24
- 3994: 99 1f adc r25, r25
- 3996: 66 1f adc r22, r22
- 3998: 06 94 lsr r0
- 399a: a1 f7 brne .-24 ; 0x3984 <__ftoa_engine+0x90>
- 399c: 05 90 lpm r0, Z+
- 399e: 07 94 ror r0
- 39a0: 28 f4 brcc .+10 ; 0x39ac <__ftoa_engine+0xb8>
- 39a2: f8 0e add r15, r24
- 39a4: 49 1f adc r20, r25
- 39a6: 56 1f adc r21, r22
- 39a8: c7 1f adc r28, r23
- 39aa: d1 1d adc r29, r1
- 39ac: 88 0f add r24, r24
- 39ae: 99 1f adc r25, r25
- 39b0: 66 1f adc r22, r22
- 39b2: 77 1f adc r23, r23
- 39b4: 06 94 lsr r0
- 39b6: a1 f7 brne .-24 ; 0x39a0 <__ftoa_engine+0xac>
- 39b8: 05 90 lpm r0, Z+
- 39ba: 07 94 ror r0
- 39bc: 20 f4 brcc .+8 ; 0x39c6 <__ftoa_engine+0xd2>
- 39be: 49 0f add r20, r25
- 39c0: 56 1f adc r21, r22
- 39c2: c7 1f adc r28, r23
- 39c4: d8 1f adc r29, r24
- 39c6: 99 0f add r25, r25
- 39c8: 66 1f adc r22, r22
- 39ca: 77 1f adc r23, r23
- 39cc: 88 1f adc r24, r24
- 39ce: 06 94 lsr r0
- 39d0: a9 f7 brne .-22 ; 0x39bc <__ftoa_engine+0xc8>
- 39d2: 84 91 lpm r24, Z
- 39d4: 10 95 com r17
- 39d6: 17 70 andi r17, 0x07 ; 7
- 39d8: 41 f0 breq .+16 ; 0x39ea <__ftoa_engine+0xf6>
- 39da: d6 95 lsr r29
- 39dc: c7 95 ror r28
- 39de: 57 95 ror r21
- 39e0: 47 95 ror r20
- 39e2: f7 94 ror r15
- 39e4: e7 94 ror r14
- 39e6: 1a 95 dec r17
- 39e8: c1 f7 brne .-16 ; 0x39da <__ftoa_engine+0xe6>
- 39ea: e8 e9 ldi r30, 0x98 ; 152
- 39ec: f0 e0 ldi r31, 0x00 ; 0
- 39ee: 68 94 set
- 39f0: 15 90 lpm r1, Z+
- 39f2: 15 91 lpm r17, Z+
- 39f4: 35 91 lpm r19, Z+
- 39f6: 65 91 lpm r22, Z+
- 39f8: 95 91 lpm r25, Z+
- 39fa: 05 90 lpm r0, Z+
- 39fc: 7f e2 ldi r23, 0x2F ; 47
- 39fe: 73 95 inc r23
- 3a00: e1 18 sub r14, r1
- 3a02: f1 0a sbc r15, r17
- 3a04: 43 0b sbc r20, r19
- 3a06: 56 0b sbc r21, r22
- 3a08: c9 0b sbc r28, r25
- 3a0a: d0 09 sbc r29, r0
- 3a0c: c0 f7 brcc .-16 ; 0x39fe <__ftoa_engine+0x10a>
- 3a0e: e1 0c add r14, r1
- 3a10: f1 1e adc r15, r17
- 3a12: 43 1f adc r20, r19
- 3a14: 56 1f adc r21, r22
- 3a16: c9 1f adc r28, r25
- 3a18: d0 1d adc r29, r0
- 3a1a: 7e f4 brtc .+30 ; 0x3a3a <__ftoa_engine+0x146>
- 3a1c: 70 33 cpi r23, 0x30 ; 48
- 3a1e: 11 f4 brne .+4 ; 0x3a24 <__ftoa_engine+0x130>
- 3a20: 8a 95 dec r24
- 3a22: e6 cf rjmp .-52 ; 0x39f0 <__ftoa_engine+0xfc>
- 3a24: e8 94 clt
- 3a26: 01 50 subi r16, 0x01 ; 1
- 3a28: 30 f0 brcs .+12 ; 0x3a36 <__ftoa_engine+0x142>
- 3a2a: 08 0f add r16, r24
- 3a2c: 0a f4 brpl .+2 ; 0x3a30 <__ftoa_engine+0x13c>
- 3a2e: 00 27 eor r16, r16
- 3a30: 02 17 cp r16, r18
- 3a32: 08 f4 brcc .+2 ; 0x3a36 <__ftoa_engine+0x142>
- 3a34: 20 2f mov r18, r16
- 3a36: 23 95 inc r18
- 3a38: 02 2f mov r16, r18
- 3a3a: 7a 33 cpi r23, 0x3A ; 58
- 3a3c: 28 f0 brcs .+10 ; 0x3a48 <__ftoa_engine+0x154>
- 3a3e: 79 e3 ldi r23, 0x39 ; 57
- 3a40: 7d 93 st X+, r23
- 3a42: 2a 95 dec r18
- 3a44: e9 f7 brne .-6 ; 0x3a40 <__ftoa_engine+0x14c>
- 3a46: 10 c0 rjmp .+32 ; 0x3a68 <__ftoa_engine+0x174>
- 3a48: 7d 93 st X+, r23
- 3a4a: 2a 95 dec r18
- 3a4c: 89 f6 brne .-94 ; 0x39f0 <__ftoa_engine+0xfc>
- 3a4e: 06 94 lsr r0
- 3a50: 97 95 ror r25
- 3a52: 67 95 ror r22
- 3a54: 37 95 ror r19
- 3a56: 17 95 ror r17
- 3a58: 17 94 ror r1
- 3a5a: e1 18 sub r14, r1
- 3a5c: f1 0a sbc r15, r17
- 3a5e: 43 0b sbc r20, r19
- 3a60: 56 0b sbc r21, r22
- 3a62: c9 0b sbc r28, r25
- 3a64: d0 09 sbc r29, r0
- 3a66: 98 f0 brcs .+38 ; 0x3a8e <__ftoa_engine+0x19a>
- 3a68: 23 95 inc r18
- 3a6a: 7e 91 ld r23, -X
- 3a6c: 73 95 inc r23
- 3a6e: 7a 33 cpi r23, 0x3A ; 58
- 3a70: 08 f0 brcs .+2 ; 0x3a74 <__ftoa_engine+0x180>
- 3a72: 70 e3 ldi r23, 0x30 ; 48
- 3a74: 7c 93 st X, r23
- 3a76: 20 13 cpse r18, r16
- 3a78: b8 f7 brcc .-18 ; 0x3a68 <__ftoa_engine+0x174>
- 3a7a: 7e 91 ld r23, -X
- 3a7c: 70 61 ori r23, 0x10 ; 16
- 3a7e: 7d 93 st X+, r23
- 3a80: 30 f0 brcs .+12 ; 0x3a8e <__ftoa_engine+0x19a>
- 3a82: 83 95 inc r24
- 3a84: 71 e3 ldi r23, 0x31 ; 49
- 3a86: 7d 93 st X+, r23
- 3a88: 70 e3 ldi r23, 0x30 ; 48
- 3a8a: 2a 95 dec r18
- 3a8c: e1 f7 brne .-8 ; 0x3a86 <__ftoa_engine+0x192>
- 3a8e: 11 24 eor r1, r1
- 3a90: ef 90 pop r14
- 3a92: ff 90 pop r15
- 3a94: 0f 91 pop r16
- 3a96: 1f 91 pop r17
- 3a98: cf 91 pop r28
- 3a9a: df 91 pop r29
- 3a9c: 99 27 eor r25, r25
- 3a9e: 87 fd sbrc r24, 7
- 3aa0: 90 95 com r25
- 3aa2: 08 95 ret
- 00003aa4 <strnlen_P>:
- 3aa4: fc 01 movw r30, r24
- 3aa6: 05 90 lpm r0, Z+
- 3aa8: 61 50 subi r22, 0x01 ; 1
- 3aaa: 70 40 sbci r23, 0x00 ; 0
- 3aac: 01 10 cpse r0, r1
- 3aae: d8 f7 brcc .-10 ; 0x3aa6 <strnlen_P+0x2>
- 3ab0: 80 95 com r24
- 3ab2: 90 95 com r25
- 3ab4: 8e 0f add r24, r30
- 3ab6: 9f 1f adc r25, r31
- 3ab8: 08 95 ret
- 00003aba <memcpy>:
- 3aba: fb 01 movw r30, r22
- 3abc: dc 01 movw r26, r24
- 3abe: 02 c0 rjmp .+4 ; 0x3ac4 <memcpy+0xa>
- 3ac0: 01 90 ld r0, Z+
- 3ac2: 0d 92 st X+, r0
- 3ac4: 41 50 subi r20, 0x01 ; 1
- 3ac6: 50 40 sbci r21, 0x00 ; 0
- 3ac8: d8 f7 brcc .-10 ; 0x3ac0 <memcpy+0x6>
- 3aca: 08 95 ret
- 00003acc <memset>:
- 3acc: dc 01 movw r26, r24
- 3ace: 01 c0 rjmp .+2 ; 0x3ad2 <memset+0x6>
- 3ad0: 6d 93 st X+, r22
- 3ad2: 41 50 subi r20, 0x01 ; 1
- 3ad4: 50 40 sbci r21, 0x00 ; 0
- 3ad6: e0 f7 brcc .-8 ; 0x3ad0 <memset+0x4>
- 3ad8: 08 95 ret
- 00003ada <strncpy>:
- 3ada: fb 01 movw r30, r22
- 3adc: dc 01 movw r26, r24
- 3ade: 41 50 subi r20, 0x01 ; 1
- 3ae0: 50 40 sbci r21, 0x00 ; 0
- 3ae2: 48 f0 brcs .+18 ; 0x3af6 <strncpy+0x1c>
- 3ae4: 01 90 ld r0, Z+
- 3ae6: 0d 92 st X+, r0
- 3ae8: 00 20 and r0, r0
- 3aea: c9 f7 brne .-14 ; 0x3ade <strncpy+0x4>
- 3aec: 01 c0 rjmp .+2 ; 0x3af0 <strncpy+0x16>
- 3aee: 1d 92 st X+, r1
- 3af0: 41 50 subi r20, 0x01 ; 1
- 3af2: 50 40 sbci r21, 0x00 ; 0
- 3af4: e0 f7 brcc .-8 ; 0x3aee <strncpy+0x14>
- 3af6: 08 95 ret
- 00003af8 <strnlen>:
- 3af8: fc 01 movw r30, r24
- 3afa: 61 50 subi r22, 0x01 ; 1
- 3afc: 70 40 sbci r23, 0x00 ; 0
- 3afe: 01 90 ld r0, Z+
- 3b00: 01 10 cpse r0, r1
- 3b02: d8 f7 brcc .-10 ; 0x3afa <strnlen+0x2>
- 3b04: 80 95 com r24
- 3b06: 90 95 com r25
- 3b08: 8e 0f add r24, r30
- 3b0a: 9f 1f adc r25, r31
- 3b0c: 08 95 ret
- 00003b0e <fprintf>:
- 3b0e: a0 e0 ldi r26, 0x00 ; 0
- 3b10: b0 e0 ldi r27, 0x00 ; 0
- 3b12: ec e8 ldi r30, 0x8C ; 140
- 3b14: fd e1 ldi r31, 0x1D ; 29
- 3b16: 78 cd rjmp .-1296 ; 0x3608 <__prologue_saves__+0x20>
- 3b18: ae 01 movw r20, r28
- 3b1a: 47 5f subi r20, 0xF7 ; 247
- 3b1c: 5f 4f sbci r21, 0xFF ; 255
- 3b1e: 6f 81 ldd r22, Y+7 ; 0x07
- 3b20: 78 85 ldd r23, Y+8 ; 0x08
- 3b22: 8d 81 ldd r24, Y+5 ; 0x05
- 3b24: 9e 81 ldd r25, Y+6 ; 0x06
- 3b26: da d9 rcall .-3148 ; 0x2edc <vfprintf>
- 3b28: e2 e0 ldi r30, 0x02 ; 2
- 3b2a: 8a cd rjmp .-1260 ; 0x3640 <__epilogue_restores__+0x20>
- 00003b2c <fputc>:
- 3b2c: 0f 93 push r16
- 3b2e: 1f 93 push r17
- 3b30: cf 93 push r28
- 3b32: df 93 push r29
- 3b34: fb 01 movw r30, r22
- 3b36: 23 81 ldd r18, Z+3 ; 0x03
- 3b38: 21 fd sbrc r18, 1
- 3b3a: 03 c0 rjmp .+6 ; 0x3b42 <fputc+0x16>
- 3b3c: 8f ef ldi r24, 0xFF ; 255
- 3b3e: 9f ef ldi r25, 0xFF ; 255
- 3b40: 2c c0 rjmp .+88 ; 0x3b9a <fputc+0x6e>
- 3b42: 22 ff sbrs r18, 2
- 3b44: 16 c0 rjmp .+44 ; 0x3b72 <fputc+0x46>
- 3b46: 46 81 ldd r20, Z+6 ; 0x06
- 3b48: 57 81 ldd r21, Z+7 ; 0x07
- 3b4a: 24 81 ldd r18, Z+4 ; 0x04
- 3b4c: 35 81 ldd r19, Z+5 ; 0x05
- 3b4e: 42 17 cp r20, r18
- 3b50: 53 07 cpc r21, r19
- 3b52: 44 f4 brge .+16 ; 0x3b64 <fputc+0x38>
- 3b54: a0 81 ld r26, Z
- 3b56: b1 81 ldd r27, Z+1 ; 0x01
- 3b58: 9d 01 movw r18, r26
- 3b5a: 2f 5f subi r18, 0xFF ; 255
- 3b5c: 3f 4f sbci r19, 0xFF ; 255
- 3b5e: 31 83 std Z+1, r19 ; 0x01
- 3b60: 20 83 st Z, r18
- 3b62: 8c 93 st X, r24
- 3b64: 26 81 ldd r18, Z+6 ; 0x06
- 3b66: 37 81 ldd r19, Z+7 ; 0x07
- 3b68: 2f 5f subi r18, 0xFF ; 255
- 3b6a: 3f 4f sbci r19, 0xFF ; 255
- 3b6c: 37 83 std Z+7, r19 ; 0x07
- 3b6e: 26 83 std Z+6, r18 ; 0x06
- 3b70: 14 c0 rjmp .+40 ; 0x3b9a <fputc+0x6e>
- 3b72: 8b 01 movw r16, r22
- 3b74: ec 01 movw r28, r24
- 3b76: fb 01 movw r30, r22
- 3b78: 00 84 ldd r0, Z+8 ; 0x08
- 3b7a: f1 85 ldd r31, Z+9 ; 0x09
- 3b7c: e0 2d mov r30, r0
- 3b7e: 09 95 icall
- 3b80: 89 2b or r24, r25
- 3b82: e1 f6 brne .-72 ; 0x3b3c <fputc+0x10>
- 3b84: d8 01 movw r26, r16
- 3b86: 16 96 adiw r26, 0x06 ; 6
- 3b88: 8d 91 ld r24, X+
- 3b8a: 9c 91 ld r25, X
- 3b8c: 17 97 sbiw r26, 0x07 ; 7
- 3b8e: 01 96 adiw r24, 0x01 ; 1
- 3b90: 17 96 adiw r26, 0x07 ; 7
- 3b92: 9c 93 st X, r25
- 3b94: 8e 93 st -X, r24
- 3b96: 16 97 sbiw r26, 0x06 ; 6
- 3b98: ce 01 movw r24, r28
- 3b9a: df 91 pop r29
- 3b9c: cf 91 pop r28
- 3b9e: 1f 91 pop r17
- 3ba0: 0f 91 pop r16
- 3ba2: 08 95 ret
- 00003ba4 <fwrite>:
- 3ba4: a0 e0 ldi r26, 0x00 ; 0
- 3ba6: b0 e0 ldi r27, 0x00 ; 0
- 3ba8: e7 ed ldi r30, 0xD7 ; 215
- 3baa: fd e1 ldi r31, 0x1D ; 29
- 3bac: 23 cd rjmp .-1466 ; 0x35f4 <__prologue_saves__+0xc>
- 3bae: 5b 01 movw r10, r22
- 3bb0: 4a 01 movw r8, r20
- 3bb2: 79 01 movw r14, r18
- 3bb4: d9 01 movw r26, r18
- 3bb6: 13 96 adiw r26, 0x03 ; 3
- 3bb8: 2c 91 ld r18, X
- 3bba: 21 ff sbrs r18, 1
- 3bbc: 1d c0 rjmp .+58 ; 0x3bf8 <fwrite+0x54>
- 3bbe: c0 e0 ldi r28, 0x00 ; 0
- 3bc0: d0 e0 ldi r29, 0x00 ; 0
- 3bc2: c8 15 cp r28, r8
- 3bc4: d9 05 cpc r29, r9
- 3bc6: d9 f0 breq .+54 ; 0x3bfe <fwrite+0x5a>
- 3bc8: 8c 01 movw r16, r24
- 3bca: 6c 01 movw r12, r24
- 3bcc: ca 0c add r12, r10
- 3bce: db 1c adc r13, r11
- 3bd0: c8 01 movw r24, r16
- 3bd2: 0c 15 cp r16, r12
- 3bd4: 1d 05 cpc r17, r13
- 3bd6: 71 f0 breq .+28 ; 0x3bf4 <fwrite+0x50>
- 3bd8: 0f 5f subi r16, 0xFF ; 255
- 3bda: 1f 4f sbci r17, 0xFF ; 255
- 3bdc: d7 01 movw r26, r14
- 3bde: 18 96 adiw r26, 0x08 ; 8
- 3be0: ed 91 ld r30, X+
- 3be2: fc 91 ld r31, X
- 3be4: 19 97 sbiw r26, 0x09 ; 9
- 3be6: b7 01 movw r22, r14
- 3be8: dc 01 movw r26, r24
- 3bea: 8c 91 ld r24, X
- 3bec: 09 95 icall
- 3bee: 89 2b or r24, r25
- 3bf0: 79 f3 breq .-34 ; 0x3bd0 <fwrite+0x2c>
- 3bf2: 05 c0 rjmp .+10 ; 0x3bfe <fwrite+0x5a>
- 3bf4: 21 96 adiw r28, 0x01 ; 1
- 3bf6: e5 cf rjmp .-54 ; 0x3bc2 <fwrite+0x1e>
- 3bf8: 80 e0 ldi r24, 0x00 ; 0
- 3bfa: 90 e0 ldi r25, 0x00 ; 0
- 3bfc: 01 c0 rjmp .+2 ; 0x3c00 <fwrite+0x5c>
- 3bfe: ce 01 movw r24, r28
- 3c00: cd b7 in r28, 0x3d ; 61
- 3c02: de b7 in r29, 0x3e ; 62
- 3c04: ec e0 ldi r30, 0x0C ; 12
- 3c06: 12 cd rjmp .-1500 ; 0x362c <__epilogue_restores__+0xc>
- 00003c08 <__ultoa_invert>:
- 3c08: fa 01 movw r30, r20
- 3c0a: aa 27 eor r26, r26
- 3c0c: 28 30 cpi r18, 0x08 ; 8
- 3c0e: 51 f1 breq .+84 ; 0x3c64 <__ultoa_invert+0x5c>
- 3c10: 20 31 cpi r18, 0x10 ; 16
- 3c12: 81 f1 breq .+96 ; 0x3c74 <__ultoa_invert+0x6c>
- 3c14: e8 94 clt
- 3c16: 6f 93 push r22
- 3c18: 6e 7f andi r22, 0xFE ; 254
- 3c1a: 6e 5f subi r22, 0xFE ; 254
- 3c1c: 7f 4f sbci r23, 0xFF ; 255
- 3c1e: 8f 4f sbci r24, 0xFF ; 255
- 3c20: 9f 4f sbci r25, 0xFF ; 255
- 3c22: af 4f sbci r26, 0xFF ; 255
- 3c24: b1 e0 ldi r27, 0x01 ; 1
- 3c26: 3e d0 rcall .+124 ; 0x3ca4 <__ultoa_invert+0x9c>
- 3c28: b4 e0 ldi r27, 0x04 ; 4
- 3c2a: 3c d0 rcall .+120 ; 0x3ca4 <__ultoa_invert+0x9c>
- 3c2c: 67 0f add r22, r23
- 3c2e: 78 1f adc r23, r24
- 3c30: 89 1f adc r24, r25
- 3c32: 9a 1f adc r25, r26
- 3c34: a1 1d adc r26, r1
- 3c36: 68 0f add r22, r24
- 3c38: 79 1f adc r23, r25
- 3c3a: 8a 1f adc r24, r26
- 3c3c: 91 1d adc r25, r1
- 3c3e: a1 1d adc r26, r1
- 3c40: 6a 0f add r22, r26
- 3c42: 71 1d adc r23, r1
- 3c44: 81 1d adc r24, r1
- 3c46: 91 1d adc r25, r1
- 3c48: a1 1d adc r26, r1
- 3c4a: 20 d0 rcall .+64 ; 0x3c8c <__ultoa_invert+0x84>
- 3c4c: 09 f4 brne .+2 ; 0x3c50 <__ultoa_invert+0x48>
- 3c4e: 68 94 set
- 3c50: 3f 91 pop r19
- 3c52: 2a e0 ldi r18, 0x0A ; 10
- 3c54: 26 9f mul r18, r22
- 3c56: 11 24 eor r1, r1
- 3c58: 30 19 sub r19, r0
- 3c5a: 30 5d subi r19, 0xD0 ; 208
- 3c5c: 31 93 st Z+, r19
- 3c5e: de f6 brtc .-74 ; 0x3c16 <__ultoa_invert+0xe>
- 3c60: cf 01 movw r24, r30
- 3c62: 08 95 ret
- 3c64: 46 2f mov r20, r22
- 3c66: 47 70 andi r20, 0x07 ; 7
- 3c68: 40 5d subi r20, 0xD0 ; 208
- 3c6a: 41 93 st Z+, r20
- 3c6c: b3 e0 ldi r27, 0x03 ; 3
- 3c6e: 0f d0 rcall .+30 ; 0x3c8e <__ultoa_invert+0x86>
- 3c70: c9 f7 brne .-14 ; 0x3c64 <__ultoa_invert+0x5c>
- 3c72: f6 cf rjmp .-20 ; 0x3c60 <__ultoa_invert+0x58>
- 3c74: 46 2f mov r20, r22
- 3c76: 4f 70 andi r20, 0x0F ; 15
- 3c78: 40 5d subi r20, 0xD0 ; 208
- 3c7a: 4a 33 cpi r20, 0x3A ; 58
- 3c7c: 18 f0 brcs .+6 ; 0x3c84 <__ultoa_invert+0x7c>
- 3c7e: 49 5d subi r20, 0xD9 ; 217
- 3c80: 31 fd sbrc r19, 1
- 3c82: 40 52 subi r20, 0x20 ; 32
- 3c84: 41 93 st Z+, r20
- 3c86: 02 d0 rcall .+4 ; 0x3c8c <__ultoa_invert+0x84>
- 3c88: a9 f7 brne .-22 ; 0x3c74 <__ultoa_invert+0x6c>
- 3c8a: ea cf rjmp .-44 ; 0x3c60 <__ultoa_invert+0x58>
- 3c8c: b4 e0 ldi r27, 0x04 ; 4
- 3c8e: a6 95 lsr r26
- 3c90: 97 95 ror r25
- 3c92: 87 95 ror r24
- 3c94: 77 95 ror r23
- 3c96: 67 95 ror r22
- 3c98: ba 95 dec r27
- 3c9a: c9 f7 brne .-14 ; 0x3c8e <__ultoa_invert+0x86>
- 3c9c: 00 97 sbiw r24, 0x00 ; 0
- 3c9e: 61 05 cpc r22, r1
- 3ca0: 71 05 cpc r23, r1
- 3ca2: 08 95 ret
- 3ca4: 9b 01 movw r18, r22
- 3ca6: ac 01 movw r20, r24
- 3ca8: 0a 2e mov r0, r26
- 3caa: 06 94 lsr r0
- 3cac: 57 95 ror r21
- 3cae: 47 95 ror r20
- 3cb0: 37 95 ror r19
- 3cb2: 27 95 ror r18
- 3cb4: ba 95 dec r27
- 3cb6: c9 f7 brne .-14 ; 0x3caa <__ultoa_invert+0xa2>
- 3cb8: 62 0f add r22, r18
- 3cba: 73 1f adc r23, r19
- 3cbc: 84 1f adc r24, r20
- 3cbe: 95 1f adc r25, r21
- 3cc0: a0 1d adc r26, r0
- 3cc2: 08 95 ret
- 00003cc4 <_exit>:
- 3cc4: f8 94 cli
- 00003cc6 <__stop_program>:
- 3cc6: ff cf rjmp .-2 ; 0x3cc6 <__stop_program>
|