heater3.lss 372 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084
  1. heater3.elf: file format elf32-avr
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .data 000001f2 00800100 00003cc8 00003d5c 2**0
  5. CONTENTS, ALLOC, LOAD, DATA
  6. 1 .text 00003cc8 00000000 00000000 00000094 2**1
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .bss 000003c0 008002f2 008002f2 00003f4e 2**0
  9. ALLOC
  10. 3 .comment 0000005c 00000000 00000000 00003f4e 2**0
  11. CONTENTS, READONLY
  12. 4 .note.gnu.avr.deviceinfo 00000040 00000000 00000000 00003fac 2**2
  13. CONTENTS, READONLY
  14. 5 .debug_aranges 000001d8 00000000 00000000 00003fec 2**0
  15. CONTENTS, READONLY, DEBUGGING
  16. 6 .debug_info 00003ef3 00000000 00000000 000041c4 2**0
  17. CONTENTS, READONLY, DEBUGGING
  18. 7 .debug_abbrev 00001218 00000000 00000000 000080b7 2**0
  19. CONTENTS, READONLY, DEBUGGING
  20. 8 .debug_line 00001e26 00000000 00000000 000092cf 2**0
  21. CONTENTS, READONLY, DEBUGGING
  22. 9 .debug_frame 00000734 00000000 00000000 0000b0f8 2**2
  23. CONTENTS, READONLY, DEBUGGING
  24. 10 .debug_str 00000b2d 00000000 00000000 0000b82c 2**0
  25. CONTENTS, READONLY, DEBUGGING
  26. 11 .debug_loc 0000349c 00000000 00000000 0000c359 2**0
  27. CONTENTS, READONLY, DEBUGGING
  28. 12 .debug_ranges 00000230 00000000 00000000 0000f7f5 2**0
  29. CONTENTS, READONLY, DEBUGGING
  30. Disassembly of section .text:
  31. 00000000 <__vectors>:
  32. 0: c8 c0 rjmp .+400 ; 0x192 <__ctors_end>
  33. 2: 00 00 nop
  34. 4: 54 c1 rjmp .+680 ; 0x2ae <__vector_1>
  35. 6: 00 00 nop
  36. 8: 81 c1 rjmp .+770 ; 0x30c <__vector_2>
  37. a: 00 00 nop
  38. c: df c0 rjmp .+446 ; 0x1cc <__bad_interrupt>
  39. e: 00 00 nop
  40. 10: dd c0 rjmp .+442 ; 0x1cc <__bad_interrupt>
  41. 12: 00 00 nop
  42. 14: db c0 rjmp .+438 ; 0x1cc <__bad_interrupt>
  43. 16: 00 00 nop
  44. 18: d9 c0 rjmp .+434 ; 0x1cc <__bad_interrupt>
  45. 1a: 00 00 nop
  46. 1c: 2d c1 rjmp .+602 ; 0x278 <__vector_7>
  47. 1e: 00 00 nop
  48. 20: d5 c0 rjmp .+426 ; 0x1cc <__bad_interrupt>
  49. 22: 00 00 nop
  50. 24: d3 c0 rjmp .+422 ; 0x1cc <__bad_interrupt>
  51. 26: 00 00 nop
  52. 28: d1 c0 rjmp .+418 ; 0x1cc <__bad_interrupt>
  53. 2a: 00 00 nop
  54. 2c: cf c0 rjmp .+414 ; 0x1cc <__bad_interrupt>
  55. 2e: 00 00 nop
  56. 30: cd c0 rjmp .+410 ; 0x1cc <__bad_interrupt>
  57. 32: 00 00 nop
  58. 34: f9 c1 rjmp .+1010 ; 0x428 <__vector_13>
  59. 36: 00 00 nop
  60. 38: c9 c0 rjmp .+402 ; 0x1cc <__bad_interrupt>
  61. 3a: 00 00 nop
  62. 3c: c7 c0 rjmp .+398 ; 0x1cc <__bad_interrupt>
  63. 3e: 00 00 nop
  64. 40: e4 c1 rjmp .+968 ; 0x40a <__vector_16>
  65. 42: 00 00 nop
  66. 44: c3 c0 rjmp .+390 ; 0x1cc <__bad_interrupt>
  67. 46: 00 00 nop
  68. 48: c1 c0 rjmp .+386 ; 0x1cc <__bad_interrupt>
  69. 4a: 00 00 nop
  70. 4c: bf c0 rjmp .+382 ; 0x1cc <__bad_interrupt>
  71. 4e: 00 00 nop
  72. 50: 8c c1 rjmp .+792 ; 0x36a <__vector_20>
  73. 52: 00 00 nop
  74. 54: a7 c1 rjmp .+846 ; 0x3a4 <__vector_21>
  75. 56: 00 00 nop
  76. 58: b9 c0 rjmp .+370 ; 0x1cc <__bad_interrupt>
  77. 5a: 00 00 nop
  78. 5c: b7 c0 rjmp .+366 ; 0x1cc <__bad_interrupt>
  79. 5e: 00 00 nop
  80. 60: b5 c0 rjmp .+362 ; 0x1cc <__bad_interrupt>
  81. 62: 00 00 nop
  82. 64: b3 c0 rjmp .+358 ; 0x1cc <__bad_interrupt>
  83. 66: 00 00 nop
  84. 68: b1 c0 rjmp .+354 ; 0x1cc <__bad_interrupt>
  85. 6a: 00 00 nop
  86. 6c: af c0 rjmp .+350 ; 0x1cc <__bad_interrupt>
  87. 6e: 00 00 nop
  88. 70: ad c0 rjmp .+346 ; 0x1cc <__bad_interrupt>
  89. 72: 00 00 nop
  90. 74: ab c0 rjmp .+342 ; 0x1cc <__bad_interrupt>
  91. 76: 00 00 nop
  92. 78: a9 c0 rjmp .+338 ; 0x1cc <__bad_interrupt>
  93. 7a: 00 00 nop
  94. 7c: 67 0c add r6, r7
  95. 7e: 68 0c add r6, r8
  96. 80: 6d 0c add r6, r13
  97. 82: 20 0c add r2, r0
  98. 84: 81 0c add r8, r1
  99. 86: 97 0c add r9, r7
  100. 88: be 0c add r11, r14
  101. 8a: cc 0c add r12, r12
  102. 8c: 2e 0c add r2, r14
  103. 8e: 40 0c add r4, r0
  104. 00000090 <__trampolines_end>:
  105. 90: 6e 61 ori r22, 0x1E ; 30
  106. 92: 6e 00 .word 0x006e ; ????
  107. 00000094 <__c.2332>:
  108. 94: 69 6e 66 00 00 40 7a 10 f3 5a 00 a0 72 4e 18 09 inf..@z..Z..rN..
  109. a4: 00 10 a5 d4 e8 00 00 e8 76 48 17 00 00 e4 0b 54 ........vH.....T
  110. b4: 02 00 00 ca 9a 3b 00 00 00 e1 f5 05 00 00 80 96 .....;..........
  111. c4: 98 00 00 00 40 42 0f 00 00 00 a0 86 01 00 00 00 ....@B..........
  112. d4: 10 27 00 00 00 00 e8 03 00 00 00 00 64 00 00 00 .'..........d...
  113. e4: 00 00 0a 00 00 00 00 00 01 00 00 00 00 00 2c 76 ..............,v
  114. f4: d8 88 dc 67 4f 08 23 df c1 df ae 59 e1 b1 b7 96 ...gO.#....Y....
  115. 104: e5 e3 e4 53 c6 3a e6 51 99 76 96 e8 e6 c2 84 26 ...S.:.Q.v.....&
  116. 114: eb 89 8c 9b 62 ed 40 7c 6f fc ef bc 9c 9f 40 f2 ....b.@|o.....@.
  117. 124: ba a5 6f a5 f4 90 05 5a 2a f7 5c 93 6b 6c f9 67 ..o....Z*.\.kl.g
  118. 134: 6d c1 1b fc e0 e4 0d 47 fe f5 20 e6 b5 00 d0 ed m......G.. .....
  119. 144: 90 2e 03 00 94 35 77 05 00 80 84 1e 08 00 00 20 .....5w........
  120. 154: 4e 0a 00 00 00 c8 0c 33 33 33 33 0f 98 6e 12 83 N......3333..n..
  121. 164: 11 41 ef 8d 21 14 89 3b e6 55 16 cf fe e6 db 18 .A..!..;.U......
  122. 174: d1 84 4b 38 1b f7 7c 1d 90 1d a4 bb e4 24 20 32 ..K8..|......$ 2
  123. 184: 84 72 5e 22 81 00 c9 f1 24 ec a1 e5 3d 27 .r^"....$...='
  124. 00000192 <__ctors_end>:
  125. 192: 11 24 eor r1, r1
  126. 194: 1f be out 0x3f, r1 ; 63
  127. 196: cf ef ldi r28, 0xFF ; 255
  128. 198: d0 e1 ldi r29, 0x10 ; 16
  129. 19a: de bf out 0x3e, r29 ; 62
  130. 19c: cd bf out 0x3d, r28 ; 61
  131. 0000019e <__do_copy_data>:
  132. 19e: 12 e0 ldi r17, 0x02 ; 2
  133. 1a0: a0 e0 ldi r26, 0x00 ; 0
  134. 1a2: b1 e0 ldi r27, 0x01 ; 1
  135. 1a4: e8 ec ldi r30, 0xC8 ; 200
  136. 1a6: fc e3 ldi r31, 0x3C ; 60
  137. 1a8: 02 c0 rjmp .+4 ; 0x1ae <__do_copy_data+0x10>
  138. 1aa: 05 90 lpm r0, Z+
  139. 1ac: 0d 92 st X+, r0
  140. 1ae: a2 3f cpi r26, 0xF2 ; 242
  141. 1b0: b1 07 cpc r27, r17
  142. 1b2: d9 f7 brne .-10 ; 0x1aa <__do_copy_data+0xc>
  143. 000001b4 <__do_clear_bss>:
  144. 1b4: 26 e0 ldi r18, 0x06 ; 6
  145. 1b6: a2 ef ldi r26, 0xF2 ; 242
  146. 1b8: b2 e0 ldi r27, 0x02 ; 2
  147. 1ba: 01 c0 rjmp .+2 ; 0x1be <.do_clear_bss_start>
  148. 000001bc <.do_clear_bss_loop>:
  149. 1bc: 1d 92 st X+, r1
  150. 000001be <.do_clear_bss_start>:
  151. 1be: a2 3b cpi r26, 0xB2 ; 178
  152. 1c0: b2 07 cpc r27, r18
  153. 1c2: e1 f7 brne .-8 ; 0x1bc <.do_clear_bss_loop>
  154. 1c4: 0e 94 4a 0e call 0x1c94 ; 0x1c94 <main>
  155. 1c8: 0c 94 62 1e jmp 0x3cc4 ; 0x3cc4 <_exit>
  156. 000001cc <__bad_interrupt>:
  157. 1cc: 19 cf rjmp .-462 ; 0x0 <__vectors>
  158. 000001ce <uart_putchar>:
  159. return 0;
  160. }
  161. int uart_putchar(char c, FILE *stream)
  162. {
  163. cli();
  164. 1ce: f8 94 cli
  165. if(!FIFO_IS_FULL(fifo0))
  166. 1d0: 20 91 e8 05 lds r18, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  167. 1d4: 30 91 e9 05 lds r19, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  168. 1d8: 40 91 e6 05 lds r20, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  169. 1dc: 50 91 e7 05 lds r21, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  170. 1e0: b9 01 movw r22, r18
  171. 1e2: 64 1b sub r22, r20
  172. 1e4: 75 0b sbc r23, r21
  173. 1e6: ab 01 movw r20, r22
  174. 1e8: 41 15 cp r20, r1
  175. 1ea: 52 40 sbci r21, 0x02 ; 2
  176. 1ec: 81 f0 breq .+32 ; 0x20e <uart_putchar+0x40>
  177. {
  178. FIFO_PUSH(fifo0, c);
  179. 1ee: f9 01 movw r30, r18
  180. 1f0: f1 70 andi r31, 0x01 ; 1
  181. 1f2: ea 51 subi r30, 0x1A ; 26
  182. 1f4: fc 4f sbci r31, 0xFC ; 252
  183. 1f6: 80 83 st Z, r24
  184. 1f8: 2f 5f subi r18, 0xFF ; 255
  185. 1fa: 3f 4f sbci r19, 0xFF ; 255
  186. 1fc: 30 93 e9 05 sts 0x05E9, r19 ; 0x8005e9 <fifo0+0x203>
  187. 200: 20 93 e8 05 sts 0x05E8, r18 ; 0x8005e8 <fifo0+0x202>
  188. UCSR0B |= (1 << UDRIE0);
  189. 204: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  190. 208: 80 62 ori r24, 0x20 ; 32
  191. 20a: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  192. }
  193. sei();
  194. 20e: 78 94 sei
  195. return 0;
  196. }
  197. 210: 80 e0 ldi r24, 0x00 ; 0
  198. 212: 90 e0 ldi r25, 0x00 ; 0
  199. 214: 08 95 ret
  200. 00000216 <lcd_putchar>:
  201. return (heater[ch].current);
  202. }
  203. int lcd_putchar(char c, FILE *stream)
  204. {
  205. if(c >= 0xC0)
  206. 216: 80 3c cpi r24, 0xC0 ; 192
  207. 218: 28 f0 brcs .+10 ; 0x224 <lcd_putchar+0xe>
  208. c = cyrillic[c - 0xC0];
  209. 21a: e8 2f mov r30, r24
  210. 21c: f0 e0 ldi r31, 0x00 ; 0
  211. 21e: ed 55 subi r30, 0x5D ; 93
  212. 220: fe 4f sbci r31, 0xFE ; 254
  213. 222: 80 81 ld r24, Z
  214. LCD_SendData(c);
  215. 224: 0e 94 86 12 call 0x250c ; 0x250c <LCD_SendData>
  216. return 0;
  217. }
  218. 228: 80 e0 ldi r24, 0x00 ; 0
  219. 22a: 90 e0 ldi r25, 0x00 ; 0
  220. 22c: 08 95 ret
  221. 0000022e <SwitchHeating.part.0>:
  222. void SwitchHeating(uint8_t ch, uint8_t onoff)
  223. {
  224. if(onoff)
  225. {
  226. GATEPORT &= ~(1 << (GATE1 + (ch & 0x01)));
  227. 22e: 68 b1 in r22, 0x08 ; 8
  228. 230: 48 2f mov r20, r24
  229. 232: 41 70 andi r20, 0x01 ; 1
  230. 234: 50 e0 ldi r21, 0x00 ; 0
  231. 236: fa 01 movw r30, r20
  232. 238: 36 96 adiw r30, 0x06 ; 6
  233. 23a: 21 e0 ldi r18, 0x01 ; 1
  234. 23c: 30 e0 ldi r19, 0x00 ; 0
  235. 23e: d9 01 movw r26, r18
  236. 240: 02 c0 rjmp .+4 ; 0x246 <SwitchHeating.part.0+0x18>
  237. 242: aa 0f add r26, r26
  238. 244: bb 1f adc r27, r27
  239. 246: ea 95 dec r30
  240. 248: e2 f7 brpl .-8 ; 0x242 <SwitchHeating.part.0+0x14>
  241. 24a: 9a 2f mov r25, r26
  242. 24c: 90 95 com r25
  243. 24e: 96 23 and r25, r22
  244. 250: 98 b9 out 0x08, r25 ; 8
  245. LEDPORT |= (1 << (LED1 + (ch & 0x01)));
  246. 252: 98 b1 in r25, 0x08 ; 8
  247. 254: 4e 5f subi r20, 0xFE ; 254
  248. 256: 5f 4f sbci r21, 0xFF ; 255
  249. 258: 01 c0 rjmp .+2 ; 0x25c <SwitchHeating.part.0+0x2e>
  250. 25a: 22 0f add r18, r18
  251. 25c: 4a 95 dec r20
  252. 25e: ea f7 brpl .-6 ; 0x25a <SwitchHeating.part.0+0x2c>
  253. 260: 29 2b or r18, r25
  254. 262: 28 b9 out 0x08, r18 ; 8
  255. heater[ch].status.heating = 1;
  256. 264: b3 e1 ldi r27, 0x13 ; 19
  257. 266: 8b 9f mul r24, r27
  258. 268: f0 01 movw r30, r0
  259. 26a: 11 24 eor r1, r1
  260. 26c: e0 5e subi r30, 0xE0 ; 224
  261. 26e: fc 4f sbci r31, 0xFC ; 252
  262. 270: 80 81 ld r24, Z
  263. 272: 84 60 ori r24, 0x04 ; 4
  264. 274: 80 83 st Z, r24
  265. 276: 08 95 ret
  266. 00000278 <__vector_7>:
  267. static FILE uart_stdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
  268. FIFO(512) fifo0;
  269. ISR(PCINT3_vect)
  270. {
  271. 278: 1f 92 push r1
  272. 27a: 0f 92 push r0
  273. 27c: 0f b6 in r0, 0x3f ; 63
  274. 27e: 0f 92 push r0
  275. 280: 11 24 eor r1, r1
  276. 282: 8f 93 push r24
  277. btn_act = 1;
  278. 284: 81 e0 ldi r24, 0x01 ; 1
  279. 286: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 <btn_act>
  280. if(((BTNPIN >> 4) | 0xF0) == 0xF0)
  281. 28a: 89 b1 in r24, 0x09 ; 9
  282. 28c: 82 95 swap r24
  283. 28e: 8f 70 andi r24, 0x0F ; 15
  284. 290: 80 6f ori r24, 0xF0 ; 240
  285. 292: 80 3f cpi r24, 0xF0 ; 240
  286. 294: 31 f4 brne .+12 ; 0x2a2 <__vector_7+0x2a>
  287. {
  288. cli();
  289. 296: f8 94 cli
  290. WDTCSR |= (1 << WDCE) | (1 << WDE);
  291. 298: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060>
  292. 29c: 88 61 ori r24, 0x18 ; 24
  293. 29e: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060>
  294. }
  295. }
  296. 2a2: 8f 91 pop r24
  297. 2a4: 0f 90 pop r0
  298. 2a6: 0f be out 0x3f, r0 ; 63
  299. 2a8: 0f 90 pop r0
  300. 2aa: 1f 90 pop r1
  301. 2ac: 18 95 reti
  302. 000002ae <__vector_1>:
  303. ISR(INT0_vect) /*OVERCURRENT PROTECTION 1*/
  304. {
  305. 2ae: 1f 92 push r1
  306. 2b0: 0f 92 push r0
  307. 2b2: 0f b6 in r0, 0x3f ; 63
  308. 2b4: 0f 92 push r0
  309. 2b6: 11 24 eor r1, r1
  310. 2b8: 8f 93 push r24
  311. 2ba: af 93 push r26
  312. 2bc: bf 93 push r27
  313. 2be: ef 93 push r30
  314. 2c0: ff 93 push r31
  315. cli();
  316. 2c2: f8 94 cli
  317. GATEPORT |= (1 << GATE1) | (1 << GATE2);
  318. 2c4: 88 b1 in r24, 0x08 ; 8
  319. 2c6: 80 6c ori r24, 0xC0 ; 192
  320. 2c8: 88 b9 out 0x08, r24 ; 8
  321. LEDPORT &= ~((1 << LED1) | (1 << LED2));
  322. 2ca: 88 b1 in r24, 0x08 ; 8
  323. 2cc: 83 7f andi r24, 0xF3 ; 243
  324. 2ce: 88 b9 out 0x08, r24 ; 8
  325. PORTC &= ~(1 << V12POWER);
  326. 2d0: 44 98 cbi 0x08, 4 ; 8
  327. heater[0].status.heating = heater[1].status.heating = 0;
  328. 2d2: a3 e3 ldi r26, 0x33 ; 51
  329. 2d4: b3 e0 ldi r27, 0x03 ; 3
  330. 2d6: 8c 91 ld r24, X
  331. 2d8: 8b 7f andi r24, 0xFB ; 251
  332. 2da: 8c 93 st X, r24
  333. 2dc: e0 e2 ldi r30, 0x20 ; 32
  334. 2de: f3 e0 ldi r31, 0x03 ; 3
  335. 2e0: 80 81 ld r24, Z
  336. 2e2: 8b 7f andi r24, 0xFB ; 251
  337. 2e4: 80 83 st Z, r24
  338. heater[0].status.onoff = heater[1].status.onoff = 0;
  339. 2e6: 8c 91 ld r24, X
  340. 2e8: 8d 7f andi r24, 0xFD ; 253
  341. 2ea: 8c 93 st X, r24
  342. 2ec: 80 81 ld r24, Z
  343. 2ee: 8d 7f andi r24, 0xFD ; 253
  344. 2f0: 80 83 st Z, r24
  345. heater[0].status.ocp = 1;
  346. 2f2: 80 81 ld r24, Z
  347. 2f4: 88 60 ori r24, 0x08 ; 8
  348. 2f6: 80 83 st Z, r24
  349. }
  350. 2f8: ff 91 pop r31
  351. 2fa: ef 91 pop r30
  352. 2fc: bf 91 pop r27
  353. 2fe: af 91 pop r26
  354. 300: 8f 91 pop r24
  355. 302: 0f 90 pop r0
  356. 304: 0f be out 0x3f, r0 ; 63
  357. 306: 0f 90 pop r0
  358. 308: 1f 90 pop r1
  359. 30a: 18 95 reti
  360. 0000030c <__vector_2>:
  361. ISR(INT1_vect) /*OVERCURRENT PROTECTION 2*/
  362. {
  363. 30c: 1f 92 push r1
  364. 30e: 0f 92 push r0
  365. 310: 0f b6 in r0, 0x3f ; 63
  366. 312: 0f 92 push r0
  367. 314: 11 24 eor r1, r1
  368. 316: 8f 93 push r24
  369. 318: af 93 push r26
  370. 31a: bf 93 push r27
  371. 31c: ef 93 push r30
  372. 31e: ff 93 push r31
  373. cli();
  374. 320: f8 94 cli
  375. GATEPORT |= (1 << GATE1) | (1 << GATE2);
  376. 322: 88 b1 in r24, 0x08 ; 8
  377. 324: 80 6c ori r24, 0xC0 ; 192
  378. 326: 88 b9 out 0x08, r24 ; 8
  379. LEDPORT &= ~((1 << LED1) | (1 << LED2));
  380. 328: 88 b1 in r24, 0x08 ; 8
  381. 32a: 83 7f andi r24, 0xF3 ; 243
  382. 32c: 88 b9 out 0x08, r24 ; 8
  383. PORTC &= ~(1 << V12POWER);
  384. 32e: 44 98 cbi 0x08, 4 ; 8
  385. heater[0].status.heating = heater[1].status.heating = 0;
  386. 330: e3 e3 ldi r30, 0x33 ; 51
  387. 332: f3 e0 ldi r31, 0x03 ; 3
  388. 334: 80 81 ld r24, Z
  389. 336: 8b 7f andi r24, 0xFB ; 251
  390. 338: 80 83 st Z, r24
  391. 33a: a0 e2 ldi r26, 0x20 ; 32
  392. 33c: b3 e0 ldi r27, 0x03 ; 3
  393. 33e: 8c 91 ld r24, X
  394. 340: 8b 7f andi r24, 0xFB ; 251
  395. 342: 8c 93 st X, r24
  396. heater[0].status.onoff = heater[1].status.onoff = 0;
  397. 344: 80 81 ld r24, Z
  398. 346: 8d 7f andi r24, 0xFD ; 253
  399. 348: 80 83 st Z, r24
  400. 34a: 8c 91 ld r24, X
  401. 34c: 8d 7f andi r24, 0xFD ; 253
  402. 34e: 8c 93 st X, r24
  403. heater[1].status.ocp = 1;
  404. 350: 80 81 ld r24, Z
  405. 352: 88 60 ori r24, 0x08 ; 8
  406. 354: 80 83 st Z, r24
  407. }
  408. 356: ff 91 pop r31
  409. 358: ef 91 pop r30
  410. 35a: bf 91 pop r27
  411. 35c: af 91 pop r26
  412. 35e: 8f 91 pop r24
  413. 360: 0f 90 pop r0
  414. 362: 0f be out 0x3f, r0 ; 63
  415. 364: 0f 90 pop r0
  416. 366: 1f 90 pop r1
  417. 368: 18 95 reti
  418. 0000036a <__vector_20>:
  419. ISR(USART0_RX_vect)
  420. {
  421. 36a: 1f 92 push r1
  422. 36c: 0f 92 push r0
  423. 36e: 0f b6 in r0, 0x3f ; 63
  424. 370: 0f 92 push r0
  425. 372: 11 24 eor r1, r1
  426. 374: 8f 93 push r24
  427. 376: ef 93 push r30
  428. 378: ff 93 push r31
  429. count++;
  430. 37a: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 <count>
  431. 37e: 8f 5f subi r24, 0xFF ; 255
  432. 380: 80 93 f6 02 sts 0x02F6, r24 ; 0x8002f6 <count>
  433. rxbuf[count - 1] = UDR0;
  434. 384: e0 91 f6 02 lds r30, 0x02F6 ; 0x8002f6 <count>
  435. 388: f0 e0 ldi r31, 0x00 ; 0
  436. 38a: 80 91 c6 00 lds r24, 0x00C6 ; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7e00c6>
  437. 38e: e9 50 subi r30, 0x09 ; 9
  438. 390: fd 4f sbci r31, 0xFD ; 253
  439. 392: 80 83 st Z, r24
  440. }
  441. 394: ff 91 pop r31
  442. 396: ef 91 pop r30
  443. 398: 8f 91 pop r24
  444. 39a: 0f 90 pop r0
  445. 39c: 0f be out 0x3f, r0 ; 63
  446. 39e: 0f 90 pop r0
  447. 3a0: 1f 90 pop r1
  448. 3a2: 18 95 reti
  449. 000003a4 <__vector_21>:
  450. ISR(USART0_UDRE_vect)
  451. {
  452. 3a4: 1f 92 push r1
  453. 3a6: 0f 92 push r0
  454. 3a8: 0f b6 in r0, 0x3f ; 63
  455. 3aa: 0f 92 push r0
  456. 3ac: 11 24 eor r1, r1
  457. 3ae: 2f 93 push r18
  458. 3b0: 3f 93 push r19
  459. 3b2: 8f 93 push r24
  460. 3b4: 9f 93 push r25
  461. 3b6: ef 93 push r30
  462. 3b8: ff 93 push r31
  463. if(FIFO_IS_EMPTY(fifo0))
  464. 3ba: 80 91 e6 05 lds r24, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  465. 3be: 90 91 e7 05 lds r25, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  466. 3c2: 20 91 e8 05 lds r18, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  467. 3c6: 30 91 e9 05 lds r19, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  468. 3ca: 82 17 cp r24, r18
  469. 3cc: 93 07 cpc r25, r19
  470. 3ce: b9 f0 breq .+46 ; 0x3fe <__vector_21+0x5a>
  471. {
  472. UCSR0B &= ~(1 << UDRIE0);
  473. }
  474. else
  475. {
  476. UDR0 = FIFO_FRONT(fifo0);
  477. 3d0: fc 01 movw r30, r24
  478. 3d2: f1 70 andi r31, 0x01 ; 1
  479. 3d4: ea 51 subi r30, 0x1A ; 26
  480. 3d6: fc 4f sbci r31, 0xFC ; 252
  481. 3d8: 20 81 ld r18, Z
  482. 3da: 20 93 c6 00 sts 0x00C6, r18 ; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7e00c6>
  483. FIFO_POP(fifo0);
  484. 3de: 01 96 adiw r24, 0x01 ; 1
  485. 3e0: 90 93 e7 05 sts 0x05E7, r25 ; 0x8005e7 <fifo0+0x201>
  486. 3e4: 80 93 e6 05 sts 0x05E6, r24 ; 0x8005e6 <fifo0+0x200>
  487. }
  488. }
  489. 3e8: ff 91 pop r31
  490. 3ea: ef 91 pop r30
  491. 3ec: 9f 91 pop r25
  492. 3ee: 8f 91 pop r24
  493. 3f0: 3f 91 pop r19
  494. 3f2: 2f 91 pop r18
  495. 3f4: 0f 90 pop r0
  496. 3f6: 0f be out 0x3f, r0 ; 63
  497. 3f8: 0f 90 pop r0
  498. 3fa: 1f 90 pop r1
  499. 3fc: 18 95 reti
  500. ISR(USART0_UDRE_vect)
  501. {
  502. if(FIFO_IS_EMPTY(fifo0))
  503. {
  504. UCSR0B &= ~(1 << UDRIE0);
  505. 3fe: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  506. 402: 8f 7d andi r24, 0xDF ; 223
  507. 404: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  508. 408: ef cf rjmp .-34 ; 0x3e8 <__vector_21+0x44>
  509. 0000040a <__vector_16>:
  510. FIFO_POP(fifo0);
  511. }
  512. }
  513. ISR(TIMER0_COMPA_vect)
  514. {
  515. 40a: 1f 92 push r1
  516. 40c: 0f 92 push r0
  517. 40e: 0f b6 in r0, 0x3f ; 63
  518. 410: 0f 92 push r0
  519. 412: 11 24 eor r1, r1
  520. 414: 8f 93 push r24
  521. tick1 = 1;
  522. 416: 81 e0 ldi r24, 0x01 ; 1
  523. 418: 80 93 f5 02 sts 0x02F5, r24 ; 0x8002f5 <tick1>
  524. }
  525. 41c: 8f 91 pop r24
  526. 41e: 0f 90 pop r0
  527. 420: 0f be out 0x3f, r0 ; 63
  528. 422: 0f 90 pop r0
  529. 424: 1f 90 pop r1
  530. 426: 18 95 reti
  531. 00000428 <__vector_13>:
  532. ISR(TIMER1_COMPA_vect)
  533. {
  534. 428: 1f 92 push r1
  535. 42a: 0f 92 push r0
  536. 42c: 0f b6 in r0, 0x3f ; 63
  537. 42e: 0f 92 push r0
  538. 430: 11 24 eor r1, r1
  539. 432: 8f 93 push r24
  540. tick2 = 1;
  541. 434: 81 e0 ldi r24, 0x01 ; 1
  542. 436: 80 93 f4 02 sts 0x02F4, r24 ; 0x8002f4 <tick2>
  543. }
  544. 43a: 8f 91 pop r24
  545. 43c: 0f 90 pop r0
  546. 43e: 0f be out 0x3f, r0 ; 63
  547. 440: 0f 90 pop r0
  548. 442: 1f 90 pop r1
  549. 444: 18 95 reti
  550. 00000446 <init>:
  551. void init()
  552. {
  553. /* Watchdog clear*/
  554. MCUSR &= ~(1 << WDRF);
  555. 446: 84 b7 in r24, 0x34 ; 52
  556. 448: 87 7f andi r24, 0xF7 ; 247
  557. 44a: 84 bf out 0x34, r24 ; 52
  558. WDTCSR |= (1 << WDCE) | (1 << WDE);
  559. 44c: e0 e6 ldi r30, 0x60 ; 96
  560. 44e: f0 e0 ldi r31, 0x00 ; 0
  561. 450: 80 81 ld r24, Z
  562. 452: 88 61 ori r24, 0x18 ; 24
  563. 454: 80 83 st Z, r24
  564. WDTCSR = 0x00;
  565. 456: 10 82 st Z, r1
  566. /* External interrupts initialization */
  567. EICRA |= (1 << ISC01) | (1 << ISC11);
  568. 458: e9 e6 ldi r30, 0x69 ; 105
  569. 45a: f0 e0 ldi r31, 0x00 ; 0
  570. 45c: 80 81 ld r24, Z
  571. 45e: 8a 60 ori r24, 0x0A ; 10
  572. 460: 80 83 st Z, r24
  573. EIMSK |= (1 << INT0) | (1 << INT1);
  574. 462: 8d b3 in r24, 0x1d ; 29
  575. 464: 83 60 ori r24, 0x03 ; 3
  576. 466: 8d bb out 0x1d, r24 ; 29
  577. /* GPIO Initialization */
  578. PORTC |= (1 << GATE1) | (1 << GATE2) | (1 << V12POWER);
  579. 468: 88 b1 in r24, 0x08 ; 8
  580. 46a: 80 6d ori r24, 0xD0 ; 208
  581. 46c: 88 b9 out 0x08, r24 ; 8
  582. DDRC |= (1 << LED1) | (1 << LED2) | (1 << GATE1) | (1 << GATE2) | (1 << V12POWER);
  583. 46e: 87 b1 in r24, 0x07 ; 7
  584. 470: 8c 6d ori r24, 0xDC ; 220
  585. 472: 87 b9 out 0x07, r24 ; 7
  586. /* UART Initialization */
  587. TXD_PORT |= (1 << TXD_BIT);
  588. 474: 59 9a sbi 0x0b, 1 ; 11
  589. TXD_DDR |= (1 << TXD_BIT);
  590. 476: 51 9a sbi 0x0a, 1 ; 10
  591. #if U2X0_SET
  592. UBRR0H = (uint8_t)(((F_CPU / (8 * BAUD_RATE)) - 1) >> 8);
  593. 478: 10 92 c5 00 sts 0x00C5, r1 ; 0x8000c5 <__TEXT_REGION_LENGTH__+0x7e00c5>
  594. UBRR0L = (uint8_t)((F_CPU / (8 * BAUD_RATE)) - 1);
  595. 47c: 86 e2 ldi r24, 0x26 ; 38
  596. 47e: 80 93 c4 00 sts 0x00C4, r24 ; 0x8000c4 <__TEXT_REGION_LENGTH__+0x7e00c4>
  597. UCSR0A = (1 << U2X0);
  598. 482: 82 e0 ldi r24, 0x02 ; 2
  599. 484: 80 93 c0 00 sts 0x00C0, r24 ; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7e00c0>
  600. #elif
  601. UBRR0H = (uint8_t)(((F_CPU / (16 * BAUD_RATE)) - 1) >> 8);
  602. UBRR0L = (uint8_t)((F_CPU / (16 * BAUD_RATE)) - 1);
  603. #endif
  604. UCSR0B = (1 << RXCIE0) | (1 << RXEN0) | (1 << TXEN0);
  605. 488: 98 e9 ldi r25, 0x98 ; 152
  606. 48a: 90 93 c1 00 sts 0x00C1, r25 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  607. UCSR0C = (1 << UCSZ00) | (1 << UCSZ01);
  608. 48e: 96 e0 ldi r25, 0x06 ; 6
  609. 490: 90 93 c2 00 sts 0x00C2, r25 ; 0x8000c2 <__TEXT_REGION_LENGTH__+0x7e00c2>
  610. /* SPI Initialization */
  611. DDRB |= (1 << MOSI_BIT) | (1 << SCK_BIT) | (1 << SS_BIT) | (7 << PORTB0);
  612. 494: 94 b1 in r25, 0x04 ; 4
  613. 496: 97 6b ori r25, 0xB7 ; 183
  614. 498: 94 b9 out 0x04, r25 ; 4
  615. PORTB |= (1 << MOSI_BIT) | (1 << SCK_BIT) | (1 << SS_BIT);
  616. 49a: 95 b1 in r25, 0x05 ; 5
  617. 49c: 90 6b ori r25, 0xB0 ; 176
  618. 49e: 95 b9 out 0x05, r25 ; 5
  619. SPCR = (1 << SPE) | (1 << MSTR);
  620. 4a0: 90 e5 ldi r25, 0x50 ; 80
  621. 4a2: 9c bd out 0x2c, r25 ; 44
  622. /* TWI Initialization */
  623. TWBR = (uint8_t)(((F_CPU / TWI_FREQ) - 16) / 2);
  624. 4a4: 94 e0 ldi r25, 0x04 ; 4
  625. 4a6: 90 93 b8 00 sts 0x00B8, r25 ; 0x8000b8 <__TEXT_REGION_LENGTH__+0x7e00b8>
  626. TWCR = (1 << TWEN);
  627. 4aa: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  628. /* Timer0 Initialization */
  629. TCCR0A = (1 << WGM01);
  630. 4ae: 84 bd out 0x24, r24 ; 36
  631. OCR0A = 0x80;
  632. 4b0: 90 e8 ldi r25, 0x80 ; 128
  633. 4b2: 97 bd out 0x27, r25 ; 39
  634. TCCR0B = (1 << CS00) | (1 << CS02);
  635. 4b4: 95 e0 ldi r25, 0x05 ; 5
  636. 4b6: 95 bd out 0x25, r25 ; 37
  637. TIMSK0 = (1 << OCIE0A);
  638. 4b8: 80 93 6e 00 sts 0x006E, r24 ; 0x80006e <__TEXT_REGION_LENGTH__+0x7e006e>
  639. /* Timer1 Initialization */
  640. TCCR1B = (1 << CS12) | (1 << CS10) | (1 << WGM12);
  641. 4bc: 9d e0 ldi r25, 0x0D ; 13
  642. 4be: 90 93 81 00 sts 0x0081, r25 ; 0x800081 <__TEXT_REGION_LENGTH__+0x7e0081>
  643. OCR1A = 0x400;
  644. 4c2: 20 e0 ldi r18, 0x00 ; 0
  645. 4c4: 34 e0 ldi r19, 0x04 ; 4
  646. 4c6: 30 93 89 00 sts 0x0089, r19 ; 0x800089 <__TEXT_REGION_LENGTH__+0x7e0089>
  647. 4ca: 20 93 88 00 sts 0x0088, r18 ; 0x800088 <__TEXT_REGION_LENGTH__+0x7e0088>
  648. TIMSK1 = (1 << OCIE1A);
  649. 4ce: 80 93 6f 00 sts 0x006F, r24 ; 0x80006f <__TEXT_REGION_LENGTH__+0x7e006f>
  650. /* ADC Initialization */
  651. ADMUX |= (1 << REFS0) | (1 << REFS1);
  652. 4d2: ec e7 ldi r30, 0x7C ; 124
  653. 4d4: f0 e0 ldi r31, 0x00 ; 0
  654. 4d6: 80 81 ld r24, Z
  655. 4d8: 80 6c ori r24, 0xC0 ; 192
  656. 4da: 80 83 st Z, r24
  657. ADCSRA = (1 << ADEN) | (1 << ADPS0) | (1 << ADPS1);
  658. 4dc: 83 e8 ldi r24, 0x83 ; 131
  659. 4de: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  660. DIDR0 = 0xFF;
  661. 4e2: 8f ef ldi r24, 0xFF ; 255
  662. 4e4: 80 93 7e 00 sts 0x007E, r24 ; 0x80007e <__TEXT_REGION_LENGTH__+0x7e007e>
  663. PCICR = (1 << PCIE3);
  664. 4e8: 88 e0 ldi r24, 0x08 ; 8
  665. 4ea: 80 93 68 00 sts 0x0068, r24 ; 0x800068 <__TEXT_REGION_LENGTH__+0x7e0068>
  666. PCMSK3 = 0xF0;
  667. 4ee: 80 ef ldi r24, 0xF0 ; 240
  668. 4f0: 80 93 73 00 sts 0x0073, r24 ; 0x800073 <__TEXT_REGION_LENGTH__+0x7e0073>
  669. 4f4: 08 95 ret
  670. 000004f6 <MAX_ReadData>:
  671. }
  672. void MAX_ReadData()
  673. {
  674. 4f6: 0f 93 push r16
  675. 4f8: 1f 93 push r17
  676. 4fa: cf 93 push r28
  677. 4fc: df 93 push r29
  678. 4fe: 00 d0 rcall .+0 ; 0x500 <MAX_ReadData+0xa>
  679. 500: 00 d0 rcall .+0 ; 0x502 <MAX_ReadData+0xc>
  680. 502: cd b7 in r28, 0x3d ; 61
  681. 504: de b7 in r29, 0x3e ; 62
  682. uint8_t i = 0;
  683. max31855_t data;
  684. btw32_t *dptr = (btw32_t*)&data;
  685. PORTB = (PORTB & 0xF8) | MAXADDR;
  686. 506: 85 b1 in r24, 0x05 ; 5
  687. 508: 88 7f andi r24, 0xF8 ; 248
  688. 50a: 86 60 ori r24, 0x06 ; 6
  689. 50c: 85 b9 out 0x05, r24 ; 5
  690. PORTB &= ~(1 << SS_BIT);
  691. 50e: 2c 98 cbi 0x05, 4 ; 5
  692. 510: fe 01 movw r30, r28
  693. 512: 35 96 adiw r30, 0x05 ; 5
  694. 514: 9e 01 movw r18, r28
  695. 516: 2f 5f subi r18, 0xFF ; 255
  696. 518: 3f 4f sbci r19, 0xFF ; 255
  697. for(i = 0; i < 4; i++)
  698. {
  699. SPDR = 0xFF;
  700. 51a: 9f ef ldi r25, 0xFF ; 255
  701. 51c: 9e bd out 0x2e, r25 ; 46
  702. while(!(SPSR & (1 << SPIF)));
  703. 51e: 0d b4 in r0, 0x2d ; 45
  704. 520: 07 fe sbrs r0, 7
  705. 522: fd cf rjmp .-6 ; 0x51e <MAX_ReadData+0x28>
  706. dptr->byte[3 - i] = SPDR;
  707. 524: 8e b5 in r24, 0x2e ; 46
  708. 526: 82 93 st -Z, r24
  709. uint8_t i = 0;
  710. max31855_t data;
  711. btw32_t *dptr = (btw32_t*)&data;
  712. PORTB = (PORTB & 0xF8) | MAXADDR;
  713. PORTB &= ~(1 << SS_BIT);
  714. for(i = 0; i < 4; i++)
  715. 528: e2 17 cp r30, r18
  716. 52a: f3 07 cpc r31, r19
  717. 52c: b9 f7 brne .-18 ; 0x51c <MAX_ReadData+0x26>
  718. {
  719. SPDR = 0xFF;
  720. while(!(SPSR & (1 << SPIF)));
  721. dptr->byte[3 - i] = SPDR;
  722. }
  723. PORTB |= (1 << SS_BIT);
  724. 52e: 2c 9a sbi 0x05, 4 ; 5
  725. heater[CH0].tintr = heater[CH1].tintr = (int8_t)data.intt_int;
  726. 530: 0a 81 ldd r16, Y+2 ; 0x02
  727. 532: 00 93 36 03 sts 0x0336, r16 ; 0x800336 <heater+0x16>
  728. 536: 00 93 23 03 sts 0x0323, r16 ; 0x800323 <heater+0x3>
  729. if(data.intt_frac * (100.0 / 16.0) >= 50)
  730. 53a: 19 81 ldd r17, Y+1 ; 0x01
  731. 53c: 61 2f mov r22, r17
  732. 53e: 62 95 swap r22
  733. 540: 6f 70 andi r22, 0x0F ; 15
  734. 542: 70 e0 ldi r23, 0x00 ; 0
  735. 544: 80 e0 ldi r24, 0x00 ; 0
  736. 546: 90 e0 ldi r25, 0x00 ; 0
  737. 548: 0e 94 57 16 call 0x2cae ; 0x2cae <__floatsisf>
  738. 54c: 20 e0 ldi r18, 0x00 ; 0
  739. 54e: 30 e0 ldi r19, 0x00 ; 0
  740. 550: 48 ec ldi r20, 0xC8 ; 200
  741. 552: 50 e4 ldi r21, 0x40 ; 64
  742. 554: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
  743. 558: 20 e0 ldi r18, 0x00 ; 0
  744. 55a: 30 e0 ldi r19, 0x00 ; 0
  745. 55c: 48 e4 ldi r20, 0x48 ; 72
  746. 55e: 52 e4 ldi r21, 0x42 ; 66
  747. 560: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2>
  748. 564: 87 fd sbrc r24, 7
  749. 566: 03 c0 rjmp .+6 ; 0x56e <MAX_ReadData+0x78>
  750. heater[CH0].tintr++;
  751. 568: 0f 5f subi r16, 0xFF ; 255
  752. 56a: 00 93 23 03 sts 0x0323, r16 ; 0x800323 <heater+0x3>
  753. if(data.oc | data.scg | data.scg)
  754. 56e: 81 2f mov r24, r17
  755. 570: 81 70 andi r24, 0x01 ; 1
  756. 572: 11 fb bst r17, 1
  757. 574: 99 27 eor r25, r25
  758. 576: 90 f9 bld r25, 0
  759. 578: 89 2b or r24, r25
  760. 57a: d9 f5 brne .+118 ; 0x5f2 <MAX_ReadData+0xfc>
  761. heater[CH0].status.couple = heater[CH1].status.couple = dptr->byte[0] & 0x07;
  762. heater[CH0].tcouple = heater[CH1].tcouple = 0;
  763. }
  764. else
  765. {
  766. heater[CH0].status.couple = heater[CH1].status.couple = 0;
  767. 57c: 80 91 34 03 lds r24, 0x0334 ; 0x800334 <heater+0x14>
  768. 580: 81 7f andi r24, 0xF1 ; 241
  769. 582: 80 93 34 03 sts 0x0334, r24 ; 0x800334 <heater+0x14>
  770. 586: 80 91 21 03 lds r24, 0x0321 ; 0x800321 <heater+0x1>
  771. 58a: 81 7f andi r24, 0xF1 ; 241
  772. 58c: 80 93 21 03 sts 0x0321, r24 ; 0x800321 <heater+0x1>
  773. heater[CH0].tcouple = heater[CH1].tcouple = ((int16_t)data.tct_int ^ 0x0800) - 0x0800;
  774. 590: 8b 81 ldd r24, Y+3 ; 0x03
  775. 592: 48 2f mov r20, r24
  776. 594: 42 95 swap r20
  777. 596: 4f 70 andi r20, 0x0F ; 15
  778. 598: 9c 81 ldd r25, Y+4 ; 0x04
  779. 59a: 59 2f mov r21, r25
  780. 59c: 52 95 swap r21
  781. 59e: 50 7f andi r21, 0xF0 ; 240
  782. 5a0: 25 2f mov r18, r21
  783. 5a2: 24 2b or r18, r20
  784. 5a4: 39 2f mov r19, r25
  785. 5a6: 32 95 swap r19
  786. 5a8: 3f 70 andi r19, 0x0F ; 15
  787. 5aa: 48 e0 ldi r20, 0x08 ; 8
  788. 5ac: 34 27 eor r19, r20
  789. 5ae: a9 01 movw r20, r18
  790. 5b0: 58 50 subi r21, 0x08 ; 8
  791. 5b2: 50 93 38 03 sts 0x0338, r21 ; 0x800338 <heater+0x18>
  792. 5b6: 40 93 37 03 sts 0x0337, r20 ; 0x800337 <heater+0x17>
  793. 5ba: 50 93 25 03 sts 0x0325, r21 ; 0x800325 <heater+0x5>
  794. 5be: 40 93 24 03 sts 0x0324, r20 ; 0x800324 <heater+0x4>
  795. if((data.tct_frac * (100 / 4)) >= 50)
  796. 5c2: 86 95 lsr r24
  797. 5c4: 86 95 lsr r24
  798. 5c6: 83 70 andi r24, 0x03 ; 3
  799. 5c8: 49 e1 ldi r20, 0x19 ; 25
  800. 5ca: 84 9f mul r24, r20
  801. 5cc: c0 01 movw r24, r0
  802. 5ce: 11 24 eor r1, r1
  803. 5d0: c2 97 sbiw r24, 0x32 ; 50
  804. 5d2: 34 f0 brlt .+12 ; 0x5e0 <MAX_ReadData+0xea>
  805. heater[CH0].tcouple = heater[CH1].tcouple++;
  806. 5d4: 2f 5f subi r18, 0xFF ; 255
  807. 5d6: 37 40 sbci r19, 0x07 ; 7
  808. 5d8: 30 93 38 03 sts 0x0338, r19 ; 0x800338 <heater+0x18>
  809. 5dc: 20 93 37 03 sts 0x0337, r18 ; 0x800337 <heater+0x17>
  810. }
  811. }
  812. 5e0: 0f 90 pop r0
  813. 5e2: 0f 90 pop r0
  814. 5e4: 0f 90 pop r0
  815. 5e6: 0f 90 pop r0
  816. 5e8: df 91 pop r29
  817. 5ea: cf 91 pop r28
  818. 5ec: 1f 91 pop r17
  819. 5ee: 0f 91 pop r16
  820. 5f0: 08 95 ret
  821. if(data.intt_frac * (100.0 / 16.0) >= 50)
  822. heater[CH0].tintr++;
  823. if(data.oc | data.scg | data.scg)
  824. {
  825. heater[CH0].status.couple = heater[CH1].status.couple = dptr->byte[0] & 0x07;
  826. 5f2: 17 70 andi r17, 0x07 ; 7
  827. 5f4: 11 0f add r17, r17
  828. 5f6: 80 91 34 03 lds r24, 0x0334 ; 0x800334 <heater+0x14>
  829. 5fa: 81 7f andi r24, 0xF1 ; 241
  830. 5fc: 81 2b or r24, r17
  831. 5fe: 80 93 34 03 sts 0x0334, r24 ; 0x800334 <heater+0x14>
  832. 602: 80 91 21 03 lds r24, 0x0321 ; 0x800321 <heater+0x1>
  833. 606: 81 7f andi r24, 0xF1 ; 241
  834. 608: 18 2b or r17, r24
  835. 60a: 10 93 21 03 sts 0x0321, r17 ; 0x800321 <heater+0x1>
  836. heater[CH0].tcouple = heater[CH1].tcouple = 0;
  837. 60e: 10 92 38 03 sts 0x0338, r1 ; 0x800338 <heater+0x18>
  838. 612: 10 92 37 03 sts 0x0337, r1 ; 0x800337 <heater+0x17>
  839. 616: 10 92 25 03 sts 0x0325, r1 ; 0x800325 <heater+0x5>
  840. 61a: 10 92 24 03 sts 0x0324, r1 ; 0x800324 <heater+0x4>
  841. 61e: e0 cf rjmp .-64 ; 0x5e0 <MAX_ReadData+0xea>
  842. 00000620 <CalculateTemp>:
  843. heater[CH0].tcouple = heater[CH1].tcouple++;
  844. }
  845. }
  846. int16_t CalculateTemp(uint16_t data, uint8_t ch)
  847. {
  848. 620: 2f 92 push r2
  849. 622: 3f 92 push r3
  850. 624: 4f 92 push r4
  851. 626: 5f 92 push r5
  852. 628: 6f 92 push r6
  853. 62a: 7f 92 push r7
  854. 62c: 8f 92 push r8
  855. 62e: 9f 92 push r9
  856. 630: af 92 push r10
  857. 632: bf 92 push r11
  858. 634: cf 92 push r12
  859. 636: df 92 push r13
  860. 638: ef 92 push r14
  861. 63a: ff 92 push r15
  862. 63c: 0f 93 push r16
  863. 63e: 1f 93 push r17
  864. 640: cf 93 push r28
  865. 642: df 93 push r29
  866. if(data > preset[ch].curve[0].adcdata)
  867. 644: 26 2f mov r18, r22
  868. 646: 30 e0 ldi r19, 0x00 ; 0
  869. 648: 40 e5 ldi r20, 0x50 ; 80
  870. 64a: 64 9f mul r22, r20
  871. 64c: f0 01 movw r30, r0
  872. 64e: 11 24 eor r1, r1
  873. 650: ea 5b subi r30, 0xBA ; 186
  874. 652: fc 4f sbci r31, 0xFC ; 252
  875. 654: 02 89 ldd r16, Z+18 ; 0x12
  876. 656: 13 89 ldd r17, Z+19 ; 0x13
  877. 658: 08 17 cp r16, r24
  878. 65a: 19 07 cpc r17, r25
  879. 65c: 80 f1 brcs .+96 ; 0x6be <CalculateTemp+0x9e>
  880. return 0;
  881. if(data < preset[ch].curve[15].adcdata)
  882. 65e: e2 5b subi r30, 0xB2 ; 178
  883. 660: ff 4f sbci r31, 0xFF ; 255
  884. 662: 40 81 ld r20, Z
  885. 664: 51 81 ldd r21, Z+1 ; 0x01
  886. 666: 84 17 cp r24, r20
  887. 668: 95 07 cpc r25, r21
  888. 66a: a8 f4 brcc .+42 ; 0x696 <CalculateTemp+0x76>
  889. return 150;
  890. 66c: 86 e9 ldi r24, 0x96 ; 150
  891. 66e: 90 e0 ldi r25, 0x00 ; 0
  892. return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
  893. preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data);
  894. }
  895. }
  896. return (-1);
  897. }
  898. 670: df 91 pop r29
  899. 672: cf 91 pop r28
  900. 674: 1f 91 pop r17
  901. 676: 0f 91 pop r16
  902. 678: ff 90 pop r15
  903. 67a: ef 90 pop r14
  904. 67c: df 90 pop r13
  905. 67e: cf 90 pop r12
  906. 680: bf 90 pop r11
  907. 682: af 90 pop r10
  908. 684: 9f 90 pop r9
  909. 686: 8f 90 pop r8
  910. 688: 7f 90 pop r7
  911. 68a: 6f 90 pop r6
  912. 68c: 5f 90 pop r5
  913. 68e: 4f 90 pop r4
  914. 690: 3f 90 pop r3
  915. 692: 2f 90 pop r2
  916. 694: 08 95 ret
  917. 696: 40 e5 ldi r20, 0x50 ; 80
  918. 698: 64 9f mul r22, r20
  919. 69a: f0 01 movw r30, r0
  920. 69c: 11 24 eor r1, r1
  921. 69e: e4 5a subi r30, 0xA4 ; 164
  922. 6a0: fc 4f sbci r31, 0xFC ; 252
  923. int16_t CalculateTemp(uint16_t data, uint8_t ch)
  924. {
  925. if(data > preset[ch].curve[0].adcdata)
  926. return 0;
  927. if(data < preset[ch].curve[15].adcdata)
  928. 6a2: c0 e0 ldi r28, 0x00 ; 0
  929. 6a4: 03 c0 rjmp .+6 ; 0x6ac <CalculateTemp+0x8c>
  930. 6a6: 00 81 ld r16, Z
  931. 6a8: 11 81 ldd r17, Z+1 ; 0x01
  932. 6aa: 34 96 adiw r30, 0x04 ; 4
  933. return 150;
  934. for(uint8_t i = 0; i < 16; i++)
  935. {
  936. if(data >= preset[ch].curve[i].adcdata)
  937. 6ac: 80 17 cp r24, r16
  938. 6ae: 91 07 cpc r25, r17
  939. 6b0: 48 f4 brcc .+18 ; 0x6c4 <CalculateTemp+0xa4>
  940. return 0;
  941. if(data < preset[ch].curve[15].adcdata)
  942. return 150;
  943. for(uint8_t i = 0; i < 16; i++)
  944. 6b2: cf 5f subi r28, 0xFF ; 255
  945. 6b4: c0 31 cpi r28, 0x10 ; 16
  946. 6b6: b9 f7 brne .-18 ; 0x6a6 <CalculateTemp+0x86>
  947. {
  948. return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
  949. preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data);
  950. }
  951. }
  952. return (-1);
  953. 6b8: 8f ef ldi r24, 0xFF ; 255
  954. 6ba: 9f ef ldi r25, 0xFF ; 255
  955. 6bc: d9 cf rjmp .-78 ; 0x670 <CalculateTemp+0x50>
  956. }
  957. int16_t CalculateTemp(uint16_t data, uint8_t ch)
  958. {
  959. if(data > preset[ch].curve[0].adcdata)
  960. return 0;
  961. 6be: 80 e0 ldi r24, 0x00 ; 0
  962. 6c0: 90 e0 ldi r25, 0x00 ; 0
  963. 6c2: d6 cf rjmp .-84 ; 0x670 <CalculateTemp+0x50>
  964. 6c4: 1c 01 movw r2, r24
  965. if(data < preset[ch].curve[15].adcdata)
  966. return 150;
  967. for(uint8_t i = 0; i < 16; i++)
  968. {
  969. if(data >= preset[ch].curve[i].adcdata)
  970. 6c6: d0 e0 ldi r29, 0x00 ; 0
  971. {
  972. return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
  973. preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data);
  974. 6c8: 7e 01 movw r14, r28
  975. 6ca: 81 e0 ldi r24, 0x01 ; 1
  976. 6cc: e8 1a sub r14, r24
  977. 6ce: f1 08 sbc r15, r1
  978. 6d0: 84 e1 ldi r24, 0x14 ; 20
  979. 6d2: 82 9f mul r24, r18
  980. 6d4: 60 01 movw r12, r0
  981. 6d6: 83 9f mul r24, r19
  982. 6d8: d0 0c add r13, r0
  983. 6da: 11 24 eor r1, r1
  984. 6dc: ec 0c add r14, r12
  985. 6de: fd 1c adc r15, r13
  986. 6e0: f7 01 movw r30, r14
  987. 6e2: ee 0f add r30, r30
  988. 6e4: ff 1f adc r31, r31
  989. 6e6: ee 0f add r30, r30
  990. 6e8: ff 1f adc r31, r31
  991. 6ea: ea 5a subi r30, 0xAA ; 170
  992. 6ec: fc 4f sbci r31, 0xFC ; 252
  993. for(uint8_t i = 0; i < 16; i++)
  994. {
  995. if(data >= preset[ch].curve[i].adcdata)
  996. {
  997. return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
  998. 6ee: 60 81 ld r22, Z
  999. 6f0: 71 81 ldd r23, Z+1 ; 0x01
  1000. 6f2: 80 e0 ldi r24, 0x00 ; 0
  1001. 6f4: 90 e0 ldi r25, 0x00 ; 0
  1002. 6f6: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  1003. 6fa: 4b 01 movw r8, r22
  1004. 6fc: 5c 01 movw r10, r24
  1005. 6fe: f7 01 movw r30, r14
  1006. 700: ee 0f add r30, r30
  1007. 702: ff 1f adc r31, r31
  1008. 704: ee 0f add r30, r30
  1009. 706: ff 1f adc r31, r31
  1010. 708: ea 5b subi r30, 0xBA ; 186
  1011. 70a: fc 4f sbci r31, 0xFC ; 252
  1012. 70c: 62 89 ldd r22, Z+18 ; 0x12
  1013. 70e: 73 89 ldd r23, Z+19 ; 0x13
  1014. 710: 80 e0 ldi r24, 0x00 ; 0
  1015. 712: 90 e0 ldi r25, 0x00 ; 0
  1016. 714: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  1017. 718: 2b 01 movw r4, r22
  1018. 71a: 3c 01 movw r6, r24
  1019. preset[ch].curve[i - 1].temp, preset[ch].curve[i].temp, data);
  1020. 71c: cc 0d add r28, r12
  1021. 71e: dd 1d adc r29, r13
  1022. 720: cc 0f add r28, r28
  1023. 722: dd 1f adc r29, r29
  1024. 724: cc 0f add r28, r28
  1025. 726: dd 1f adc r29, r29
  1026. 728: ca 5a subi r28, 0xAA ; 170
  1027. 72a: dc 4f sbci r29, 0xFC ; 252
  1028. for(uint8_t i = 0; i < 16; i++)
  1029. {
  1030. if(data >= preset[ch].curve[i].adcdata)
  1031. {
  1032. return Approx(preset[ch].curve[i - 1].adcdata, preset[ch].curve[i].adcdata,
  1033. 72c: 68 81 ld r22, Y
  1034. 72e: 79 81 ldd r23, Y+1 ; 0x01
  1035. 730: 80 e0 ldi r24, 0x00 ; 0
  1036. 732: 90 e0 ldi r25, 0x00 ; 0
  1037. 734: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  1038. 738: a5 01 movw r20, r10
  1039. 73a: 94 01 movw r18, r8
  1040. 73c: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  1041. 740: 6b 01 movw r12, r22
  1042. 742: 7c 01 movw r14, r24
  1043. 744: b1 01 movw r22, r2
  1044. 746: 80 e0 ldi r24, 0x00 ; 0
  1045. 748: 90 e0 ldi r25, 0x00 ; 0
  1046. 74a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  1047. 74e: a3 01 movw r20, r6
  1048. 750: 92 01 movw r18, r4
  1049. 752: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  1050. 756: 9b 01 movw r18, r22
  1051. 758: ac 01 movw r20, r24
  1052. 75a: c7 01 movw r24, r14
  1053. 75c: b6 01 movw r22, r12
  1054. 75e: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
  1055. 762: 6b 01 movw r12, r22
  1056. 764: 7c 01 movw r14, r24
  1057. 766: b8 01 movw r22, r16
  1058. 768: 80 e0 ldi r24, 0x00 ; 0
  1059. 76a: 90 e0 ldi r25, 0x00 ; 0
  1060. 76c: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  1061. 770: a3 01 movw r20, r6
  1062. 772: 92 01 movw r18, r4
  1063. 774: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  1064. 778: 9b 01 movw r18, r22
  1065. 77a: ac 01 movw r20, r24
  1066. 77c: c7 01 movw r24, r14
  1067. 77e: b6 01 movw r22, r12
  1068. 780: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
  1069. 784: a5 01 movw r20, r10
  1070. 786: 94 01 movw r18, r8
  1071. 788: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
  1072. 78c: 0e 94 24 16 call 0x2c48 ; 0x2c48 <__fixsfsi>
  1073. 790: cb 01 movw r24, r22
  1074. 792: 6e cf rjmp .-292 ; 0x670 <CalculateTemp+0x50>
  1075. 00000794 <TMeasure>:
  1076. }
  1077. return (-1);
  1078. }
  1079. int16_t TMeasure(uint8_t ch)
  1080. {
  1081. 794: cf 93 push r28
  1082. 796: df 93 push r29
  1083. 798: e8 2f mov r30, r24
  1084. uint16_t addata = 0;
  1085. uint16_t avg_data = 0;
  1086. uint8_t i = 0;
  1087. ADMUX = (ADMUX & 0xF8) | (ch & 0x01);
  1088. 79a: 80 91 7c 00 lds r24, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
  1089. 79e: 98 2f mov r25, r24
  1090. 7a0: 98 7f andi r25, 0xF8 ; 248
  1091. 7a2: 8e 2f mov r24, r30
  1092. 7a4: 81 70 andi r24, 0x01 ; 1
  1093. 7a6: 89 2b or r24, r25
  1094. 7a8: 80 93 7c 00 sts 0x007C, r24 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
  1095. #else
  1096. //round up by default
  1097. __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
  1098. #endif
  1099. __builtin_avr_delay_cycles(__ticks_dc);
  1100. 7ac: 8b e2 ldi r24, 0x2B ; 43
  1101. 7ae: 91 e0 ldi r25, 0x01 ; 1
  1102. 7b0: 01 97 sbiw r24, 0x01 ; 1
  1103. 7b2: f1 f7 brne .-4 ; 0x7b0 <TMeasure+0x1c>
  1104. 7b4: 00 c0 rjmp .+0 ; 0x7b6 <TMeasure+0x22>
  1105. 7b6: 00 00 nop
  1106. 7b8: 3a e0 ldi r19, 0x0A ; 10
  1107. _delay_us(100);
  1108. avg_data = 0;
  1109. 7ba: 40 e0 ldi r20, 0x00 ; 0
  1110. 7bc: 50 e0 ldi r21, 0x00 ; 0
  1111. for(i = 0; i < 10; i++)
  1112. {
  1113. ADCSRA |= (1 << ADSC);
  1114. 7be: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1115. 7c2: 80 64 ori r24, 0x40 ; 64
  1116. 7c4: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1117. while(!(ADCSRA & (1 << ADIF)));
  1118. 7c8: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1119. 7cc: 84 ff sbrs r24, 4
  1120. 7ce: fc cf rjmp .-8 ; 0x7c8 <TMeasure+0x34>
  1121. addata = ADCL;
  1122. 7d0: 80 91 78 00 lds r24, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078>
  1123. addata |= ((uint16_t)ADCH) << 8;
  1124. 7d4: 20 91 79 00 lds r18, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079>
  1125. avg_data += addata;
  1126. 7d8: 90 e0 ldi r25, 0x00 ; 0
  1127. 7da: 92 2b or r25, r18
  1128. 7dc: 48 0f add r20, r24
  1129. 7de: 59 1f adc r21, r25
  1130. 7e0: 31 50 subi r19, 0x01 ; 1
  1131. uint8_t i = 0;
  1132. ADMUX = (ADMUX & 0xF8) | (ch & 0x01);
  1133. _delay_us(100);
  1134. avg_data = 0;
  1135. for(i = 0; i < 10; i++)
  1136. 7e2: 69 f7 brne .-38 ; 0x7be <TMeasure+0x2a>
  1137. while(!(ADCSRA & (1 << ADIF)));
  1138. addata = ADCL;
  1139. addata |= ((uint16_t)ADCH) << 8;
  1140. avg_data += addata;
  1141. }
  1142. addata = avg_data / 10;
  1143. 7e4: 9a 01 movw r18, r20
  1144. 7e6: ad ec ldi r26, 0xCD ; 205
  1145. 7e8: bc ec ldi r27, 0xCC ; 204
  1146. 7ea: 0e 94 e5 1a call 0x35ca ; 0x35ca <__umulhisi3>
  1147. 7ee: 96 95 lsr r25
  1148. 7f0: 87 95 ror r24
  1149. 7f2: 96 95 lsr r25
  1150. 7f4: 87 95 ror r24
  1151. 7f6: 96 95 lsr r25
  1152. 7f8: 87 95 ror r24
  1153. heater[ch].tmeas_raw = addata;
  1154. 7fa: 23 e1 ldi r18, 0x13 ; 19
  1155. 7fc: e2 9f mul r30, r18
  1156. 7fe: e0 01 movw r28, r0
  1157. 800: 11 24 eor r1, r1
  1158. 802: c0 5e subi r28, 0xE0 ; 224
  1159. 804: dc 4f sbci r29, 0xFC ; 252
  1160. 806: 99 87 std Y+9, r25 ; 0x09
  1161. 808: 88 87 std Y+8, r24 ; 0x08
  1162. heater[ch].tmeas = CalculateTemp(addata, ch);
  1163. 80a: 6e 2f mov r22, r30
  1164. 80c: 09 df rcall .-494 ; 0x620 <CalculateTemp>
  1165. 80e: 9f 83 std Y+7, r25 ; 0x07
  1166. 810: 8e 83 std Y+6, r24 ; 0x06
  1167. return (heater[ch].tmeas);
  1168. }
  1169. 812: df 91 pop r29
  1170. 814: cf 91 pop r28
  1171. 816: 08 95 ret
  1172. 00000818 <CurrMeasure>:
  1173. uint16_t CurrMeasure(uint8_t ch)
  1174. {
  1175. 818: cf 93 push r28
  1176. 81a: c8 2f mov r28, r24
  1177. uint16_t addata = 0;
  1178. ADMUX = (ADMUX & 0xF8) | (ADC_CUR1 + (ch & 0x01));
  1179. 81c: 80 91 7c 00 lds r24, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
  1180. 820: 9c 2f mov r25, r28
  1181. 822: 91 70 andi r25, 0x01 ; 1
  1182. 824: 9e 5f subi r25, 0xFE ; 254
  1183. 826: 88 7f andi r24, 0xF8 ; 248
  1184. 828: 89 2b or r24, r25
  1185. 82a: 80 93 7c 00 sts 0x007C, r24 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
  1186. 82e: 8b e2 ldi r24, 0x2B ; 43
  1187. 830: 91 e0 ldi r25, 0x01 ; 1
  1188. 832: 01 97 sbiw r24, 0x01 ; 1
  1189. 834: f1 f7 brne .-4 ; 0x832 <CurrMeasure+0x1a>
  1190. 836: 00 c0 rjmp .+0 ; 0x838 <CurrMeasure+0x20>
  1191. 838: 00 00 nop
  1192. _delay_us(100);
  1193. ADCSRA |= (1 << ADSC);
  1194. 83a: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1195. 83e: 80 64 ori r24, 0x40 ; 64
  1196. 840: 80 93 7a 00 sts 0x007A, r24 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1197. while(!(ADCSRA & (1 << ADIF)));
  1198. 844: 80 91 7a 00 lds r24, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1199. 848: 84 ff sbrs r24, 4
  1200. 84a: fc cf rjmp .-8 ; 0x844 <CurrMeasure+0x2c>
  1201. addata = ADCL;
  1202. 84c: 60 91 78 00 lds r22, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078>
  1203. addata |= ((uint16_t)ADCH) << 8;
  1204. 850: 80 91 79 00 lds r24, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079>
  1205. heater[ch].current = ((float)addata * 2.4);
  1206. 854: 70 e0 ldi r23, 0x00 ; 0
  1207. 856: 78 2b or r23, r24
  1208. 858: 80 e0 ldi r24, 0x00 ; 0
  1209. 85a: 90 e0 ldi r25, 0x00 ; 0
  1210. 85c: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  1211. 860: 2a e9 ldi r18, 0x9A ; 154
  1212. 862: 39 e9 ldi r19, 0x99 ; 153
  1213. 864: 49 e1 ldi r20, 0x19 ; 25
  1214. 866: 50 e4 ldi r21, 0x40 ; 64
  1215. 868: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
  1216. 86c: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi>
  1217. 870: 23 e1 ldi r18, 0x13 ; 19
  1218. 872: c2 9f mul r28, r18
  1219. 874: f0 01 movw r30, r0
  1220. 876: 11 24 eor r1, r1
  1221. 878: e0 5e subi r30, 0xE0 ; 224
  1222. 87a: fc 4f sbci r31, 0xFC ; 252
  1223. 87c: 77 87 std Z+15, r23 ; 0x0f
  1224. 87e: 66 87 std Z+14, r22 ; 0x0e
  1225. return (heater[ch].current);
  1226. }
  1227. 880: cb 01 movw r24, r22
  1228. 882: cf 91 pop r28
  1229. 884: 08 95 ret
  1230. 00000886 <TransmitPresets>:
  1231. return 0;
  1232. }
  1233. int uart_putchar(char c, FILE *stream)
  1234. {
  1235. cli();
  1236. 886: f8 94 cli
  1237. if(!FIFO_IS_FULL(fifo0))
  1238. 888: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  1239. 88c: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  1240. 890: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  1241. 894: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  1242. 898: ac 01 movw r20, r24
  1243. 89a: 42 1b sub r20, r18
  1244. 89c: 53 0b sbc r21, r19
  1245. 89e: 9a 01 movw r18, r20
  1246. 8a0: 21 15 cp r18, r1
  1247. 8a2: 32 40 sbci r19, 0x02 ; 2
  1248. 8a4: 81 f0 breq .+32 ; 0x8c6 <TransmitPresets+0x40>
  1249. {
  1250. FIFO_PUSH(fifo0, c);
  1251. 8a6: fc 01 movw r30, r24
  1252. 8a8: f1 70 andi r31, 0x01 ; 1
  1253. 8aa: ea 51 subi r30, 0x1A ; 26
  1254. 8ac: fc 4f sbci r31, 0xFC ; 252
  1255. 8ae: 25 e5 ldi r18, 0x55 ; 85
  1256. 8b0: 20 83 st Z, r18
  1257. 8b2: 01 96 adiw r24, 0x01 ; 1
  1258. 8b4: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
  1259. 8b8: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
  1260. UCSR0B |= (1 << UDRIE0);
  1261. 8bc: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1262. 8c0: 80 62 ori r24, 0x20 ; 32
  1263. 8c2: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1264. }
  1265. sei();
  1266. 8c6: 78 94 sei
  1267. return 0;
  1268. }
  1269. int uart_putchar(char c, FILE *stream)
  1270. {
  1271. cli();
  1272. 8c8: f8 94 cli
  1273. if(!FIFO_IS_FULL(fifo0))
  1274. 8ca: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  1275. 8ce: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  1276. 8d2: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  1277. 8d6: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  1278. 8da: bc 01 movw r22, r24
  1279. 8dc: 62 1b sub r22, r18
  1280. 8de: 73 0b sbc r23, r19
  1281. 8e0: 9b 01 movw r18, r22
  1282. 8e2: 21 15 cp r18, r1
  1283. 8e4: 32 40 sbci r19, 0x02 ; 2
  1284. 8e6: 81 f0 breq .+32 ; 0x908 <TransmitPresets+0x82>
  1285. {
  1286. FIFO_PUSH(fifo0, c);
  1287. 8e8: fc 01 movw r30, r24
  1288. 8ea: f1 70 andi r31, 0x01 ; 1
  1289. 8ec: ea 51 subi r30, 0x1A ; 26
  1290. 8ee: fc 4f sbci r31, 0xFC ; 252
  1291. 8f0: 25 e4 ldi r18, 0x45 ; 69
  1292. 8f2: 20 83 st Z, r18
  1293. 8f4: 01 96 adiw r24, 0x01 ; 1
  1294. 8f6: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
  1295. 8fa: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
  1296. UCSR0B |= (1 << UDRIE0);
  1297. 8fe: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1298. 902: 80 62 ori r24, 0x20 ; 32
  1299. 904: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1300. }
  1301. sei();
  1302. 908: 78 94 sei
  1303. return 0;
  1304. }
  1305. int uart_putchar(char c, FILE *stream)
  1306. {
  1307. cli();
  1308. 90a: f8 94 cli
  1309. if(!FIFO_IS_FULL(fifo0))
  1310. 90c: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  1311. 910: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  1312. 914: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  1313. 918: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  1314. 91c: fc 01 movw r30, r24
  1315. 91e: e2 1b sub r30, r18
  1316. 920: f3 0b sbc r31, r19
  1317. 922: 9f 01 movw r18, r30
  1318. 924: 21 15 cp r18, r1
  1319. 926: 32 40 sbci r19, 0x02 ; 2
  1320. 928: 81 f0 breq .+32 ; 0x94a <TransmitPresets+0xc4>
  1321. {
  1322. FIFO_PUSH(fifo0, c);
  1323. 92a: fc 01 movw r30, r24
  1324. 92c: f1 70 andi r31, 0x01 ; 1
  1325. 92e: ea 51 subi r30, 0x1A ; 26
  1326. 930: fc 4f sbci r31, 0xFC ; 252
  1327. 932: 25 e8 ldi r18, 0x85 ; 133
  1328. 934: 20 83 st Z, r18
  1329. 936: 01 96 adiw r24, 0x01 ; 1
  1330. 938: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
  1331. 93c: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
  1332. UCSR0B |= (1 << UDRIE0);
  1333. 940: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1334. 944: 80 62 ori r24, 0x20 ; 32
  1335. 946: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1336. }
  1337. sei();
  1338. 94a: 78 94 sei
  1339. 94c: ad e3 ldi r26, 0x3D ; 61
  1340. 94e: b0 e0 ldi r27, 0x00 ; 0
  1341. return 0;
  1342. }
  1343. void TransmitPresets()
  1344. {
  1345. uint8_t checksum = 0x1F;
  1346. 950: 5f e1 ldi r21, 0x1F ; 31
  1347. 952: 9d 01 movw r18, r26
  1348. 954: 2d 50 subi r18, 0x0D ; 13
  1349. 956: 31 09 sbc r19, r1
  1350. for(uint8_t pn = 0; pn < 25; pn++)
  1351. {
  1352. for(uint8_t offs = 0; offs < 13; offs++)
  1353. {
  1354. EEAR = 0x30 + (pn * sizeof(preset_str)) + offs;
  1355. 958: 32 bd out 0x22, r19 ; 34
  1356. 95a: 21 bd out 0x21, r18 ; 33
  1357. EECR |= (1 << EERE);
  1358. 95c: f8 9a sbi 0x1f, 0 ; 31
  1359. uint8_t data = EEDR;
  1360. 95e: 40 b5 in r20, 0x20 ; 32
  1361. return 0;
  1362. }
  1363. int uart_putchar(char c, FILE *stream)
  1364. {
  1365. cli();
  1366. 960: f8 94 cli
  1367. if(!FIFO_IS_FULL(fifo0))
  1368. 962: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  1369. 966: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  1370. 96a: 60 91 e6 05 lds r22, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  1371. 96e: 70 91 e7 05 lds r23, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  1372. 972: fc 01 movw r30, r24
  1373. 974: e6 1b sub r30, r22
  1374. 976: f7 0b sbc r31, r23
  1375. 978: bf 01 movw r22, r30
  1376. 97a: 61 15 cp r22, r1
  1377. 97c: 72 40 sbci r23, 0x02 ; 2
  1378. 97e: 79 f0 breq .+30 ; 0x99e <TransmitPresets+0x118>
  1379. {
  1380. FIFO_PUSH(fifo0, c);
  1381. 980: fc 01 movw r30, r24
  1382. 982: f1 70 andi r31, 0x01 ; 1
  1383. 984: ea 51 subi r30, 0x1A ; 26
  1384. 986: fc 4f sbci r31, 0xFC ; 252
  1385. 988: 40 83 st Z, r20
  1386. 98a: 01 96 adiw r24, 0x01 ; 1
  1387. 98c: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
  1388. 990: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
  1389. UCSR0B |= (1 << UDRIE0);
  1390. 994: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1391. 998: 80 62 ori r24, 0x20 ; 32
  1392. 99a: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1393. }
  1394. sei();
  1395. 99e: 78 94 sei
  1396. {
  1397. EEAR = 0x30 + (pn * sizeof(preset_str)) + offs;
  1398. EECR |= (1 << EERE);
  1399. uint8_t data = EEDR;
  1400. uart_putchar(data, NULL);
  1401. checksum += data;
  1402. 9a0: 54 0f add r21, r20
  1403. 9a2: 2f 5f subi r18, 0xFF ; 255
  1404. 9a4: 3f 4f sbci r19, 0xFF ; 255
  1405. uart_putchar(0x45, NULL);
  1406. uart_putchar(0x85, NULL);
  1407. for(uint8_t pn = 0; pn < 25; pn++)
  1408. {
  1409. for(uint8_t offs = 0; offs < 13; offs++)
  1410. 9a6: 2a 17 cp r18, r26
  1411. 9a8: 3b 07 cpc r19, r27
  1412. 9aa: b1 f6 brne .-84 ; 0x958 <TransmitPresets+0xd2>
  1413. 9ac: d9 01 movw r26, r18
  1414. 9ae: a0 5b subi r26, 0xB0 ; 176
  1415. 9b0: bf 4f sbci r27, 0xFF ; 255
  1416. uart_putchar(0x55, NULL);
  1417. // fprintf(&uart_stdout, "BEG");
  1418. uart_putchar(0x45, NULL);
  1419. uart_putchar(0x85, NULL);
  1420. for(uint8_t pn = 0; pn < 25; pn++)
  1421. 9b2: ad 30 cpi r26, 0x0D ; 13
  1422. 9b4: 48 e0 ldi r20, 0x08 ; 8
  1423. 9b6: b4 07 cpc r27, r20
  1424. 9b8: 61 f6 brne .-104 ; 0x952 <TransmitPresets+0xcc>
  1425. return 0;
  1426. }
  1427. int uart_putchar(char c, FILE *stream)
  1428. {
  1429. cli();
  1430. 9ba: f8 94 cli
  1431. if(!FIFO_IS_FULL(fifo0))
  1432. 9bc: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  1433. 9c0: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  1434. 9c4: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  1435. 9c8: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  1436. 9cc: bc 01 movw r22, r24
  1437. 9ce: 62 1b sub r22, r18
  1438. 9d0: 73 0b sbc r23, r19
  1439. 9d2: 9b 01 movw r18, r22
  1440. 9d4: 21 15 cp r18, r1
  1441. 9d6: 32 40 sbci r19, 0x02 ; 2
  1442. 9d8: 79 f0 breq .+30 ; 0x9f8 <TransmitPresets+0x172>
  1443. {
  1444. FIFO_PUSH(fifo0, c);
  1445. 9da: fc 01 movw r30, r24
  1446. 9dc: f1 70 andi r31, 0x01 ; 1
  1447. 9de: ea 51 subi r30, 0x1A ; 26
  1448. 9e0: fc 4f sbci r31, 0xFC ; 252
  1449. 9e2: 50 83 st Z, r21
  1450. 9e4: 01 96 adiw r24, 0x01 ; 1
  1451. 9e6: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
  1452. 9ea: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
  1453. UCSR0B |= (1 << UDRIE0);
  1454. 9ee: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1455. 9f2: 80 62 ori r24, 0x20 ; 32
  1456. 9f4: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1457. }
  1458. sei();
  1459. 9f8: 78 94 sei
  1460. uart_putchar(data, NULL);
  1461. checksum += data;
  1462. }
  1463. }
  1464. uart_putchar(checksum, NULL);
  1465. txrequest = 0;
  1466. 9fa: 10 92 f3 02 sts 0x02F3, r1 ; 0x8002f3 <txrequest>
  1467. 9fe: 08 95 ret
  1468. 00000a00 <Transmit>:
  1469. // fprintf(&uart_stdout, "END");
  1470. }
  1471. void Transmit()
  1472. {
  1473. a00: 0f 93 push r16
  1474. a02: 1f 93 push r17
  1475. a04: cf 93 push r28
  1476. a06: df 93 push r29
  1477. comdata_str *txdata = (comdata_str*)calloc(1, sizeof(comdata_str));
  1478. a08: 64 ea ldi r22, 0xA4 ; 164
  1479. a0a: 70 e0 ldi r23, 0x00 ; 0
  1480. a0c: 81 e0 ldi r24, 0x01 ; 1
  1481. a0e: 90 e0 ldi r25, 0x00 ; 0
  1482. a10: 0e 94 3f 1b call 0x367e ; 0x367e <calloc>
  1483. a14: ec 01 movw r28, r24
  1484. txdata->start = 0x55;
  1485. a16: 85 e5 ldi r24, 0x55 ; 85
  1486. a18: 88 83 st Y, r24
  1487. txdata->command = txrequest;
  1488. a1a: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 <txrequest>
  1489. a1e: 8a 83 std Y+2, r24 ; 0x02
  1490. switch((txreq_t)txrequest)
  1491. a20: 83 30 cpi r24, 0x03 ; 3
  1492. a22: 09 f4 brne .+2 ; 0xa26 <Transmit+0x26>
  1493. a24: 7e c0 rjmp .+252 ; 0xb22 <Transmit+0x122>
  1494. a26: 08 f4 brcc .+2 ; 0xa2a <Transmit+0x2a>
  1495. a28: 7a c0 rjmp .+244 ; 0xb1e <Transmit+0x11e>
  1496. a2a: 85 30 cpi r24, 0x05 ; 5
  1497. a2c: 09 f4 brne .+2 ; 0xa30 <Transmit+0x30>
  1498. a2e: 6f c0 rjmp .+222 ; 0xb0e <Transmit+0x10e>
  1499. a30: 86 30 cpi r24, 0x06 ; 6
  1500. a32: 51 f4 brne .+20 ; 0xa48 <Transmit+0x48>
  1501. TransmitPresets();
  1502. free(txdata);
  1503. return;
  1504. case REQ_PRESETDATA:
  1505. txdata->len = sizeof(preset);
  1506. a34: 80 ea ldi r24, 0xA0 ; 160
  1507. a36: 89 83 std Y+1, r24 ; 0x01
  1508. memcpy(txdata->data, preset, sizeof(preset));
  1509. a38: e6 e4 ldi r30, 0x46 ; 70
  1510. a3a: f3 e0 ldi r31, 0x03 ; 3
  1511. a3c: de 01 movw r26, r28
  1512. a3e: 13 96 adiw r26, 0x03 ; 3
  1513. a40: 01 90 ld r0, Z+
  1514. a42: 0d 92 st X+, r0
  1515. a44: 8a 95 dec r24
  1516. a46: e1 f7 brne .-8 ; 0xa40 <Transmit+0x40>
  1517. txrequest = 0;
  1518. // fprintf(&uart_stdout, "END");
  1519. }
  1520. void Transmit()
  1521. {
  1522. a48: 50 e0 ldi r21, 0x00 ; 0
  1523. a4a: 80 e0 ldi r24, 0x00 ; 0
  1524. a4c: 90 e0 ldi r25, 0x00 ; 0
  1525. a4e: 8e 01 movw r16, r28
  1526. a50: 0d 55 subi r16, 0x5D ; 93
  1527. a52: 1f 4f sbci r17, 0xFF ; 255
  1528. //fprintf(&uart_stdout, "BEG");
  1529. for(uint8_t i = 0; i < (txdata->len + 3); i++)
  1530. {
  1531. uart_putchar(((uint8_t*)txdata)[i], NULL);
  1532. a54: fe 01 movw r30, r28
  1533. a56: e8 0f add r30, r24
  1534. a58: f9 1f adc r31, r25
  1535. a5a: 40 81 ld r20, Z
  1536. return 0;
  1537. }
  1538. int uart_putchar(char c, FILE *stream)
  1539. {
  1540. cli();
  1541. a5c: f8 94 cli
  1542. if(!FIFO_IS_FULL(fifo0))
  1543. a5e: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  1544. a62: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  1545. a66: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  1546. a6a: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  1547. a6e: bc 01 movw r22, r24
  1548. a70: 62 1b sub r22, r18
  1549. a72: 73 0b sbc r23, r19
  1550. a74: 9b 01 movw r18, r22
  1551. a76: 21 15 cp r18, r1
  1552. a78: 32 40 sbci r19, 0x02 ; 2
  1553. a7a: 81 f0 breq .+32 ; 0xa9c <Transmit+0x9c>
  1554. {
  1555. FIFO_PUSH(fifo0, c);
  1556. a7c: 9c 01 movw r18, r24
  1557. a7e: 31 70 andi r19, 0x01 ; 1
  1558. a80: 2a 51 subi r18, 0x1A ; 26
  1559. a82: 3c 4f sbci r19, 0xFC ; 252
  1560. a84: d9 01 movw r26, r18
  1561. a86: 4c 93 st X, r20
  1562. a88: 01 96 adiw r24, 0x01 ; 1
  1563. a8a: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
  1564. a8e: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
  1565. UCSR0B |= (1 << UDRIE0);
  1566. a92: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1567. a96: 80 62 ori r24, 0x20 ; 32
  1568. a98: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1569. }
  1570. sei();
  1571. a9c: 78 94 sei
  1572. //fprintf(&uart_stdout, "BEG");
  1573. for(uint8_t i = 0; i < (txdata->len + 3); i++)
  1574. {
  1575. uart_putchar(((uint8_t*)txdata)[i], NULL);
  1576. txdata->checksum += ((uint8_t*)txdata)[i];
  1577. a9e: d8 01 movw r26, r16
  1578. aa0: 4c 91 ld r20, X
  1579. aa2: 80 81 ld r24, Z
  1580. aa4: 48 0f add r20, r24
  1581. aa6: 4c 93 st X, r20
  1582. break;
  1583. }
  1584. //fprintf(&uart_stdout, "BEG");
  1585. for(uint8_t i = 0; i < (txdata->len + 3); i++)
  1586. aa8: 5f 5f subi r21, 0xFF ; 255
  1587. aaa: 29 81 ldd r18, Y+1 ; 0x01
  1588. aac: 30 e0 ldi r19, 0x00 ; 0
  1589. aae: 2e 5f subi r18, 0xFE ; 254
  1590. ab0: 3f 4f sbci r19, 0xFF ; 255
  1591. ab2: 85 2f mov r24, r21
  1592. ab4: 90 e0 ldi r25, 0x00 ; 0
  1593. ab6: 28 17 cp r18, r24
  1594. ab8: 39 07 cpc r19, r25
  1595. aba: 64 f6 brge .-104 ; 0xa54 <Transmit+0x54>
  1596. return 0;
  1597. }
  1598. int uart_putchar(char c, FILE *stream)
  1599. {
  1600. cli();
  1601. abc: f8 94 cli
  1602. if(!FIFO_IS_FULL(fifo0))
  1603. abe: 80 91 e8 05 lds r24, 0x05E8 ; 0x8005e8 <fifo0+0x202>
  1604. ac2: 90 91 e9 05 lds r25, 0x05E9 ; 0x8005e9 <fifo0+0x203>
  1605. ac6: 20 91 e6 05 lds r18, 0x05E6 ; 0x8005e6 <fifo0+0x200>
  1606. aca: 30 91 e7 05 lds r19, 0x05E7 ; 0x8005e7 <fifo0+0x201>
  1607. ace: fc 01 movw r30, r24
  1608. ad0: e2 1b sub r30, r18
  1609. ad2: f3 0b sbc r31, r19
  1610. ad4: 9f 01 movw r18, r30
  1611. ad6: 21 15 cp r18, r1
  1612. ad8: 32 40 sbci r19, 0x02 ; 2
  1613. ada: 79 f0 breq .+30 ; 0xafa <Transmit+0xfa>
  1614. {
  1615. FIFO_PUSH(fifo0, c);
  1616. adc: fc 01 movw r30, r24
  1617. ade: f1 70 andi r31, 0x01 ; 1
  1618. ae0: ea 51 subi r30, 0x1A ; 26
  1619. ae2: fc 4f sbci r31, 0xFC ; 252
  1620. ae4: 40 83 st Z, r20
  1621. ae6: 01 96 adiw r24, 0x01 ; 1
  1622. ae8: 90 93 e9 05 sts 0x05E9, r25 ; 0x8005e9 <fifo0+0x203>
  1623. aec: 80 93 e8 05 sts 0x05E8, r24 ; 0x8005e8 <fifo0+0x202>
  1624. UCSR0B |= (1 << UDRIE0);
  1625. af0: 80 91 c1 00 lds r24, 0x00C1 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1626. af4: 80 62 ori r24, 0x20 ; 32
  1627. af6: 80 93 c1 00 sts 0x00C1, r24 ; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7e00c1>
  1628. }
  1629. sei();
  1630. afa: 78 94 sei
  1631. txdata->checksum += ((uint8_t*)txdata)[i];
  1632. }
  1633. uart_putchar(txdata->checksum, NULL);
  1634. //fprintf(&uart_stdout, "END");
  1635. txrequest = 0;
  1636. afc: 10 92 f3 02 sts 0x02F3, r1 ; 0x8002f3 <txrequest>
  1637. free(txdata);
  1638. b00: ce 01 movw r24, r28
  1639. }
  1640. b02: df 91 pop r29
  1641. b04: cf 91 pop r28
  1642. b06: 1f 91 pop r17
  1643. b08: 0f 91 pop r16
  1644. }
  1645. uart_putchar(txdata->checksum, NULL);
  1646. //fprintf(&uart_stdout, "END");
  1647. txrequest = 0;
  1648. free(txdata);
  1649. b0a: 0c 94 f1 1b jmp 0x37e2 ; 0x37e2 <free>
  1650. case REQ_DEBUGDATA:
  1651. break;
  1652. case REQ_PRESETTABLE:
  1653. TransmitPresets();
  1654. b0e: bb de rcall .-650 ; 0x886 <TransmitPresets>
  1655. }
  1656. uart_putchar(txdata->checksum, NULL);
  1657. //fprintf(&uart_stdout, "END");
  1658. txrequest = 0;
  1659. free(txdata);
  1660. b10: ce 01 movw r24, r28
  1661. }
  1662. b12: df 91 pop r29
  1663. b14: cf 91 pop r28
  1664. b16: 1f 91 pop r17
  1665. b18: 0f 91 pop r16
  1666. }
  1667. uart_putchar(txdata->checksum, NULL);
  1668. //fprintf(&uart_stdout, "END");
  1669. txrequest = 0;
  1670. free(txdata);
  1671. b1a: 0c 94 f1 1b jmp 0x37e2 ; 0x37e2 <free>
  1672. switch((txreq_t)txrequest)
  1673. {
  1674. case REQ_RST:
  1675. case REQ_ACK:
  1676. case REQ_NACK:
  1677. txdata->len = 0;
  1678. b1e: 19 82 std Y+1, r1 ; 0x01
  1679. break;
  1680. b20: 93 cf rjmp .-218 ; 0xa48 <Transmit+0x48>
  1681. case REQ_MAINDATA:
  1682. txdata->len = sizeof(heater);
  1683. b22: 86 e2 ldi r24, 0x26 ; 38
  1684. b24: 89 83 std Y+1, r24 ; 0x01
  1685. memcpy(txdata->data, heater, sizeof(heater));
  1686. b26: e0 e2 ldi r30, 0x20 ; 32
  1687. b28: f3 e0 ldi r31, 0x03 ; 3
  1688. b2a: de 01 movw r26, r28
  1689. b2c: 13 96 adiw r26, 0x03 ; 3
  1690. b2e: 01 90 ld r0, Z+
  1691. b30: 0d 92 st X+, r0
  1692. b32: 8a 95 dec r24
  1693. b34: e1 f7 brne .-8 ; 0xb2e <Transmit+0x12e>
  1694. break;
  1695. b36: 88 cf rjmp .-240 ; 0xa48 <Transmit+0x48>
  1696. 00000b38 <ResetMCU>:
  1697. free(txdata);
  1698. }
  1699. void ResetMCU(void)
  1700. {
  1701. cli();
  1702. b38: f8 94 cli
  1703. WDTCSR |= (1 << WDCE) | (1 << WDE);
  1704. b3a: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060>
  1705. b3e: 88 61 ori r24, 0x18 ; 24
  1706. b40: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <__TEXT_REGION_LENGTH__+0x7e0060>
  1707. b44: ff cf rjmp .-2 ; 0xb44 <ResetMCU+0xc>
  1708. 00000b46 <SwitchHeating>:
  1709. while(1);
  1710. }
  1711. void SwitchHeating(uint8_t ch, uint8_t onoff)
  1712. {
  1713. if(onoff)
  1714. b46: 61 11 cpse r22, r1
  1715. b48: 26 c0 rjmp .+76 ; 0xb96 <SwitchHeating+0x50>
  1716. LEDPORT |= (1 << (LED1 + (ch & 0x01)));
  1717. heater[ch].status.heating = 1;
  1718. }
  1719. else
  1720. {
  1721. GATEPORT |= (1 << (GATE1 + (ch & 0x01)));
  1722. b4a: 98 b1 in r25, 0x08 ; 8
  1723. b4c: 48 2f mov r20, r24
  1724. b4e: 41 70 andi r20, 0x01 ; 1
  1725. b50: 50 e0 ldi r21, 0x00 ; 0
  1726. b52: ba 01 movw r22, r20
  1727. b54: 6a 5f subi r22, 0xFA ; 250
  1728. b56: 7f 4f sbci r23, 0xFF ; 255
  1729. b58: 21 e0 ldi r18, 0x01 ; 1
  1730. b5a: 30 e0 ldi r19, 0x00 ; 0
  1731. b5c: f9 01 movw r30, r18
  1732. b5e: 02 c0 rjmp .+4 ; 0xb64 <SwitchHeating+0x1e>
  1733. b60: ee 0f add r30, r30
  1734. b62: ff 1f adc r31, r31
  1735. b64: 6a 95 dec r22
  1736. b66: e2 f7 brpl .-8 ; 0xb60 <SwitchHeating+0x1a>
  1737. b68: bf 01 movw r22, r30
  1738. b6a: 69 2b or r22, r25
  1739. b6c: 68 b9 out 0x08, r22 ; 8
  1740. LEDPORT &= ~(1 << (LED1 + (ch & 0x01)));
  1741. b6e: 98 b1 in r25, 0x08 ; 8
  1742. b70: 4e 5f subi r20, 0xFE ; 254
  1743. b72: 5f 4f sbci r21, 0xFF ; 255
  1744. b74: 01 c0 rjmp .+2 ; 0xb78 <SwitchHeating+0x32>
  1745. b76: 22 0f add r18, r18
  1746. b78: 4a 95 dec r20
  1747. b7a: ea f7 brpl .-6 ; 0xb76 <SwitchHeating+0x30>
  1748. b7c: 20 95 com r18
  1749. b7e: 29 23 and r18, r25
  1750. b80: 28 b9 out 0x08, r18 ; 8
  1751. heater[ch].status.heating = 0;
  1752. b82: 93 e1 ldi r25, 0x13 ; 19
  1753. b84: 89 9f mul r24, r25
  1754. b86: f0 01 movw r30, r0
  1755. b88: 11 24 eor r1, r1
  1756. b8a: e0 5e subi r30, 0xE0 ; 224
  1757. b8c: fc 4f sbci r31, 0xFC ; 252
  1758. b8e: 80 81 ld r24, Z
  1759. b90: 8b 7f andi r24, 0xFB ; 251
  1760. b92: 80 83 st Z, r24
  1761. b94: 08 95 ret
  1762. b96: 4b cb rjmp .-2410 ; 0x22e <SwitchHeating.part.0>
  1763. 00000b98 <VoltageMeasure>:
  1764. }
  1765. }
  1766. float VoltageMeasure(uint8_t ch)
  1767. {
  1768. b98: cf 92 push r12
  1769. b9a: df 92 push r13
  1770. b9c: ef 92 push r14
  1771. b9e: ff 92 push r15
  1772. ba0: cf 93 push r28
  1773. ba2: df 93 push r29
  1774. uint16_t addata = 0;
  1775. float voltage = 0.0;
  1776. ADMUX = (ADMUX & 0xF8) | (ch & 0x01);
  1777. ba4: 90 91 7c 00 lds r25, 0x007C ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
  1778. ba8: 98 7f andi r25, 0xF8 ; 248
  1779. baa: 28 2f mov r18, r24
  1780. bac: 21 70 andi r18, 0x01 ; 1
  1781. bae: 92 2b or r25, r18
  1782. bb0: 90 93 7c 00 sts 0x007C, r25 ; 0x80007c <__TEXT_REGION_LENGTH__+0x7e007c>
  1783. bb4: eb e2 ldi r30, 0x2B ; 43
  1784. bb6: f1 e0 ldi r31, 0x01 ; 1
  1785. bb8: 31 97 sbiw r30, 0x01 ; 1
  1786. bba: f1 f7 brne .-4 ; 0xbb8 <VoltageMeasure+0x20>
  1787. bbc: 00 c0 rjmp .+0 ; 0xbbe <VoltageMeasure+0x26>
  1788. bbe: 00 00 nop
  1789. _delay_us(100);
  1790. ADCSRA |= (1 << ADSC);
  1791. bc0: 90 91 7a 00 lds r25, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1792. bc4: 90 64 ori r25, 0x40 ; 64
  1793. bc6: 90 93 7a 00 sts 0x007A, r25 ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1794. while(!(ADCSRA & (1 << ADIF)));
  1795. bca: 90 91 7a 00 lds r25, 0x007A ; 0x80007a <__TEXT_REGION_LENGTH__+0x7e007a>
  1796. bce: 94 ff sbrs r25, 4
  1797. bd0: fc cf rjmp .-8 ; 0xbca <VoltageMeasure+0x32>
  1798. addata = ADCL;
  1799. bd2: 60 91 78 00 lds r22, 0x0078 ; 0x800078 <__TEXT_REGION_LENGTH__+0x7e0078>
  1800. addata |= ((uint16_t)ADCH) << 8;
  1801. bd6: 90 91 79 00 lds r25, 0x0079 ; 0x800079 <__TEXT_REGION_LENGTH__+0x7e0079>
  1802. voltage = (float)addata * 0.0025;
  1803. voltage = (voltage / (0.758 * opamp[ch].gain)) + opamp[ch].shift;
  1804. bda: c8 2f mov r28, r24
  1805. bdc: d0 e0 ldi r29, 0x00 ; 0
  1806. bde: 70 e0 ldi r23, 0x00 ; 0
  1807. be0: 79 2b or r23, r25
  1808. be2: 80 e0 ldi r24, 0x00 ; 0
  1809. be4: 90 e0 ldi r25, 0x00 ; 0
  1810. be6: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  1811. bea: 2a e0 ldi r18, 0x0A ; 10
  1812. bec: 37 ed ldi r19, 0xD7 ; 215
  1813. bee: 43 e2 ldi r20, 0x23 ; 35
  1814. bf0: 5b e3 ldi r21, 0x3B ; 59
  1815. bf2: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
  1816. bf6: 6b 01 movw r12, r22
  1817. bf8: 7c 01 movw r14, r24
  1818. bfa: 2d e0 ldi r18, 0x0D ; 13
  1819. bfc: 2c 9f mul r18, r28
  1820. bfe: c0 01 movw r24, r0
  1821. c00: 2d 9f mul r18, r29
  1822. c02: 90 0d add r25, r0
  1823. c04: 11 24 eor r1, r1
  1824. c06: ec 01 movw r28, r24
  1825. c08: c2 57 subi r28, 0x72 ; 114
  1826. c0a: d9 4f sbci r29, 0xF9 ; 249
  1827. c0c: 2a e4 ldi r18, 0x4A ; 74
  1828. c0e: 3c e0 ldi r19, 0x0C ; 12
  1829. c10: 42 e4 ldi r20, 0x42 ; 66
  1830. c12: 5f e3 ldi r21, 0x3F ; 63
  1831. c14: 69 81 ldd r22, Y+1 ; 0x01
  1832. c16: 7a 81 ldd r23, Y+2 ; 0x02
  1833. c18: 8b 81 ldd r24, Y+3 ; 0x03
  1834. c1a: 9c 81 ldd r25, Y+4 ; 0x04
  1835. c1c: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
  1836. c20: 9b 01 movw r18, r22
  1837. c22: ac 01 movw r20, r24
  1838. c24: c7 01 movw r24, r14
  1839. c26: b6 01 movw r22, r12
  1840. c28: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
  1841. return voltage;
  1842. c2c: 2d 81 ldd r18, Y+5 ; 0x05
  1843. c2e: 3e 81 ldd r19, Y+6 ; 0x06
  1844. c30: 4f 81 ldd r20, Y+7 ; 0x07
  1845. c32: 58 85 ldd r21, Y+8 ; 0x08
  1846. c34: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
  1847. }
  1848. c38: df 91 pop r29
  1849. c3a: cf 91 pop r28
  1850. c3c: ff 90 pop r15
  1851. c3e: ef 90 pop r14
  1852. c40: df 90 pop r13
  1853. c42: cf 90 pop r12
  1854. c44: 08 95 ret
  1855. 00000c46 <CircuitDetect>:
  1856. circ_t CircuitDetect(uint8_t ch)
  1857. {
  1858. c46: 7f 92 push r7
  1859. c48: 8f 92 push r8
  1860. c4a: 9f 92 push r9
  1861. c4c: af 92 push r10
  1862. c4e: bf 92 push r11
  1863. c50: cf 92 push r12
  1864. c52: df 92 push r13
  1865. c54: ef 92 push r14
  1866. c56: ff 92 push r15
  1867. c58: 0f 93 push r16
  1868. c5a: 1f 93 push r17
  1869. c5c: cf 93 push r28
  1870. c5e: df 93 push r29
  1871. c60: c8 2f mov r28, r24
  1872. uint8_t gain, shift, drive;
  1873. float voltage;
  1874. circ_t circ;
  1875. gain = heater[ch].gain;
  1876. c62: e8 2e mov r14, r24
  1877. c64: f1 2c mov r15, r1
  1878. c66: 83 e1 ldi r24, 0x13 ; 19
  1879. c68: c8 9f mul r28, r24
  1880. c6a: f0 01 movw r30, r0
  1881. c6c: 11 24 eor r1, r1
  1882. c6e: e0 5e subi r30, 0xE0 ; 224
  1883. c70: fc 4f sbci r31, 0xFC ; 252
  1884. c72: 70 88 ldd r7, Z+16 ; 0x10
  1885. shift = heater[ch].shift;
  1886. c74: c1 88 ldd r12, Z+17 ; 0x11
  1887. drive = heater[ch].drive;
  1888. c76: d2 88 ldd r13, Z+18 ; 0x12
  1889. SetDriveVoltage(ch, 0);
  1890. c78: 40 e0 ldi r20, 0x00 ; 0
  1891. c7a: 50 e0 ldi r21, 0x00 ; 0
  1892. c7c: ba 01 movw r22, r20
  1893. c7e: 8c 2f mov r24, r28
  1894. c80: 0e 94 32 13 call 0x2664 ; 0x2664 <SetDriveVoltage>
  1895. SetInputRange(ch, 0.0, 3.0);
  1896. c84: 00 e0 ldi r16, 0x00 ; 0
  1897. c86: 10 e0 ldi r17, 0x00 ; 0
  1898. c88: 20 e4 ldi r18, 0x40 ; 64
  1899. c8a: 30 e4 ldi r19, 0x40 ; 64
  1900. c8c: 40 e0 ldi r20, 0x00 ; 0
  1901. c8e: 50 e0 ldi r21, 0x00 ; 0
  1902. c90: ba 01 movw r22, r20
  1903. c92: 8c 2f mov r24, r28
  1904. c94: 0e 94 51 13 call 0x26a2 ; 0x26a2 <SetInputRange>
  1905. voltage = VoltageMeasure(ch);
  1906. c98: 8c 2f mov r24, r28
  1907. c9a: 7e df rcall .-260 ; 0xb98 <VoltageMeasure>
  1908. c9c: 4b 01 movw r8, r22
  1909. c9e: 5c 01 movw r10, r24
  1910. if(voltage > 3.0)
  1911. ca0: 20 e0 ldi r18, 0x00 ; 0
  1912. ca2: 30 e0 ldi r19, 0x00 ; 0
  1913. ca4: 40 e4 ldi r20, 0x40 ; 64
  1914. ca6: 50 e4 ldi r21, 0x40 ; 64
  1915. ca8: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2>
  1916. cac: 18 16 cp r1, r24
  1917. cae: 0c f4 brge .+2 ; 0xcb2 <CircuitDetect+0x6c>
  1918. cb0: 6f c0 rjmp .+222 ; 0xd90 <CircuitDetect+0x14a>
  1919. {
  1920. circ = CIRC_OPEN;
  1921. }
  1922. else if((voltage > 0.05) && (voltage <= 1.5))
  1923. cb2: 2d ec ldi r18, 0xCD ; 205
  1924. cb4: 3c ec ldi r19, 0xCC ; 204
  1925. cb6: 4c e4 ldi r20, 0x4C ; 76
  1926. cb8: 5d e3 ldi r21, 0x3D ; 61
  1927. cba: c5 01 movw r24, r10
  1928. cbc: b4 01 movw r22, r8
  1929. cbe: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2>
  1930. cc2: 18 16 cp r1, r24
  1931. cc4: a4 f1 brlt .+104 ; 0xd2e <CircuitDetect+0xe8>
  1932. cc6: d4 e0 ldi r29, 0x04 ; 4
  1933. circ = CIRC_RES_DIODE;
  1934. }
  1935. }
  1936. else
  1937. {
  1938. circ = CIRC_RES;
  1939. cc8: 14 e0 ldi r17, 0x04 ; 4
  1940. }
  1941. SetGainData(ch, gain);
  1942. cca: 67 2d mov r22, r7
  1943. ccc: 8c 2f mov r24, r28
  1944. cce: 0e 94 e3 13 call 0x27c6 ; 0x27c6 <SetGainData>
  1945. SetShiftData(ch, shift);
  1946. cd2: 6c 2d mov r22, r12
  1947. cd4: 8c 2f mov r24, r28
  1948. cd6: 0e 94 12 14 call 0x2824 ; 0x2824 <SetShiftData>
  1949. SetDriveData(ch, drive);
  1950. cda: 6d 2d mov r22, r13
  1951. cdc: 8c 2f mov r24, r28
  1952. cde: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
  1953. heater[ch].status.circuit = circ;
  1954. ce2: 83 e1 ldi r24, 0x13 ; 19
  1955. ce4: 8e 9d mul r24, r14
  1956. ce6: f0 01 movw r30, r0
  1957. ce8: 8f 9d mul r24, r15
  1958. cea: f0 0d add r31, r0
  1959. cec: 11 24 eor r1, r1
  1960. cee: e0 5e subi r30, 0xE0 ; 224
  1961. cf0: fc 4f sbci r31, 0xFC ; 252
  1962. cf2: 9d 2f mov r25, r29
  1963. cf4: 92 95 swap r25
  1964. cf6: 99 0f add r25, r25
  1965. cf8: 99 0f add r25, r25
  1966. cfa: 90 7c andi r25, 0xC0 ; 192
  1967. cfc: 80 81 ld r24, Z
  1968. cfe: 8f 73 andi r24, 0x3F ; 63
  1969. d00: 89 2b or r24, r25
  1970. d02: 80 83 st Z, r24
  1971. d04: d6 95 lsr r29
  1972. d06: d6 95 lsr r29
  1973. d08: 81 81 ldd r24, Z+1 ; 0x01
  1974. d0a: 8e 7f andi r24, 0xFE ; 254
  1975. d0c: d8 2b or r29, r24
  1976. d0e: d1 83 std Z+1, r29 ; 0x01
  1977. return circ;
  1978. }
  1979. d10: 81 2f mov r24, r17
  1980. d12: df 91 pop r29
  1981. d14: cf 91 pop r28
  1982. d16: 1f 91 pop r17
  1983. d18: 0f 91 pop r16
  1984. d1a: ff 90 pop r15
  1985. d1c: ef 90 pop r14
  1986. d1e: df 90 pop r13
  1987. d20: cf 90 pop r12
  1988. d22: bf 90 pop r11
  1989. d24: af 90 pop r10
  1990. d26: 9f 90 pop r9
  1991. d28: 8f 90 pop r8
  1992. d2a: 7f 90 pop r7
  1993. d2c: 08 95 ret
  1994. voltage = VoltageMeasure(ch);
  1995. if(voltage > 3.0)
  1996. {
  1997. circ = CIRC_OPEN;
  1998. }
  1999. else if((voltage > 0.05) && (voltage <= 1.5))
  2000. d2e: 20 e0 ldi r18, 0x00 ; 0
  2001. d30: 30 e0 ldi r19, 0x00 ; 0
  2002. d32: 40 ec ldi r20, 0xC0 ; 192
  2003. d34: 5f e3 ldi r21, 0x3F ; 63
  2004. d36: c5 01 movw r24, r10
  2005. d38: b4 01 movw r22, r8
  2006. d3a: 0e 94 b8 15 call 0x2b70 ; 0x2b70 <__cmpsf2>
  2007. d3e: 18 16 cp r1, r24
  2008. d40: 14 f2 brlt .-124 ; 0xcc6 <CircuitDetect+0x80>
  2009. {
  2010. SetDriveData(ch, 0xFF);
  2011. d42: 6f ef ldi r22, 0xFF ; 255
  2012. d44: 8c 2f mov r24, r28
  2013. d46: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
  2014. SwitchDrive(ch, ON);
  2015. d4a: 61 e0 ldi r22, 0x01 ; 1
  2016. d4c: 8c 2f mov r24, r28
  2017. d4e: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  2018. #else
  2019. //round up by default
  2020. __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
  2021. #endif
  2022. __builtin_avr_delay_cycles(__ticks_dc);
  2023. d52: 87 eb ldi r24, 0xB7 ; 183
  2024. d54: 9b e0 ldi r25, 0x0B ; 11
  2025. d56: 01 97 sbiw r24, 0x01 ; 1
  2026. d58: f1 f7 brne .-4 ; 0xd56 <CircuitDetect+0x110>
  2027. d5a: 00 c0 rjmp .+0 ; 0xd5c <CircuitDetect+0x116>
  2028. d5c: 00 00 nop
  2029. _delay_ms(1);
  2030. voltage = VoltageMeasure(ch);
  2031. d5e: 8c 2f mov r24, r28
  2032. d60: 1b df rcall .-458 ; 0xb98 <VoltageMeasure>
  2033. d62: 4b 01 movw r8, r22
  2034. d64: 5c 01 movw r10, r24
  2035. SetDriveData(ch, drive);
  2036. d66: 6d 2d mov r22, r13
  2037. d68: 8c 2f mov r24, r28
  2038. d6a: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
  2039. SwitchDrive(ch, OFF);
  2040. d6e: 60 e0 ldi r22, 0x00 ; 0
  2041. d70: 8c 2f mov r24, r28
  2042. d72: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  2043. if(voltage < 0.2)
  2044. d76: 2d ec ldi r18, 0xCD ; 205
  2045. d78: 3c ec ldi r19, 0xCC ; 204
  2046. d7a: 4c e4 ldi r20, 0x4C ; 76
  2047. d7c: 5e e3 ldi r21, 0x3E ; 62
  2048. d7e: c5 01 movw r24, r10
  2049. d80: b4 01 movw r22, r8
  2050. d82: 0e 94 b8 15 call 0x2b70 ; 0x2b70 <__cmpsf2>
  2051. d86: 87 ff sbrs r24, 7
  2052. d88: 06 c0 rjmp .+12 ; 0xd96 <CircuitDetect+0x150>
  2053. d8a: d2 e0 ldi r29, 0x02 ; 2
  2054. {
  2055. circ = CIRC_MOSFET;
  2056. d8c: 12 e0 ldi r17, 0x02 ; 2
  2057. d8e: 9d cf rjmp .-198 ; 0xcca <CircuitDetect+0x84>
  2058. d90: d0 e0 ldi r29, 0x00 ; 0
  2059. SetInputRange(ch, 0.0, 3.0);
  2060. voltage = VoltageMeasure(ch);
  2061. if(voltage > 3.0)
  2062. {
  2063. circ = CIRC_OPEN;
  2064. d92: 10 e0 ldi r17, 0x00 ; 0
  2065. d94: 9a cf rjmp .-204 ; 0xcca <CircuitDetect+0x84>
  2066. d96: d3 e0 ldi r29, 0x03 ; 3
  2067. {
  2068. circ = CIRC_MOSFET;
  2069. }
  2070. else
  2071. {
  2072. circ = CIRC_RES_DIODE;
  2073. d98: 13 e0 ldi r17, 0x03 ; 3
  2074. d9a: 97 cf rjmp .-210 ; 0xcca <CircuitDetect+0x84>
  2075. 00000d9c <AutoCalibration>:
  2076. count--;
  2077. }
  2078. }
  2079. int AutoCalibration(uint8_t ch)
  2080. {
  2081. d9c: 2f 92 push r2
  2082. d9e: 3f 92 push r3
  2083. da0: 4f 92 push r4
  2084. da2: 5f 92 push r5
  2085. da4: 6f 92 push r6
  2086. da6: 7f 92 push r7
  2087. da8: 8f 92 push r8
  2088. daa: 9f 92 push r9
  2089. dac: af 92 push r10
  2090. dae: bf 92 push r11
  2091. db0: cf 92 push r12
  2092. db2: df 92 push r13
  2093. db4: ef 92 push r14
  2094. db6: ff 92 push r15
  2095. db8: 0f 93 push r16
  2096. dba: 1f 93 push r17
  2097. dbc: cf 93 push r28
  2098. dbe: df 93 push r29
  2099. dc0: cd b7 in r28, 0x3d ; 61
  2100. dc2: de b7 in r29, 0x3e ; 62
  2101. dc4: 64 97 sbiw r28, 0x14 ; 20
  2102. dc6: 0f b6 in r0, 0x3f ; 63
  2103. dc8: f8 94 cli
  2104. dca: de bf out 0x3e, r29 ; 62
  2105. dcc: 0f be out 0x3f, r0 ; 63
  2106. dce: cd bf out 0x3d, r28 ; 61
  2107. dd0: 38 2e mov r3, r24
  2108. uint8_t drive = 0;
  2109. int16_t tstart = 0;
  2110. uint16_t delcnt = 0;
  2111. float vlow = 0.0, vhigh = 0.0;
  2112. MAX_ReadData();
  2113. dd2: 91 db rcall .-2270 ; 0x4f6 <MAX_ReadData>
  2114. CircuitDetect(ch);
  2115. dd4: 83 2d mov r24, r3
  2116. dd6: 37 df rcall .-402 ; 0xc46 <CircuitDetect>
  2117. if(((heater[ch].status.circuit == CIRC_MOSFET) || (heater[ch].status.circuit == CIRC_RES_DIODE)) && (heater[ch].status.couple == 0))
  2118. dd8: 23 2d mov r18, r3
  2119. dda: 30 e0 ldi r19, 0x00 ; 0
  2120. ddc: 3a 87 std Y+10, r19 ; 0x0a
  2121. dde: 29 87 std Y+9, r18 ; 0x09
  2122. de0: 33 e1 ldi r19, 0x13 ; 19
  2123. de2: 33 9e mul r3, r19
  2124. de4: f0 01 movw r30, r0
  2125. de6: 11 24 eor r1, r1
  2126. de8: e0 5e subi r30, 0xE0 ; 224
  2127. dea: fc 4f sbci r31, 0xFC ; 252
  2128. dec: 80 81 ld r24, Z
  2129. dee: 98 2f mov r25, r24
  2130. df0: 92 95 swap r25
  2131. df2: 96 95 lsr r25
  2132. df4: 96 95 lsr r25
  2133. df6: 93 70 andi r25, 0x03 ; 3
  2134. df8: 81 81 ldd r24, Z+1 ; 0x01
  2135. dfa: 81 70 andi r24, 0x01 ; 1
  2136. dfc: 88 0f add r24, r24
  2137. dfe: 88 0f add r24, r24
  2138. e00: 89 2b or r24, r25
  2139. e02: 82 30 cpi r24, 0x02 ; 2
  2140. e04: 41 f1 breq .+80 ; 0xe56 <AutoCalibration+0xba>
  2141. e06: 80 81 ld r24, Z
  2142. e08: 98 2f mov r25, r24
  2143. e0a: 92 95 swap r25
  2144. e0c: 96 95 lsr r25
  2145. e0e: 96 95 lsr r25
  2146. e10: 93 70 andi r25, 0x03 ; 3
  2147. e12: 81 81 ldd r24, Z+1 ; 0x01
  2148. e14: 81 70 andi r24, 0x01 ; 1
  2149. e16: 88 0f add r24, r24
  2150. e18: 88 0f add r24, r24
  2151. e1a: 89 2b or r24, r25
  2152. e1c: 83 30 cpi r24, 0x03 ; 3
  2153. e1e: d9 f0 breq .+54 ; 0xe56 <AutoCalibration+0xba>
  2154. SavePreset(ch);
  2155. LCD_SendCmd(LCD_CLR);
  2156. }
  2157. return 0;
  2158. e20: 80 e0 ldi r24, 0x00 ; 0
  2159. e22: 90 e0 ldi r25, 0x00 ; 0
  2160. }
  2161. e24: 64 96 adiw r28, 0x14 ; 20
  2162. e26: 0f b6 in r0, 0x3f ; 63
  2163. e28: f8 94 cli
  2164. e2a: de bf out 0x3e, r29 ; 62
  2165. e2c: 0f be out 0x3f, r0 ; 63
  2166. e2e: cd bf out 0x3d, r28 ; 61
  2167. e30: df 91 pop r29
  2168. e32: cf 91 pop r28
  2169. e34: 1f 91 pop r17
  2170. e36: 0f 91 pop r16
  2171. e38: ff 90 pop r15
  2172. e3a: ef 90 pop r14
  2173. e3c: df 90 pop r13
  2174. e3e: cf 90 pop r12
  2175. e40: bf 90 pop r11
  2176. e42: af 90 pop r10
  2177. e44: 9f 90 pop r9
  2178. e46: 8f 90 pop r8
  2179. e48: 7f 90 pop r7
  2180. e4a: 6f 90 pop r6
  2181. e4c: 5f 90 pop r5
  2182. e4e: 4f 90 pop r4
  2183. e50: 3f 90 pop r3
  2184. e52: 2f 90 pop r2
  2185. e54: 08 95 ret
  2186. float vlow = 0.0, vhigh = 0.0;
  2187. MAX_ReadData();
  2188. CircuitDetect(ch);
  2189. if(((heater[ch].status.circuit == CIRC_MOSFET) || (heater[ch].status.circuit == CIRC_RES_DIODE)) && (heater[ch].status.couple == 0))
  2190. e56: 83 e1 ldi r24, 0x13 ; 19
  2191. e58: 69 85 ldd r22, Y+9 ; 0x09
  2192. e5a: 7a 85 ldd r23, Y+10 ; 0x0a
  2193. e5c: 86 9f mul r24, r22
  2194. e5e: a0 01 movw r20, r0
  2195. e60: 87 9f mul r24, r23
  2196. e62: 50 0d add r21, r0
  2197. e64: 11 24 eor r1, r1
  2198. e66: 5a 83 std Y+2, r21 ; 0x02
  2199. e68: 49 83 std Y+1, r20 ; 0x01
  2200. e6a: fa 01 movw r30, r20
  2201. e6c: ef 5d subi r30, 0xDF ; 223
  2202. e6e: fc 4f sbci r31, 0xFC ; 252
  2203. e70: 80 81 ld r24, Z
  2204. e72: 86 95 lsr r24
  2205. e74: 87 70 andi r24, 0x07 ; 7
  2206. e76: a1 f6 brne .-88 ; 0xe20 <AutoCalibration+0x84>
  2207. {
  2208. LCD_SendCmd(LCD_CLR);
  2209. e78: 81 e0 ldi r24, 0x01 ; 1
  2210. e7a: 0e 94 a1 12 call 0x2542 ; 0x2542 <LCD_SendCmd>
  2211. SetInputRange(ch, 0.0, 3.0);
  2212. e7e: 00 e0 ldi r16, 0x00 ; 0
  2213. e80: 10 e0 ldi r17, 0x00 ; 0
  2214. e82: 20 e4 ldi r18, 0x40 ; 64
  2215. e84: 30 e4 ldi r19, 0x40 ; 64
  2216. e86: 40 e0 ldi r20, 0x00 ; 0
  2217. e88: 50 e0 ldi r21, 0x00 ; 0
  2218. e8a: ba 01 movw r22, r20
  2219. e8c: 83 2d mov r24, r3
  2220. e8e: 0e 94 51 13 call 0x26a2 ; 0x26a2 <SetInputRange>
  2221. SetDriveVoltage(ch, 0.0);
  2222. e92: 40 e0 ldi r20, 0x00 ; 0
  2223. e94: 50 e0 ldi r21, 0x00 ; 0
  2224. e96: ba 01 movw r22, r20
  2225. e98: 83 2d mov r24, r3
  2226. e9a: 0e 94 32 13 call 0x2664 ; 0x2664 <SetDriveVoltage>
  2227. e9e: 8f e6 ldi r24, 0x6F ; 111
  2228. ea0: 97 e1 ldi r25, 0x17 ; 23
  2229. ea2: 01 97 sbiw r24, 0x01 ; 1
  2230. ea4: f1 f7 brne .-4 ; 0xea2 <AutoCalibration+0x106>
  2231. ea6: 00 c0 rjmp .+0 ; 0xea8 <AutoCalibration+0x10c>
  2232. ea8: 00 00 nop
  2233. eaa: c9 84 ldd r12, Y+9 ; 0x09
  2234. eac: da 84 ldd r13, Y+10 ; 0x0a
  2235. eae: 9f ef ldi r25, 0xFF ; 255
  2236. eb0: c9 1a sub r12, r25
  2237. eb2: d9 0a sbc r13, r25
  2238. _delay_ms(2);
  2239. do {
  2240. MAX_ReadData();
  2241. LCD_SetPos(0, 0);
  2242. fprintf(&lcd_stdout, "K%.1u P%.2u Tm=%.3u -", ch + 1, heater[ch].preset, heater[ch].tmeas);
  2243. eb4: a9 81 ldd r26, Y+1 ; 0x01
  2244. eb6: ba 81 ldd r27, Y+2 ; 0x02
  2245. eb8: a0 5e subi r26, 0xE0 ; 224
  2246. eba: bc 4f sbci r27, 0xFC ; 252
  2247. ebc: be 83 std Y+6, r27 ; 0x06
  2248. ebe: ad 83 std Y+5, r26 ; 0x05
  2249. ec0: 7d 01 movw r14, r26
  2250. ec2: b6 e0 ldi r27, 0x06 ; 6
  2251. ec4: eb 0e add r14, r27
  2252. ec6: f1 1c adc r15, r1
  2253. ec8: ad 80 ldd r10, Y+5 ; 0x05
  2254. eca: be 80 ldd r11, Y+6 ; 0x06
  2255. ecc: e2 e0 ldi r30, 0x02 ; 2
  2256. ece: ae 0e add r10, r30
  2257. ed0: b1 1c adc r11, r1
  2258. ed2: 62 e3 ldi r22, 0x32 ; 50
  2259. ed4: 86 2e mov r8, r22
  2260. ed6: 61 e0 ldi r22, 0x01 ; 1
  2261. ed8: 96 2e mov r9, r22
  2262. LCD_SetPos(0, 1);
  2263. fprintf(&lcd_stdout, "CALIB. Tc=%.3u -", heater[ch].tcouple);
  2264. eda: 0d 81 ldd r16, Y+5 ; 0x05
  2265. edc: 1e 81 ldd r17, Y+6 ; 0x06
  2266. ede: 0c 5f subi r16, 0xFC ; 252
  2267. ee0: 1f 4f sbci r17, 0xFF ; 255
  2268. ee2: 78 e4 ldi r23, 0x48 ; 72
  2269. ee4: 67 2e mov r6, r23
  2270. ee6: 71 e0 ldi r23, 0x01 ; 1
  2271. SetInputRange(ch, 0.0, 3.0);
  2272. SetDriveVoltage(ch, 0.0);
  2273. _delay_ms(2);
  2274. do {
  2275. MAX_ReadData();
  2276. ee8: 77 2e mov r7, r23
  2277. eea: 05 db rcall .-2550 ; 0x4f6 <MAX_ReadData>
  2278. LCD_SetPos(0, 0);
  2279. eec: 60 e0 ldi r22, 0x00 ; 0
  2280. eee: 80 e0 ldi r24, 0x00 ; 0
  2281. ef0: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
  2282. fprintf(&lcd_stdout, "K%.1u P%.2u Tm=%.3u -", ch + 1, heater[ch].preset, heater[ch].tmeas);
  2283. ef4: d7 01 movw r26, r14
  2284. ef6: 11 96 adiw r26, 0x01 ; 1
  2285. ef8: 8c 91 ld r24, X
  2286. efa: 11 97 sbiw r26, 0x01 ; 1
  2287. efc: 8f 93 push r24
  2288. efe: 8c 91 ld r24, X
  2289. f00: 8f 93 push r24
  2290. f02: f5 01 movw r30, r10
  2291. f04: 80 81 ld r24, Z
  2292. f06: 1f 92 push r1
  2293. f08: 8f 93 push r24
  2294. f0a: df 92 push r13
  2295. f0c: cf 92 push r12
  2296. f0e: 9f 92 push r9
  2297. f10: 8f 92 push r8
  2298. f12: 24 e1 ldi r18, 0x14 ; 20
  2299. f14: 31 e0 ldi r19, 0x01 ; 1
  2300. f16: 3f 93 push r19
  2301. f18: 2f 93 push r18
  2302. f1a: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  2303. LCD_SetPos(0, 1);
  2304. f1e: 61 e0 ldi r22, 0x01 ; 1
  2305. f20: 80 e0 ldi r24, 0x00 ; 0
  2306. f22: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
  2307. fprintf(&lcd_stdout, "CALIB. Tc=%.3u -", heater[ch].tcouple);
  2308. f26: d8 01 movw r26, r16
  2309. f28: 11 96 adiw r26, 0x01 ; 1
  2310. f2a: 8c 91 ld r24, X
  2311. f2c: 11 97 sbiw r26, 0x01 ; 1
  2312. f2e: 8f 93 push r24
  2313. f30: 8c 91 ld r24, X
  2314. f32: 8f 93 push r24
  2315. f34: 7f 92 push r7
  2316. f36: 6f 92 push r6
  2317. f38: e4 e1 ldi r30, 0x14 ; 20
  2318. f3a: f1 e0 ldi r31, 0x01 ; 1
  2319. f3c: ff 93 push r31
  2320. f3e: ef 93 push r30
  2321. f40: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  2322. } while(heater[ch].tcouple > cal_tmin);
  2323. f44: d8 01 movw r26, r16
  2324. f46: 4d 90 ld r4, X+
  2325. f48: 5c 90 ld r5, X
  2326. f4a: 80 91 22 01 lds r24, 0x0122 ; 0x800122 <cal_tmin>
  2327. f4e: 90 e0 ldi r25, 0x00 ; 0
  2328. f50: 0f b6 in r0, 0x3f ; 63
  2329. f52: f8 94 cli
  2330. f54: de bf out 0x3e, r29 ; 62
  2331. f56: 0f be out 0x3f, r0 ; 63
  2332. f58: cd bf out 0x3d, r28 ; 61
  2333. f5a: 84 15 cp r24, r4
  2334. f5c: 95 05 cpc r25, r5
  2335. tstart = heater[ch].tcouple;
  2336. vhigh = VoltageMeasure(ch) + 0.04;
  2337. f5e: 2c f2 brlt .-118 ; 0xeea <AutoCalibration+0x14e>
  2338. f60: 83 2d mov r24, r3
  2339. f62: 1a de rcall .-972 ; 0xb98 <VoltageMeasure>
  2340. f64: 2a e0 ldi r18, 0x0A ; 10
  2341. f66: 37 ed ldi r19, 0xD7 ; 215
  2342. f68: 43 e2 ldi r20, 0x23 ; 35
  2343. f6a: 5d e3 ldi r21, 0x3D ; 61
  2344. f6c: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
  2345. f70: 6d 87 std Y+13, r22 ; 0x0d
  2346. f72: 7e 87 std Y+14, r23 ; 0x0e
  2347. f74: 88 8b std Y+16, r24 ; 0x10
  2348. f76: 9a 8b std Y+18, r25 ; 0x12
  2349. f78: 69 83 std Y+1, r22 ; 0x01
  2350. f7a: 7b 87 std Y+11, r23 ; 0x0b
  2351. f7c: 8b 83 std Y+3, r24 ; 0x03
  2352. f7e: 29 2e mov r2, r25
  2353. if(heater[ch].status.circuit == CIRC_MOSFET)
  2354. f80: ad 81 ldd r26, Y+5 ; 0x05
  2355. f82: be 81 ldd r27, Y+6 ; 0x06
  2356. f84: 8c 91 ld r24, X
  2357. f86: 98 2f mov r25, r24
  2358. f88: 92 95 swap r25
  2359. f8a: 96 95 lsr r25
  2360. f8c: 96 95 lsr r25
  2361. f8e: 93 70 andi r25, 0x03 ; 3
  2362. f90: 11 96 adiw r26, 0x01 ; 1
  2363. f92: 8c 91 ld r24, X
  2364. f94: 81 70 andi r24, 0x01 ; 1
  2365. f96: 88 0f add r24, r24
  2366. f98: 88 0f add r24, r24
  2367. f9a: 89 2b or r24, r25
  2368. f9c: 1f 82 std Y+7, r1 ; 0x07
  2369. f9e: 82 30 cpi r24, 0x02 ; 2
  2370. fa0: 09 f4 brne .+2 ; 0xfa4 <AutoCalibration+0x208>
  2371. fa2: f4 c0 rjmp .+488 ; 0x118c <__stack+0x8d>
  2372. fa4: 83 2d mov r24, r3
  2373. fa6: 43 d9 rcall .-3450 ; 0x22e <SwitchHeating.part.0>
  2374. SwitchDrive(ch, ON);
  2375. }
  2376. SwitchHeating(ch, ON);
  2377. while(heater[ch].tcouple < (cal_tmax + 2))
  2378. fa8: 80 91 23 01 lds r24, 0x0123 ; 0x800123 <cal_tmax>
  2379. fac: 90 e0 ldi r25, 0x00 ; 0
  2380. fae: 01 96 adiw r24, 0x01 ; 1
  2381. fb0: 43 e1 ldi r20, 0x13 ; 19
  2382. fb2: e9 85 ldd r30, Y+9 ; 0x09
  2383. fb4: fa 85 ldd r31, Y+10 ; 0x0a
  2384. fb6: 4e 9f mul r20, r30
  2385. fb8: 90 01 movw r18, r0
  2386. fba: 4f 9f mul r20, r31
  2387. fbc: 30 0d add r19, r0
  2388. fbe: 11 24 eor r1, r1
  2389. fc0: a9 01 movw r20, r18
  2390. fc2: 40 5e subi r20, 0xE0 ; 224
  2391. fc4: 5c 4f sbci r21, 0xFC ; 252
  2392. fc6: 5e 83 std Y+6, r21 ; 0x06
  2393. fc8: 4d 83 std Y+5, r20 ; 0x05
  2394. fca: da 01 movw r26, r20
  2395. fcc: 14 96 adiw r26, 0x04 ; 4
  2396. fce: 4d 91 ld r20, X+
  2397. fd0: 5c 91 ld r21, X
  2398. fd2: 15 97 sbiw r26, 0x05 ; 5
  2399. fd4: 84 17 cp r24, r20
  2400. fd6: 95 07 cpc r25, r21
  2401. fd8: 0c f4 brge .+2 ; 0xfdc <AutoCalibration+0x240>
  2402. fda: 25 c1 rjmp .+586 ; 0x1226 <__stack+0x127>
  2403. fdc: e1 2c mov r14, r1
  2404. fde: f1 2c mov r15, r1
  2405. {
  2406. if(CurrMeasure(ch) > CURR_MAX)
  2407. return 0;
  2408. if(heater[ch].status.circuit == CIRC_MOSFET)
  2409. fe0: 4d 81 ldd r20, Y+5 ; 0x05
  2410. fe2: 5e 81 ldd r21, Y+6 ; 0x06
  2411. fe4: 5c 8b std Y+20, r21 ; 0x14
  2412. fe6: 4b 8b std Y+19, r20 ; 0x13
  2413. {
  2414. if(heater[ch].current > 1500)
  2415. fe8: 4a 01 movw r8, r20
  2416. fea: 5e e0 ldi r21, 0x0E ; 14
  2417. fec: 85 0e add r8, r21
  2418. fee: 91 1c adc r9, r1
  2419. }
  2420. }
  2421. MAX_ReadData();
  2422. if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0))
  2423. ff0: b9 01 movw r22, r18
  2424. ff2: 6f 5d subi r22, 0xDF ; 223
  2425. ff4: 7c 4f sbci r23, 0xFC ; 252
  2426. ff6: 7e 83 std Y+6, r23 ; 0x06
  2427. ff8: 6d 83 std Y+5, r22 ; 0x05
  2428. }
  2429. if(++delcnt > 300)
  2430. {
  2431. delcnt = 0;
  2432. if((heater[ch].tcouple - tstart) < 5)
  2433. ffa: cb 88 ldd r12, Y+19 ; 0x13
  2434. ffc: dc 88 ldd r13, Y+20 ; 0x14
  2435. ffe: 74 e0 ldi r23, 0x04 ; 4
  2436. 1000: c7 0e add r12, r23
  2437. 1002: d1 1c adc r13, r1
  2438. tstart = heater[ch].tcouple;
  2439. }
  2440. }
  2441. LCD_SetPos(0, 0);
  2442. fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive);
  2443. 1004: 8d e0 ldi r24, 0x0D ; 13
  2444. 1006: a9 85 ldd r26, Y+9 ; 0x09
  2445. 1008: ba 85 ldd r27, Y+10 ; 0x0a
  2446. 100a: 8a 9f mul r24, r26
  2447. 100c: 80 01 movw r16, r0
  2448. 100e: 8b 9f mul r24, r27
  2449. 1010: 10 0d add r17, r0
  2450. 1012: 11 24 eor r1, r1
  2451. 1014: 09 56 subi r16, 0x69 ; 105
  2452. 1016: 19 4f sbci r17, 0xF9 ; 249
  2453. 1018: 4b e7 ldi r20, 0x7B ; 123
  2454. 101a: a4 2e mov r10, r20
  2455. 101c: 41 e0 ldi r20, 0x01 ; 1
  2456. 101e: b4 2e mov r11, r20
  2457. 1020: 54 e1 ldi r21, 0x14 ; 20
  2458. 1022: 65 2e mov r6, r21
  2459. 1024: 51 e0 ldi r21, 0x01 ; 1
  2460. 1026: 75 2e mov r7, r21
  2461. SetDriveData(ch, ++drive);
  2462. SwitchDrive(ch, ON);
  2463. }
  2464. }
  2465. MAX_ReadData();
  2466. 1028: 83 c0 rjmp .+262 ; 0x1130 <__stack+0x31>
  2467. 102a: 65 da rcall .-2870 ; 0x4f6 <MAX_ReadData>
  2468. if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0))
  2469. 102c: ab 89 ldd r26, Y+19 ; 0x13
  2470. 102e: bc 89 ldd r27, Y+20 ; 0x14
  2471. 1030: 8c 91 ld r24, X
  2472. 1032: 98 2f mov r25, r24
  2473. 1034: 92 95 swap r25
  2474. 1036: 96 95 lsr r25
  2475. 1038: 96 95 lsr r25
  2476. 103a: 93 70 andi r25, 0x03 ; 3
  2477. 103c: 11 96 adiw r26, 0x01 ; 1
  2478. 103e: 8c 91 ld r24, X
  2479. 1040: 81 70 andi r24, 0x01 ; 1
  2480. 1042: 88 0f add r24, r24
  2481. 1044: 88 0f add r24, r24
  2482. 1046: 89 2b or r24, r25
  2483. 1048: 09 f4 brne .+2 ; 0x104c <AutoCalibration+0x2b0>
  2484. 104a: e7 c0 rjmp .+462 ; 0x121a <__stack+0x11b>
  2485. 104c: eb 89 ldd r30, Y+19 ; 0x13
  2486. 104e: fc 89 ldd r31, Y+20 ; 0x14
  2487. 1050: 80 81 ld r24, Z
  2488. 1052: 98 2f mov r25, r24
  2489. 1054: 92 95 swap r25
  2490. 1056: 96 95 lsr r25
  2491. 1058: 96 95 lsr r25
  2492. 105a: 93 70 andi r25, 0x03 ; 3
  2493. 105c: 81 81 ldd r24, Z+1 ; 0x01
  2494. 105e: 81 70 andi r24, 0x01 ; 1
  2495. 1060: 88 0f add r24, r24
  2496. 1062: 88 0f add r24, r24
  2497. 1064: 89 2b or r24, r25
  2498. 1066: 84 30 cpi r24, 0x04 ; 4
  2499. 1068: 09 f4 brne .+2 ; 0x106c <AutoCalibration+0x2d0>
  2500. 106a: d7 c0 rjmp .+430 ; 0x121a <__stack+0x11b>
  2501. 106c: ad 81 ldd r26, Y+5 ; 0x05
  2502. 106e: be 81 ldd r27, Y+6 ; 0x06
  2503. 1070: 8c 91 ld r24, X
  2504. 1072: 86 95 lsr r24
  2505. 1074: 87 70 andi r24, 0x07 ; 7
  2506. 1076: 09 f0 breq .+2 ; 0x107a <AutoCalibration+0x2de>
  2507. 1078: d0 c0 rjmp .+416 ; 0x121a <__stack+0x11b>
  2508. {
  2509. LoadPreset(ch);
  2510. return (-1);
  2511. }
  2512. if(++delcnt > 300)
  2513. 107a: bf ef ldi r27, 0xFF ; 255
  2514. 107c: eb 1a sub r14, r27
  2515. 107e: fb 0a sbc r15, r27
  2516. 1080: ed e2 ldi r30, 0x2D ; 45
  2517. 1082: ee 16 cp r14, r30
  2518. 1084: e1 e0 ldi r30, 0x01 ; 1
  2519. 1086: fe 06 cpc r15, r30
  2520. 1088: 68 f0 brcs .+26 ; 0x10a4 <AutoCalibration+0x308>
  2521. {
  2522. delcnt = 0;
  2523. if((heater[ch].tcouple - tstart) < 5)
  2524. 108a: d6 01 movw r26, r12
  2525. 108c: 8d 91 ld r24, X+
  2526. 108e: 9c 91 ld r25, X
  2527. 1090: 9c 01 movw r18, r24
  2528. 1092: 24 19 sub r18, r4
  2529. 1094: 35 09 sbc r19, r5
  2530. 1096: 25 30 cpi r18, 0x05 ; 5
  2531. 1098: 31 05 cpc r19, r1
  2532. 109a: 0c f4 brge .+2 ; 0x109e <AutoCalibration+0x302>
  2533. 109c: 7c c3 rjmp .+1784 ; 0x1796 <__stack+0x697>
  2534. while(!btn_act);
  2535. return(-1);
  2536. }
  2537. else
  2538. {
  2539. tstart = heater[ch].tcouple;
  2540. 109e: 2c 01 movw r4, r24
  2541. return (-1);
  2542. }
  2543. if(++delcnt > 300)
  2544. {
  2545. delcnt = 0;
  2546. 10a0: e1 2c mov r14, r1
  2547. 10a2: f1 2c mov r15, r1
  2548. {
  2549. tstart = heater[ch].tcouple;
  2550. }
  2551. }
  2552. LCD_SetPos(0, 0);
  2553. 10a4: 60 e0 ldi r22, 0x00 ; 0
  2554. 10a6: 80 e0 ldi r24, 0x00 ; 0
  2555. 10a8: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
  2556. fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive);
  2557. 10ac: f8 01 movw r30, r16
  2558. 10ae: 83 81 ldd r24, Z+3 ; 0x03
  2559. 10b0: 8f 93 push r24
  2560. 10b2: 82 81 ldd r24, Z+2 ; 0x02
  2561. 10b4: 8f 93 push r24
  2562. 10b6: 81 81 ldd r24, Z+1 ; 0x01
  2563. 10b8: 8f 93 push r24
  2564. 10ba: 80 81 ld r24, Z
  2565. 10bc: 8f 93 push r24
  2566. 10be: 1f 92 push r1
  2567. 10c0: 1f 92 push r1
  2568. 10c2: 1f 92 push r1
  2569. 10c4: 1f 92 push r1
  2570. 10c6: 2f 92 push r2
  2571. 10c8: fb 81 ldd r31, Y+3 ; 0x03
  2572. 10ca: ff 93 push r31
  2573. 10cc: 2b 85 ldd r18, Y+11 ; 0x0b
  2574. 10ce: 2f 93 push r18
  2575. 10d0: 39 81 ldd r19, Y+1 ; 0x01
  2576. 10d2: 3f 93 push r19
  2577. 10d4: bf 92 push r11
  2578. 10d6: af 92 push r10
  2579. 10d8: 7f 92 push r7
  2580. 10da: 6f 92 push r6
  2581. 10dc: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  2582. LCD_SetPos(0, 1);
  2583. 10e0: 61 e0 ldi r22, 0x01 ; 1
  2584. 10e2: 80 e0 ldi r24, 0x00 ; 0
  2585. 10e4: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
  2586. fprintf(&lcd_stdout, "I=%.4umA Tc=%.3u ", heater[ch].current, heater[ch].tcouple);
  2587. 10e8: d6 01 movw r26, r12
  2588. 10ea: 11 96 adiw r26, 0x01 ; 1
  2589. 10ec: 8c 91 ld r24, X
  2590. 10ee: 11 97 sbiw r26, 0x01 ; 1
  2591. 10f0: 8f 93 push r24
  2592. 10f2: 8c 91 ld r24, X
  2593. 10f4: 8f 93 push r24
  2594. 10f6: f4 01 movw r30, r8
  2595. 10f8: 81 81 ldd r24, Z+1 ; 0x01
  2596. 10fa: 8f 93 push r24
  2597. 10fc: 80 81 ld r24, Z
  2598. 10fe: 8f 93 push r24
  2599. 1100: 22 e9 ldi r18, 0x92 ; 146
  2600. 1102: 31 e0 ldi r19, 0x01 ; 1
  2601. 1104: 3f 93 push r19
  2602. 1106: 2f 93 push r18
  2603. 1108: 7f 92 push r7
  2604. 110a: 6f 92 push r6
  2605. 110c: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  2606. SwitchDrive(ch, ON);
  2607. }
  2608. SwitchHeating(ch, ON);
  2609. while(heater[ch].tcouple < (cal_tmax + 2))
  2610. 1110: 80 91 23 01 lds r24, 0x0123 ; 0x800123 <cal_tmax>
  2611. 1114: 90 e0 ldi r25, 0x00 ; 0
  2612. 1116: 01 96 adiw r24, 0x01 ; 1
  2613. 1118: 0f b6 in r0, 0x3f ; 63
  2614. 111a: f8 94 cli
  2615. 111c: de bf out 0x3e, r29 ; 62
  2616. 111e: 0f be out 0x3f, r0 ; 63
  2617. 1120: cd bf out 0x3d, r28 ; 61
  2618. 1122: d6 01 movw r26, r12
  2619. 1124: 2d 91 ld r18, X+
  2620. 1126: 3c 91 ld r19, X
  2621. 1128: 82 17 cp r24, r18
  2622. 112a: 93 07 cpc r25, r19
  2623. 112c: 0c f4 brge .+2 ; 0x1130 <__stack+0x31>
  2624. {
  2625. if(CurrMeasure(ch) > CURR_MAX)
  2626. 112e: 7b c0 rjmp .+246 ; 0x1226 <__stack+0x127>
  2627. 1130: 83 2d mov r24, r3
  2628. 1132: 72 db rcall .-2332 ; 0x818 <CurrMeasure>
  2629. 1134: 85 3c cpi r24, 0xC5 ; 197
  2630. 1136: 99 40 sbci r25, 0x09 ; 9
  2631. 1138: 08 f0 brcs .+2 ; 0x113c <__stack+0x3d>
  2632. 113a: 72 ce rjmp .-796 ; 0xe20 <AutoCalibration+0x84>
  2633. return 0;
  2634. if(heater[ch].status.circuit == CIRC_MOSFET)
  2635. 113c: eb 89 ldd r30, Y+19 ; 0x13
  2636. 113e: fc 89 ldd r31, Y+20 ; 0x14
  2637. 1140: 80 81 ld r24, Z
  2638. 1142: 98 2f mov r25, r24
  2639. 1144: 92 95 swap r25
  2640. 1146: 96 95 lsr r25
  2641. 1148: 96 95 lsr r25
  2642. 114a: 93 70 andi r25, 0x03 ; 3
  2643. 114c: 81 81 ldd r24, Z+1 ; 0x01
  2644. 114e: 81 70 andi r24, 0x01 ; 1
  2645. 1150: 88 0f add r24, r24
  2646. 1152: 88 0f add r24, r24
  2647. 1154: 89 2b or r24, r25
  2648. 1156: 82 30 cpi r24, 0x02 ; 2
  2649. 1158: 09 f0 breq .+2 ; 0x115c <__stack+0x5d>
  2650. 115a: 67 cf rjmp .-306 ; 0x102a <AutoCalibration+0x28e>
  2651. {
  2652. if(heater[ch].current > 1500)
  2653. 115c: d4 01 movw r26, r8
  2654. 115e: 8d 91 ld r24, X+
  2655. 1160: 9c 91 ld r25, X
  2656. 1162: 8d 3d cpi r24, 0xDD ; 221
  2657. 1164: b5 e0 ldi r27, 0x05 ; 5
  2658. 1166: 9b 07 cpc r25, r27
  2659. 1168: 08 f0 brcs .+2 ; 0x116c <__stack+0x6d>
  2660. 116a: 47 c0 rjmp .+142 ; 0x11fa <__stack+0xfb>
  2661. {
  2662. SetDriveData(ch, --drive);
  2663. SwitchDrive(ch, ON);
  2664. }
  2665. if(heater[ch].current < 1000)
  2666. 116c: 88 3e cpi r24, 0xE8 ; 232
  2667. 116e: 93 40 sbci r25, 0x03 ; 3
  2668. 1170: 08 f0 brcs .+2 ; 0x1174 <__stack+0x75>
  2669. 1172: 5b cf rjmp .-330 ; 0x102a <AutoCalibration+0x28e>
  2670. {
  2671. SetDriveData(ch, ++drive);
  2672. 1174: ef 81 ldd r30, Y+7 ; 0x07
  2673. 1176: ef 5f subi r30, 0xFF ; 255
  2674. 1178: ef 83 std Y+7, r30 ; 0x07
  2675. 117a: 6e 2f mov r22, r30
  2676. 117c: 83 2d mov r24, r3
  2677. 117e: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
  2678. SwitchDrive(ch, ON);
  2679. 1182: 61 e0 ldi r22, 0x01 ; 1
  2680. 1184: 83 2d mov r24, r3
  2681. 1186: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  2682. 118a: 4f cf rjmp .-354 ; 0x102a <AutoCalibration+0x28e>
  2683. _delay_ms(1);
  2684. CurrMeasure(ch);
  2685. SwitchHeating(ch, OFF);
  2686. SwitchDrive(ch, OFF);
  2687. drive++;
  2688. } while(heater[ch].current < 1000);
  2689. 118c: 83 e1 ldi r24, 0x13 ; 19
  2690. 118e: 29 85 ldd r18, Y+9 ; 0x09
  2691. 1190: 3a 85 ldd r19, Y+10 ; 0x0a
  2692. 1192: 82 9f mul r24, r18
  2693. 1194: f0 01 movw r30, r0
  2694. 1196: 83 9f mul r24, r19
  2695. 1198: f0 0d add r31, r0
  2696. 119a: 11 24 eor r1, r1
  2697. 119c: e2 5d subi r30, 0xD2 ; 210
  2698. 119e: fc 4f sbci r31, 0xFC ; 252
  2699. 11a0: fe 83 std Y+6, r31 ; 0x06
  2700. 11a2: ed 83 std Y+5, r30 ; 0x05
  2701. 11a4: 10 e0 ldi r17, 0x00 ; 0
  2702. 11a6: 01 c0 rjmp .+2 ; 0x11aa <__stack+0xab>
  2703. SwitchHeating(ch, ON);
  2704. _delay_ms(1);
  2705. CurrMeasure(ch);
  2706. SwitchHeating(ch, OFF);
  2707. SwitchDrive(ch, OFF);
  2708. drive++;
  2709. 11a8: 12 2f mov r17, r18
  2710. vhigh = VoltageMeasure(ch) + 0.04;
  2711. if(heater[ch].status.circuit == CIRC_MOSFET)
  2712. {
  2713. do {
  2714. SetDriveData(ch, drive);
  2715. 11aa: 61 2f mov r22, r17
  2716. 11ac: 83 2d mov r24, r3
  2717. 11ae: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
  2718. SwitchDrive(ch, ON);
  2719. 11b2: 61 e0 ldi r22, 0x01 ; 1
  2720. 11b4: 83 2d mov r24, r3
  2721. 11b6: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  2722. 11ba: 83 2d mov r24, r3
  2723. 11bc: 38 d8 rcall .-3984 ; 0x22e <SwitchHeating.part.0>
  2724. 11be: 87 eb ldi r24, 0xB7 ; 183
  2725. 11c0: 9b e0 ldi r25, 0x0B ; 11
  2726. 11c2: 01 97 sbiw r24, 0x01 ; 1
  2727. 11c4: f1 f7 brne .-4 ; 0x11c2 <__stack+0xc3>
  2728. SwitchHeating(ch, ON);
  2729. _delay_ms(1);
  2730. CurrMeasure(ch);
  2731. 11c6: 00 c0 rjmp .+0 ; 0x11c8 <__stack+0xc9>
  2732. 11c8: 00 00 nop
  2733. 11ca: 83 2d mov r24, r3
  2734. SwitchHeating(ch, OFF);
  2735. 11cc: 25 db rcall .-2486 ; 0x818 <CurrMeasure>
  2736. 11ce: 60 e0 ldi r22, 0x00 ; 0
  2737. 11d0: 83 2d mov r24, r3
  2738. 11d2: b9 dc rcall .-1678 ; 0xb46 <SwitchHeating>
  2739. SwitchDrive(ch, OFF);
  2740. 11d4: 60 e0 ldi r22, 0x00 ; 0
  2741. 11d6: 83 2d mov r24, r3
  2742. 11d8: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  2743. drive++;
  2744. 11dc: 21 e0 ldi r18, 0x01 ; 1
  2745. 11de: 21 0f add r18, r17
  2746. } while(heater[ch].current < 1000);
  2747. 11e0: ad 81 ldd r26, Y+5 ; 0x05
  2748. 11e2: be 81 ldd r27, Y+6 ; 0x06
  2749. 11e4: 8d 91 ld r24, X+
  2750. 11e6: 9c 91 ld r25, X
  2751. 11e8: 88 3e cpi r24, 0xE8 ; 232
  2752. 11ea: 93 40 sbci r25, 0x03 ; 3
  2753. 11ec: e8 f2 brcs .-70 ; 0x11a8 <__stack+0xa9>
  2754. 11ee: 1f 83 std Y+7, r17 ; 0x07
  2755. drive--;
  2756. SwitchDrive(ch, ON);
  2757. 11f0: 61 e0 ldi r22, 0x01 ; 1
  2758. 11f2: 83 2d mov r24, r3
  2759. 11f4: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  2760. 11f8: d5 ce rjmp .-598 ; 0xfa4 <AutoCalibration+0x208>
  2761. if(heater[ch].status.circuit == CIRC_MOSFET)
  2762. {
  2763. if(heater[ch].current > 1500)
  2764. {
  2765. SetDriveData(ch, --drive);
  2766. 11fa: ef 81 ldd r30, Y+7 ; 0x07
  2767. 11fc: e1 50 subi r30, 0x01 ; 1
  2768. 11fe: ef 83 std Y+7, r30 ; 0x07
  2769. 1200: 6e 2f mov r22, r30
  2770. 1202: 83 2d mov r24, r3
  2771. 1204: 0e 94 40 14 call 0x2880 ; 0x2880 <SetDriveData>
  2772. SwitchDrive(ch, ON);
  2773. 1208: 61 e0 ldi r22, 0x01 ; 1
  2774. 120a: 83 2d mov r24, r3
  2775. 120c: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  2776. 1210: d4 01 movw r26, r8
  2777. 1212: 8d 91 ld r24, X+
  2778. 1214: 9c 91 ld r25, X
  2779. 1216: aa cf rjmp .-172 ; 0x116c <__stack+0x6d>
  2780. MAX_ReadData();
  2781. if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0))
  2782. {
  2783. LoadPreset(ch);
  2784. 1218: 3d 84 ldd r3, Y+13 ; 0x0d
  2785. 121a: 83 2d mov r24, r3
  2786. 121c: 0e 94 be 14 call 0x297c ; 0x297c <LoadPreset>
  2787. return (-1);
  2788. 1220: 8f ef ldi r24, 0xFF ; 255
  2789. 1222: 9f ef ldi r25, 0xFF ; 255
  2790. fprintf(&lcd_stdout, "%04.2f-%04.2f G=%04.2f", vhigh, vlow, opamp[ch].drive);
  2791. LCD_SetPos(0, 1);
  2792. fprintf(&lcd_stdout, "I=%.4umA Tc=%.3u ", heater[ch].current, heater[ch].tcouple);
  2793. }
  2794. SwitchHeating(ch, OFF);
  2795. 1224: ff cd rjmp .-1026 ; 0xe24 <AutoCalibration+0x88>
  2796. 1226: 60 e0 ldi r22, 0x00 ; 0
  2797. 1228: 83 2d mov r24, r3
  2798. 122a: 8d dc rcall .-1766 ; 0xb46 <SwitchHeating>
  2799. SwitchDrive(ch, OFF);
  2800. 122c: 60 e0 ldi r22, 0x00 ; 0
  2801. 122e: 83 2d mov r24, r3
  2802. 1230: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  2803. 1234: ef e6 ldi r30, 0x6F ; 111
  2804. 1236: f7 e1 ldi r31, 0x17 ; 23
  2805. 1238: 31 97 sbiw r30, 0x01 ; 1
  2806. 123a: f1 f7 brne .-4 ; 0x1238 <__stack+0x139>
  2807. 123c: 00 c0 rjmp .+0 ; 0x123e <__stack+0x13f>
  2808. _delay_ms(2);
  2809. vlow = VoltageMeasure(ch);
  2810. 123e: 00 00 nop
  2811. 1240: 83 2d mov r24, r3
  2812. 1242: aa dc rcall .-1708 ; 0xb98 <VoltageMeasure>
  2813. 1244: 96 2e mov r9, r22
  2814. 1246: 87 2e mov r8, r23
  2815. 1248: 78 2e mov r7, r24
  2816. 124a: 69 2e mov r6, r25
  2817. if(vlow > 0.01)
  2818. 124c: 2a e0 ldi r18, 0x0A ; 10
  2819. 124e: 37 ed ldi r19, 0xD7 ; 215
  2820. 1250: 43 e2 ldi r20, 0x23 ; 35
  2821. 1252: 5c e3 ldi r21, 0x3C ; 60
  2822. 1254: d4 01 movw r26, r8
  2823. 1256: f3 01 movw r30, r6
  2824. 1258: 6b 2f mov r22, r27
  2825. 125a: 7a 2f mov r23, r26
  2826. 125c: 8f 2f mov r24, r31
  2827. 125e: 9e 2f mov r25, r30
  2828. 1260: 0e 94 07 17 call 0x2e0e ; 0x2e0e <__gesf2>
  2829. 1264: 18 16 cp r1, r24
  2830. 1266: 84 f4 brge .+32 ; 0x1288 <__stack+0x189>
  2831. vlow -= 0.01;
  2832. 1268: 2a e0 ldi r18, 0x0A ; 10
  2833. 126a: 37 ed ldi r19, 0xD7 ; 215
  2834. 126c: 43 e2 ldi r20, 0x23 ; 35
  2835. 126e: 5c e3 ldi r21, 0x3C ; 60
  2836. 1270: d4 01 movw r26, r8
  2837. 1272: f3 01 movw r30, r6
  2838. 1274: 6b 2f mov r22, r27
  2839. 1276: 7a 2f mov r23, r26
  2840. 1278: 8f 2f mov r24, r31
  2841. 127a: 9e 2f mov r25, r30
  2842. 127c: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  2843. 1280: 96 2e mov r9, r22
  2844. 1282: 87 2e mov r8, r23
  2845. 1284: 78 2e mov r7, r24
  2846. 1286: 69 2e mov r6, r25
  2847. SetInputRange(ch, vlow, vhigh);
  2848. 1288: 5d 85 ldd r21, Y+13 ; 0x0d
  2849. 128a: 4e 85 ldd r20, Y+14 ; 0x0e
  2850. 128c: 98 89 ldd r25, Y+16 ; 0x10
  2851. 128e: 8a 89 ldd r24, Y+18 ; 0x12
  2852. 1290: 05 2f mov r16, r21
  2853. 1292: 14 2f mov r17, r20
  2854. 1294: 29 2f mov r18, r25
  2855. 1296: 38 2f mov r19, r24
  2856. 1298: f4 01 movw r30, r8
  2857. 129a: c3 01 movw r24, r6
  2858. 129c: 4f 2f mov r20, r31
  2859. 129e: 58 2d mov r21, r8
  2860. 12a0: 69 2f mov r22, r25
  2861. 12a2: 76 2d mov r23, r6
  2862. 12a4: 83 2d mov r24, r3
  2863. 12a6: 0e 94 51 13 call 0x26a2 ; 0x26a2 <SetInputRange>
  2864. for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10)
  2865. 12aa: b0 91 23 01 lds r27, 0x0123 ; 0x800123 <cal_tmax>
  2866. 12ae: bd 83 std Y+5, r27 ; 0x05
  2867. 12b0: e0 91 22 01 lds r30, 0x0122 ; 0x800122 <cal_tmin>
  2868. 12b4: ef 83 std Y+7, r30 ; 0x07
  2869. 12b6: be 17 cp r27, r30
  2870. 12b8: 08 f4 brcc .+2 ; 0x12bc <__stack+0x1bd>
  2871. 12ba: a1 c2 rjmp .+1346 ; 0x17fe <__stack+0x6ff>
  2872. {
  2873. while(heater[ch].tcouple >= temp)
  2874. 12bc: 23 e1 ldi r18, 0x13 ; 19
  2875. 12be: e9 85 ldd r30, Y+9 ; 0x09
  2876. 12c0: fa 85 ldd r31, Y+10 ; 0x0a
  2877. 12c2: 2e 9f mul r18, r30
  2878. 12c4: c0 01 movw r24, r0
  2879. 12c6: 2f 9f mul r18, r31
  2880. 12c8: 90 0d add r25, r0
  2881. 12ca: 11 24 eor r1, r1
  2882. 12cc: 9c 01 movw r18, r24
  2883. 12ce: 20 5e subi r18, 0xE0 ; 224
  2884. 12d0: 3c 4f sbci r19, 0xFC ; 252
  2885. 12d2: 38 87 std Y+8, r19 ; 0x08
  2886. 12d4: 2f 83 std Y+7, r18 ; 0x07
  2887. 12d6: 89 01 movw r16, r18
  2888. 12d8: 0c 5f subi r16, 0xFC ; 252
  2889. 12da: 1f 4f sbci r17, 0xFF ; 255
  2890. {
  2891. MAX_ReadData();
  2892. LCD_SetPos(0, 0);
  2893. fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw);
  2894. 12dc: 79 01 movw r14, r18
  2895. 12de: 38 e0 ldi r19, 0x08 ; 8
  2896. 12e0: e3 0e add r14, r19
  2897. 12e2: f1 1c adc r15, r1
  2898. 12e4: a4 ea ldi r26, 0xA4 ; 164
  2899. 12e6: ca 2e mov r12, r26
  2900. 12e8: a1 e0 ldi r26, 0x01 ; 1
  2901. 12ea: da 2e mov r13, r26
  2902. LCD_SetPos(0, 1);
  2903. fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple);
  2904. 12ec: b8 eb ldi r27, 0xB8 ; 184
  2905. 12ee: 4b 2e mov r4, r27
  2906. 12f0: b1 e0 ldi r27, 0x01 ; 1
  2907. 12f2: 5b 2e mov r5, r27
  2908. }
  2909. TMeasure(ch);
  2910. preset[ch].curve[temp / 10].temp = temp;
  2911. 12f4: 24 e1 ldi r18, 0x14 ; 20
  2912. 12f6: 2e 9f mul r18, r30
  2913. 12f8: a0 01 movw r20, r0
  2914. 12fa: 2f 9f mul r18, r31
  2915. 12fc: 50 0d add r21, r0
  2916. 12fe: 11 24 eor r1, r1
  2917. 1300: 5f 87 std Y+15, r21 ; 0x0f
  2918. 1302: 4e 87 std Y+14, r20 ; 0x0e
  2919. preset[ch].curve[temp / 10].adcdata = heater[ch].tmeas_raw;
  2920. if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0) )
  2921. 1304: bc 01 movw r22, r24
  2922. 1306: 6f 5d subi r22, 0xDF ; 223
  2923. 1308: 7c 4f sbci r23, 0xFC ; 252
  2924. 130a: 79 8b std Y+17, r23 ; 0x11
  2925. 130c: 68 8b std Y+16, r22 ; 0x10
  2926. 130e: 3d 86 std Y+13, r3 ; 0x0d
  2927. 1310: 37 2c mov r3, r7
  2928. 1312: 72 2c mov r7, r2
  2929. 1314: 26 2c mov r2, r6
  2930. vlow -= 0.01;
  2931. SetInputRange(ch, vlow, vhigh);
  2932. for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10)
  2933. {
  2934. while(heater[ch].tcouple >= temp)
  2935. 1316: 6b 84 ldd r6, Y+11 ; 0x0b
  2936. 1318: 7d 81 ldd r23, Y+5 ; 0x05
  2937. 131a: a7 2e mov r10, r23
  2938. 131c: b1 2c mov r11, r1
  2939. 131e: d8 01 movw r26, r16
  2940. 1320: 8d 91 ld r24, X+
  2941. 1322: 9c 91 ld r25, X
  2942. 1324: 8a 15 cp r24, r10
  2943. 1326: 9b 05 cpc r25, r11
  2944. {
  2945. MAX_ReadData();
  2946. 1328: e4 f1 brlt .+120 ; 0x13a2 <__stack+0x2a3>
  2947. 132a: e5 d8 rcall .-3638 ; 0x4f6 <MAX_ReadData>
  2948. LCD_SetPos(0, 0);
  2949. 132c: 60 e0 ldi r22, 0x00 ; 0
  2950. 132e: 80 e0 ldi r24, 0x00 ; 0
  2951. 1330: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
  2952. fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw);
  2953. 1334: d7 01 movw r26, r14
  2954. 1336: 11 96 adiw r26, 0x01 ; 1
  2955. 1338: 8c 91 ld r24, X
  2956. 133a: 11 97 sbiw r26, 0x01 ; 1
  2957. 133c: 8f 93 push r24
  2958. 133e: 8c 91 ld r24, X
  2959. 1340: 8f 93 push r24
  2960. 1342: 7f 92 push r7
  2961. 1344: bb 81 ldd r27, Y+3 ; 0x03
  2962. 1346: bf 93 push r27
  2963. 1348: 6f 92 push r6
  2964. 134a: e9 81 ldd r30, Y+1 ; 0x01
  2965. 134c: ef 93 push r30
  2966. 134e: df 92 push r13
  2967. 1350: cf 92 push r12
  2968. 1352: 24 e1 ldi r18, 0x14 ; 20
  2969. 1354: 31 e0 ldi r19, 0x01 ; 1
  2970. 1356: 3f 93 push r19
  2971. 1358: 2f 93 push r18
  2972. 135a: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  2973. LCD_SetPos(0, 1);
  2974. 135e: 61 e0 ldi r22, 0x01 ; 1
  2975. 1360: 80 e0 ldi r24, 0x00 ; 0
  2976. 1362: 0e 94 c6 12 call 0x258c ; 0x258c <LCD_SetPos>
  2977. fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple);
  2978. 1366: d8 01 movw r26, r16
  2979. 1368: 11 96 adiw r26, 0x01 ; 1
  2980. 136a: 8c 91 ld r24, X
  2981. 136c: 11 97 sbiw r26, 0x01 ; 1
  2982. 136e: 8f 93 push r24
  2983. 1370: 8c 91 ld r24, X
  2984. 1372: 8f 93 push r24
  2985. 1374: 2f 92 push r2
  2986. 1376: 3f 92 push r3
  2987. 1378: 8f 92 push r8
  2988. 137a: 9f 92 push r9
  2989. 137c: 5f 92 push r5
  2990. 137e: 4f 92 push r4
  2991. 1380: e4 e1 ldi r30, 0x14 ; 20
  2992. 1382: f1 e0 ldi r31, 0x01 ; 1
  2993. 1384: ff 93 push r31
  2994. 1386: ef 93 push r30
  2995. 1388: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  2996. vlow -= 0.01;
  2997. SetInputRange(ch, vlow, vhigh);
  2998. for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10)
  2999. {
  3000. while(heater[ch].tcouple >= temp)
  3001. 138c: 0f b6 in r0, 0x3f ; 63
  3002. 138e: f8 94 cli
  3003. 1390: de bf out 0x3e, r29 ; 62
  3004. 1392: 0f be out 0x3f, r0 ; 63
  3005. 1394: cd bf out 0x3d, r28 ; 61
  3006. 1396: d8 01 movw r26, r16
  3007. 1398: 8d 91 ld r24, X+
  3008. 139a: 9c 91 ld r25, X
  3009. 139c: 8a 15 cp r24, r10
  3010. 139e: 9b 05 cpc r25, r11
  3011. LCD_SetPos(0, 0);
  3012. fprintf(&lcd_stdout, "VH=%04.2f Dm=%.3u -", vhigh, heater[ch].tmeas_raw);
  3013. LCD_SetPos(0, 1);
  3014. fprintf(&lcd_stdout, "VL=%04.2f Tc=%.3u -", vlow, heater[ch].tcouple);
  3015. }
  3016. TMeasure(ch);
  3017. 13a0: 24 f6 brge .-120 ; 0x132a <__stack+0x22b>
  3018. 13a2: 8d 85 ldd r24, Y+13 ; 0x0d
  3019. 13a4: f7 d9 rcall .-3090 ; 0x794 <TMeasure>
  3020. preset[ch].curve[temp / 10].temp = temp;
  3021. 13a6: 8d ec ldi r24, 0xCD ; 205
  3022. 13a8: bd 81 ldd r27, Y+5 ; 0x05
  3023. 13aa: b8 9f mul r27, r24
  3024. 13ac: 81 2d mov r24, r1
  3025. 13ae: 11 24 eor r1, r1
  3026. 13b0: 86 95 lsr r24
  3027. 13b2: 86 95 lsr r24
  3028. 13b4: 86 95 lsr r24
  3029. 13b6: ee 85 ldd r30, Y+14 ; 0x0e
  3030. 13b8: ff 85 ldd r31, Y+15 ; 0x0f
  3031. 13ba: e8 0f add r30, r24
  3032. 13bc: f1 1d adc r31, r1
  3033. 13be: cf 01 movw r24, r30
  3034. 13c0: ee 0f add r30, r30
  3035. 13c2: ff 1f adc r31, r31
  3036. 13c4: ee 0f add r30, r30
  3037. 13c6: ff 1f adc r31, r31
  3038. 13c8: ea 5a subi r30, 0xAA ; 170
  3039. 13ca: fc 4f sbci r31, 0xFC ; 252
  3040. 13cc: b1 82 std Z+1, r11 ; 0x01
  3041. 13ce: a0 82 st Z, r10
  3042. preset[ch].curve[temp / 10].adcdata = heater[ch].tmeas_raw;
  3043. 13d0: 88 0f add r24, r24
  3044. 13d2: 99 1f adc r25, r25
  3045. 13d4: 88 0f add r24, r24
  3046. 13d6: 99 1f adc r25, r25
  3047. 13d8: fc 01 movw r30, r24
  3048. 13da: ea 5b subi r30, 0xBA ; 186
  3049. 13dc: fc 4f sbci r31, 0xFC ; 252
  3050. 13de: d7 01 movw r26, r14
  3051. 13e0: 8d 91 ld r24, X+
  3052. 13e2: 9c 91 ld r25, X
  3053. 13e4: 93 8b std Z+19, r25 ; 0x13
  3054. 13e6: 82 8b std Z+18, r24 ; 0x12
  3055. if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_RES) || (heater[ch].status.couple != 0) )
  3056. 13e8: ef 81 ldd r30, Y+7 ; 0x07
  3057. 13ea: f8 85 ldd r31, Y+8 ; 0x08
  3058. 13ec: 80 81 ld r24, Z
  3059. 13ee: 98 2f mov r25, r24
  3060. 13f0: 92 95 swap r25
  3061. 13f2: 96 95 lsr r25
  3062. 13f4: 96 95 lsr r25
  3063. 13f6: 93 70 andi r25, 0x03 ; 3
  3064. 13f8: 81 81 ldd r24, Z+1 ; 0x01
  3065. 13fa: 81 70 andi r24, 0x01 ; 1
  3066. 13fc: 88 0f add r24, r24
  3067. 13fe: 88 0f add r24, r24
  3068. 1400: 89 2b or r24, r25
  3069. 1402: 09 f4 brne .+2 ; 0x1406 <__stack+0x307>
  3070. 1404: 09 cf rjmp .-494 ; 0x1218 <__stack+0x119>
  3071. 1406: 80 81 ld r24, Z
  3072. 1408: 98 2f mov r25, r24
  3073. 140a: 92 95 swap r25
  3074. 140c: 96 95 lsr r25
  3075. 140e: 96 95 lsr r25
  3076. 1410: 93 70 andi r25, 0x03 ; 3
  3077. 1412: 81 81 ldd r24, Z+1 ; 0x01
  3078. 1414: 81 70 andi r24, 0x01 ; 1
  3079. 1416: 88 0f add r24, r24
  3080. 1418: 88 0f add r24, r24
  3081. 141a: 89 2b or r24, r25
  3082. 141c: 84 30 cpi r24, 0x04 ; 4
  3083. 141e: 09 f4 brne .+2 ; 0x1422 <__stack+0x323>
  3084. 1420: fb ce rjmp .-522 ; 0x1218 <__stack+0x119>
  3085. 1422: a8 89 ldd r26, Y+16 ; 0x10
  3086. 1424: b9 89 ldd r27, Y+17 ; 0x11
  3087. 1426: 8c 91 ld r24, X
  3088. 1428: 86 95 lsr r24
  3089. 142a: 87 70 andi r24, 0x07 ; 7
  3090. 142c: 09 f0 breq .+2 ; 0x1430 <__stack+0x331>
  3091. 142e: f4 ce rjmp .-536 ; 0x1218 <__stack+0x119>
  3092. vlow = VoltageMeasure(ch);
  3093. if(vlow > 0.01)
  3094. vlow -= 0.01;
  3095. SetInputRange(ch, vlow, vhigh);
  3096. for(uint8_t temp = cal_tmax; temp >= cal_tmin; temp -= 10)
  3097. 1430: bd 81 ldd r27, Y+5 ; 0x05
  3098. 1432: ba 50 subi r27, 0x0A ; 10
  3099. 1434: bd 83 std Y+5, r27 ; 0x05
  3100. 1436: 80 91 22 01 lds r24, 0x0122 ; 0x800122 <cal_tmin>
  3101. 143a: b8 17 cp r27, r24
  3102. 143c: 08 f0 brcs .+2 ; 0x1440 <__stack+0x341>
  3103. 143e: 6c cf rjmp .-296 ; 0x1318 <__stack+0x219>
  3104. 1440: 8f 83 std Y+7, r24 ; 0x07
  3105. 1442: 3d 84 ldd r3, Y+13 ; 0x0d
  3106. 1444: 20 90 23 01 lds r2, 0x0123 ; 0x800123 <cal_tmax>
  3107. 1448: 8d ec ldi r24, 0xCD ; 205
  3108. 144a: 28 9e mul r2, r24
  3109. 144c: 21 2d mov r18, r1
  3110. 144e: 11 24 eor r1, r1
  3111. 1450: 26 95 lsr r18
  3112. 1452: 26 95 lsr r18
  3113. 1454: 26 95 lsr r18
  3114. 1456: ef 81 ldd r30, Y+7 ; 0x07
  3115. 1458: e8 9f mul r30, r24
  3116. 145a: 81 2d mov r24, r1
  3117. 145c: 11 24 eor r1, r1
  3118. 145e: 86 95 lsr r24
  3119. 1460: 86 95 lsr r24
  3120. 1462: 86 95 lsr r24
  3121. LoadPreset(ch);
  3122. return (-1);
  3123. }
  3124. }
  3125. for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
  3126. 1464: 10 e0 ldi r17, 0x00 ; 0
  3127. {
  3128. preset[ch].curve[temp / 10].temp = temp;
  3129. 1466: 0d ec ldi r16, 0xCD ; 205
  3130. 1468: 94 e1 ldi r25, 0x14 ; 20
  3131. 146a: 49 85 ldd r20, Y+9 ; 0x09
  3132. 146c: 5a 85 ldd r21, Y+10 ; 0x0a
  3133. 146e: 94 9f mul r25, r20
  3134. 1470: 70 01 movw r14, r0
  3135. 1472: 95 9f mul r25, r21
  3136. 1474: f0 0c add r15, r0
  3137. 1476: 11 24 eor r1, r1
  3138. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3139. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3140. 1478: b7 01 movw r22, r14
  3141. 147a: 68 0f add r22, r24
  3142. 147c: 71 1d adc r23, r1
  3143. 147e: ab 01 movw r20, r22
  3144. 1480: 44 0f add r20, r20
  3145. 1482: 55 1f adc r21, r21
  3146. 1484: 44 0f add r20, r20
  3147. 1486: 55 1f adc r21, r21
  3148. 1488: da 01 movw r26, r20
  3149. 148a: a8 5a subi r26, 0xA8 ; 168
  3150. 148c: bc 4f sbci r27, 0xFC ; 252
  3151. 148e: ba 83 std Y+2, r27 ; 0x02
  3152. 1490: a9 83 std Y+1, r26 ; 0x01
  3153. }
  3154. for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
  3155. {
  3156. preset[ch].curve[temp / 10].temp = temp;
  3157. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3158. 1492: fa 01 movw r30, r20
  3159. 1494: ea 5a subi r30, 0xAA ; 170
  3160. 1496: fc 4f sbci r31, 0xFC ; 252
  3161. 1498: fc 83 std Y+4, r31 ; 0x04
  3162. 149a: eb 83 std Y+3, r30 ; 0x03
  3163. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3164. 149c: c7 01 movw r24, r14
  3165. 149e: 82 0f add r24, r18
  3166. 14a0: 91 1d adc r25, r1
  3167. 14a2: 9c 01 movw r18, r24
  3168. 14a4: 22 0f add r18, r18
  3169. 14a6: 33 1f adc r19, r19
  3170. 14a8: 22 0f add r18, r18
  3171. 14aa: 33 1f adc r19, r19
  3172. 14ac: a9 01 movw r20, r18
  3173. 14ae: 48 5a subi r20, 0xA8 ; 168
  3174. 14b0: 5c 4f sbci r21, 0xFC ; 252
  3175. 14b2: 5e 83 std Y+6, r21 ; 0x06
  3176. 14b4: 4d 83 std Y+5, r20 ; 0x05
  3177. }
  3178. for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
  3179. {
  3180. preset[ch].curve[temp / 10].temp = temp;
  3181. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3182. 14b6: b9 01 movw r22, r18
  3183. 14b8: 6a 5a subi r22, 0xAA ; 170
  3184. 14ba: 7c 4f sbci r23, 0xFC ; 252
  3185. 14bc: 7c 87 std Y+12, r23 ; 0x0c
  3186. 14be: 6b 87 std Y+11, r22 ; 0x0b
  3187. 14c0: 2d 86 std Y+13, r2 ; 0x0d
  3188. 14c2: 3e 86 std Y+14, r3 ; 0x0e
  3189. 14c4: 17 01 movw r2, r14
  3190. }
  3191. }
  3192. for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
  3193. {
  3194. preset[ch].curve[temp / 10].temp = temp;
  3195. 14c6: 10 9f mul r17, r16
  3196. 14c8: 81 2d mov r24, r1
  3197. 14ca: 11 24 eor r1, r1
  3198. 14cc: 86 95 lsr r24
  3199. 14ce: 86 95 lsr r24
  3200. 14d0: 86 95 lsr r24
  3201. 14d2: d1 01 movw r26, r2
  3202. 14d4: a8 0f add r26, r24
  3203. 14d6: b1 1d adc r27, r1
  3204. 14d8: b9 8b std Y+17, r27 ; 0x11
  3205. 14da: a8 8b std Y+16, r26 ; 0x10
  3206. 14dc: fd 01 movw r30, r26
  3207. 14de: ee 0f add r30, r30
  3208. 14e0: ff 1f adc r31, r31
  3209. 14e2: ee 0f add r30, r30
  3210. 14e4: ff 1f adc r31, r31
  3211. 14e6: ea 5a subi r30, 0xAA ; 170
  3212. 14e8: fc 4f sbci r31, 0xFC ; 252
  3213. 14ea: 81 2f mov r24, r17
  3214. 14ec: 90 e0 ldi r25, 0x00 ; 0
  3215. 14ee: 91 83 std Z+1, r25 ; 0x01
  3216. 14f0: 80 83 st Z, r24
  3217. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3218. 14f2: e9 81 ldd r30, Y+1 ; 0x01
  3219. 14f4: fa 81 ldd r31, Y+2 ; 0x02
  3220. 14f6: 60 81 ld r22, Z
  3221. 14f8: 71 81 ldd r23, Z+1 ; 0x01
  3222. 14fa: 80 e0 ldi r24, 0x00 ; 0
  3223. 14fc: 90 e0 ldi r25, 0x00 ; 0
  3224. 14fe: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3225. 1502: 6b 01 movw r12, r22
  3226. 1504: 7c 01 movw r14, r24
  3227. 1506: ab 81 ldd r26, Y+3 ; 0x03
  3228. 1508: bc 81 ldd r27, Y+4 ; 0x04
  3229. 150a: 6d 91 ld r22, X+
  3230. 150c: 7c 91 ld r23, X
  3231. 150e: 80 e0 ldi r24, 0x00 ; 0
  3232. 1510: 90 e0 ldi r25, 0x00 ; 0
  3233. 1512: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3234. 1516: 4b 01 movw r8, r22
  3235. 1518: 5c 01 movw r10, r24
  3236. 151a: e8 89 ldd r30, Y+16 ; 0x10
  3237. 151c: f9 89 ldd r31, Y+17 ; 0x11
  3238. 151e: ee 0f add r30, r30
  3239. 1520: ff 1f adc r31, r31
  3240. 1522: ee 0f add r30, r30
  3241. 1524: ff 1f adc r31, r31
  3242. 1526: ea 5b subi r30, 0xBA ; 186
  3243. 1528: fc 4f sbci r31, 0xFC ; 252
  3244. 152a: f9 8b std Y+17, r31 ; 0x11
  3245. 152c: e8 8b std Y+16, r30 ; 0x10
  3246. 152e: ad 81 ldd r26, Y+5 ; 0x05
  3247. 1530: be 81 ldd r27, Y+6 ; 0x06
  3248. 1532: 6d 91 ld r22, X+
  3249. 1534: 7c 91 ld r23, X
  3250. 1536: 80 e0 ldi r24, 0x00 ; 0
  3251. 1538: 90 e0 ldi r25, 0x00 ; 0
  3252. 153a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3253. 153e: a7 01 movw r20, r14
  3254. 1540: 96 01 movw r18, r12
  3255. 1542: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  3256. 1546: 2b 01 movw r4, r22
  3257. 1548: 3c 01 movw r6, r24
  3258. 154a: 61 2f mov r22, r17
  3259. 154c: 70 e0 ldi r23, 0x00 ; 0
  3260. 154e: 80 e0 ldi r24, 0x00 ; 0
  3261. 1550: 90 e0 ldi r25, 0x00 ; 0
  3262. 1552: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3263. 1556: a5 01 movw r20, r10
  3264. 1558: 94 01 movw r18, r8
  3265. 155a: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  3266. 155e: 9b 01 movw r18, r22
  3267. 1560: ac 01 movw r20, r24
  3268. 1562: c3 01 movw r24, r6
  3269. 1564: b2 01 movw r22, r4
  3270. 1566: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
  3271. 156a: 2b 01 movw r4, r22
  3272. 156c: 3c 01 movw r6, r24
  3273. 156e: eb 85 ldd r30, Y+11 ; 0x0b
  3274. 1570: fc 85 ldd r31, Y+12 ; 0x0c
  3275. 1572: 60 81 ld r22, Z
  3276. 1574: 71 81 ldd r23, Z+1 ; 0x01
  3277. 1576: 80 e0 ldi r24, 0x00 ; 0
  3278. 1578: 90 e0 ldi r25, 0x00 ; 0
  3279. 157a: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3280. 157e: a5 01 movw r20, r10
  3281. 1580: 94 01 movw r18, r8
  3282. 1582: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  3283. 1586: 9b 01 movw r18, r22
  3284. 1588: ac 01 movw r20, r24
  3285. 158a: c3 01 movw r24, r6
  3286. 158c: b2 01 movw r22, r4
  3287. 158e: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
  3288. 1592: a7 01 movw r20, r14
  3289. 1594: 96 01 movw r18, r12
  3290. 1596: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
  3291. 159a: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi>
  3292. 159e: a8 89 ldd r26, Y+16 ; 0x10
  3293. 15a0: b9 89 ldd r27, Y+17 ; 0x11
  3294. 15a2: 53 96 adiw r26, 0x13 ; 19
  3295. 15a4: 7c 93 st X, r23
  3296. 15a6: 6e 93 st -X, r22
  3297. 15a8: 52 97 sbiw r26, 0x12 ; 18
  3298. LoadPreset(ch);
  3299. return (-1);
  3300. }
  3301. }
  3302. for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
  3303. 15aa: 16 5f subi r17, 0xF6 ; 246
  3304. 15ac: bf 81 ldd r27, Y+7 ; 0x07
  3305. 15ae: 1b 17 cp r17, r27
  3306. 15b0: 08 f4 brcc .+2 ; 0x15b4 <__stack+0x4b5>
  3307. 15b2: 89 cf rjmp .-238 ; 0x14c6 <__stack+0x3c7>
  3308. 15b4: 2d 84 ldd r2, Y+13 ; 0x0d
  3309. 15b6: 3e 84 ldd r3, Y+14 ; 0x0e
  3310. preset[ch].curve[temp / 10].temp = temp;
  3311. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3312. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3313. }
  3314. for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
  3315. 15b8: 1a e0 ldi r17, 0x0A ; 10
  3316. 15ba: 12 0d add r17, r2
  3317. 15bc: 10 3a cpi r17, 0xA0 ; 160
  3318. 15be: 08 f0 brcs .+2 ; 0x15c2 <__stack+0x4c3>
  3319. 15c0: b4 c0 rjmp .+360 ; 0x172a <__stack+0x62b>
  3320. 15c2: 8d ec ldi r24, 0xCD ; 205
  3321. 15c4: 28 9e mul r2, r24
  3322. 15c6: 91 2d mov r25, r1
  3323. 15c8: 11 24 eor r1, r1
  3324. 15ca: 96 95 lsr r25
  3325. 15cc: 96 95 lsr r25
  3326. 15ce: 96 95 lsr r25
  3327. 15d0: bf 81 ldd r27, Y+7 ; 0x07
  3328. 15d2: b8 9f mul r27, r24
  3329. 15d4: 81 2d mov r24, r1
  3330. 15d6: 11 24 eor r1, r1
  3331. 15d8: 86 95 lsr r24
  3332. 15da: 86 95 lsr r24
  3333. 15dc: 86 95 lsr r24
  3334. {
  3335. preset[ch].curve[temp / 10].temp = temp;
  3336. 15de: 0d ec ldi r16, 0xCD ; 205
  3337. 15e0: 24 e1 ldi r18, 0x14 ; 20
  3338. 15e2: e9 85 ldd r30, Y+9 ; 0x09
  3339. 15e4: fa 85 ldd r31, Y+10 ; 0x0a
  3340. 15e6: 2e 9f mul r18, r30
  3341. 15e8: 70 01 movw r14, r0
  3342. 15ea: 2f 9f mul r18, r31
  3343. 15ec: f0 0c add r15, r0
  3344. 15ee: 11 24 eor r1, r1
  3345. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3346. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3347. 15f0: 97 01 movw r18, r14
  3348. 15f2: 28 0f add r18, r24
  3349. 15f4: 31 1d adc r19, r1
  3350. 15f6: a9 01 movw r20, r18
  3351. 15f8: 44 0f add r20, r20
  3352. 15fa: 55 1f adc r21, r21
  3353. 15fc: 44 0f add r20, r20
  3354. 15fe: 55 1f adc r21, r21
  3355. 1600: ba 01 movw r22, r20
  3356. 1602: 68 5a subi r22, 0xA8 ; 168
  3357. 1604: 7c 4f sbci r23, 0xFC ; 252
  3358. 1606: 7a 83 std Y+2, r23 ; 0x02
  3359. 1608: 69 83 std Y+1, r22 ; 0x01
  3360. }
  3361. for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
  3362. {
  3363. preset[ch].curve[temp / 10].temp = temp;
  3364. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3365. 160a: da 01 movw r26, r20
  3366. 160c: aa 5a subi r26, 0xAA ; 170
  3367. 160e: bc 4f sbci r27, 0xFC ; 252
  3368. 1610: bc 83 std Y+4, r27 ; 0x04
  3369. 1612: ab 83 std Y+3, r26 ; 0x03
  3370. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3371. 1614: f7 01 movw r30, r14
  3372. 1616: e9 0f add r30, r25
  3373. 1618: f1 1d adc r31, r1
  3374. 161a: 9f 01 movw r18, r30
  3375. 161c: 22 0f add r18, r18
  3376. 161e: 33 1f adc r19, r19
  3377. 1620: 22 0f add r18, r18
  3378. 1622: 33 1f adc r19, r19
  3379. 1624: a9 01 movw r20, r18
  3380. 1626: 48 5a subi r20, 0xA8 ; 168
  3381. 1628: 5c 4f sbci r21, 0xFC ; 252
  3382. 162a: 5e 83 std Y+6, r21 ; 0x06
  3383. 162c: 4d 83 std Y+5, r20 ; 0x05
  3384. }
  3385. for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
  3386. {
  3387. preset[ch].curve[temp / 10].temp = temp;
  3388. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3389. 162e: b9 01 movw r22, r18
  3390. 1630: 6a 5a subi r22, 0xAA ; 170
  3391. 1632: 7c 4f sbci r23, 0xFC ; 252
  3392. 1634: 7c 87 std Y+12, r23 ; 0x0c
  3393. 1636: 6b 87 std Y+11, r22 ; 0x0b
  3394. 1638: 3f 82 std Y+7, r3 ; 0x07
  3395. 163a: 17 01 movw r2, r14
  3396. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3397. }
  3398. for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
  3399. {
  3400. preset[ch].curve[temp / 10].temp = temp;
  3401. 163c: 10 9f mul r17, r16
  3402. 163e: 81 2d mov r24, r1
  3403. 1640: 11 24 eor r1, r1
  3404. 1642: 86 95 lsr r24
  3405. 1644: 86 95 lsr r24
  3406. 1646: 86 95 lsr r24
  3407. 1648: d1 01 movw r26, r2
  3408. 164a: a8 0f add r26, r24
  3409. 164c: b1 1d adc r27, r1
  3410. 164e: bf 87 std Y+15, r27 ; 0x0f
  3411. 1650: ae 87 std Y+14, r26 ; 0x0e
  3412. 1652: fd 01 movw r30, r26
  3413. 1654: ee 0f add r30, r30
  3414. 1656: ff 1f adc r31, r31
  3415. 1658: ee 0f add r30, r30
  3416. 165a: ff 1f adc r31, r31
  3417. 165c: ea 5a subi r30, 0xAA ; 170
  3418. 165e: fc 4f sbci r31, 0xFC ; 252
  3419. 1660: 81 2f mov r24, r17
  3420. 1662: 90 e0 ldi r25, 0x00 ; 0
  3421. 1664: 91 83 std Z+1, r25 ; 0x01
  3422. 1666: 80 83 st Z, r24
  3423. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3424. 1668: e9 81 ldd r30, Y+1 ; 0x01
  3425. 166a: fa 81 ldd r31, Y+2 ; 0x02
  3426. 166c: 60 81 ld r22, Z
  3427. 166e: 71 81 ldd r23, Z+1 ; 0x01
  3428. 1670: 80 e0 ldi r24, 0x00 ; 0
  3429. 1672: 90 e0 ldi r25, 0x00 ; 0
  3430. 1674: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3431. 1678: 6b 01 movw r12, r22
  3432. 167a: 7c 01 movw r14, r24
  3433. 167c: ab 81 ldd r26, Y+3 ; 0x03
  3434. 167e: bc 81 ldd r27, Y+4 ; 0x04
  3435. 1680: 6d 91 ld r22, X+
  3436. 1682: 7c 91 ld r23, X
  3437. 1684: 80 e0 ldi r24, 0x00 ; 0
  3438. 1686: 90 e0 ldi r25, 0x00 ; 0
  3439. 1688: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3440. 168c: 4b 01 movw r8, r22
  3441. 168e: 5c 01 movw r10, r24
  3442. 1690: ee 85 ldd r30, Y+14 ; 0x0e
  3443. 1692: ff 85 ldd r31, Y+15 ; 0x0f
  3444. 1694: ee 0f add r30, r30
  3445. 1696: ff 1f adc r31, r31
  3446. 1698: ee 0f add r30, r30
  3447. 169a: ff 1f adc r31, r31
  3448. 169c: ea 5b subi r30, 0xBA ; 186
  3449. 169e: fc 4f sbci r31, 0xFC ; 252
  3450. 16a0: ff 87 std Y+15, r31 ; 0x0f
  3451. 16a2: ee 87 std Y+14, r30 ; 0x0e
  3452. 16a4: ad 81 ldd r26, Y+5 ; 0x05
  3453. 16a6: be 81 ldd r27, Y+6 ; 0x06
  3454. 16a8: 6d 91 ld r22, X+
  3455. 16aa: 7c 91 ld r23, X
  3456. 16ac: 80 e0 ldi r24, 0x00 ; 0
  3457. 16ae: 90 e0 ldi r25, 0x00 ; 0
  3458. 16b0: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3459. 16b4: a7 01 movw r20, r14
  3460. 16b6: 96 01 movw r18, r12
  3461. 16b8: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  3462. 16bc: 2b 01 movw r4, r22
  3463. 16be: 3c 01 movw r6, r24
  3464. 16c0: 61 2f mov r22, r17
  3465. 16c2: 70 e0 ldi r23, 0x00 ; 0
  3466. 16c4: 80 e0 ldi r24, 0x00 ; 0
  3467. 16c6: 90 e0 ldi r25, 0x00 ; 0
  3468. 16c8: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3469. 16cc: a5 01 movw r20, r10
  3470. 16ce: 94 01 movw r18, r8
  3471. 16d0: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  3472. 16d4: 9b 01 movw r18, r22
  3473. 16d6: ac 01 movw r20, r24
  3474. 16d8: c3 01 movw r24, r6
  3475. 16da: b2 01 movw r22, r4
  3476. 16dc: 0e 94 0b 17 call 0x2e16 ; 0x2e16 <__mulsf3>
  3477. 16e0: 2b 01 movw r4, r22
  3478. 16e2: 3c 01 movw r6, r24
  3479. 16e4: eb 85 ldd r30, Y+11 ; 0x0b
  3480. 16e6: fc 85 ldd r31, Y+12 ; 0x0c
  3481. 16e8: 60 81 ld r22, Z
  3482. 16ea: 71 81 ldd r23, Z+1 ; 0x01
  3483. 16ec: 80 e0 ldi r24, 0x00 ; 0
  3484. 16ee: 90 e0 ldi r25, 0x00 ; 0
  3485. 16f0: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3486. 16f4: a5 01 movw r20, r10
  3487. 16f6: 94 01 movw r18, r8
  3488. 16f8: 0e 94 53 15 call 0x2aa6 ; 0x2aa6 <__subsf3>
  3489. 16fc: 9b 01 movw r18, r22
  3490. 16fe: ac 01 movw r20, r24
  3491. 1700: c3 01 movw r24, r6
  3492. 1702: b2 01 movw r22, r4
  3493. 1704: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
  3494. 1708: a7 01 movw r20, r14
  3495. 170a: 96 01 movw r18, r12
  3496. 170c: 0e 94 54 15 call 0x2aa8 ; 0x2aa8 <__addsf3>
  3497. 1710: 0e 94 29 16 call 0x2c52 ; 0x2c52 <__fixunssfsi>
  3498. 1714: ae 85 ldd r26, Y+14 ; 0x0e
  3499. 1716: bf 85 ldd r27, Y+15 ; 0x0f
  3500. 1718: 53 96 adiw r26, 0x13 ; 19
  3501. 171a: 7c 93 st X, r23
  3502. 171c: 6e 93 st -X, r22
  3503. 171e: 52 97 sbiw r26, 0x12 ; 18
  3504. preset[ch].curve[temp / 10].temp = temp;
  3505. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3506. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3507. }
  3508. for(uint8_t temp = (cal_tmax + 10); temp < 160; temp += 10)
  3509. 1720: 16 5f subi r17, 0xF6 ; 246
  3510. 1722: 10 3a cpi r17, 0xA0 ; 160
  3511. 1724: 08 f4 brcc .+2 ; 0x1728 <__stack+0x629>
  3512. 1726: 8a cf rjmp .-236 ; 0x163c <__stack+0x53d>
  3513. 1728: 3f 80 ldd r3, Y+7 ; 0x07
  3514. preset[ch].curve[temp / 10].temp = temp;
  3515. preset[ch].curve[temp / 10].adcdata = Approx(preset[ch].curve[cal_tmin / 10].temp, preset[ch].curve[cal_tmax / 10].temp,
  3516. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3517. }
  3518. if(strlen(preset[ch].header) == 0)
  3519. 172a: 20 e5 ldi r18, 0x50 ; 80
  3520. 172c: e9 85 ldd r30, Y+9 ; 0x09
  3521. 172e: fa 85 ldd r31, Y+10 ; 0x0a
  3522. 1730: 2e 9f mul r18, r30
  3523. 1732: c0 01 movw r24, r0
  3524. 1734: 2f 9f mul r18, r31
  3525. 1736: 90 0d add r25, r0
  3526. 1738: 11 24 eor r1, r1
  3527. 173a: 89 5b subi r24, 0xB9 ; 185
  3528. 173c: 9c 4f sbci r25, 0xFC ; 252
  3529. 173e: dc 01 movw r26, r24
  3530. 1740: 2c 91 ld r18, X
  3531. 1742: 22 23 and r18, r18
  3532. 1744: 09 f4 brne .+2 ; 0x1748 <__stack+0x649>
  3533. 1746: 54 c0 rjmp .+168 ; 0x17f0 <__stack+0x6f1>
  3534. {
  3535. strncpy(preset[ch].header, "DEFAULT", 12);
  3536. }
  3537. preset[ch].number = heater[ch].preset;
  3538. 1748: 80 e5 ldi r24, 0x50 ; 80
  3539. 174a: 29 85 ldd r18, Y+9 ; 0x09
  3540. 174c: 3a 85 ldd r19, Y+10 ; 0x0a
  3541. 174e: 82 9f mul r24, r18
  3542. 1750: f0 01 movw r30, r0
  3543. 1752: 83 9f mul r24, r19
  3544. 1754: f0 0d add r31, r0
  3545. 1756: 11 24 eor r1, r1
  3546. 1758: ea 5b subi r30, 0xBA ; 186
  3547. 175a: fc 4f sbci r31, 0xFC ; 252
  3548. 175c: 83 e1 ldi r24, 0x13 ; 19
  3549. 175e: 82 9f mul r24, r18
  3550. 1760: d0 01 movw r26, r0
  3551. 1762: 83 9f mul r24, r19
  3552. 1764: b0 0d add r27, r0
  3553. 1766: 11 24 eor r1, r1
  3554. 1768: a0 5e subi r26, 0xE0 ; 224
  3555. 176a: bc 4f sbci r27, 0xFC ; 252
  3556. 176c: 12 96 adiw r26, 0x02 ; 2
  3557. 176e: 8c 91 ld r24, X
  3558. 1770: 12 97 sbiw r26, 0x02 ; 2
  3559. 1772: 80 83 st Z, r24
  3560. preset[ch].gain = heater[ch].gain;
  3561. 1774: 50 96 adiw r26, 0x10 ; 16
  3562. 1776: 8c 91 ld r24, X
  3563. 1778: 50 97 sbiw r26, 0x10 ; 16
  3564. preset[ch].shift = heater[ch].shift;
  3565. 177a: 85 87 std Z+13, r24 ; 0x0d
  3566. 177c: 51 96 adiw r26, 0x11 ; 17
  3567. 177e: 8c 91 ld r24, X
  3568. preset[ch].drive = heater[ch].drive;
  3569. 1780: 51 97 sbiw r26, 0x11 ; 17
  3570. 1782: 86 87 std Z+14, r24 ; 0x0e
  3571. 1784: 52 96 adiw r26, 0x12 ; 18
  3572. SavePreset(ch);
  3573. 1786: 8c 91 ld r24, X
  3574. 1788: 87 87 std Z+15, r24 ; 0x0f
  3575. LCD_SendCmd(LCD_CLR);
  3576. 178a: 83 2d mov r24, r3
  3577. 178c: 0e 94 01 15 call 0x2a02 ; 0x2a02 <SavePreset>
  3578. 1790: 81 e0 ldi r24, 0x01 ; 1
  3579. if(++delcnt > 300)
  3580. {
  3581. delcnt = 0;
  3582. if((heater[ch].tcouple - tstart) < 5)
  3583. {
  3584. SwitchHeating(ch, OFF);
  3585. 1792: d7 d6 rcall .+3502 ; 0x2542 <LCD_SendCmd>
  3586. 1794: 45 cb rjmp .-2422 ; 0xe20 <AutoCalibration+0x84>
  3587. 1796: 60 e0 ldi r22, 0x00 ; 0
  3588. 1798: 83 2d mov r24, r3
  3589. SwitchDrive(ch, OFF);
  3590. 179a: d5 d9 rcall .-3158 ; 0xb46 <SwitchHeating>
  3591. 179c: 60 e0 ldi r22, 0x00 ; 0
  3592. 179e: 83 2d mov r24, r3
  3593. LCD_SetPos(0, 0);
  3594. 17a0: 0e 94 5f 14 call 0x28be ; 0x28be <SwitchDrive>
  3595. 17a4: 60 e0 ldi r22, 0x00 ; 0
  3596. 17a6: 80 e0 ldi r24, 0x00 ; 0
  3597. fprintf(&lcd_stdout, "Íåäîñòàòî÷íûé ");
  3598. 17a8: f1 d6 rcall .+3554 ; 0x258c <LCD_SetPos>
  3599. 17aa: 24 e1 ldi r18, 0x14 ; 20
  3600. 17ac: 31 e0 ldi r19, 0x01 ; 1
  3601. 17ae: 40 e1 ldi r20, 0x10 ; 16
  3602. 17b0: 50 e0 ldi r21, 0x00 ; 0
  3603. 17b2: 61 e0 ldi r22, 0x01 ; 1
  3604. 17b4: 70 e0 ldi r23, 0x00 ; 0
  3605. 17b6: 89 e5 ldi r24, 0x59 ; 89
  3606. 17b8: 91 e0 ldi r25, 0x01 ; 1
  3607. 17ba: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  3608. LCD_SetPos(0, 1);
  3609. 17be: 61 e0 ldi r22, 0x01 ; 1
  3610. 17c0: 80 e0 ldi r24, 0x00 ; 0
  3611. 17c2: e4 d6 rcall .+3528 ; 0x258c <LCD_SetPos>
  3612. fprintf(&lcd_stdout, "òåïëîâîé êîíòàêò");
  3613. 17c4: 24 e1 ldi r18, 0x14 ; 20
  3614. 17c6: 31 e0 ldi r19, 0x01 ; 1
  3615. 17c8: 40 e1 ldi r20, 0x10 ; 16
  3616. 17ca: 50 e0 ldi r21, 0x00 ; 0
  3617. 17cc: 61 e0 ldi r22, 0x01 ; 1
  3618. 17ce: 70 e0 ldi r23, 0x00 ; 0
  3619. 17d0: 8a e6 ldi r24, 0x6A ; 106
  3620. 17d2: 91 e0 ldi r25, 0x01 ; 1
  3621. 17d4: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  3622. LoadPreset(ch);
  3623. 17d8: 83 2d mov r24, r3
  3624. 17da: 0e 94 be 14 call 0x297c ; 0x297c <LoadPreset>
  3625. btn_act = 0;
  3626. 17de: 10 92 f7 02 sts 0x02F7, r1 ; 0x8002f7 <btn_act>
  3627. while(!btn_act);
  3628. 17e2: 80 91 f7 02 lds r24, 0x02F7 ; 0x8002f7 <btn_act>
  3629. 17e6: 88 23 and r24, r24
  3630. 17e8: e1 f3 breq .-8 ; 0x17e2 <__stack+0x6e3>
  3631. return(-1);
  3632. 17ea: 8f ef ldi r24, 0xFF ; 255
  3633. 17ec: 9f ef ldi r25, 0xFF ; 255
  3634. 17ee: 1a cb rjmp .-2508 ; 0xe24 <AutoCalibration+0x88>
  3635. preset[ch].curve[cal_tmin / 10].adcdata, preset[ch].curve[cal_tmax / 10].adcdata, preset[ch].curve[temp / 10].temp);
  3636. }
  3637. if(strlen(preset[ch].header) == 0)
  3638. {
  3639. strncpy(preset[ch].header, "DEFAULT", 12);
  3640. 17f0: 4c e0 ldi r20, 0x0C ; 12
  3641. 17f2: 50 e0 ldi r21, 0x00 ; 0
  3642. 17f4: 6c ec ldi r22, 0xCC ; 204
  3643. 17f6: 71 e0 ldi r23, 0x01 ; 1
  3644. 17f8: 0e 94 6d 1d call 0x3ada ; 0x3ada <strncpy>
  3645. 17fc: a5 cf rjmp .-182 ; 0x1748 <__stack+0x649>
  3646. LoadPreset(ch);
  3647. return (-1);
  3648. }
  3649. }
  3650. for(uint8_t temp = 0; temp < cal_tmin; temp += 10)
  3651. 17fe: bf 81 ldd r27, Y+7 ; 0x07
  3652. 1800: 2d 80 ldd r2, Y+5 ; 0x05
  3653. 1802: bb 23 and r27, r27
  3654. 1804: 09 f4 brne .+2 ; 0x1808 <__stack+0x709>
  3655. 1806: d8 ce rjmp .-592 ; 0x15b8 <__stack+0x4b9>
  3656. 1808: 1f ce rjmp .-962 ; 0x1448 <__stack+0x349>
  3657. 0000180a <ProcessCommand>:
  3658. }
  3659. heater[ch].status.heating = OFF;
  3660. }
  3661. void ProcessCommand()
  3662. {
  3663. 180a: cf 93 push r28
  3664. 180c: df 93 push r29
  3665. uint8_t ch = ((rxdata.command & 0x80) >> 7) & 0x01;
  3666. 180e: c0 91 ec 05 lds r28, 0x05EC ; 0x8005ec <rxdata+0x2>
  3667. 1812: cc 1f adc r28, r28
  3668. 1814: cc 27 eor r28, r28
  3669. 1816: cc 1f adc r28, r28
  3670. rxdata.command &= 0x7F;
  3671. 1818: 80 91 ec 05 lds r24, 0x05EC ; 0x8005ec <rxdata+0x2>
  3672. 181c: 8f 77 andi r24, 0x7F ; 127
  3673. 181e: 80 93 ec 05 sts 0x05EC, r24 ; 0x8005ec <rxdata+0x2>
  3674. txrequest = REQ_ACK;
  3675. 1822: 81 e0 ldi r24, 0x01 ; 1
  3676. 1824: 80 93 f3 02 sts 0x02F3, r24 ; 0x8002f3 <txrequest>
  3677. switch(rxdata.command)
  3678. 1828: e0 91 ec 05 lds r30, 0x05EC ; 0x8005ec <rxdata+0x2>
  3679. 182c: 8e 2f mov r24, r30
  3680. 182e: 90 e0 ldi r25, 0x00 ; 0
  3681. 1830: 8a 30 cpi r24, 0x0A ; 10
  3682. 1832: 91 05 cpc r25, r1
  3683. 1834: 80 f4 brcc .+32 ; 0x1856 <ProcessCommand+0x4c>
  3684. 1836: fc 01 movw r30, r24
  3685. 1838: e2 5c subi r30, 0xC2 ; 194
  3686. 183a: ff 4f sbci r31, 0xFF ; 255
  3687. 183c: 0c 94 df 1a jmp 0x35be ; 0x35be <__tablejump2__>
  3688. SwitchHeating(ch, OFF);
  3689. SwitchDrive(ch, OFF);
  3690. break;
  3691. case CMD_SETTEMP:
  3692. heater[ch].tset = rxdata.data[0];
  3693. 1840: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
  3694. 1844: 93 e1 ldi r25, 0x13 ; 19
  3695. 1846: c9 9f mul r28, r25
  3696. 1848: e0 01 movw r28, r0
  3697. 184a: 11 24 eor r1, r1
  3698. 184c: c0 5e subi r28, 0xE0 ; 224
  3699. 184e: dc 4f sbci r29, 0xFC ; 252
  3700. 1850: 90 e0 ldi r25, 0x00 ; 0
  3701. 1852: 9b 87 std Y+11, r25 ; 0x0b
  3702. 1854: 8a 87 std Y+10, r24 ; 0x0a
  3703. ManualCalibration(ch);
  3704. else if(heater[ch].status.calib == CAL_AUTO)
  3705. AutoCalibration(ch);
  3706. break;
  3707. }
  3708. }
  3709. 1856: df 91 pop r29
  3710. 1858: cf 91 pop r28
  3711. 185a: 08 95 ret
  3712. memcpy((uint8_t*)preset, (uint8_t*)rxdata.data, rxdata.len);
  3713. SavePreset(ch);
  3714. break;
  3715. case CMD_HEATING:
  3716. if(heater[ch].status.calib == CAL_MANUAL)
  3717. 185c: 83 e1 ldi r24, 0x13 ; 19
  3718. 185e: c8 9f mul r28, r24
  3719. 1860: e0 01 movw r28, r0
  3720. 1862: 11 24 eor r1, r1
  3721. 1864: c0 5e subi r28, 0xE0 ; 224
  3722. 1866: dc 4f sbci r29, 0xFC ; 252
  3723. 1868: 88 81 ld r24, Y
  3724. 186a: 82 95 swap r24
  3725. 186c: 83 70 andi r24, 0x03 ; 3
  3726. 186e: 82 30 cpi r24, 0x02 ; 2
  3727. 1870: 91 f7 brne .-28 ; 0x1856 <ProcessCommand+0x4c>
  3728. heater[ch].status.heating = rxdata.data[0];
  3729. 1872: 90 91 ed 05 lds r25, 0x05ED ; 0x8005ed <rxdata+0x3>
  3730. 1876: 88 81 ld r24, Y
  3731. 1878: 90 fb bst r25, 0
  3732. 187a: 82 f9 bld r24, 2
  3733. 187c: 88 83 st Y, r24
  3734. 187e: eb cf rjmp .-42 ; 0x1856 <ProcessCommand+0x4c>
  3735. break;
  3736. case CMD_CALIBRATION:
  3737. heater[ch].status.calib = rxdata.data[0];
  3738. 1880: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
  3739. 1884: 83 70 andi r24, 0x03 ; 3
  3740. 1886: 93 e1 ldi r25, 0x13 ; 19
  3741. 1888: c9 9f mul r28, r25
  3742. 188a: f0 01 movw r30, r0
  3743. 188c: 11 24 eor r1, r1
  3744. 188e: e0 5e subi r30, 0xE0 ; 224
  3745. 1890: fc 4f sbci r31, 0xFC ; 252
  3746. 1892: 98 2f mov r25, r24
  3747. 1894: 92 95 swap r25
  3748. 1896: 90 7f andi r25, 0xF0 ; 240
  3749. 1898: 80 81 ld r24, Z
  3750. 189a: 8f 7c andi r24, 0xCF ; 207
  3751. 189c: 89 2b or r24, r25
  3752. 189e: 80 83 st Z, r24
  3753. cal_tmin = rxdata.data[1];
  3754. 18a0: 80 91 ee 05 lds r24, 0x05EE ; 0x8005ee <rxdata+0x4>
  3755. 18a4: 80 93 22 01 sts 0x0122, r24 ; 0x800122 <cal_tmin>
  3756. cal_tmax = rxdata.data[2];
  3757. 18a8: 80 91 ef 05 lds r24, 0x05EF ; 0x8005ef <rxdata+0x5>
  3758. 18ac: 80 93 23 01 sts 0x0123, r24 ; 0x800123 <cal_tmax>
  3759. if(heater[ch].status.calib == CAL_MANUAL)
  3760. 18b0: 80 81 ld r24, Z
  3761. 18b2: 82 95 swap r24
  3762. 18b4: 83 70 andi r24, 0x03 ; 3
  3763. 18b6: 82 30 cpi r24, 0x02 ; 2
  3764. 18b8: 09 f4 brne .+2 ; 0x18bc <ProcessCommand+0xb2>
  3765. 18ba: 7c c0 rjmp .+248 ; 0x19b4 <ProcessCommand+0x1aa>
  3766. ManualCalibration(ch);
  3767. else if(heater[ch].status.calib == CAL_AUTO)
  3768. 18bc: 80 81 ld r24, Z
  3769. 18be: 82 95 swap r24
  3770. 18c0: 83 70 andi r24, 0x03 ; 3
  3771. 18c2: 81 30 cpi r24, 0x01 ; 1
  3772. 18c4: 41 f6 brne .-112 ; 0x1856 <ProcessCommand+0x4c>
  3773. AutoCalibration(ch);
  3774. 18c6: 8c 2f mov r24, r28
  3775. break;
  3776. }
  3777. }
  3778. 18c8: df 91 pop r29
  3779. 18ca: cf 91 pop r28
  3780. cal_tmax = rxdata.data[2];
  3781. if(heater[ch].status.calib == CAL_MANUAL)
  3782. ManualCalibration(ch);
  3783. else if(heater[ch].status.calib == CAL_AUTO)
  3784. AutoCalibration(ch);
  3785. 18cc: 67 ca rjmp .-2866 ; 0xd9c <AutoCalibration>
  3786. rxdata.command &= 0x7F;
  3787. txrequest = REQ_ACK;
  3788. switch(rxdata.command)
  3789. {
  3790. case CMD_RESET:
  3791. ResetMCU();
  3792. 18ce: 34 d9 rcall .-3480 ; 0xb38 <ResetMCU>
  3793. 18d0: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
  3794. break;
  3795. case CMD_REQ:
  3796. txrequest = rxdata.data[0];
  3797. 18d4: 80 93 f3 02 sts 0x02F3, r24 ; 0x8002f3 <txrequest>
  3798. 18d8: be cf rjmp .-132 ; 0x1856 <ProcessCommand+0x4c>
  3799. break;
  3800. 18da: 90 91 ed 05 lds r25, 0x05ED ; 0x8005ed <rxdata+0x3>
  3801. case CMD_CHONOFF:
  3802. heater[ch].status.onoff = rxdata.data[0];
  3803. 18de: 83 e1 ldi r24, 0x13 ; 19
  3804. 18e0: c8 9f mul r28, r24
  3805. 18e2: f0 01 movw r30, r0
  3806. 18e4: 11 24 eor r1, r1
  3807. 18e6: e0 5e subi r30, 0xE0 ; 224
  3808. 18e8: fc 4f sbci r31, 0xFC ; 252
  3809. 18ea: 80 81 ld r24, Z
  3810. 18ec: 90 fb bst r25, 0
  3811. 18ee: 81 f9 bld r24, 1
  3812. 18f0: 80 83 st Z, r24
  3813. 18f2: 60 e0 ldi r22, 0x00 ; 0
  3814. SwitchHeating(ch, OFF);
  3815. 18f4: 8c 2f mov r24, r28
  3816. 18f6: 27 d9 rcall .-3506 ; 0xb46 <SwitchHeating>
  3817. 18f8: 60 e0 ldi r22, 0x00 ; 0
  3818. SwitchDrive(ch, OFF);
  3819. 18fa: 8c 2f mov r24, r28
  3820. ManualCalibration(ch);
  3821. else if(heater[ch].status.calib == CAL_AUTO)
  3822. AutoCalibration(ch);
  3823. break;
  3824. }
  3825. }
  3826. 18fc: df 91 pop r29
  3827. 18fe: cf 91 pop r28
  3828. break;
  3829. case CMD_CHONOFF:
  3830. heater[ch].status.onoff = rxdata.data[0];
  3831. SwitchHeating(ch, OFF);
  3832. SwitchDrive(ch, OFF);
  3833. 1900: de c7 rjmp .+4028 ; 0x28be <SwitchDrive>
  3834. 1902: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
  3835. case CMD_SETTEMP:
  3836. heater[ch].tset = rxdata.data[0];
  3837. break;
  3838. case CMD_SETRANGE:
  3839. heater[ch].gain = rxdata.data[0];
  3840. 1906: 93 e1 ldi r25, 0x13 ; 19
  3841. 1908: c9 9f mul r28, r25
  3842. 190a: f0 01 movw r30, r0
  3843. 190c: 11 24 eor r1, r1
  3844. 190e: e0 5e subi r30, 0xE0 ; 224
  3845. 1910: fc 4f sbci r31, 0xFC ; 252
  3846. 1912: 80 8b std Z+16, r24 ; 0x10
  3847. 1914: 80 91 ee 05 lds r24, 0x05EE ; 0x8005ee <rxdata+0x4>
  3848. heater[ch].shift = rxdata.data[1];
  3849. 1918: 81 8b std Z+17, r24 ; 0x11
  3850. 191a: 60 91 ed 05 lds r22, 0x05ED ; 0x8005ed <rxdata+0x3>
  3851. SetGainData(ch, rxdata.data[0]);
  3852. 191e: 8c 2f mov r24, r28
  3853. 1920: 52 d7 rcall .+3748 ; 0x27c6 <SetGainData>
  3854. 1922: 60 91 ee 05 lds r22, 0x05EE ; 0x8005ee <rxdata+0x4>
  3855. SetShiftData(ch, rxdata.data[1]);
  3856. 1926: 8c 2f mov r24, r28
  3857. ManualCalibration(ch);
  3858. else if(heater[ch].status.calib == CAL_AUTO)
  3859. AutoCalibration(ch);
  3860. break;
  3861. }
  3862. }
  3863. 1928: df 91 pop r29
  3864. 192a: cf 91 pop r28
  3865. case CMD_SETRANGE:
  3866. heater[ch].gain = rxdata.data[0];
  3867. heater[ch].shift = rxdata.data[1];
  3868. SetGainData(ch, rxdata.data[0]);
  3869. SetShiftData(ch, rxdata.data[1]);
  3870. 192c: 7b c7 rjmp .+3830 ; 0x2824 <SetShiftData>
  3871. 192e: 8c 2f mov r24, r28
  3872. break;
  3873. case CMD_SETVDRIVE:
  3874. heater[ch].drive = rxdata.data[0];
  3875. 1930: 90 e0 ldi r25, 0x00 ; 0
  3876. 1932: 20 91 ed 05 lds r18, 0x05ED ; 0x8005ed <rxdata+0x3>
  3877. 1936: 33 e1 ldi r19, 0x13 ; 19
  3878. 1938: 38 9f mul r19, r24
  3879. 193a: f0 01 movw r30, r0
  3880. 193c: 39 9f mul r19, r25
  3881. 193e: f0 0d add r31, r0
  3882. 1940: 11 24 eor r1, r1
  3883. 1942: e0 5e subi r30, 0xE0 ; 224
  3884. 1944: fc 4f sbci r31, 0xFC ; 252
  3885. 1946: 22 8b std Z+18, r18 ; 0x12
  3886. 1948: 2d e0 ldi r18, 0x0D ; 13
  3887. opamp[ch].drive = ((float)heater->drive / 25.76);
  3888. 194a: 28 9f mul r18, r24
  3889. 194c: e0 01 movw r28, r0
  3890. 194e: 29 9f mul r18, r25
  3891. 1950: d0 0d add r29, r0
  3892. 1952: 11 24 eor r1, r1
  3893. 1954: c2 57 subi r28, 0x72 ; 114
  3894. 1956: d9 4f sbci r29, 0xF9 ; 249
  3895. 1958: 60 91 32 03 lds r22, 0x0332 ; 0x800332 <heater+0x12>
  3896. 195c: 70 e0 ldi r23, 0x00 ; 0
  3897. 195e: 80 e0 ldi r24, 0x00 ; 0
  3898. 1960: 90 e0 ldi r25, 0x00 ; 0
  3899. 1962: 0e 94 55 16 call 0x2caa ; 0x2caa <__floatunsisf>
  3900. 1966: 2b e7 ldi r18, 0x7B ; 123
  3901. 1968: 34 e1 ldi r19, 0x14 ; 20
  3902. 196a: 4e ec ldi r20, 0xCE ; 206
  3903. 196c: 51 e4 ldi r21, 0x41 ; 65
  3904. 196e: 0e 94 bc 15 call 0x2b78 ; 0x2b78 <__divsf3>
  3905. 1972: 69 87 std Y+9, r22 ; 0x09
  3906. 1974: 7a 87 std Y+10, r23 ; 0x0a
  3907. 1976: 8b 87 std Y+11, r24 ; 0x0b
  3908. 1978: 9c 87 std Y+12, r25 ; 0x0c
  3909. 197a: 6d cf rjmp .-294 ; 0x1856 <ProcessCommand+0x4c>
  3910. break;
  3911. 197c: 80 91 ed 05 lds r24, 0x05ED ; 0x8005ed <rxdata+0x3>
  3912. case CMD_SWPRESET:
  3913. heater[ch].preset = rxdata.data[0];
  3914. 1980: 93 e1 ldi r25, 0x13 ; 19
  3915. 1982: c9 9f mul r28, r25
  3916. 1984: f0 01 movw r30, r0
  3917. 1986: 11 24 eor r1, r1
  3918. 1988: e0 5e subi r30, 0xE0 ; 224
  3919. 198a: fc 4f sbci r31, 0xFC ; 252
  3920. LoadPreset(ch);
  3921. 198c: 82 83 std Z+2, r24 ; 0x02
  3922. 198e: 8c 2f mov r24, r28
  3923. 1990: f5 d7 rcall .+4074 ; 0x297c <LoadPreset>
  3924. ManualCalibration(ch);
  3925. else if(heater[ch].status.calib == CAL_AUTO)
  3926. AutoCalibration(ch);
  3927. break;
  3928. }
  3929. }
  3930. 1992: df 91 pop r29
  3931. 1994: cf 91 pop r28
  3932. break;
  3933. case CMD_SWPRESET:
  3934. heater[ch].preset = rxdata.data[0];
  3935. LoadPreset(ch);
  3936. SavePrefs();
  3937. 1996: ce c7 rjmp .+3996 ; 0x2934 <SavePrefs>
  3938. 1998: 40 91 eb 05 lds r20, 0x05EB ; 0x8005eb <rxdata+0x1>
  3939. break;
  3940. case CMD_LOADDATA:
  3941. memcpy((uint8_t*)preset, (uint8_t*)rxdata.data, rxdata.len);
  3942. 199c: 50 e0 ldi r21, 0x00 ; 0
  3943. 199e: 6d ee ldi r22, 0xED ; 237
  3944. 19a0: 75 e0 ldi r23, 0x05 ; 5
  3945. 19a2: 86 e4 ldi r24, 0x46 ; 70
  3946. 19a4: 93 e0 ldi r25, 0x03 ; 3
  3947. 19a6: 0e 94 5d 1d call 0x3aba ; 0x3aba <memcpy>
  3948. 19aa: 8c 2f mov r24, r28
  3949. SavePreset(ch);
  3950. 19ac: df 91 pop r29
  3951. ManualCalibration(ch);
  3952. else if(heater[ch].status.calib == CAL_AUTO)
  3953. AutoCalibration(ch);
  3954. break;
  3955. }
  3956. }
  3957. 19ae: cf 91 pop r28
  3958. 19b0: 0c 94 01 15 jmp 0x2a02 ; 0x2a02 <SavePreset>
  3959. heater[ch].status.calib = rxdata.data[0];
  3960. cal_tmin = rxdata.data[1];
  3961. cal_tmax = rxdata.data[2];
  3962. if(heater[ch].status.calib == CAL_MANUAL)
  3963. ManualCalibration(ch);
  3964. 19b4: 8c 2f mov r24, r28
  3965. else if(heater[ch].status.calib == CAL_AUTO)
  3966. AutoCalibration(ch);
  3967. break;
  3968. }
  3969. }
  3970. 19b6: df 91 pop r29
  3971. 19b8: cf 91 pop r28
  3972. heater[ch].status.calib = rxdata.data[0];
  3973. cal_tmin = rxdata.data[1];
  3974. cal_tmax = rxdata.data[2];
  3975. if(heater[ch].status.calib == CAL_MANUAL)
  3976. ManualCalibration(ch);
  3977. 19ba: 72 c0 rjmp .+228 ; 0x1aa0 <ManualCalibration>
  3978. 000019bc <UARTDataAvail>:
  3979. 19bc: df 92 push r13
  3980. heater[ch].status.circuit = circ;
  3981. return circ;
  3982. }
  3983. void UARTDataAvail()
  3984. {
  3985. 19be: ef 92 push r14
  3986. 19c0: ff 92 push r15
  3987. 19c2: 0f 93 push r16
  3988. 19c4: 1f 93 push r17
  3989. 19c6: cf 93 push r28
  3990. 19c8: df 93 push r29
  3991. static uint8_t rxcnt;
  3992. uint8_t localcnt = count;
  3993. 19ca: 00 91 f6 02 lds r16, 0x02F6 ; 0x8002f6 <count>
  3994. for(uint8_t i = 0; i < localcnt; i++)
  3995. 19ce: 00 23 and r16, r16
  3996. 19d0: 09 f4 brne .+2 ; 0x19d4 <UARTDataAvail+0x18>
  3997. 19d2: 5e c0 rjmp .+188 ; 0x1a90 <UARTDataAvail+0xd4>
  3998. 19d4: 01 50 subi r16, 0x01 ; 1
  3999. 19d6: 10 e0 ldi r17, 0x00 ; 0
  4000. 19d8: 0f 5f subi r16, 0xFF ; 255
  4001. 19da: 1f 4f sbci r17, 0xFF ; 255
  4002. 19dc: c0 e0 ldi r28, 0x00 ; 0
  4003. 19de: d0 e0 ldi r29, 0x00 ; 0
  4004. case 1:
  4005. if(rxbyte < 100)
  4006. {
  4007. rxdata.len = rxbyte;
  4008. rxdata.checksum += rxbyte;
  4009. rxcnt++;
  4010. 19e0: 82 e0 ldi r24, 0x02 ; 2
  4011. 19e2: e8 2e mov r14, r24
  4012. case 0:
  4013. if(rxbyte == 0x55)
  4014. {
  4015. //rxdata.start = rxbyte;
  4016. rxdata.checksum = rxbyte;
  4017. rxcnt++;
  4018. 19e4: dd 24 eor r13, r13
  4019. 19e6: d3 94 inc r13
  4020. break;
  4021. case 2:
  4022. rxdata.command = rxbyte;
  4023. rxdata.checksum += rxbyte;
  4024. rxcnt++;
  4025. 19e8: 93 e0 ldi r25, 0x03 ; 3
  4026. 19ea: f9 2e mov r15, r25
  4027. 19ec: 17 c0 rjmp .+46 ; 0x1a1c <UARTDataAvail+0x60>
  4028. uint8_t localcnt = count;
  4029. for(uint8_t i = 0; i < localcnt; i++)
  4030. {
  4031. uint8_t rxbyte = rxbuf[i];
  4032. switch(rxcnt)
  4033. 19ee: 81 30 cpi r24, 0x01 ; 1
  4034. 19f0: 08 f4 brcc .+2 ; 0x19f4 <UARTDataAvail+0x38>
  4035. 19f2: 3f c0 rjmp .+126 ; 0x1a72 <UARTDataAvail+0xb6>
  4036. 19f4: 82 30 cpi r24, 0x02 ; 2
  4037. 19f6: 31 f5 brne .+76 ; 0x1a44 <UARTDataAvail+0x88>
  4038. rxcnt = 0;
  4039. }
  4040. break;
  4041. case 2:
  4042. rxdata.command = rxbyte;
  4043. 19f8: 90 93 ec 05 sts 0x05EC, r25 ; 0x8005ec <rxdata+0x2>
  4044. rxdata.checksum += rxbyte;
  4045. 19fc: 80 91 8d 06 lds r24, 0x068D ; 0x80068d <rxdata+0xa3>
  4046. 1a00: 98 0f add r25, r24
  4047. 1a02: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d <rxdata+0xa3>
  4048. rxcnt++;
  4049. 1a06: f0 92 f2 02 sts 0x02F2, r15 ; 0x8002f2 <__data_end>
  4050. ProcessCommand();
  4051. }
  4052. rxcnt = 0;
  4053. }
  4054. }
  4055. count--;
  4056. 1a0a: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 <count>
  4057. 1a0e: 81 50 subi r24, 0x01 ; 1
  4058. 1a10: 80 93 f6 02 sts 0x02F6, r24 ; 0x8002f6 <count>
  4059. 1a14: 21 96 adiw r28, 0x01 ; 1
  4060. void UARTDataAvail()
  4061. {
  4062. static uint8_t rxcnt;
  4063. uint8_t localcnt = count;
  4064. for(uint8_t i = 0; i < localcnt; i++)
  4065. 1a16: c0 17 cp r28, r16
  4066. 1a18: d1 07 cpc r29, r17
  4067. 1a1a: d1 f1 breq .+116 ; 0x1a90 <UARTDataAvail+0xd4>
  4068. {
  4069. uint8_t rxbyte = rxbuf[i];
  4070. 1a1c: fe 01 movw r30, r28
  4071. 1a1e: e8 50 subi r30, 0x08 ; 8
  4072. 1a20: fd 4f sbci r31, 0xFD ; 253
  4073. 1a22: 90 81 ld r25, Z
  4074. switch(rxcnt)
  4075. 1a24: 80 91 f2 02 lds r24, 0x02F2 ; 0x8002f2 <__data_end>
  4076. 1a28: 81 30 cpi r24, 0x01 ; 1
  4077. 1a2a: 09 f7 brne .-62 ; 0x19ee <UARTDataAvail+0x32>
  4078. rxcnt++;
  4079. }
  4080. break;
  4081. case 1:
  4082. if(rxbyte < 100)
  4083. 1a2c: 94 36 cpi r25, 0x64 ; 100
  4084. 1a2e: 68 f5 brcc .+90 ; 0x1a8a <UARTDataAvail+0xce>
  4085. {
  4086. rxdata.len = rxbyte;
  4087. 1a30: 90 93 eb 05 sts 0x05EB, r25 ; 0x8005eb <rxdata+0x1>
  4088. rxdata.checksum += rxbyte;
  4089. 1a34: 80 91 8d 06 lds r24, 0x068D ; 0x80068d <rxdata+0xa3>
  4090. 1a38: 98 0f add r25, r24
  4091. 1a3a: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d <rxdata+0xa3>
  4092. rxcnt++;
  4093. 1a3e: e0 92 f2 02 sts 0x02F2, r14 ; 0x8002f2 <__data_end>
  4094. 1a42: e3 cf rjmp .-58 ; 0x1a0a <UARTDataAvail+0x4e>
  4095. rxdata.checksum += rxbyte;
  4096. rxcnt++;
  4097. break;
  4098. default:
  4099. if(rxcnt < (rxdata.len + 3))
  4100. 1a44: 20 91 eb 05 lds r18, 0x05EB ; 0x8005eb <rxdata+0x1>
  4101. 1a48: 48 2f mov r20, r24
  4102. 1a4a: 50 e0 ldi r21, 0x00 ; 0
  4103. 1a4c: 30 e0 ldi r19, 0x00 ; 0
  4104. 1a4e: 2e 5f subi r18, 0xFE ; 254
  4105. 1a50: 3f 4f sbci r19, 0xFF ; 255
  4106. 1a52: 24 17 cp r18, r20
  4107. 1a54: 35 07 cpc r19, r21
  4108. 1a56: a4 f0 brlt .+40 ; 0x1a80 <UARTDataAvail+0xc4>
  4109. {
  4110. rxdata.data[rxcnt - 3] = rxbyte;
  4111. 1a58: fa 01 movw r30, r20
  4112. 1a5a: e9 51 subi r30, 0x19 ; 25
  4113. 1a5c: fa 4f sbci r31, 0xFA ; 250
  4114. 1a5e: 93 83 std Z+3, r25 ; 0x03
  4115. rxdata.checksum += rxbyte;
  4116. 1a60: 20 91 8d 06 lds r18, 0x068D ; 0x80068d <rxdata+0xa3>
  4117. 1a64: 92 0f add r25, r18
  4118. 1a66: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d <rxdata+0xa3>
  4119. rxcnt++;
  4120. 1a6a: 8f 5f subi r24, 0xFF ; 255
  4121. 1a6c: 80 93 f2 02 sts 0x02F2, r24 ; 0x8002f2 <__data_end>
  4122. 1a70: cc cf rjmp .-104 ; 0x1a0a <UARTDataAvail+0x4e>
  4123. {
  4124. uint8_t rxbyte = rxbuf[i];
  4125. switch(rxcnt)
  4126. {
  4127. case 0:
  4128. if(rxbyte == 0x55)
  4129. 1a72: 95 35 cpi r25, 0x55 ; 85
  4130. 1a74: 51 f6 brne .-108 ; 0x1a0a <UARTDataAvail+0x4e>
  4131. {
  4132. //rxdata.start = rxbyte;
  4133. rxdata.checksum = rxbyte;
  4134. 1a76: 90 93 8d 06 sts 0x068D, r25 ; 0x80068d <rxdata+0xa3>
  4135. rxcnt++;
  4136. 1a7a: d0 92 f2 02 sts 0x02F2, r13 ; 0x8002f2 <__data_end>
  4137. 1a7e: c5 cf rjmp .-118 ; 0x1a0a <UARTDataAvail+0x4e>
  4138. rxdata.checksum += rxbyte;
  4139. rxcnt++;
  4140. }
  4141. else
  4142. {
  4143. if(rxbyte == rxdata.checksum)
  4144. 1a80: 80 91 8d 06 lds r24, 0x068D ; 0x80068d <rxdata+0xa3>
  4145. 1a84: 98 13 cpse r25, r24
  4146. 1a86: 01 c0 rjmp .+2 ; 0x1a8a <UARTDataAvail+0xce>
  4147. {
  4148. ProcessCommand();
  4149. 1a88: c0 de rcall .-640 ; 0x180a <ProcessCommand>
  4150. rxdata.checksum += rxbyte;
  4151. rxcnt++;
  4152. }
  4153. else
  4154. {
  4155. rxcnt = 0;
  4156. 1a8a: 10 92 f2 02 sts 0x02F2, r1 ; 0x8002f2 <__data_end>
  4157. 1a8e: bd cf rjmp .-134 ; 0x1a0a <UARTDataAvail+0x4e>
  4158. rxcnt = 0;
  4159. }
  4160. }
  4161. count--;
  4162. }
  4163. }
  4164. 1a90: df 91 pop r29
  4165. 1a92: cf 91 pop r28
  4166. 1a94: 1f 91 pop r17
  4167. 1a96: 0f 91 pop r16
  4168. 1a98: ff 90 pop r15
  4169. 1a9a: ef 90 pop r14
  4170. 1a9c: df 90 pop r13
  4171. 1a9e: 08 95 ret
  4172. 00001aa0 <ManualCalibration>:
  4173. }
  4174. return 0;
  4175. }
  4176. void ManualCalibration(uint8_t ch)
  4177. {
  4178. 1aa0: ef 92 push r14
  4179. 1aa2: ff 92 push r15
  4180. 1aa4: 0f 93 push r16
  4181. 1aa6: 1f 93 push r17
  4182. 1aa8: cf 93 push r28
  4183. 1aaa: df 93 push r29
  4184. 1aac: c8 2f mov r28, r24
  4185. uint8_t drive = 0;
  4186. float vlow = 0.0, vhigh = 0.0;
  4187. LCD_SendCmd(LCD_CLR);
  4188. 1aae: 81 e0 ldi r24, 0x01 ; 1
  4189. 1ab0: 48 d5 rcall .+2704 ; 0x2542 <LCD_SendCmd>
  4190. LCD_SetPos(0, 0);
  4191. 1ab2: 60 e0 ldi r22, 0x00 ; 0
  4192. 1ab4: 80 e0 ldi r24, 0x00 ; 0
  4193. 1ab6: 6a d5 rcall .+2772 ; 0x258c <LCD_SetPos>
  4194. fprintf(&lcd_stdout, "ÐÓ×Í. ÊÀËÈÁÐÎÂÊÀ");
  4195. 1ab8: 24 e1 ldi r18, 0x14 ; 20
  4196. 1aba: 31 e0 ldi r19, 0x01 ; 1
  4197. 1abc: 40 e1 ldi r20, 0x10 ; 16
  4198. 1abe: 50 e0 ldi r21, 0x00 ; 0
  4199. 1ac0: 61 e0 ldi r22, 0x01 ; 1
  4200. 1ac2: 70 e0 ldi r23, 0x00 ; 0
  4201. 1ac4: 84 ed ldi r24, 0xD4 ; 212
  4202. 1ac6: 91 e0 ldi r25, 0x01 ; 1
  4203. 1ac8: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  4204. if(heater[ch].status.circuit == CIRC_MOSFET)
  4205. 1acc: ec 2e mov r14, r28
  4206. 1ace: f1 2c mov r15, r1
  4207. 1ad0: 23 e1 ldi r18, 0x13 ; 19
  4208. 1ad2: c2 9f mul r28, r18
  4209. 1ad4: 80 01 movw r16, r0
  4210. 1ad6: 11 24 eor r1, r1
  4211. 1ad8: f8 01 movw r30, r16
  4212. 1ada: e0 5e subi r30, 0xE0 ; 224
  4213. 1adc: fc 4f sbci r31, 0xFC ; 252
  4214. 1ade: 80 81 ld r24, Z
  4215. 1ae0: 98 2f mov r25, r24
  4216. 1ae2: 92 95 swap r25
  4217. 1ae4: 96 95 lsr r25
  4218. 1ae6: 96 95 lsr r25
  4219. 1ae8: 93 70 andi r25, 0x03 ; 3
  4220. 1aea: 81 81 ldd r24, Z+1 ; 0x01
  4221. 1aec: 81 70 andi r24, 0x01 ; 1
  4222. 1aee: 88 0f add r24, r24
  4223. 1af0: 88 0f add r24, r24
  4224. 1af2: 89 2b or r24, r25
  4225. 1af4: d0 e0 ldi r29, 0x00 ; 0
  4226. 1af6: 82 30 cpi r24, 0x02 ; 2
  4227. 1af8: 09 f4 brne .+2 ; 0x1afc <ManualCalibration+0x5c>
  4228. 1afa: 5e c0 rjmp .+188 ; 0x1bb8 <ManualCalibration+0x118>
  4229. } while(heater[ch].current < 1000);
  4230. drive--;
  4231. }
  4232. while(heater[ch].status.calib == CAL_MANUAL)
  4233. 1afc: 83 e1 ldi r24, 0x13 ; 19
  4234. 1afe: 8e 9d mul r24, r14
  4235. 1b00: 80 01 movw r16, r0
  4236. 1b02: 8f 9d mul r24, r15
  4237. 1b04: 10 0d add r17, r0
  4238. 1b06: 11 24 eor r1, r1
  4239. 1b08: 00 5e subi r16, 0xE0 ; 224
  4240. 1b0a: 1c 4f sbci r17, 0xFC ; 252
  4241. 1b0c: f8 01 movw r30, r16
  4242. 1b0e: 80 81 ld r24, Z
  4243. 1b10: 82 95 swap r24
  4244. 1b12: 83 70 andi r24, 0x03 ; 3
  4245. 1b14: 82 30 cpi r24, 0x02 ; 2
  4246. 1b16: a9 f5 brne .+106 ; 0x1b82 <ManualCalibration+0xe2>
  4247. {
  4248. if(count)
  4249. 1b18: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 <count>
  4250. 1b1c: 81 11 cpse r24, r1
  4251. 1b1e: 46 c0 rjmp .+140 ; 0x1bac <ManualCalibration+0x10c>
  4252. {
  4253. UARTDataAvail();
  4254. }
  4255. if(txrequest)
  4256. 1b20: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 <txrequest>
  4257. 1b24: 81 11 cpse r24, r1
  4258. 1b26: 3f c0 rjmp .+126 ; 0x1ba6 <ManualCalibration+0x106>
  4259. {
  4260. Transmit();
  4261. }
  4262. if(heater[ch].status.heating)
  4263. 1b28: f8 01 movw r30, r16
  4264. 1b2a: 80 81 ld r24, Z
  4265. 1b2c: 82 ff sbrs r24, 2
  4266. 1b2e: 33 c0 rjmp .+102 ; 0x1b96 <ManualCalibration+0xf6>
  4267. {
  4268. if(heater[ch].status.circuit == CIRC_MOSFET)
  4269. 1b30: 80 81 ld r24, Z
  4270. 1b32: 98 2f mov r25, r24
  4271. 1b34: 92 95 swap r25
  4272. 1b36: 96 95 lsr r25
  4273. 1b38: 96 95 lsr r25
  4274. 1b3a: 93 70 andi r25, 0x03 ; 3
  4275. 1b3c: 81 81 ldd r24, Z+1 ; 0x01
  4276. 1b3e: 81 70 andi r24, 0x01 ; 1
  4277. 1b40: 88 0f add r24, r24
  4278. 1b42: 88 0f add r24, r24
  4279. 1b44: 89 2b or r24, r25
  4280. 1b46: 82 30 cpi r24, 0x02 ; 2
  4281. 1b48: 99 f1 breq .+102 ; 0x1bb0 <ManualCalibration+0x110>
  4282. 1b4a: 8c 2f mov r24, r28
  4283. 1b4c: 0e 94 17 01 call 0x22e ; 0x22e <SwitchHeating.part.0>
  4284. 1b50: 87 eb ldi r24, 0xB7 ; 183
  4285. 1b52: 9b e0 ldi r25, 0x0B ; 11
  4286. 1b54: 01 97 sbiw r24, 0x01 ; 1
  4287. 1b56: f1 f7 brne .-4 ; 0x1b54 <ManualCalibration+0xb4>
  4288. 1b58: 00 c0 rjmp .+0 ; 0x1b5a <ManualCalibration+0xba>
  4289. 1b5a: 00 00 nop
  4290. SwitchDrive(ch, ON);
  4291. SwitchHeating(ch, ON);
  4292. _delay_ms(1);
  4293. if(CurrMeasure(ch) > 2000)
  4294. 1b5c: 8c 2f mov r24, r28
  4295. 1b5e: 0e 94 0c 04 call 0x818 ; 0x818 <CurrMeasure>
  4296. 1b62: 81 3d cpi r24, 0xD1 ; 209
  4297. 1b64: 97 40 sbci r25, 0x07 ; 7
  4298. 1b66: 90 f2 brcs .-92 ; 0x1b0c <ManualCalibration+0x6c>
  4299. {
  4300. drive--;
  4301. 1b68: d1 50 subi r29, 0x01 ; 1
  4302. SetDriveData(ch, drive);
  4303. 1b6a: 6d 2f mov r22, r29
  4304. 1b6c: 8c 2f mov r24, r28
  4305. 1b6e: 88 d6 rcall .+3344 ; 0x2880 <SetDriveData>
  4306. SwitchDrive(ch, ON);
  4307. 1b70: 61 e0 ldi r22, 0x01 ; 1
  4308. 1b72: 8c 2f mov r24, r28
  4309. 1b74: a4 d6 rcall .+3400 ; 0x28be <SwitchDrive>
  4310. 1b76: f8 01 movw r30, r16
  4311. } while(heater[ch].current < 1000);
  4312. drive--;
  4313. }
  4314. while(heater[ch].status.calib == CAL_MANUAL)
  4315. 1b78: 80 81 ld r24, Z
  4316. 1b7a: 82 95 swap r24
  4317. 1b7c: 83 70 andi r24, 0x03 ; 3
  4318. 1b7e: 82 30 cpi r24, 0x02 ; 2
  4319. 1b80: 59 f2 breq .-106 ; 0x1b18 <ManualCalibration+0x78>
  4320. 1b82: 80 81 ld r24, Z
  4321. {
  4322. SwitchHeating(ch, OFF);
  4323. SwitchDrive(ch, OFF);
  4324. }
  4325. }
  4326. heater[ch].status.heating = OFF;
  4327. 1b84: 8b 7f andi r24, 0xFB ; 251
  4328. 1b86: 80 83 st Z, r24
  4329. 1b88: df 91 pop r29
  4330. }
  4331. 1b8a: cf 91 pop r28
  4332. 1b8c: 1f 91 pop r17
  4333. 1b8e: 0f 91 pop r16
  4334. 1b90: ff 90 pop r15
  4335. 1b92: ef 90 pop r14
  4336. 1b94: 08 95 ret
  4337. 1b96: 60 e0 ldi r22, 0x00 ; 0
  4338. SwitchDrive(ch, ON);
  4339. }
  4340. }
  4341. else
  4342. {
  4343. SwitchHeating(ch, OFF);
  4344. 1b98: 8c 2f mov r24, r28
  4345. 1b9a: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
  4346. SwitchDrive(ch, OFF);
  4347. 1b9e: 60 e0 ldi r22, 0x00 ; 0
  4348. 1ba0: 8c 2f mov r24, r28
  4349. 1ba2: 8d d6 rcall .+3354 ; 0x28be <SwitchDrive>
  4350. 1ba4: b3 cf rjmp .-154 ; 0x1b0c <ManualCalibration+0x6c>
  4351. UARTDataAvail();
  4352. }
  4353. if(txrequest)
  4354. {
  4355. Transmit();
  4356. 1ba6: 0e 94 00 05 call 0xa00 ; 0xa00 <Transmit>
  4357. while(heater[ch].status.calib == CAL_MANUAL)
  4358. {
  4359. if(count)
  4360. {
  4361. UARTDataAvail();
  4362. 1baa: be cf rjmp .-132 ; 0x1b28 <ManualCalibration+0x88>
  4363. 1bac: 07 df rcall .-498 ; 0x19bc <UARTDataAvail>
  4364. 1bae: b8 cf rjmp .-144 ; 0x1b20 <ManualCalibration+0x80>
  4365. }
  4366. if(heater[ch].status.heating)
  4367. {
  4368. if(heater[ch].status.circuit == CIRC_MOSFET)
  4369. SwitchDrive(ch, ON);
  4370. 1bb0: 61 e0 ldi r22, 0x01 ; 1
  4371. 1bb2: 8c 2f mov r24, r28
  4372. 1bb4: 84 d6 rcall .+3336 ; 0x28be <SwitchDrive>
  4373. 1bb6: c9 cf rjmp .-110 ; 0x1b4a <ManualCalibration+0xaa>
  4374. 1bb8: 8f 01 movw r16, r30
  4375. _delay_ms(1);
  4376. CurrMeasure(ch);
  4377. SwitchHeating(ch, OFF);
  4378. SwitchDrive(ch, OFF);
  4379. drive++;
  4380. } while(heater[ch].current < 1000);
  4381. 1bba: 02 5f subi r16, 0xF2 ; 242
  4382. 1bbc: 1f 4f sbci r17, 0xFF ; 255
  4383. 1bbe: 01 c0 rjmp .+2 ; 0x1bc2 <ManualCalibration+0x122>
  4384. SwitchHeating(ch, ON);
  4385. _delay_ms(1);
  4386. CurrMeasure(ch);
  4387. SwitchHeating(ch, OFF);
  4388. SwitchDrive(ch, OFF);
  4389. drive++;
  4390. 1bc0: d2 2f mov r29, r18
  4391. fprintf(&lcd_stdout, "ÐÓ×Í. ÊÀËÈÁÐÎÂÊÀ");
  4392. if(heater[ch].status.circuit == CIRC_MOSFET)
  4393. {
  4394. do {
  4395. SetDriveData(ch, drive);
  4396. 1bc2: 6d 2f mov r22, r29
  4397. 1bc4: 8c 2f mov r24, r28
  4398. 1bc6: 5c d6 rcall .+3256 ; 0x2880 <SetDriveData>
  4399. 1bc8: 61 e0 ldi r22, 0x01 ; 1
  4400. SwitchDrive(ch, ON);
  4401. 1bca: 8c 2f mov r24, r28
  4402. 1bcc: 78 d6 rcall .+3312 ; 0x28be <SwitchDrive>
  4403. 1bce: 8c 2f mov r24, r28
  4404. 1bd0: 0e 94 17 01 call 0x22e ; 0x22e <SwitchHeating.part.0>
  4405. 1bd4: 87 eb ldi r24, 0xB7 ; 183
  4406. 1bd6: 9b e0 ldi r25, 0x0B ; 11
  4407. 1bd8: 01 97 sbiw r24, 0x01 ; 1
  4408. 1bda: f1 f7 brne .-4 ; 0x1bd8 <ManualCalibration+0x138>
  4409. 1bdc: 00 c0 rjmp .+0 ; 0x1bde <ManualCalibration+0x13e>
  4410. 1bde: 00 00 nop
  4411. 1be0: 8c 2f mov r24, r28
  4412. 1be2: 0e 94 0c 04 call 0x818 ; 0x818 <CurrMeasure>
  4413. SwitchHeating(ch, ON);
  4414. _delay_ms(1);
  4415. CurrMeasure(ch);
  4416. 1be6: 60 e0 ldi r22, 0x00 ; 0
  4417. SwitchHeating(ch, OFF);
  4418. 1be8: 8c 2f mov r24, r28
  4419. 1bea: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
  4420. 1bee: 60 e0 ldi r22, 0x00 ; 0
  4421. SwitchDrive(ch, OFF);
  4422. 1bf0: 8c 2f mov r24, r28
  4423. 1bf2: 65 d6 rcall .+3274 ; 0x28be <SwitchDrive>
  4424. 1bf4: 21 e0 ldi r18, 0x01 ; 1
  4425. 1bf6: 2d 0f add r18, r29
  4426. drive++;
  4427. 1bf8: f8 01 movw r30, r16
  4428. 1bfa: 80 81 ld r24, Z
  4429. } while(heater[ch].current < 1000);
  4430. 1bfc: 91 81 ldd r25, Z+1 ; 0x01
  4431. 1bfe: 88 3e cpi r24, 0xE8 ; 232
  4432. 1c00: 93 40 sbci r25, 0x03 ; 3
  4433. 1c02: f0 f2 brcs .-68 ; 0x1bc0 <ManualCalibration+0x120>
  4434. 1c04: 7b cf rjmp .-266 ; 0x1afc <ManualCalibration+0x5c>
  4435. 00001c06 <LoadingScreen>:
  4436. 1c06: ff 92 push r15
  4437. 1c08: 0f 93 push r16
  4438. break;
  4439. }
  4440. }
  4441. void LoadingScreen()
  4442. {
  4443. 1c0a: 1f 93 push r17
  4444. 1c0c: cf 93 push r28
  4445. 1c0e: df 93 push r29
  4446. 1c10: 8f e5 ldi r24, 0x5F ; 95
  4447. 1c12: 9a ee ldi r25, 0xEA ; 234
  4448. 1c14: 01 97 sbiw r24, 0x01 ; 1
  4449. 1c16: f1 f7 brne .-4 ; 0x1c14 <LoadingScreen+0xe>
  4450. 1c18: 00 c0 rjmp .+0 ; 0x1c1a <LoadingScreen+0x14>
  4451. 1c1a: 00 00 nop
  4452. uint8_t c = 0xFF, i = 0, d = 0, btn = 0;
  4453. do
  4454. {
  4455. _delay_ms(20);
  4456. LCD_SetPos(i, 0);
  4457. 1c1c: 60 e0 ldi r22, 0x00 ; 0
  4458. 1c1e: 80 e0 ldi r24, 0x00 ; 0
  4459. 1c20: b5 d4 rcall .+2410 ; 0x258c <LCD_SetPos>
  4460. LCD_SendData(c);
  4461. 1c22: 8f ef ldi r24, 0xFF ; 255
  4462. 1c24: 73 d4 rcall .+2278 ; 0x250c <LCD_SendData>
  4463. LCD_SetPos(15 - i, 1);
  4464. 1c26: 61 e0 ldi r22, 0x01 ; 1
  4465. 1c28: 8f e0 ldi r24, 0x0F ; 15
  4466. LCD_SendData(c);
  4467. 1c2a: b0 d4 rcall .+2400 ; 0x258c <LCD_SetPos>
  4468. 1c2c: 8f ef ldi r24, 0xFF ; 255
  4469. 1c2e: 6e d4 rcall .+2268 ; 0x250c <LCD_SendData>
  4470. }
  4471. }
  4472. void LoadingScreen()
  4473. {
  4474. uint8_t c = 0xFF, i = 0, d = 0, btn = 0;
  4475. 1c30: 10 e0 ldi r17, 0x00 ; 0
  4476. _delay_ms(20);
  4477. LCD_SetPos(i, 0);
  4478. LCD_SendData(c);
  4479. LCD_SetPos(15 - i, 1);
  4480. LCD_SendData(c);
  4481. if(++i > 15)
  4482. 1c32: c1 e0 ldi r28, 0x01 ; 1
  4483. }
  4484. }
  4485. void LoadingScreen()
  4486. {
  4487. uint8_t c = 0xFF, i = 0, d = 0, btn = 0;
  4488. 1c34: df ef ldi r29, 0xFF ; 255
  4489. do
  4490. {
  4491. _delay_ms(20);
  4492. LCD_SetPos(i, 0);
  4493. LCD_SendData(c);
  4494. LCD_SetPos(15 - i, 1);
  4495. 1c36: 0f e0 ldi r16, 0x0F ; 15
  4496. LCD_SendData(c);
  4497. if(++i > 15)
  4498. {
  4499. c ^= ~' ';
  4500. 1c38: 8f ed ldi r24, 0xDF ; 223
  4501. 1c3a: f8 2e mov r15, r24
  4502. i = 0;
  4503. d++;
  4504. }
  4505. btn = ~((BTNPIN >> 4) | 0xF0);
  4506. 1c3c: 89 b1 in r24, 0x09 ; 9
  4507. }
  4508. while(btn || (d < 2));
  4509. 1c3e: 82 95 swap r24
  4510. 1c40: 8f 70 andi r24, 0x0F ; 15
  4511. 1c42: 80 6f ori r24, 0xF0 ; 240
  4512. 1c44: 8f 3f cpi r24, 0xFF ; 255
  4513. 1c46: e9 f0 breq .+58 ; 0x1c82 <LoadingScreen+0x7c>
  4514. 1c48: 8f e5 ldi r24, 0x5F ; 95
  4515. 1c4a: 9a ee ldi r25, 0xEA ; 234
  4516. 1c4c: 01 97 sbiw r24, 0x01 ; 1
  4517. 1c4e: f1 f7 brne .-4 ; 0x1c4c <LoadingScreen+0x46>
  4518. 1c50: 00 c0 rjmp .+0 ; 0x1c52 <LoadingScreen+0x4c>
  4519. {
  4520. uint8_t c = 0xFF, i = 0, d = 0, btn = 0;
  4521. do
  4522. {
  4523. _delay_ms(20);
  4524. LCD_SetPos(i, 0);
  4525. 1c52: 00 00 nop
  4526. 1c54: 60 e0 ldi r22, 0x00 ; 0
  4527. 1c56: 8c 2f mov r24, r28
  4528. LCD_SendData(c);
  4529. 1c58: 99 d4 rcall .+2354 ; 0x258c <LCD_SetPos>
  4530. 1c5a: 8d 2f mov r24, r29
  4531. LCD_SetPos(15 - i, 1);
  4532. 1c5c: 57 d4 rcall .+2222 ; 0x250c <LCD_SendData>
  4533. 1c5e: 61 e0 ldi r22, 0x01 ; 1
  4534. 1c60: 80 2f mov r24, r16
  4535. 1c62: 8c 1b sub r24, r28
  4536. 1c64: 93 d4 rcall .+2342 ; 0x258c <LCD_SetPos>
  4537. LCD_SendData(c);
  4538. 1c66: 8d 2f mov r24, r29
  4539. 1c68: 51 d4 rcall .+2210 ; 0x250c <LCD_SendData>
  4540. 1c6a: cf 5f subi r28, 0xFF ; 255
  4541. if(++i > 15)
  4542. 1c6c: c0 31 cpi r28, 0x10 ; 16
  4543. 1c6e: 31 f7 brne .-52 ; 0x1c3c <LoadingScreen+0x36>
  4544. 1c70: df 25 eor r29, r15
  4545. {
  4546. c ^= ~' ';
  4547. 1c72: 1f 5f subi r17, 0xFF ; 255
  4548. i = 0;
  4549. d++;
  4550. 1c74: c0 e0 ldi r28, 0x00 ; 0
  4551. LCD_SetPos(15 - i, 1);
  4552. LCD_SendData(c);
  4553. if(++i > 15)
  4554. {
  4555. c ^= ~' ';
  4556. i = 0;
  4557. 1c76: 89 b1 in r24, 0x09 ; 9
  4558. d++;
  4559. }
  4560. btn = ~((BTNPIN >> 4) | 0xF0);
  4561. 1c78: 82 95 swap r24
  4562. }
  4563. while(btn || (d < 2));
  4564. 1c7a: 8f 70 andi r24, 0x0F ; 15
  4565. 1c7c: 80 6f ori r24, 0xF0 ; 240
  4566. 1c7e: 8f 3f cpi r24, 0xFF ; 255
  4567. 1c80: 19 f7 brne .-58 ; 0x1c48 <LoadingScreen+0x42>
  4568. 1c82: 12 30 cpi r17, 0x02 ; 2
  4569. 1c84: 08 f3 brcs .-62 ; 0x1c48 <LoadingScreen+0x42>
  4570. LCD_SendCmd(LCD_CLR);
  4571. 1c86: 81 e0 ldi r24, 0x01 ; 1
  4572. }
  4573. 1c88: df 91 pop r29
  4574. 1c8a: cf 91 pop r28
  4575. 1c8c: 1f 91 pop r17
  4576. 1c8e: 0f 91 pop r16
  4577. 1c90: ff 90 pop r15
  4578. d++;
  4579. }
  4580. btn = ~((BTNPIN >> 4) | 0xF0);
  4581. }
  4582. while(btn || (d < 2));
  4583. LCD_SendCmd(LCD_CLR);
  4584. 1c92: 57 c4 rjmp .+2222 ; 0x2542 <LCD_SendCmd>
  4585. 00001c94 <main>:
  4586. 1c94: cf 93 push r28
  4587. }
  4588. int main()
  4589. {
  4590. 1c96: df 93 push r29
  4591. 1c98: 00 d0 rcall .+0 ; 0x1c9a <main+0x6>
  4592. 1c9a: 00 d0 rcall .+0 ; 0x1c9c <main+0x8>
  4593. 1c9c: cd b7 in r28, 0x3d ; 61
  4594. 1c9e: de b7 in r29, 0x3e ; 62
  4595. uint8_t ch = CH0;
  4596. uint8_t tmp = 0;
  4597. uint8_t display = DISP_MAIN;
  4598. btn_t button;
  4599. menu_str *menu = (menu_str*)calloc(sizeof(menu_str), 1);
  4600. 1ca0: 61 e0 ldi r22, 0x01 ; 1
  4601. 1ca2: 70 e0 ldi r23, 0x00 ; 0
  4602. 1ca4: 83 e0 ldi r24, 0x03 ; 3
  4603. 1ca6: 90 e0 ldi r25, 0x00 ; 0
  4604. 1ca8: 0e 94 3f 1b call 0x367e ; 0x367e <calloc>
  4605. 1cac: 4c 01 movw r8, r24
  4606. memset(heater, 0x00, sizeof(heater));
  4607. 1cae: 86 e2 ldi r24, 0x26 ; 38
  4608. 1cb0: e0 e2 ldi r30, 0x20 ; 32
  4609. 1cb2: f3 e0 ldi r31, 0x03 ; 3
  4610. 1cb4: df 01 movw r26, r30
  4611. 1cb6: 1d 92 st X+, r1
  4612. 1cb8: 8a 95 dec r24
  4613. 1cba: e9 f7 brne .-6 ; 0x1cb6 <main+0x22>
  4614. memset(opamp, 0x00, sizeof(opamp));
  4615. 1cbc: 8a e1 ldi r24, 0x1A ; 26
  4616. 1cbe: ee e8 ldi r30, 0x8E ; 142
  4617. 1cc0: f6 e0 ldi r31, 0x06 ; 6
  4618. 1cc2: df 01 movw r26, r30
  4619. 1cc4: 1d 92 st X+, r1
  4620. 1cc6: 8a 95 dec r24
  4621. 1cc8: e9 f7 brne .-6 ; 0x1cc4 <main+0x30>
  4622. memset(preset, 0x00, sizeof(preset));
  4623. 1cca: 80 ea ldi r24, 0xA0 ; 160
  4624. 1ccc: e6 e4 ldi r30, 0x46 ; 70
  4625. 1cce: f3 e0 ldi r31, 0x03 ; 3
  4626. 1cd0: df 01 movw r26, r30
  4627. 1cd2: 1d 92 st X+, r1
  4628. 1cd4: 8a 95 dec r24
  4629. 1cd6: e9 f7 brne .-6 ; 0x1cd2 <main+0x3e>
  4630. opamp[CH0].ch = heater[CH0].status.channel = CH0;
  4631. 1cd8: 80 91 20 03 lds r24, 0x0320 ; 0x800320 <heater>
  4632. 1cdc: 8e 7f andi r24, 0xFE ; 254
  4633. 1cde: 80 93 20 03 sts 0x0320, r24 ; 0x800320 <heater>
  4634. opamp[CH1].ch = heater[CH1].status.channel = CH1;
  4635. 1ce2: 80 91 33 03 lds r24, 0x0333 ; 0x800333 <heater+0x13>
  4636. 1ce6: 81 60 ori r24, 0x01 ; 1
  4637. 1ce8: 80 93 33 03 sts 0x0333, r24 ; 0x800333 <heater+0x13>
  4638. 1cec: 81 e0 ldi r24, 0x01 ; 1
  4639. 1cee: 80 93 9b 06 sts 0x069B, r24 ; 0x80069b <opamp+0xd>
  4640. heater[CH0].tset = heater[CH1].tset = 25;
  4641. 1cf2: 89 e1 ldi r24, 0x19 ; 25
  4642. 1cf4: 90 e0 ldi r25, 0x00 ; 0
  4643. 1cf6: 90 93 3e 03 sts 0x033E, r25 ; 0x80033e <heater+0x1e>
  4644. 1cfa: 80 93 3d 03 sts 0x033D, r24 ; 0x80033d <heater+0x1d>
  4645. 1cfe: 90 93 2b 03 sts 0x032B, r25 ; 0x80032b <heater+0xb>
  4646. 1d02: 80 93 2a 03 sts 0x032A, r24 ; 0x80032a <heater+0xa>
  4647. stdout = &uart_stdout;
  4648. 1d06: 86 e0 ldi r24, 0x06 ; 6
  4649. 1d08: 91 e0 ldi r25, 0x01 ; 1
  4650. 1d0a: 90 93 af 06 sts 0x06AF, r25 ; 0x8006af <__iob+0x3>
  4651. 1d0e: 80 93 ae 06 sts 0x06AE, r24 ; 0x8006ae <__iob+0x2>
  4652. init();
  4653. 1d12: 0e 94 23 02 call 0x446 ; 0x446 <init>
  4654. LCD_Init();
  4655. 1d16: 6f d4 rcall .+2270 ; 0x25f6 <LCD_Init>
  4656. LoadingScreen();
  4657. 1d18: 76 df rcall .-276 ; 0x1c06 <LoadingScreen>
  4658. LoadPrefs();
  4659. 1d1a: e2 d5 rcall .+3012 ; 0x28e0 <LoadPrefs>
  4660. LoadPreset(CH0);
  4661. 1d1c: 80 e0 ldi r24, 0x00 ; 0
  4662. 1d1e: 2e d6 rcall .+3164 ; 0x297c <LoadPreset>
  4663. LoadPreset(CH1);
  4664. 1d20: 81 e0 ldi r24, 0x01 ; 1
  4665. 1d22: 2c d6 rcall .+3160 ; 0x297c <LoadPreset>
  4666. 1d24: 80 e0 ldi r24, 0x00 ; 0
  4667. //SwitchPower(ON);
  4668. CircuitDetect(CH0);
  4669. 1d26: 0e 94 23 06 call 0xc46 ; 0xc46 <CircuitDetect>
  4670. 1d2a: 81 e0 ldi r24, 0x01 ; 1
  4671. CircuitDetect(CH1);
  4672. 1d2c: 0e 94 23 06 call 0xc46 ; 0xc46 <CircuitDetect>
  4673. 1d30: 78 94 sei
  4674. sei();
  4675. 1d32: 0e 94 00 05 call 0xa00 ; 0xa00 <Transmit>
  4676. Transmit();
  4677. 1d36: 11 e0 ldi r17, 0x01 ; 1
  4678. int main()
  4679. {
  4680. uint8_t ch = CH0;
  4681. uint8_t tmp = 0;
  4682. uint8_t display = DISP_MAIN;
  4683. 1d38: 1b 82 std Y+3, r1 ; 0x03
  4684. LCD_SendCmd(LCD_CLR);
  4685. }
  4686. int main()
  4687. {
  4688. uint8_t ch = CH0;
  4689. 1d3a: 77 e0 ldi r23, 0x07 ; 7
  4690. /* ------------- DISPLAY SECTION ----------------- */
  4691. tick2 = 0;
  4692. if(display == DISP_MAIN)
  4693. {
  4694. LCD_SetPos(0, 0);
  4695. fprintf(&lcd_stdout, "K%.1u #%.2u Tï=", ch + 1, heater[ch].preset);
  4696. 1d3c: 27 2e mov r2, r23
  4697. 1d3e: 72 e0 ldi r23, 0x02 ; 2
  4698. 1d40: 37 2e mov r3, r23
  4699. 1d42: b9 81 ldd r27, Y+1 ; 0x01
  4700. 1d44: bc 83 std Y+4, r27 ; 0x04
  4701. 1d46: 80 91 f6 02 lds r24, 0x02F6 ; 0x8002f6 <count>
  4702. Transmit();
  4703. while(1)
  4704. {
  4705. if(count)
  4706. 1d4a: 81 11 cpse r24, r1
  4707. 1d4c: 9e c0 rjmp .+316 ; 0x1e8a <main+0x1f6>
  4708. 1d4e: 80 91 f3 02 lds r24, 0x02F3 ; 0x8002f3 <txrequest>
  4709. {
  4710. UARTDataAvail();
  4711. }
  4712. if(txrequest)
  4713. 1d52: 81 11 cpse r24, r1
  4714. 1d54: 66 c0 rjmp .+204 ; 0x1e22 <main+0x18e>
  4715. 1d56: 80 91 20 03 lds r24, 0x0320 ; 0x800320 <heater>
  4716. {
  4717. Transmit();
  4718. }
  4719. if(heater[CH0].status.ocp || heater[CH1].status.ocp)
  4720. 1d5a: 83 fd sbrc r24, 3
  4721. 1d5c: 68 c0 rjmp .+208 ; 0x1e2e <main+0x19a>
  4722. 1d5e: 80 91 33 03 lds r24, 0x0333 ; 0x800333 <heater+0x13>
  4723. 1d62: 83 fd sbrc r24, 3
  4724. 1d64: 64 c0 rjmp .+200 ; 0x1e2e <main+0x19a>
  4725. 1d66: 80 91 f5 02 lds r24, 0x02F5 ; 0x8002f5 <tick1>
  4726. fprintf(&lcd_stdout, " ÄËß ÑÁÐÎÑÀ");
  4727. while(((BTNPIN >> 4) | 0xF0) != 0xF7);
  4728. ResetMCU();
  4729. }
  4730. if(tick1)
  4731. 1d6a: 81 11 cpse r24, r1
  4732. 1d6c: 90 c0 rjmp .+288 ; 0x1e8e <main+0x1fa>
  4733. 1d6e: 80 91 f4 02 lds r24, 0x02F4 ; 0x8002f4 <tick2>
  4734. }
  4735. }
  4736. ch = tmp;
  4737. } ////// if(tick1) end
  4738. if(tick2)
  4739. 1d72: 88 23 and r24, r24
  4740. 1d74: 41 f0 breq .+16 ; 0x1d86 <main+0xf2>
  4741. 1d76: 10 92 f4 02 sts 0x02F4, r1 ; 0x8002f4 <tick2>
  4742. {
  4743. /* ------------- DISPLAY SECTION ----------------- */
  4744. tick2 = 0;
  4745. 1d7a: 11 30 cpi r17, 0x01 ; 1
  4746. if(display == DISP_MAIN)
  4747. 1d7c: 09 f4 brne .+2 ; 0x1d80 <main+0xec>
  4748. 1d7e: 2d c1 rjmp .+602 ; 0x1fda <main+0x346>
  4749. 1d80: 13 30 cpi r17, 0x03 ; 3
  4750. button.holded = 1;
  4751. btn_act = 1;
  4752. }
  4753. }
  4754. }
  4755. else if(display == DISP_VER)
  4756. 1d82: 09 f4 brne .+2 ; 0x1d86 <main+0xf2>
  4757. 1d84: 2a c2 rjmp .+1108 ; 0x21da <main+0x546>
  4758. 1d86: 80 91 f7 02 lds r24, 0x02F7 ; 0x8002f7 <btn_act>
  4759. //txrequest = REQ_MAINDATA;
  4760. //Transmit();
  4761. } ////// if(tick2) end
  4762. /* ---------------- BUTTON SECTION --------------- */
  4763. if(btn_act)
  4764. 1d8a: 88 23 and r24, r24
  4765. 1d8c: e1 f2 breq .-72 ; 0x1d46 <main+0xb2>
  4766. 1d8e: 8f e5 ldi r24, 0x5F ; 95
  4767. 1d90: 9a ee ldi r25, 0xEA ; 234
  4768. 1d92: 01 97 sbiw r24, 0x01 ; 1
  4769. 1d94: f1 f7 brne .-4 ; 0x1d92 <main+0xfe>
  4770. 1d96: 00 c0 rjmp .+0 ; 0x1d98 <main+0x104>
  4771. 1d98: 00 00 nop
  4772. 1d9a: 10 92 f7 02 sts 0x02F7, r1 ; 0x8002f7 <btn_act>
  4773. {
  4774. _delay_ms(20);
  4775. btn_act = 0;
  4776. 1d9e: 89 b1 in r24, 0x09 ; 9
  4777. button.code = ~((BTNPIN >> 4) | 0xF0);
  4778. 1da0: 82 95 swap r24
  4779. 1da2: 8f 70 andi r24, 0x0F ; 15
  4780. 1da4: 80 95 com r24
  4781. 1da6: 8f 70 andi r24, 0x0F ; 15
  4782. 1da8: 94 2d mov r25, r4
  4783. if((button.code != 0x00) && (!button.holded)) // Button down event
  4784. 1daa: 92 95 swap r25
  4785. 1dac: 90 7f andi r25, 0xF0 ; 240
  4786. 1dae: 98 2b or r25, r24
  4787. 1db0: 88 23 and r24, r24
  4788. 1db2: 09 f4 brne .+2 ; 0x1db6 <main+0x122>
  4789. 1db4: d7 c0 rjmp .+430 ; 0x1f64 <main+0x2d0>
  4790. 1db6: 9c 81 ldd r25, Y+4 ; 0x04
  4791. 1db8: 60 fa bst r6, 0
  4792. 1dba: 90 f9 bld r25, 0
  4793. 1dbc: 50 fa bst r5, 0
  4794. 1dbe: 91 f9 bld r25, 1
  4795. 1dc0: 70 fa bst r7, 0
  4796. 1dc2: 92 f9 bld r25, 2
  4797. 1dc4: 97 70 andi r25, 0x07 ; 7
  4798. 1dc6: 99 83 std Y+1, r25 ; 0x01
  4799. 1dc8: 90 2f mov r25, r16
  4800. 1dca: 99 0f add r25, r25
  4801. 1dcc: 99 0f add r25, r25
  4802. 1dce: 99 0f add r25, r25
  4803. 1dd0: a9 81 ldd r26, Y+1 ; 0x01
  4804. 1dd2: a9 2b or r26, r25
  4805. 1dd4: ac 83 std Y+4, r26 ; 0x04
  4806. 1dd6: a2 fd sbrc r26, 2
  4807. 1dd8: df c0 rjmp .+446 ; 0x1f98 <main+0x304>
  4808. 1dda: 11 30 cpi r17, 0x01 ; 1
  4809. {
  4810. if(display == DISP_MAIN)
  4811. 1ddc: 09 f0 breq .+2 ; 0x1de0 <main+0x14c>
  4812. 1dde: b3 cf rjmp .-154 ; 0x1d46 <main+0xb2>
  4813. 1de0: 82 30 cpi r24, 0x02 ; 2
  4814. {
  4815. button.pressed = 1;
  4816. button.released = 0;
  4817. button.prev_code = button.code;
  4818. switch(button.code)
  4819. 1de2: 09 f4 brne .+2 ; 0x1de6 <main+0x152>
  4820. 1de4: d9 c2 rjmp .+1458 ; 0x2398 <main+0x704>
  4821. 1de6: 08 f4 brcc .+2 ; 0x1dea <main+0x156>
  4822. 1de8: c6 c2 rjmp .+1420 ; 0x2376 <main+0x6e2>
  4823. 1dea: 83 30 cpi r24, 0x03 ; 3
  4824. 1dec: 09 f4 brne .+2 ; 0x1df0 <main+0x15c>
  4825. 1dee: ec c2 rjmp .+1496 ; 0x23c8 <main+0x734>
  4826. 1df0: 84 30 cpi r24, 0x04 ; 4
  4827. 1df2: 09 f0 breq .+2 ; 0x1df6 <main+0x162>
  4828. 1df4: e4 c2 rjmp .+1480 ; 0x23be <main+0x72a>
  4829. 1df6: d4 01 movw r26, r8
  4830. LCD_SendCmd(LCD_CLR);
  4831. display = DISP_VER;
  4832. break;
  4833. case 0x04:
  4834. menu->set = (menu->set + 1) % 3;
  4835. 1df8: 8c 91 ld r24, X
  4836. 1dfa: 90 e0 ldi r25, 0x00 ; 0
  4837. 1dfc: 01 96 adiw r24, 0x01 ; 1
  4838. 1dfe: 63 e0 ldi r22, 0x03 ; 3
  4839. 1e00: 70 e0 ldi r23, 0x00 ; 0
  4840. 1e02: 0e 94 cc 1a call 0x3598 ; 0x3598 <__divmodhi4>
  4841. 1e06: f4 01 movw r30, r8
  4842. 1e08: 80 83 st Z, r24
  4843. 1e0a: 88 23 and r24, r24
  4844. if(menu->set == 0)
  4845. 1e0c: 09 f4 brne .+2 ; 0x1e10 <main+0x17c>
  4846. 1e0e: ee c2 rjmp .+1500 ; 0x23ec <main+0x758>
  4847. 1e10: d4 01 movw r26, r8
  4848. SavePrefs();
  4849. menu->blink_cnt = 0;
  4850. 1e12: 11 96 adiw r26, 0x01 ; 1
  4851. 1e14: 1c 92 st X, r1
  4852. 1e16: 84 e0 ldi r24, 0x04 ; 4
  4853. break;
  4854. 1e18: 48 2e mov r4, r24
  4855. 1e1a: 51 2c mov r5, r1
  4856. if((button.code != 0x00) && (!button.holded)) // Button down event
  4857. {
  4858. if(display == DISP_MAIN)
  4859. {
  4860. button.pressed = 1;
  4861. button.released = 0;
  4862. 1e1c: 66 24 eor r6, r6
  4863. button.code = ~((BTNPIN >> 4) | 0xF0);
  4864. if((button.code != 0x00) && (!button.holded)) // Button down event
  4865. {
  4866. if(display == DISP_MAIN)
  4867. {
  4868. button.pressed = 1;
  4869. 1e1e: 63 94 inc r6
  4870. 1e20: 92 cf rjmp .-220 ; 0x1d46 <main+0xb2>
  4871. case 0x04:
  4872. menu->set = (menu->set + 1) % 3;
  4873. if(menu->set == 0)
  4874. SavePrefs();
  4875. menu->blink_cnt = 0;
  4876. break;
  4877. 1e22: 0e 94 00 05 call 0xa00 ; 0xa00 <Transmit>
  4878. UARTDataAvail();
  4879. }
  4880. if(txrequest)
  4881. {
  4882. Transmit();
  4883. 1e26: 80 91 20 03 lds r24, 0x0320 ; 0x800320 <heater>
  4884. }
  4885. if(heater[CH0].status.ocp || heater[CH1].status.ocp)
  4886. 1e2a: 83 ff sbrs r24, 3
  4887. 1e2c: 98 cf rjmp .-208 ; 0x1d5e <main+0xca>
  4888. {
  4889. LCD_SetPos(0, 0);
  4890. 1e2e: 60 e0 ldi r22, 0x00 ; 0
  4891. 1e30: 80 e0 ldi r24, 0x00 ; 0
  4892. 1e32: ac d3 rcall .+1880 ; 0x258c <LCD_SetPos>
  4893. 1e34: 24 e1 ldi r18, 0x14 ; 20
  4894. fprintf(&lcd_stdout, "ÇÀÙÈÒÀ ÏÎ ÒÎÊÓ!!");
  4895. 1e36: 31 e0 ldi r19, 0x01 ; 1
  4896. 1e38: 40 e1 ldi r20, 0x10 ; 16
  4897. 1e3a: 50 e0 ldi r21, 0x00 ; 0
  4898. 1e3c: 61 e0 ldi r22, 0x01 ; 1
  4899. 1e3e: 70 e0 ldi r23, 0x00 ; 0
  4900. 1e40: 85 ee ldi r24, 0xE5 ; 229
  4901. 1e42: 91 e0 ldi r25, 0x01 ; 1
  4902. 1e44: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  4903. LCD_SetPos(0, 1);
  4904. 1e48: 61 e0 ldi r22, 0x01 ; 1
  4905. 1e4a: 80 e0 ldi r24, 0x00 ; 0
  4906. 1e4c: 9f d3 rcall .+1854 ; 0x258c <LCD_SetPos>
  4907. 1e4e: 24 e1 ldi r18, 0x14 ; 20
  4908. fprintf(&lcd_stdout, "ÍÀÆ.");
  4909. 1e50: 31 e0 ldi r19, 0x01 ; 1
  4910. 1e52: 44 e0 ldi r20, 0x04 ; 4
  4911. 1e54: 50 e0 ldi r21, 0x00 ; 0
  4912. 1e56: 61 e0 ldi r22, 0x01 ; 1
  4913. 1e58: 70 e0 ldi r23, 0x00 ; 0
  4914. 1e5a: 86 ef ldi r24, 0xF6 ; 246
  4915. 1e5c: 91 e0 ldi r25, 0x01 ; 1
  4916. 1e5e: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  4917. LCD_SendData(0x00);
  4918. 1e62: 80 e0 ldi r24, 0x00 ; 0
  4919. 1e64: 53 d3 rcall .+1702 ; 0x250c <LCD_SendData>
  4920. 1e66: 24 e1 ldi r18, 0x14 ; 20
  4921. fprintf(&lcd_stdout, " ÄËß ÑÁÐÎÑÀ");
  4922. 1e68: 31 e0 ldi r19, 0x01 ; 1
  4923. 1e6a: 4b e0 ldi r20, 0x0B ; 11
  4924. 1e6c: 50 e0 ldi r21, 0x00 ; 0
  4925. 1e6e: 61 e0 ldi r22, 0x01 ; 1
  4926. 1e70: 70 e0 ldi r23, 0x00 ; 0
  4927. 1e72: 8b ef ldi r24, 0xFB ; 251
  4928. 1e74: 91 e0 ldi r25, 0x01 ; 1
  4929. 1e76: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  4930. 1e7a: 89 b1 in r24, 0x09 ; 9
  4931. while(((BTNPIN >> 4) | 0xF0) != 0xF7);
  4932. 1e7c: 82 95 swap r24
  4933. 1e7e: 8f 70 andi r24, 0x0F ; 15
  4934. 1e80: 80 6f ori r24, 0xF0 ; 240
  4935. 1e82: 87 3f cpi r24, 0xF7 ; 247
  4936. 1e84: d1 f7 brne .-12 ; 0x1e7a <main+0x1e6>
  4937. ResetMCU();
  4938. 1e86: 0e 94 9c 05 call 0xb38 ; 0xb38 <ResetMCU>
  4939. while(1)
  4940. {
  4941. if(count)
  4942. {
  4943. UARTDataAvail();
  4944. 1e8a: 98 dd rcall .-1232 ; 0x19bc <UARTDataAvail>
  4945. 1e8c: 60 cf rjmp .-320 ; 0x1d4e <main+0xba>
  4946. 1e8e: 10 92 f5 02 sts 0x02F5, r1 ; 0x8002f5 <tick1>
  4947. }
  4948. if(tick1)
  4949. {
  4950. /* ------------- MEASURING SECTION ----------------- */
  4951. tick1 = 0;
  4952. 1e92: 0e 94 7b 02 call 0x4f6 ; 0x4f6 <MAX_ReadData>
  4953. MAX_ReadData();
  4954. 1e96: e1 2c mov r14, r1
  4955. 1e98: f1 2c mov r15, r1
  4956. 1e9a: de 2c mov r13, r14
  4957. 1e9c: 8e 2d mov r24, r14
  4958. tmp = ch;
  4959. for(uint8_t ch = CH0; ch <= CH1; ch++)
  4960. {
  4961. if(CurrMeasure(ch) > CURR_MAX)
  4962. 1e9e: 0e 94 0c 04 call 0x818 ; 0x818 <CurrMeasure>
  4963. 1ea2: 85 3c cpi r24, 0xC5 ; 197
  4964. 1ea4: 99 40 sbci r25, 0x09 ; 9
  4965. 1ea6: 58 f0 brcs .+22 ; 0x1ebe <main+0x22a>
  4966. 1ea8: 23 e1 ldi r18, 0x13 ; 19
  4967. {
  4968. heater[ch].status.onoff = OFF;
  4969. 1eaa: 2e 9d mul r18, r14
  4970. 1eac: f0 01 movw r30, r0
  4971. 1eae: 2f 9d mul r18, r15
  4972. 1eb0: f0 0d add r31, r0
  4973. 1eb2: 11 24 eor r1, r1
  4974. 1eb4: e0 5e subi r30, 0xE0 ; 224
  4975. 1eb6: fc 4f sbci r31, 0xFC ; 252
  4976. 1eb8: 80 81 ld r24, Z
  4977. 1eba: 8d 7f andi r24, 0xFD ; 253
  4978. 1ebc: 80 83 st Z, r24
  4979. }
  4980. SwitchHeating(ch, OFF);
  4981. 1ebe: 60 e0 ldi r22, 0x00 ; 0
  4982. 1ec0: 8d 2d mov r24, r13
  4983. 1ec2: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
  4984. SwitchDrive(ch, OFF);
  4985. 1ec6: 60 e0 ldi r22, 0x00 ; 0
  4986. 1ec8: 8d 2d mov r24, r13
  4987. 1eca: f9 d4 rcall .+2546 ; 0x28be <SwitchDrive>
  4988. 1ecc: 87 eb ldi r24, 0xB7 ; 183
  4989. 1ece: 9b e0 ldi r25, 0x0B ; 11
  4990. 1ed0: 01 97 sbiw r24, 0x01 ; 1
  4991. 1ed2: f1 f7 brne .-4 ; 0x1ed0 <main+0x23c>
  4992. 1ed4: 00 c0 rjmp .+0 ; 0x1ed6 <main+0x242>
  4993. 1ed6: 00 00 nop
  4994. 1ed8: 8d 2d mov r24, r13
  4995. _delay_ms(1);
  4996. CircuitDetect(ch);
  4997. 1eda: 0e 94 23 06 call 0xc46 ; 0xc46 <CircuitDetect>
  4998. 1ede: 8d 2d mov r24, r13
  4999. TMeasure(ch);
  5000. 1ee0: 0e 94 ca 03 call 0x794 ; 0x794 <TMeasure>
  5001. 1ee4: 93 e1 ldi r25, 0x13 ; 19
  5002. if(heater[ch].status.circuit == CIRC_OPEN)
  5003. 1ee6: 9e 9d mul r25, r14
  5004. 1ee8: f0 01 movw r30, r0
  5005. 1eea: 9f 9d mul r25, r15
  5006. 1eec: f0 0d add r31, r0
  5007. 1eee: 11 24 eor r1, r1
  5008. 1ef0: e0 5e subi r30, 0xE0 ; 224
  5009. 1ef2: fc 4f sbci r31, 0xFC ; 252
  5010. 1ef4: 80 81 ld r24, Z
  5011. 1ef6: 98 2f mov r25, r24
  5012. 1ef8: 92 95 swap r25
  5013. 1efa: 96 95 lsr r25
  5014. 1efc: 96 95 lsr r25
  5015. 1efe: 93 70 andi r25, 0x03 ; 3
  5016. 1f00: 81 81 ldd r24, Z+1 ; 0x01
  5017. 1f02: 81 70 andi r24, 0x01 ; 1
  5018. 1f04: 88 0f add r24, r24
  5019. 1f06: 88 0f add r24, r24
  5020. 1f08: 89 2b or r24, r25
  5021. 1f0a: 61 f4 brne .+24 ; 0x1f24 <main+0x290>
  5022. 1f0c: 80 81 ld r24, Z
  5023. {
  5024. heater[ch].status.onoff = OFF;
  5025. 1f0e: 8d 7f andi r24, 0xFD ; 253
  5026. 1f10: 80 83 st Z, r24
  5027. 1f12: af ef ldi r26, 0xFF ; 255
  5028. 1f14: ea 1a sub r14, r26
  5029. 1f16: fa 0a sbc r15, r26
  5030. 1f18: b2 e0 ldi r27, 0x02 ; 2
  5031. /* ------------- MEASURING SECTION ----------------- */
  5032. tick1 = 0;
  5033. MAX_ReadData();
  5034. tmp = ch;
  5035. for(uint8_t ch = CH0; ch <= CH1; ch++)
  5036. 1f1a: eb 16 cp r14, r27
  5037. 1f1c: f1 04 cpc r15, r1
  5038. 1f1e: 09 f0 breq .+2 ; 0x1f22 <main+0x28e>
  5039. 1f20: bc cf rjmp .-136 ; 0x1e9a <main+0x206>
  5040. 1f22: 25 cf rjmp .-438 ; 0x1d6e <main+0xda>
  5041. 1f24: 80 81 ld r24, Z
  5042. if(heater[ch].status.circuit == CIRC_OPEN)
  5043. {
  5044. heater[ch].status.onoff = OFF;
  5045. }
  5046. else if(heater[ch].status.circuit == CIRC_RES)
  5047. 1f26: 98 2f mov r25, r24
  5048. 1f28: 92 95 swap r25
  5049. 1f2a: 96 95 lsr r25
  5050. 1f2c: 96 95 lsr r25
  5051. 1f2e: 93 70 andi r25, 0x03 ; 3
  5052. 1f30: 81 81 ldd r24, Z+1 ; 0x01
  5053. 1f32: 81 70 andi r24, 0x01 ; 1
  5054. 1f34: 88 0f add r24, r24
  5055. 1f36: 88 0f add r24, r24
  5056. 1f38: 89 2b or r24, r25
  5057. 1f3a: 84 30 cpi r24, 0x04 ; 4
  5058. 1f3c: d1 f1 breq .+116 ; 0x1fb2 <main+0x31e>
  5059. 1f3e: 80 81 ld r24, Z
  5060. SwitchHeating(ch, OFF);
  5061. }
  5062. }
  5063. else
  5064. {
  5065. if((heater[ch].status.onoff == ON) && (heater[ch].tmeas < heater[ch].tset))
  5066. 1f40: 81 ff sbrs r24, 1
  5067. 1f42: 08 c0 rjmp .+16 ; 0x1f54 <main+0x2c0>
  5068. 1f44: 86 81 ldd r24, Z+6 ; 0x06
  5069. 1f46: 97 81 ldd r25, Z+7 ; 0x07
  5070. 1f48: 22 85 ldd r18, Z+10 ; 0x0a
  5071. 1f4a: 33 85 ldd r19, Z+11 ; 0x0b
  5072. 1f4c: 82 17 cp r24, r18
  5073. 1f4e: 93 07 cpc r25, r19
  5074. 1f50: 08 f4 brcc .+2 ; 0x1f54 <main+0x2c0>
  5075. 1f52: 74 c1 rjmp .+744 ; 0x223c <main+0x5a8>
  5076. SwitchDrive(ch, ON);
  5077. SwitchHeating(ch, ON);
  5078. }
  5079. else
  5080. {
  5081. SwitchDrive(ch, OFF);
  5082. 1f54: 60 e0 ldi r22, 0x00 ; 0
  5083. 1f56: 8d 2d mov r24, r13
  5084. 1f58: b2 d4 rcall .+2404 ; 0x28be <SwitchDrive>
  5085. 1f5a: 60 e0 ldi r22, 0x00 ; 0
  5086. SwitchHeating(ch, OFF);
  5087. 1f5c: 8d 2d mov r24, r13
  5088. 1f5e: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
  5089. 1f62: d7 cf rjmp .-82 ; 0x1f12 <main+0x27e>
  5090. 1f64: bc 81 ldd r27, Y+4 ; 0x04
  5091. } ////// switch(btn_code) end
  5092. } ////// if(display == ON) end
  5093. }
  5094. else if(button.code == 0) // Button up event
  5095. {
  5096. if(!button.holded)
  5097. 1f66: 60 fa bst r6, 0
  5098. 1f68: b0 f9 bld r27, 0
  5099. 1f6a: 50 fa bst r5, 0
  5100. 1f6c: b1 f9 bld r27, 1
  5101. 1f6e: 70 fa bst r7, 0
  5102. 1f70: b2 f9 bld r27, 2
  5103. 1f72: 00 0f add r16, r16
  5104. 1f74: 00 0f add r16, r16
  5105. 1f76: 00 0f add r16, r16
  5106. 1f78: b7 70 andi r27, 0x07 ; 7
  5107. 1f7a: b0 2b or r27, r16
  5108. 1f7c: bc 83 std Y+4, r27 ; 0x04
  5109. 1f7e: b2 fd sbrc r27, 2
  5110. 1f80: 26 c0 rjmp .+76 ; 0x1fce <main+0x33a>
  5111. 1f82: 90 7f andi r25, 0xF0 ; 240
  5112. {
  5113. display = DISP_MAIN;
  5114. if(button.prev_code == 0x08)
  5115. 1f84: 90 38 cpi r25, 0x80 ; 128
  5116. 1f86: 09 f4 brne .+2 ; 0x1f8a <main+0x2f6>
  5117. 1f88: 74 c1 rjmp .+744 ; 0x2272 <main+0x5de>
  5118. 1f8a: 00 e0 ldi r16, 0x00 ; 0
  5119. }
  5120. button.pressed = 0;
  5121. button.released = 1;
  5122. button.holded = 0;
  5123. button.holdcnt = 0;
  5124. 1f8c: 71 2c mov r7, r1
  5125. }
  5126. }
  5127. button.pressed = 0;
  5128. button.released = 1;
  5129. button.holded = 0;
  5130. 1f8e: 55 24 eor r5, r5
  5131. SwitchHeating(ch, OFF);
  5132. }
  5133. }
  5134. button.pressed = 0;
  5135. button.released = 1;
  5136. 1f90: 53 94 inc r5
  5137. 1f92: 61 2c mov r6, r1
  5138. SwitchDrive(ch, OFF);
  5139. SwitchHeating(ch, OFF);
  5140. }
  5141. }
  5142. button.pressed = 0;
  5143. 1f94: 11 e0 ldi r17, 0x01 ; 1
  5144. }
  5145. else if(button.code == 0) // Button up event
  5146. {
  5147. if(!button.holded)
  5148. {
  5149. display = DISP_MAIN;
  5150. 1f96: d7 ce rjmp .-594 ; 0x1d46 <main+0xb2>
  5151. button.holded = 0;
  5152. button.holdcnt = 0;
  5153. }
  5154. else // Button hold event
  5155. {
  5156. switch(button.code)
  5157. 1f98: 84 30 cpi r24, 0x04 ; 4
  5158. 1f9a: 09 f4 brne .+2 ; 0x1f9e <main+0x30a>
  5159. 1f9c: 5b c1 rjmp .+694 ; 0x2254 <main+0x5c0>
  5160. 1f9e: 08 f4 brcc .+2 ; 0x1fa2 <main+0x30e>
  5161. 1fa0: 37 c1 rjmp .+622 ; 0x2210 <main+0x57c>
  5162. 1fa2: 88 30 cpi r24, 0x08 ; 8
  5163. 1fa4: 09 f0 breq .+2 ; 0x1fa8 <main+0x314>
  5164. 1fa6: cf ce rjmp .-610 ; 0x1d46 <main+0xb2>
  5165. break;
  5166. case 0x08:
  5167. button.prev_code = 0;
  5168. display = OFF;
  5169. LCD_SendCmd(LCD_CLR);
  5170. 1fa8: 81 e0 ldi r24, 0x01 ; 1
  5171. 1faa: cb d2 rcall .+1430 ; 0x2542 <LCD_SendCmd>
  5172. 1fac: 41 2c mov r4, r1
  5173. button.holded = 0;
  5174. button.holdcnt = 0;
  5175. break;
  5176. case 0x08:
  5177. button.prev_code = 0;
  5178. 1fae: 10 e0 ldi r17, 0x00 ; 0
  5179. display = OFF;
  5180. 1fb0: ca ce rjmp .-620 ; 0x1d46 <main+0xb2>
  5181. LCD_SendCmd(LCD_CLR);
  5182. //btn_hold = 0;
  5183. break;
  5184. 1fb2: 80 81 ld r24, Z
  5185. {
  5186. heater[ch].status.onoff = OFF;
  5187. }
  5188. else if(heater[ch].status.circuit == CIRC_RES)
  5189. {
  5190. if((heater[ch].status.onoff == ON) && (heater[ch].tcouple < heater[ch].tset))
  5191. 1fb4: 81 ff sbrs r24, 1
  5192. 1fb6: d1 cf rjmp .-94 ; 0x1f5a <main+0x2c6>
  5193. 1fb8: 84 81 ldd r24, Z+4 ; 0x04
  5194. 1fba: 95 81 ldd r25, Z+5 ; 0x05
  5195. 1fbc: 22 85 ldd r18, Z+10 ; 0x0a
  5196. 1fbe: 33 85 ldd r19, Z+11 ; 0x0b
  5197. 1fc0: 82 17 cp r24, r18
  5198. 1fc2: 93 07 cpc r25, r19
  5199. 1fc4: 50 f6 brcc .-108 ; 0x1f5a <main+0x2c6>
  5200. 1fc6: 8d 2d mov r24, r13
  5201. 1fc8: 0e 94 17 01 call 0x22e ; 0x22e <SwitchHeating.part.0>
  5202. 1fcc: a2 cf rjmp .-188 ; 0x1f12 <main+0x27e>
  5203. }
  5204. button.pressed = 0;
  5205. button.released = 1;
  5206. button.holded = 0;
  5207. button.holdcnt = 0;
  5208. 1fce: 00 e0 ldi r16, 0x00 ; 0
  5209. }
  5210. }
  5211. button.pressed = 0;
  5212. button.released = 1;
  5213. button.holded = 0;
  5214. 1fd0: 71 2c mov r7, r1
  5215. SwitchHeating(ch, OFF);
  5216. }
  5217. }
  5218. button.pressed = 0;
  5219. button.released = 1;
  5220. 1fd2: 55 24 eor r5, r5
  5221. 1fd4: 53 94 inc r5
  5222. SwitchDrive(ch, OFF);
  5223. SwitchHeating(ch, OFF);
  5224. }
  5225. }
  5226. button.pressed = 0;
  5227. 1fd6: 61 2c mov r6, r1
  5228. 1fd8: b6 ce rjmp .-660 ; 0x1d46 <main+0xb2>
  5229. {
  5230. /* ------------- DISPLAY SECTION ----------------- */
  5231. tick2 = 0;
  5232. if(display == DISP_MAIN)
  5233. {
  5234. LCD_SetPos(0, 0);
  5235. 1fda: 60 e0 ldi r22, 0x00 ; 0
  5236. 1fdc: 80 e0 ldi r24, 0x00 ; 0
  5237. 1fde: d6 d2 rcall .+1452 ; 0x258c <LCD_SetPos>
  5238. 1fe0: eb 81 ldd r30, Y+3 ; 0x03
  5239. fprintf(&lcd_stdout, "K%.1u #%.2u Tï=", ch + 1, heater[ch].preset);
  5240. 1fe2: ae 2e mov r10, r30
  5241. 1fe4: b1 2c mov r11, r1
  5242. 1fe6: f3 e1 ldi r31, 0x13 ; 19
  5243. 1fe8: fa 9d mul r31, r10
  5244. 1fea: 60 01 movw r12, r0
  5245. 1fec: fb 9d mul r31, r11
  5246. 1fee: d0 0c add r13, r0
  5247. 1ff0: 11 24 eor r1, r1
  5248. 1ff2: 96 01 movw r18, r12
  5249. 1ff4: 20 5e subi r18, 0xE0 ; 224
  5250. 1ff6: 3c 4f sbci r19, 0xFC ; 252
  5251. 1ff8: 3a 83 std Y+2, r19 ; 0x02
  5252. 1ffa: 29 83 std Y+1, r18 ; 0x01
  5253. 1ffc: d9 01 movw r26, r18
  5254. 1ffe: 12 96 adiw r26, 0x02 ; 2
  5255. 2000: 8c 91 ld r24, X
  5256. 2002: 1f 92 push r1
  5257. 2004: 8f 93 push r24
  5258. 2006: c5 01 movw r24, r10
  5259. 2008: 01 96 adiw r24, 0x01 ; 1
  5260. 200a: 9f 93 push r25
  5261. 200c: 8f 93 push r24
  5262. 200e: 3f 92 push r3
  5263. 2010: 2f 92 push r2
  5264. 2012: 54 e1 ldi r21, 0x14 ; 20
  5265. 2014: e5 2e mov r14, r21
  5266. 2016: 51 e0 ldi r21, 0x01 ; 1
  5267. 2018: f5 2e mov r15, r21
  5268. 201a: ff 92 push r15
  5269. 201c: ef 92 push r14
  5270. 201e: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  5271. 2022: f6 01 movw r30, r12
  5272. if(!heater[ch].status.couple)
  5273. 2024: ef 5d subi r30, 0xDF ; 223
  5274. 2026: fc 4f sbci r31, 0xFC ; 252
  5275. 2028: 80 81 ld r24, Z
  5276. 202a: 86 95 lsr r24
  5277. 202c: 87 70 andi r24, 0x07 ; 7
  5278. 202e: 0f b6 in r0, 0x3f ; 63
  5279. 2030: f8 94 cli
  5280. 2032: de bf out 0x3e, r29 ; 62
  5281. 2034: 0f be out 0x3f, r0 ; 63
  5282. 2036: cd bf out 0x3d, r28 ; 61
  5283. 2038: 09 f0 breq .+2 ; 0x203c <main+0x3a8>
  5284. 203a: f5 c0 rjmp .+490 ; 0x2226 <main+0x592>
  5285. 203c: a9 81 ldd r26, Y+1 ; 0x01
  5286. {
  5287. fprintf(&lcd_stdout, "%.3d\x01", heater[ch].tcouple);
  5288. 203e: ba 81 ldd r27, Y+2 ; 0x02
  5289. 2040: 15 96 adiw r26, 0x05 ; 5
  5290. 2042: 8c 91 ld r24, X
  5291. 2044: 15 97 sbiw r26, 0x05 ; 5
  5292. 2046: 8f 93 push r24
  5293. 2048: 14 96 adiw r26, 0x04 ; 4
  5294. 204a: 8c 91 ld r24, X
  5295. 204c: 8f 93 push r24
  5296. 204e: eb e3 ldi r30, 0x3B ; 59
  5297. 2050: f2 e0 ldi r31, 0x02 ; 2
  5298. 2052: ff 93 push r31
  5299. 2054: ef 93 push r30
  5300. 2056: ff 92 push r15
  5301. 2058: ef 92 push r14
  5302. 205a: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  5303. 205e: 0f 90 pop r0
  5304. 2060: 0f 90 pop r0
  5305. 2062: 0f 90 pop r0
  5306. 2064: 0f 90 pop r0
  5307. 2066: 0f 90 pop r0
  5308. 2068: 0f 90 pop r0
  5309. 206a: 33 e1 ldi r19, 0x13 ; 19
  5310. else
  5311. {
  5312. fprintf(&lcd_stdout, "--- ");
  5313. }
  5314. switch(heater[ch].status.circuit)
  5315. 206c: 3a 9d mul r19, r10
  5316. 206e: f0 01 movw r30, r0
  5317. 2070: 3b 9d mul r19, r11
  5318. 2072: f0 0d add r31, r0
  5319. 2074: 11 24 eor r1, r1
  5320. 2076: e0 5e subi r30, 0xE0 ; 224
  5321. 2078: fc 4f sbci r31, 0xFC ; 252
  5322. 207a: 80 81 ld r24, Z
  5323. 207c: 98 2f mov r25, r24
  5324. 207e: 92 95 swap r25
  5325. 2080: 96 95 lsr r25
  5326. 2082: 96 95 lsr r25
  5327. 2084: 93 70 andi r25, 0x03 ; 3
  5328. 2086: 81 81 ldd r24, Z+1 ; 0x01
  5329. 2088: 81 70 andi r24, 0x01 ; 1
  5330. 208a: 88 0f add r24, r24
  5331. 208c: 88 0f add r24, r24
  5332. 208e: 89 2b or r24, r25
  5333. 2090: 82 30 cpi r24, 0x02 ; 2
  5334. 2092: 09 f4 brne .+2 ; 0x2096 <main+0x402>
  5335. 2094: 51 c1 rjmp .+674 ; 0x2338 <main+0x6a4>
  5336. 2096: 08 f0 brcs .+2 ; 0x209a <main+0x406>
  5337. 2098: d5 c0 rjmp .+426 ; 0x2244 <main+0x5b0>
  5338. 209a: 88 23 and r24, r24
  5339. 209c: 09 f4 brne .+2 ; 0x20a0 <main+0x40c>
  5340. 209e: e6 c0 rjmp .+460 ; 0x226c <main+0x5d8>
  5341. 20a0: 81 30 cpi r24, 0x01 ; 1
  5342. {
  5343. case CIRC_OPEN:
  5344. LCD_SendData(SYM_OPEN);
  5345. break;
  5346. case CIRC_SHORT:
  5347. LCD_SendData(SYM_SHORT);
  5348. 20a2: 11 f4 brne .+4 ; 0x20a8 <main+0x414>
  5349. 20a4: 87 e0 ldi r24, 0x07 ; 7
  5350. 20a6: 32 d2 rcall .+1124 ; 0x250c <LCD_SendData>
  5351. break;
  5352. case CIRC_DIODE:
  5353. break;
  5354. }
  5355. LCD_SetPos(0, 1);
  5356. 20a8: 61 e0 ldi r22, 0x01 ; 1
  5357. 20aa: 80 e0 ldi r24, 0x00 ; 0
  5358. 20ac: 6f d2 rcall .+1246 ; 0x258c <LCD_SetPos>
  5359. 20ae: a3 e1 ldi r26, 0x13 ; 19
  5360. fprintf(&lcd_stdout, "Tó=%.3u\x01 ", heater[ch].tset);
  5361. 20b0: aa 9d mul r26, r10
  5362. 20b2: c0 01 movw r24, r0
  5363. 20b4: ab 9d mul r26, r11
  5364. 20b6: 90 0d add r25, r0
  5365. 20b8: 11 24 eor r1, r1
  5366. 20ba: fc 01 movw r30, r24
  5367. 20bc: e0 5e subi r30, 0xE0 ; 224
  5368. 20be: fc 4f sbci r31, 0xFC ; 252
  5369. 20c0: 7f 01 movw r14, r30
  5370. 20c2: 83 85 ldd r24, Z+11 ; 0x0b
  5371. 20c4: 8f 93 push r24
  5372. 20c6: 82 85 ldd r24, Z+10 ; 0x0a
  5373. 20c8: 8f 93 push r24
  5374. 20ca: 2d e1 ldi r18, 0x1D ; 29
  5375. 20cc: 32 e0 ldi r19, 0x02 ; 2
  5376. 20ce: 3f 93 push r19
  5377. 20d0: 2f 93 push r18
  5378. 20d2: 44 e1 ldi r20, 0x14 ; 20
  5379. 20d4: c4 2e mov r12, r20
  5380. 20d6: 41 e0 ldi r20, 0x01 ; 1
  5381. 20d8: d4 2e mov r13, r20
  5382. 20da: df 92 push r13
  5383. 20dc: cf 92 push r12
  5384. 20de: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  5385. 20e2: d7 01 movw r26, r14
  5386. if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_SHORT))
  5387. 20e4: 8c 91 ld r24, X
  5388. 20e6: 98 2f mov r25, r24
  5389. 20e8: 92 95 swap r25
  5390. 20ea: 96 95 lsr r25
  5391. 20ec: 96 95 lsr r25
  5392. 20ee: 93 70 andi r25, 0x03 ; 3
  5393. 20f0: 11 96 adiw r26, 0x01 ; 1
  5394. 20f2: 8c 91 ld r24, X
  5395. 20f4: 11 97 sbiw r26, 0x01 ; 1
  5396. 20f6: 81 70 andi r24, 0x01 ; 1
  5397. 20f8: 88 0f add r24, r24
  5398. 20fa: 88 0f add r24, r24
  5399. 20fc: 89 2b or r24, r25
  5400. 20fe: 0f 90 pop r0
  5401. 2100: 0f 90 pop r0
  5402. 2102: 0f 90 pop r0
  5403. 2104: 0f 90 pop r0
  5404. 2106: 0f 90 pop r0
  5405. 2108: 0f 90 pop r0
  5406. 210a: 09 f4 brne .+2 ; 0x210e <main+0x47a>
  5407. 210c: cb c0 rjmp .+406 ; 0x22a4 <main+0x610>
  5408. 210e: 8c 91 ld r24, X
  5409. 2110: 98 2f mov r25, r24
  5410. 2112: 92 95 swap r25
  5411. 2114: 96 95 lsr r25
  5412. 2116: 96 95 lsr r25
  5413. 2118: 93 70 andi r25, 0x03 ; 3
  5414. 211a: 11 96 adiw r26, 0x01 ; 1
  5415. 211c: 8c 91 ld r24, X
  5416. 211e: 81 70 andi r24, 0x01 ; 1
  5417. 2120: 88 0f add r24, r24
  5418. 2122: 88 0f add r24, r24
  5419. 2124: 89 2b or r24, r25
  5420. 2126: 81 30 cpi r24, 0x01 ; 1
  5421. 2128: 09 f4 brne .+2 ; 0x212c <main+0x498>
  5422. 212a: bc c0 rjmp .+376 ; 0x22a4 <main+0x610>
  5423. 212c: f7 01 movw r30, r14
  5424. {
  5425. fprintf(&lcd_stdout, "ÎÒÊËÞ×.");
  5426. }
  5427. else if(heater[ch].status.circuit == CIRC_RES)
  5428. 212e: 80 81 ld r24, Z
  5429. 2130: 98 2f mov r25, r24
  5430. 2132: 92 95 swap r25
  5431. 2134: 96 95 lsr r25
  5432. 2136: 96 95 lsr r25
  5433. 2138: 93 70 andi r25, 0x03 ; 3
  5434. 213a: 81 81 ldd r24, Z+1 ; 0x01
  5435. 213c: 81 70 andi r24, 0x01 ; 1
  5436. 213e: 88 0f add r24, r24
  5437. 2140: 88 0f add r24, r24
  5438. 2142: 89 2b or r24, r25
  5439. 2144: 84 30 cpi r24, 0x04 ; 4
  5440. 2146: 09 f4 brne .+2 ; 0x214a <main+0x4b6>
  5441. 2148: fa c0 rjmp .+500 ; 0x233e <main+0x6aa>
  5442. 214a: f7 01 movw r30, r14
  5443. {
  5444. fprintf(&lcd_stdout, "I=%4.2fA", ((float)heater[ch].current) / 1000.0);
  5445. }
  5446. else
  5447. {
  5448. fprintf(&lcd_stdout, "Òí=%.3d\x01", heater[ch].tmeas);
  5449. 214c: 87 81 ldd r24, Z+7 ; 0x07
  5450. 214e: 8f 93 push r24
  5451. 2150: 86 81 ldd r24, Z+6 ; 0x06
  5452. 2152: 8f 93 push r24
  5453. 2154: 28 e3 ldi r18, 0x38 ; 56
  5454. 2156: 32 e0 ldi r19, 0x02 ; 2
  5455. 2158: 3f 93 push r19
  5456. 215a: 2f 93 push r18
  5457. 215c: df 92 push r13
  5458. 215e: cf 92 push r12
  5459. 2160: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  5460. 2164: 0f 90 pop r0
  5461. 2166: 0f 90 pop r0
  5462. 2168: 0f 90 pop r0
  5463. 216a: 0f 90 pop r0
  5464. 216c: 0f 90 pop r0
  5465. 216e: 0f 90 pop r0
  5466. 2170: 93 e1 ldi r25, 0x13 ; 19
  5467. }
  5468. if(heater[ch].status.onoff)
  5469. 2172: 9a 9d mul r25, r10
  5470. 2174: f0 01 movw r30, r0
  5471. 2176: 9b 9d mul r25, r11
  5472. 2178: f0 0d add r31, r0
  5473. 217a: 11 24 eor r1, r1
  5474. 217c: e0 5e subi r30, 0xE0 ; 224
  5475. 217e: fc 4f sbci r31, 0xFC ; 252
  5476. 2180: 80 81 ld r24, Z
  5477. 2182: 81 ff sbrs r24, 1
  5478. 2184: 9d c0 rjmp .+314 ; 0x22c0 <main+0x62c>
  5479. {
  5480. if(heater[ch].status.heating)
  5481. 2186: 80 81 ld r24, Z
  5482. 2188: 82 ff sbrs r24, 2
  5483. 218a: 97 c0 rjmp .+302 ; 0x22ba <main+0x626>
  5484. {
  5485. LCD_SendData(0xD9);
  5486. 218c: 89 ed ldi r24, 0xD9 ; 217
  5487. 218e: be d1 rcall .+892 ; 0x250c <LCD_SendData>
  5488. 2190: d4 01 movw r26, r8
  5489. else
  5490. {
  5491. LCD_SendData('-');
  5492. }
  5493. if(menu->set == 1)
  5494. 2192: 8c 91 ld r24, X
  5495. 2194: 81 30 cpi r24, 0x01 ; 1
  5496. 2196: 09 f4 brne .+2 ; 0x219a <main+0x506>
  5497. 2198: 96 c0 rjmp .+300 ; 0x22c6 <main+0x632>
  5498. 219a: 82 30 cpi r24, 0x02 ; 2
  5499. LCD_SetPos(3, 1);
  5500. fprintf(&lcd_stdout, " ");
  5501. }
  5502. menu->blink_cnt++;
  5503. }
  5504. else if(menu->set == 2)
  5505. 219c: 09 f4 brne .+2 ; 0x21a0 <main+0x50c>
  5506. 219e: b0 c0 rjmp .+352 ; 0x2300 <main+0x66c>
  5507. 21a0: fc 81 ldd r31, Y+4 ; 0x04
  5508. fprintf(&lcd_stdout, " ");
  5509. }
  5510. menu->blink_cnt++;
  5511. }
  5512. if(button.pressed && !button.holded)
  5513. 21a2: 60 fa bst r6, 0
  5514. 21a4: f0 f9 bld r31, 0
  5515. 21a6: 50 fa bst r5, 0
  5516. 21a8: f1 f9 bld r31, 1
  5517. 21aa: 70 fa bst r7, 0
  5518. 21ac: f2 f9 bld r31, 2
  5519. 21ae: f7 70 andi r31, 0x07 ; 7
  5520. 21b0: 80 2f mov r24, r16
  5521. 21b2: 88 0f add r24, r24
  5522. 21b4: 88 0f add r24, r24
  5523. 21b6: 88 0f add r24, r24
  5524. 21b8: f8 2b or r31, r24
  5525. 21ba: fc 83 std Y+4, r31 ; 0x04
  5526. 21bc: 8f 2f mov r24, r31
  5527. 21be: 85 70 andi r24, 0x05 ; 5
  5528. 21c0: 81 30 cpi r24, 0x01 ; 1
  5529. 21c2: 09 f0 breq .+2 ; 0x21c6 <main+0x532>
  5530. 21c4: e0 cd rjmp .-1088 ; 0x1d86 <main+0xf2>
  5531. {
  5532. if(++button.holdcnt == 12)
  5533. 21c6: 0f 5f subi r16, 0xFF ; 255
  5534. 21c8: 0f 71 andi r16, 0x1F ; 31
  5535. 21ca: 0c 30 cpi r16, 0x0C ; 12
  5536. 21cc: 09 f0 breq .+2 ; 0x21d0 <main+0x53c>
  5537. 21ce: db cd rjmp .-1098 ; 0x1d86 <main+0xf2>
  5538. {
  5539. button.holded = 1;
  5540. btn_act = 1;
  5541. 21d0: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 <btn_act>
  5542. if(button.pressed && !button.holded)
  5543. {
  5544. if(++button.holdcnt == 12)
  5545. {
  5546. button.holded = 1;
  5547. 21d4: 77 24 eor r7, r7
  5548. 21d6: 73 94 inc r7
  5549. }
  5550. }
  5551. }
  5552. else if(display == DISP_VER)
  5553. {
  5554. LCD_SetPos(0, 0);
  5555. 21d8: d6 cd rjmp .-1108 ; 0x1d86 <main+0xf2>
  5556. 21da: 60 e0 ldi r22, 0x00 ; 0
  5557. 21dc: 80 e0 ldi r24, 0x00 ; 0
  5558. 21de: d6 d1 rcall .+940 ; 0x258c <LCD_SetPos>
  5559. fprintf(&lcd_stdout, "ÓÊÍ-2 09.09.2019");
  5560. 21e0: 24 e1 ldi r18, 0x14 ; 20
  5561. 21e2: 31 e0 ldi r19, 0x01 ; 1
  5562. 21e4: 40 e1 ldi r20, 0x10 ; 16
  5563. 21e6: 50 e0 ldi r21, 0x00 ; 0
  5564. 21e8: 61 e0 ldi r22, 0x01 ; 1
  5565. 21ea: 70 e0 ldi r23, 0x00 ; 0
  5566. 21ec: 81 e4 ldi r24, 0x41 ; 65
  5567. 21ee: 92 e0 ldi r25, 0x02 ; 2
  5568. 21f0: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  5569. LCD_SetPos(0, 1);
  5570. 21f4: 61 e0 ldi r22, 0x01 ; 1
  5571. 21f6: 80 e0 ldi r24, 0x00 ; 0
  5572. 21f8: c9 d1 rcall .+914 ; 0x258c <LCD_SetPos>
  5573. 21fa: 24 e1 ldi r18, 0x14 ; 20
  5574. fprintf(&lcd_stdout, "Íàãàåâ Àëåêñàíäð");
  5575. 21fc: 31 e0 ldi r19, 0x01 ; 1
  5576. 21fe: 40 e1 ldi r20, 0x10 ; 16
  5577. 2200: 50 e0 ldi r21, 0x00 ; 0
  5578. 2202: 61 e0 ldi r22, 0x01 ; 1
  5579. 2204: 70 e0 ldi r23, 0x00 ; 0
  5580. 2206: 82 e5 ldi r24, 0x52 ; 82
  5581. 2208: 92 e0 ldi r25, 0x02 ; 2
  5582. 220a: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  5583. 220e: bb cd rjmp .-1162 ; 0x1d86 <main+0xf2>
  5584. 2210: 81 50 subi r24, 0x01 ; 1
  5585. button.holded = 0;
  5586. button.holdcnt = 0;
  5587. }
  5588. else // Button hold event
  5589. {
  5590. switch(button.code)
  5591. 2212: 82 30 cpi r24, 0x02 ; 2
  5592. 2214: 08 f0 brcs .+2 ; 0x2218 <main+0x584>
  5593. 2216: 97 cd rjmp .-1234 ; 0x1d46 <main+0xb2>
  5594. 2218: 81 e0 ldi r24, 0x01 ; 1
  5595. {
  5596. case 0x01:
  5597. case 0x02:
  5598. btn_act = 1;
  5599. 221a: 80 93 f7 02 sts 0x02F7, r24 ; 0x8002f7 <btn_act>
  5600. button.holded = 0;
  5601. button.holdcnt--;
  5602. 221e: 01 5e subi r16, 0xE1 ; 225
  5603. 2220: 0f 71 andi r16, 0x1F ; 31
  5604. switch(button.code)
  5605. {
  5606. case 0x01:
  5607. case 0x02:
  5608. btn_act = 1;
  5609. button.holded = 0;
  5610. 2222: 71 2c mov r7, r1
  5611. button.holdcnt--;
  5612. break;
  5613. 2224: 90 cd rjmp .-1248 ; 0x1d46 <main+0xb2>
  5614. {
  5615. fprintf(&lcd_stdout, "%.3d\x01", heater[ch].tcouple);
  5616. }
  5617. else
  5618. {
  5619. fprintf(&lcd_stdout, "--- ");
  5620. 2226: 24 e1 ldi r18, 0x14 ; 20
  5621. 2228: 31 e0 ldi r19, 0x01 ; 1
  5622. 222a: 44 e0 ldi r20, 0x04 ; 4
  5623. 222c: 50 e0 ldi r21, 0x00 ; 0
  5624. 222e: 61 e0 ldi r22, 0x01 ; 1
  5625. 2230: 70 e0 ldi r23, 0x00 ; 0
  5626. 2232: 88 e1 ldi r24, 0x18 ; 24
  5627. 2234: 92 e0 ldi r25, 0x02 ; 2
  5628. 2236: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  5629. }
  5630. else
  5631. {
  5632. if((heater[ch].status.onoff == ON) && (heater[ch].tmeas < heater[ch].tset))
  5633. {
  5634. SwitchDrive(ch, ON);
  5635. 223a: 17 cf rjmp .-466 ; 0x206a <main+0x3d6>
  5636. 223c: 61 e0 ldi r22, 0x01 ; 1
  5637. 223e: 8d 2d mov r24, r13
  5638. 2240: 3e d3 rcall .+1660 ; 0x28be <SwitchDrive>
  5639. else
  5640. {
  5641. fprintf(&lcd_stdout, "--- ");
  5642. }
  5643. switch(heater[ch].status.circuit)
  5644. 2242: c1 ce rjmp .-638 ; 0x1fc6 <main+0x332>
  5645. 2244: 83 30 cpi r24, 0x03 ; 3
  5646. 2246: 79 f0 breq .+30 ; 0x2266 <main+0x5d2>
  5647. 2248: 84 30 cpi r24, 0x04 ; 4
  5648. break;
  5649. case CIRC_SHORT:
  5650. LCD_SendData(SYM_SHORT);
  5651. break;
  5652. case CIRC_RES:
  5653. LCD_SendData(SYM_RES);
  5654. 224a: 09 f0 breq .+2 ; 0x224e <main+0x5ba>
  5655. 224c: 2d cf rjmp .-422 ; 0x20a8 <main+0x414>
  5656. 224e: 84 e0 ldi r24, 0x04 ; 4
  5657. break;
  5658. 2250: 5d d1 rcall .+698 ; 0x250c <LCD_SendData>
  5659. button.holded = 0;
  5660. button.holdcnt--;
  5661. break;
  5662. case 0x04:
  5663. menu->set = 0;
  5664. 2252: 2a cf rjmp .-428 ; 0x20a8 <main+0x414>
  5665. 2254: d4 01 movw r26, r8
  5666. AutoCalibration(ch);
  5667. 2256: 1c 92 st X, r1
  5668. 2258: 8b 81 ldd r24, Y+3 ; 0x03
  5669. 225a: 0e 94 ce 06 call 0xd9c ; 0xd9c <AutoCalibration>
  5670. button.pressed = 0;
  5671. button.holded = 0;
  5672. 225e: 00 e0 ldi r16, 0x00 ; 0
  5673. break;
  5674. case 0x04:
  5675. menu->set = 0;
  5676. AutoCalibration(ch);
  5677. button.pressed = 0;
  5678. 2260: 71 2c mov r7, r1
  5679. button.holded = 0;
  5680. button.holdcnt = 0;
  5681. break;
  5682. 2262: 61 2c mov r6, r1
  5683. break;
  5684. case CIRC_MOSFET:
  5685. LCD_SendData(SYM_MOSFET);
  5686. break;
  5687. case CIRC_RES_DIODE:
  5688. LCD_SendData(SYM_DIODE);
  5689. 2264: 70 cd rjmp .-1312 ; 0x1d46 <main+0xb2>
  5690. 2266: 83 e0 ldi r24, 0x03 ; 3
  5691. 2268: 51 d1 rcall .+674 ; 0x250c <LCD_SendData>
  5692. break;
  5693. 226a: 1e cf rjmp .-452 ; 0x20a8 <main+0x414>
  5694. }
  5695. switch(heater[ch].status.circuit)
  5696. {
  5697. case CIRC_OPEN:
  5698. LCD_SendData(SYM_OPEN);
  5699. 226c: 86 e0 ldi r24, 0x06 ; 6
  5700. 226e: 4e d1 rcall .+668 ; 0x250c <LCD_SendData>
  5701. break;
  5702. 2270: 1b cf rjmp .-458 ; 0x20a8 <main+0x414>
  5703. if(!button.holded)
  5704. {
  5705. display = DISP_MAIN;
  5706. if(button.prev_code == 0x08)
  5707. {
  5708. heater[ch].status.onoff ^= 1;
  5709. 2272: b3 e1 ldi r27, 0x13 ; 19
  5710. 2274: 2b 81 ldd r18, Y+3 ; 0x03
  5711. 2276: b2 9f mul r27, r18
  5712. 2278: f0 01 movw r30, r0
  5713. 227a: 11 24 eor r1, r1
  5714. 227c: e0 5e subi r30, 0xE0 ; 224
  5715. 227e: fc 4f sbci r31, 0xFC ; 252
  5716. 2280: 80 81 ld r24, Z
  5717. 2282: 81 fb bst r24, 1
  5718. 2284: 99 27 eor r25, r25
  5719. 2286: 90 f9 bld r25, 0
  5720. 2288: 81 e0 ldi r24, 0x01 ; 1
  5721. 228a: 89 27 eor r24, r25
  5722. 228c: 90 81 ld r25, Z
  5723. 228e: 80 fb bst r24, 0
  5724. 2290: 91 f9 bld r25, 1
  5725. SwitchDrive(ch, OFF);
  5726. 2292: 90 83 st Z, r25
  5727. 2294: 60 e0 ldi r22, 0x00 ; 0
  5728. 2296: 82 2f mov r24, r18
  5729. SwitchHeating(ch, OFF);
  5730. 2298: 12 d3 rcall .+1572 ; 0x28be <SwitchDrive>
  5731. 229a: 60 e0 ldi r22, 0x00 ; 0
  5732. 229c: 8b 81 ldd r24, Y+3 ; 0x03
  5733. 229e: 0e 94 a3 05 call 0xb46 ; 0xb46 <SwitchHeating>
  5734. LCD_SetPos(0, 1);
  5735. fprintf(&lcd_stdout, "Tó=%.3u\x01 ", heater[ch].tset);
  5736. if((heater[ch].status.circuit == CIRC_OPEN) || (heater[ch].status.circuit == CIRC_SHORT))
  5737. {
  5738. fprintf(&lcd_stdout, "ÎÒÊËÞ×.");
  5739. 22a2: 73 ce rjmp .-794 ; 0x1f8a <main+0x2f6>
  5740. 22a4: 24 e1 ldi r18, 0x14 ; 20
  5741. 22a6: 31 e0 ldi r19, 0x01 ; 1
  5742. 22a8: 47 e0 ldi r20, 0x07 ; 7
  5743. 22aa: 50 e0 ldi r21, 0x00 ; 0
  5744. 22ac: 61 e0 ldi r22, 0x01 ; 1
  5745. 22ae: 70 e0 ldi r23, 0x00 ; 0
  5746. 22b0: 87 e2 ldi r24, 0x27 ; 39
  5747. 22b2: 92 e0 ldi r25, 0x02 ; 2
  5748. 22b4: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  5749. {
  5750. LCD_SendData(0xD9);
  5751. }
  5752. else
  5753. {
  5754. LCD_SendData(0xDA);
  5755. 22b8: 5b cf rjmp .-330 ; 0x2170 <main+0x4dc>
  5756. 22ba: 8a ed ldi r24, 0xDA ; 218
  5757. 22bc: 27 d1 rcall .+590 ; 0x250c <LCD_SendData>
  5758. }
  5759. }
  5760. else
  5761. {
  5762. LCD_SendData('-');
  5763. 22be: 68 cf rjmp .-304 ; 0x2190 <main+0x4fc>
  5764. 22c0: 8d e2 ldi r24, 0x2D ; 45
  5765. 22c2: 24 d1 rcall .+584 ; 0x250c <LCD_SendData>
  5766. 22c4: 65 cf rjmp .-310 ; 0x2190 <main+0x4fc>
  5767. }
  5768. if(menu->set == 1)
  5769. {
  5770. if(menu->blink_cnt % 4 == 0)
  5771. 22c6: 11 96 adiw r26, 0x01 ; 1
  5772. 22c8: 8c 91 ld r24, X
  5773. 22ca: 11 97 sbiw r26, 0x01 ; 1
  5774. 22cc: 98 2f mov r25, r24
  5775. 22ce: 93 70 andi r25, 0x03 ; 3
  5776. 22d0: 91 f4 brne .+36 ; 0x22f6 <main+0x662>
  5777. {
  5778. if(menu->blink_cnt > 40)
  5779. 22d2: 89 32 cpi r24, 0x29 ; 41
  5780. 22d4: 08 f0 brcs .+2 ; 0x22d8 <main+0x644>
  5781. 22d6: 81 c0 rjmp .+258 ; 0x23da <main+0x746>
  5782. {
  5783. menu->set = 0;
  5784. menu->blink_cnt = 0;
  5785. SavePrefs();
  5786. }
  5787. LCD_SetPos(3, 1);
  5788. 22d8: 61 e0 ldi r22, 0x01 ; 1
  5789. 22da: 83 e0 ldi r24, 0x03 ; 3
  5790. 22dc: 57 d1 rcall .+686 ; 0x258c <LCD_SetPos>
  5791. 22de: 24 e1 ldi r18, 0x14 ; 20
  5792. fprintf(&lcd_stdout, " ");
  5793. 22e0: 31 e0 ldi r19, 0x01 ; 1
  5794. 22e2: 43 e0 ldi r20, 0x03 ; 3
  5795. 22e4: 50 e0 ldi r21, 0x00 ; 0
  5796. 22e6: 61 e0 ldi r22, 0x01 ; 1
  5797. 22e8: 70 e0 ldi r23, 0x00 ; 0
  5798. 22ea: 86 e6 ldi r24, 0x66 ; 102
  5799. 22ec: 91 e0 ldi r25, 0x01 ; 1
  5800. 22ee: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  5801. 22f2: f4 01 movw r30, r8
  5802. 22f4: 81 81 ldd r24, Z+1 ; 0x01
  5803. }
  5804. menu->blink_cnt++;
  5805. 22f6: 8f 5f subi r24, 0xFF ; 255
  5806. 22f8: d4 01 movw r26, r8
  5807. 22fa: 11 96 adiw r26, 0x01 ; 1
  5808. 22fc: 8c 93 st X, r24
  5809. 22fe: 50 cf rjmp .-352 ; 0x21a0 <main+0x50c>
  5810. }
  5811. else if(menu->set == 2)
  5812. {
  5813. if(menu->blink_cnt % 4 == 0)
  5814. 2300: f4 01 movw r30, r8
  5815. 2302: 81 81 ldd r24, Z+1 ; 0x01
  5816. 2304: 98 2f mov r25, r24
  5817. 2306: 93 70 andi r25, 0x03 ; 3
  5818. {
  5819. if(menu->blink_cnt > 40)
  5820. 2308: 99 f4 brne .+38 ; 0x2330 <main+0x69c>
  5821. 230a: 89 32 cpi r24, 0x29 ; 41
  5822. 230c: 08 f0 brcs .+2 ; 0x2310 <main+0x67c>
  5823. {
  5824. menu->set = 0;
  5825. menu->blink_cnt = 0;
  5826. SavePrefs();
  5827. }
  5828. LCD_SetPos(4, 0);
  5829. 230e: 6a c0 rjmp .+212 ; 0x23e4 <main+0x750>
  5830. 2310: 60 e0 ldi r22, 0x00 ; 0
  5831. 2312: 84 e0 ldi r24, 0x04 ; 4
  5832. fprintf(&lcd_stdout, " ");
  5833. 2314: 3b d1 rcall .+630 ; 0x258c <LCD_SetPos>
  5834. 2316: 24 e1 ldi r18, 0x14 ; 20
  5835. 2318: 31 e0 ldi r19, 0x01 ; 1
  5836. 231a: 42 e0 ldi r20, 0x02 ; 2
  5837. 231c: 50 e0 ldi r21, 0x00 ; 0
  5838. 231e: 61 e0 ldi r22, 0x01 ; 1
  5839. 2320: 70 e0 ldi r23, 0x00 ; 0
  5840. 2322: 87 e6 ldi r24, 0x67 ; 103
  5841. 2324: 91 e0 ldi r25, 0x01 ; 1
  5842. 2326: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  5843. 232a: d4 01 movw r26, r8
  5844. }
  5845. menu->blink_cnt++;
  5846. 232c: 11 96 adiw r26, 0x01 ; 1
  5847. 232e: 8c 91 ld r24, X
  5848. 2330: 8f 5f subi r24, 0xFF ; 255
  5849. 2332: f4 01 movw r30, r8
  5850. break;
  5851. case CIRC_RES:
  5852. LCD_SendData(SYM_RES);
  5853. break;
  5854. case CIRC_MOSFET:
  5855. LCD_SendData(SYM_MOSFET);
  5856. 2334: 81 83 std Z+1, r24 ; 0x01
  5857. 2336: 34 cf rjmp .-408 ; 0x21a0 <main+0x50c>
  5858. 2338: 85 e0 ldi r24, 0x05 ; 5
  5859. break;
  5860. 233a: e8 d0 rcall .+464 ; 0x250c <LCD_SendData>
  5861. {
  5862. fprintf(&lcd_stdout, "ÎÒÊËÞ×.");
  5863. }
  5864. else if(heater[ch].status.circuit == CIRC_RES)
  5865. {
  5866. fprintf(&lcd_stdout, "I=%4.2fA", ((float)heater[ch].current) / 1000.0);
  5867. 233c: b5 ce rjmp .-662 ; 0x20a8 <main+0x414>
  5868. 233e: 66 85 ldd r22, Z+14 ; 0x0e
  5869. 2340: 77 85 ldd r23, Z+15 ; 0x0f
  5870. 2342: 80 e0 ldi r24, 0x00 ; 0
  5871. 2344: 90 e0 ldi r25, 0x00 ; 0
  5872. 2346: b1 d4 rcall .+2402 ; 0x2caa <__floatunsisf>
  5873. 2348: 20 e0 ldi r18, 0x00 ; 0
  5874. 234a: 30 e0 ldi r19, 0x00 ; 0
  5875. 234c: 4a e7 ldi r20, 0x7A ; 122
  5876. 234e: 54 e4 ldi r21, 0x44 ; 68
  5877. 2350: 13 d4 rcall .+2086 ; 0x2b78 <__divsf3>
  5878. 2352: 9f 93 push r25
  5879. 2354: 8f 93 push r24
  5880. 2356: 7f 93 push r23
  5881. 2358: 6f 93 push r22
  5882. 235a: 2f e2 ldi r18, 0x2F ; 47
  5883. 235c: 32 e0 ldi r19, 0x02 ; 2
  5884. 235e: 3f 93 push r19
  5885. 2360: 2f 93 push r18
  5886. 2362: df 92 push r13
  5887. 2364: cf 92 push r12
  5888. 2366: 0e 94 87 1d call 0x3b0e ; 0x3b0e <fprintf>
  5889. 236a: 0f b6 in r0, 0x3f ; 63
  5890. 236c: f8 94 cli
  5891. 236e: de bf out 0x3e, r29 ; 62
  5892. 2370: 0f be out 0x3f, r0 ; 63
  5893. 2372: cd bf out 0x3d, r28 ; 61
  5894. 2374: fd ce rjmp .-518 ; 0x2170 <main+0x4dc>
  5895. 2376: 81 30 cpi r24, 0x01 ; 1
  5896. if(display == DISP_MAIN)
  5897. {
  5898. button.pressed = 1;
  5899. button.released = 0;
  5900. button.prev_code = button.code;
  5901. switch(button.code)
  5902. 2378: 11 f5 brne .+68 ; 0x23be <main+0x72a>
  5903. 237a: f4 01 movw r30, r8
  5904. {
  5905. case 0x01:
  5906. menu->blink_cnt = 1;
  5907. 237c: 11 83 std Z+1, r17 ; 0x01
  5908. 237e: 80 81 ld r24, Z
  5909. if(menu->set == 1)
  5910. 2380: 81 30 cpi r24, 0x01 ; 1
  5911. 2382: b1 f1 breq .+108 ; 0x23f0 <main+0x75c>
  5912. 2384: 82 30 cpi r24, 0x02 ; 2
  5913. {
  5914. heater[ch].tset -= (heater[ch].tset != 0);
  5915. }
  5916. else if(menu->set == 2)
  5917. 2386: 09 f4 brne .+2 ; 0x238a <main+0x6f6>
  5918. 2388: 64 c0 rjmp .+200 ; 0x2452 <main+0x7be>
  5919. 238a: 44 24 eor r4, r4
  5920. 238c: 43 94 inc r4
  5921. 238e: 51 2c mov r5, r1
  5922. button.code = ~((BTNPIN >> 4) | 0xF0);
  5923. if((button.code != 0x00) && (!button.holded)) // Button down event
  5924. {
  5925. if(display == DISP_MAIN)
  5926. {
  5927. button.pressed = 1;
  5928. 2390: 66 24 eor r6, r6
  5929. 2392: 63 94 inc r6
  5930. heater[ch].preset -= (heater[ch].preset != 0);
  5931. LoadPreset(ch);
  5932. }
  5933. else
  5934. {
  5935. ch = CH0;
  5936. 2394: 1b 82 std Y+3, r1 ; 0x03
  5937. 2396: d7 cc rjmp .-1618 ; 0x1d46 <main+0xb2>
  5938. }
  5939. break;
  5940. case 0x02:
  5941. menu->blink_cnt = 1;
  5942. 2398: d4 01 movw r26, r8
  5943. 239a: 11 96 adiw r26, 0x01 ; 1
  5944. 239c: 1c 93 st X, r17
  5945. 239e: 11 97 sbiw r26, 0x01 ; 1
  5946. if(menu->set == 1)
  5947. 23a0: 8c 91 ld r24, X
  5948. 23a2: 81 30 cpi r24, 0x01 ; 1
  5949. 23a4: 09 f4 brne .+2 ; 0x23a8 <main+0x714>
  5950. {
  5951. heater[ch].tset += (heater[ch].tset != 150);
  5952. }
  5953. else if(menu->set == 2)
  5954. 23a6: 3d c0 rjmp .+122 ; 0x2422 <main+0x78e>
  5955. 23a8: 82 30 cpi r24, 0x02 ; 2
  5956. 23aa: 09 f4 brne .+2 ; 0x23ae <main+0x71a>
  5957. 23ac: 68 c0 rjmp .+208 ; 0x247e <main+0x7ea>
  5958. if((button.code != 0x00) && (!button.holded)) // Button down event
  5959. {
  5960. if(display == DISP_MAIN)
  5961. {
  5962. button.pressed = 1;
  5963. button.released = 0;
  5964. 23ae: 62 e0 ldi r22, 0x02 ; 2
  5965. button.code = ~((BTNPIN >> 4) | 0xF0);
  5966. if((button.code != 0x00) && (!button.holded)) // Button down event
  5967. {
  5968. if(display == DISP_MAIN)
  5969. {
  5970. button.pressed = 1;
  5971. 23b0: 46 2e mov r4, r22
  5972. 23b2: 51 2c mov r5, r1
  5973. heater[ch].preset += (heater[ch].preset != 24);
  5974. LoadPreset(ch);
  5975. }
  5976. else
  5977. {
  5978. ch = CH1;
  5979. 23b4: 66 24 eor r6, r6
  5980. 23b6: 63 94 inc r6
  5981. 23b8: e1 e0 ldi r30, 0x01 ; 1
  5982. /* ---------------- BUTTON SECTION --------------- */
  5983. if(btn_act)
  5984. {
  5985. _delay_ms(20);
  5986. btn_act = 0;
  5987. button.code = ~((BTNPIN >> 4) | 0xF0);
  5988. 23ba: eb 83 std Y+3, r30 ; 0x03
  5989. if((button.code != 0x00) && (!button.holded)) // Button down event
  5990. {
  5991. if(display == DISP_MAIN)
  5992. {
  5993. button.pressed = 1;
  5994. button.released = 0;
  5995. 23bc: c4 cc rjmp .-1656 ; 0x1d46 <main+0xb2>
  5996. button.code = ~((BTNPIN >> 4) | 0xF0);
  5997. if((button.code != 0x00) && (!button.holded)) // Button down event
  5998. {
  5999. if(display == DISP_MAIN)
  6000. {
  6001. button.pressed = 1;
  6002. 23be: 48 2e mov r4, r24
  6003. 23c0: 51 2c mov r5, r1
  6004. 23c2: 66 24 eor r6, r6
  6005. ch = CH1;
  6006. }
  6007. break;
  6008. case 0x03:
  6009. LCD_SendCmd(LCD_CLR);
  6010. 23c4: 63 94 inc r6
  6011. 23c6: bf cc rjmp .-1666 ; 0x1d46 <main+0xb2>
  6012. 23c8: 81 e0 ldi r24, 0x01 ; 1
  6013. display = DISP_VER;
  6014. break;
  6015. 23ca: bb d0 rcall .+374 ; 0x2542 <LCD_SendCmd>
  6016. 23cc: 93 e0 ldi r25, 0x03 ; 3
  6017. if((button.code != 0x00) && (!button.holded)) // Button down event
  6018. {
  6019. if(display == DISP_MAIN)
  6020. {
  6021. button.pressed = 1;
  6022. button.released = 0;
  6023. 23ce: 49 2e mov r4, r25
  6024. button.code = ~((BTNPIN >> 4) | 0xF0);
  6025. if((button.code != 0x00) && (!button.holded)) // Button down event
  6026. {
  6027. if(display == DISP_MAIN)
  6028. {
  6029. button.pressed = 1;
  6030. 23d0: 51 2c mov r5, r1
  6031. 23d2: 66 24 eor r6, r6
  6032. }
  6033. break;
  6034. case 0x03:
  6035. LCD_SendCmd(LCD_CLR);
  6036. display = DISP_VER;
  6037. 23d4: 63 94 inc r6
  6038. break;
  6039. 23d6: 13 e0 ldi r17, 0x03 ; 3
  6040. {
  6041. if(menu->blink_cnt % 4 == 0)
  6042. {
  6043. if(menu->blink_cnt > 40)
  6044. {
  6045. menu->set = 0;
  6046. 23d8: b6 cc rjmp .-1684 ; 0x1d46 <main+0xb2>
  6047. menu->blink_cnt = 0;
  6048. 23da: 1c 92 st X, r1
  6049. 23dc: 11 96 adiw r26, 0x01 ; 1
  6050. SavePrefs();
  6051. 23de: 1c 92 st X, r1
  6052. 23e0: a9 d2 rcall .+1362 ; 0x2934 <SavePrefs>
  6053. 23e2: 7a cf rjmp .-268 ; 0x22d8 <main+0x644>
  6054. {
  6055. if(menu->blink_cnt % 4 == 0)
  6056. {
  6057. if(menu->blink_cnt > 40)
  6058. {
  6059. menu->set = 0;
  6060. 23e4: 10 82 st Z, r1
  6061. menu->blink_cnt = 0;
  6062. 23e6: 11 82 std Z+1, r1 ; 0x01
  6063. SavePrefs();
  6064. 23e8: a5 d2 rcall .+1354 ; 0x2934 <SavePrefs>
  6065. 23ea: 92 cf rjmp .-220 ; 0x2310 <main+0x67c>
  6066. 23ec: a3 d2 rcall .+1350 ; 0x2934 <SavePrefs>
  6067. break;
  6068. case 0x04:
  6069. menu->set = (menu->set + 1) % 3;
  6070. if(menu->set == 0)
  6071. SavePrefs();
  6072. 23ee: 10 cd rjmp .-1504 ; 0x1e10 <main+0x17c>
  6073. 23f0: 23 e1 ldi r18, 0x13 ; 19
  6074. 23f2: 3b 81 ldd r19, Y+3 ; 0x03
  6075. {
  6076. case 0x01:
  6077. menu->blink_cnt = 1;
  6078. if(menu->set == 1)
  6079. {
  6080. heater[ch].tset -= (heater[ch].tset != 0);
  6081. 23f4: 23 9f mul r18, r19
  6082. 23f6: f0 01 movw r30, r0
  6083. 23f8: 11 24 eor r1, r1
  6084. 23fa: e0 5e subi r30, 0xE0 ; 224
  6085. 23fc: fc 4f sbci r31, 0xFC ; 252
  6086. 23fe: 82 85 ldd r24, Z+10 ; 0x0a
  6087. 2400: 93 85 ldd r25, Z+11 ; 0x0b
  6088. 2402: 21 e0 ldi r18, 0x01 ; 1
  6089. 2404: 30 e0 ldi r19, 0x00 ; 0
  6090. 2406: 00 97 sbiw r24, 0x00 ; 0
  6091. 2408: 11 f4 brne .+4 ; 0x240e <main+0x77a>
  6092. 240a: 20 e0 ldi r18, 0x00 ; 0
  6093. 240c: 30 e0 ldi r19, 0x00 ; 0
  6094. 240e: 82 1b sub r24, r18
  6095. 2410: 93 0b sbc r25, r19
  6096. 2412: 93 87 std Z+11, r25 ; 0x0b
  6097. 2414: 82 87 std Z+10, r24 ; 0x0a
  6098. 2416: 44 24 eor r4, r4
  6099. 2418: 43 94 inc r4
  6100. 241a: 51 2c mov r5, r1
  6101. 241c: 66 24 eor r6, r6
  6102. if((button.code != 0x00) && (!button.holded)) // Button down event
  6103. {
  6104. if(display == DISP_MAIN)
  6105. {
  6106. button.pressed = 1;
  6107. button.released = 0;
  6108. 241e: 63 94 inc r6
  6109. button.code = ~((BTNPIN >> 4) | 0xF0);
  6110. if((button.code != 0x00) && (!button.holded)) // Button down event
  6111. {
  6112. if(display == DISP_MAIN)
  6113. {
  6114. button.pressed = 1;
  6115. 2420: 92 cc rjmp .-1756 ; 0x1d46 <main+0xb2>
  6116. 2422: b3 e1 ldi r27, 0x13 ; 19
  6117. 2424: 2b 81 ldd r18, Y+3 ; 0x03
  6118. case 0x02:
  6119. menu->blink_cnt = 1;
  6120. if(menu->set == 1)
  6121. {
  6122. heater[ch].tset += (heater[ch].tset != 150);
  6123. 2426: b2 9f mul r27, r18
  6124. 2428: f0 01 movw r30, r0
  6125. 242a: 11 24 eor r1, r1
  6126. 242c: e0 5e subi r30, 0xE0 ; 224
  6127. 242e: fc 4f sbci r31, 0xFC ; 252
  6128. 2430: 82 85 ldd r24, Z+10 ; 0x0a
  6129. 2432: 93 85 ldd r25, Z+11 ; 0x0b
  6130. 2434: 21 e0 ldi r18, 0x01 ; 1
  6131. 2436: 30 e0 ldi r19, 0x00 ; 0
  6132. 2438: 86 39 cpi r24, 0x96 ; 150
  6133. 243a: 91 05 cpc r25, r1
  6134. 243c: a9 f1 breq .+106 ; 0x24a8 <main+0x814>
  6135. 243e: 82 0f add r24, r18
  6136. 2440: 93 1f adc r25, r19
  6137. 2442: 93 87 std Z+11, r25 ; 0x0b
  6138. 2444: 82 87 std Z+10, r24 ; 0x0a
  6139. 2446: 32 e0 ldi r19, 0x02 ; 2
  6140. 2448: 43 2e mov r4, r19
  6141. 244a: 51 2c mov r5, r1
  6142. if((button.code != 0x00) && (!button.holded)) // Button down event
  6143. {
  6144. if(display == DISP_MAIN)
  6145. {
  6146. button.pressed = 1;
  6147. button.released = 0;
  6148. 244c: 66 24 eor r6, r6
  6149. button.code = ~((BTNPIN >> 4) | 0xF0);
  6150. if((button.code != 0x00) && (!button.holded)) // Button down event
  6151. {
  6152. if(display == DISP_MAIN)
  6153. {
  6154. button.pressed = 1;
  6155. 244e: 63 94 inc r6
  6156. 2450: 7a cc rjmp .-1804 ; 0x1d46 <main+0xb2>
  6157. 2452: 83 e1 ldi r24, 0x13 ; 19
  6158. {
  6159. heater[ch].tset -= (heater[ch].tset != 0);
  6160. }
  6161. else if(menu->set == 2)
  6162. {
  6163. heater[ch].preset -= (heater[ch].preset != 0);
  6164. 2454: 9b 81 ldd r25, Y+3 ; 0x03
  6165. 2456: 89 9f mul r24, r25
  6166. 2458: f0 01 movw r30, r0
  6167. 245a: 11 24 eor r1, r1
  6168. 245c: e0 5e subi r30, 0xE0 ; 224
  6169. 245e: fc 4f sbci r31, 0xFC ; 252
  6170. 2460: 82 81 ldd r24, Z+2 ; 0x02
  6171. 2462: 91 e0 ldi r25, 0x01 ; 1
  6172. 2464: 81 11 cpse r24, r1
  6173. 2466: 01 c0 rjmp .+2 ; 0x246a <main+0x7d6>
  6174. 2468: 90 e0 ldi r25, 0x00 ; 0
  6175. 246a: 89 1b sub r24, r25
  6176. 246c: 82 83 std Z+2, r24 ; 0x02
  6177. LoadPreset(ch);
  6178. 246e: 8b 81 ldd r24, Y+3 ; 0x03
  6179. 2470: 85 d2 rcall .+1290 ; 0x297c <LoadPreset>
  6180. 2472: 44 24 eor r4, r4
  6181. 2474: 43 94 inc r4
  6182. 2476: 51 2c mov r5, r1
  6183. if((button.code != 0x00) && (!button.holded)) // Button down event
  6184. {
  6185. if(display == DISP_MAIN)
  6186. {
  6187. button.pressed = 1;
  6188. button.released = 0;
  6189. 2478: 66 24 eor r6, r6
  6190. button.code = ~((BTNPIN >> 4) | 0xF0);
  6191. if((button.code != 0x00) && (!button.holded)) // Button down event
  6192. {
  6193. if(display == DISP_MAIN)
  6194. {
  6195. button.pressed = 1;
  6196. 247a: 63 94 inc r6
  6197. 247c: 64 cc rjmp .-1848 ; 0x1d46 <main+0xb2>
  6198. 247e: 33 e1 ldi r19, 0x13 ; 19
  6199. {
  6200. heater[ch].tset += (heater[ch].tset != 150);
  6201. }
  6202. else if(menu->set == 2)
  6203. {
  6204. heater[ch].preset += (heater[ch].preset != 24);
  6205. 2480: 8b 81 ldd r24, Y+3 ; 0x03
  6206. 2482: 38 9f mul r19, r24
  6207. 2484: f0 01 movw r30, r0
  6208. 2486: 11 24 eor r1, r1
  6209. 2488: e0 5e subi r30, 0xE0 ; 224
  6210. 248a: fc 4f sbci r31, 0xFC ; 252
  6211. 248c: 82 81 ldd r24, Z+2 ; 0x02
  6212. 248e: 91 e0 ldi r25, 0x01 ; 1
  6213. 2490: 88 31 cpi r24, 0x18 ; 24
  6214. 2492: 69 f0 breq .+26 ; 0x24ae <main+0x81a>
  6215. 2494: 89 0f add r24, r25
  6216. 2496: 82 83 std Z+2, r24 ; 0x02
  6217. 2498: 8b 81 ldd r24, Y+3 ; 0x03
  6218. LoadPreset(ch);
  6219. 249a: 70 d2 rcall .+1248 ; 0x297c <LoadPreset>
  6220. 249c: 22 e0 ldi r18, 0x02 ; 2
  6221. 249e: 42 2e mov r4, r18
  6222. 24a0: 51 2c mov r5, r1
  6223. 24a2: 66 24 eor r6, r6
  6224. if((button.code != 0x00) && (!button.holded)) // Button down event
  6225. {
  6226. if(display == DISP_MAIN)
  6227. {
  6228. button.pressed = 1;
  6229. button.released = 0;
  6230. 24a4: 63 94 inc r6
  6231. button.code = ~((BTNPIN >> 4) | 0xF0);
  6232. if((button.code != 0x00) && (!button.holded)) // Button down event
  6233. {
  6234. if(display == DISP_MAIN)
  6235. {
  6236. button.pressed = 1;
  6237. 24a6: 4f cc rjmp .-1890 ; 0x1d46 <main+0xb2>
  6238. 24a8: 20 e0 ldi r18, 0x00 ; 0
  6239. 24aa: 30 e0 ldi r19, 0x00 ; 0
  6240. case 0x02:
  6241. menu->blink_cnt = 1;
  6242. if(menu->set == 1)
  6243. {
  6244. heater[ch].tset += (heater[ch].tset != 150);
  6245. 24ac: c8 cf rjmp .-112 ; 0x243e <main+0x7aa>
  6246. 24ae: 90 e0 ldi r25, 0x00 ; 0
  6247. 24b0: f1 cf rjmp .-30 ; 0x2494 <main+0x800>
  6248. 000024b2 <I2C_SendByte>:
  6249. { 0x08, 0x08, 0x04, 0x02, 0x01, 0x08, 0x08, 0x08 }, /* 6 OPEN */
  6250. { 0x08, 0x08, 0x04, 0x04, 0x02, 0x0F, 0x0A, 0x08 }};/* 7 SHORT */
  6251. void I2C_SendByte(uint8_t byte)
  6252. {
  6253. cli();
  6254. 24b2: f8 94 cli
  6255. TWCR |= (1 << TWINT) | (1 << TWSTA);
  6256. 24b4: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6257. 24b8: 90 6a ori r25, 0xA0 ; 160
  6258. 24ba: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6259. while(!(TWCR & (1 << TWINT)));
  6260. 24be: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6261. 24c2: 97 ff sbrs r25, 7
  6262. 24c4: fc cf rjmp .-8 ; 0x24be <I2C_SendByte+0xc>
  6263. TWDR = LCDI2CADDR;
  6264. 24c6: 9e e4 ldi r25, 0x4E ; 78
  6265. 24c8: 90 93 bb 00 sts 0x00BB, r25 ; 0x8000bb <__TEXT_REGION_LENGTH__+0x7e00bb>
  6266. TWCR &= ~(1 << TWSTA);
  6267. 24cc: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6268. 24d0: 9f 7d andi r25, 0xDF ; 223
  6269. 24d2: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6270. TWCR |= (1 << TWINT);
  6271. 24d6: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6272. 24da: 90 68 ori r25, 0x80 ; 128
  6273. 24dc: 90 93 bc 00 sts 0x00BC, r25 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6274. while(!(TWCR & (1 << TWINT)));
  6275. 24e0: 90 91 bc 00 lds r25, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6276. 24e4: 97 ff sbrs r25, 7
  6277. 24e6: fc cf rjmp .-8 ; 0x24e0 <I2C_SendByte+0x2e>
  6278. TWDR = byte;
  6279. 24e8: 80 93 bb 00 sts 0x00BB, r24 ; 0x8000bb <__TEXT_REGION_LENGTH__+0x7e00bb>
  6280. TWCR |= (1 << TWINT);
  6281. 24ec: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6282. 24f0: 80 68 ori r24, 0x80 ; 128
  6283. 24f2: 80 93 bc 00 sts 0x00BC, r24 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6284. while(!(TWCR & (1 << TWINT)));
  6285. 24f6: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6286. 24fa: 87 ff sbrs r24, 7
  6287. 24fc: fc cf rjmp .-8 ; 0x24f6 <I2C_SendByte+0x44>
  6288. TWCR |= (1 << TWINT) | (1 << TWSTO);
  6289. 24fe: 80 91 bc 00 lds r24, 0x00BC ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6290. 2502: 80 69 ori r24, 0x90 ; 144
  6291. 2504: 80 93 bc 00 sts 0x00BC, r24 ; 0x8000bc <__TEXT_REGION_LENGTH__+0x7e00bc>
  6292. sei();
  6293. 2508: 78 94 sei
  6294. 250a: 08 95 ret
  6295. 0000250c <LCD_SendData>:
  6296. }
  6297. void LCD_SendData(uint8_t data)
  6298. {
  6299. 250c: cf 93 push r28
  6300. 250e: df 93 push r29
  6301. 2510: c8 2f mov r28, r24
  6302. I2C_SendByte((data & 0xF0) | LCD_RS | LCD_E);
  6303. 2512: d8 2f mov r29, r24
  6304. 2514: d0 7f andi r29, 0xF0 ; 240
  6305. 2516: 8d 2f mov r24, r29
  6306. 2518: 85 60 ori r24, 0x05 ; 5
  6307. 251a: cb df rcall .-106 ; 0x24b2 <I2C_SendByte>
  6308. I2C_SendByte((data & 0xF0) | LCD_RS);
  6309. 251c: 8d 2f mov r24, r29
  6310. 251e: 81 60 ori r24, 0x01 ; 1
  6311. 2520: c8 df rcall .-112 ; 0x24b2 <I2C_SendByte>
  6312. I2C_SendByte((data << 4) | LCD_RS | LCD_E);
  6313. 2522: 80 e1 ldi r24, 0x10 ; 16
  6314. 2524: c8 9f mul r28, r24
  6315. 2526: e0 01 movw r28, r0
  6316. 2528: 11 24 eor r1, r1
  6317. 252a: 8c 2f mov r24, r28
  6318. 252c: 85 60 ori r24, 0x05 ; 5
  6319. 252e: c1 df rcall .-126 ; 0x24b2 <I2C_SendByte>
  6320. I2C_SendByte((data << 4) | LCD_RS);
  6321. 2530: 8c 2f mov r24, r28
  6322. 2532: 81 60 ori r24, 0x01 ; 1
  6323. 2534: be df rcall .-132 ; 0x24b2 <I2C_SendByte>
  6324. 2536: 80 e1 ldi r24, 0x10 ; 16
  6325. #else
  6326. //round up by default
  6327. __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
  6328. #endif
  6329. __builtin_avr_delay_cycles(__ticks_dc);
  6330. 2538: 8a 95 dec r24
  6331. 253a: f1 f7 brne .-4 ; 0x2538 <LCD_SendData+0x2c>
  6332. 253c: df 91 pop r29
  6333. _delay_us(4);
  6334. }
  6335. 253e: cf 91 pop r28
  6336. 2540: 08 95 ret
  6337. 00002542 <LCD_SendCmd>:
  6338. 2542: cf 93 push r28
  6339. void LCD_SendCmd(uint8_t cmd)
  6340. {
  6341. 2544: df 93 push r29
  6342. 2546: c8 2f mov r28, r24
  6343. I2C_SendByte(((cmd & 0xF0) & ~LCD_RS) | LCD_E);
  6344. 2548: d8 2f mov r29, r24
  6345. 254a: d0 7f andi r29, 0xF0 ; 240
  6346. 254c: 8d 2f mov r24, r29
  6347. 254e: 84 60 ori r24, 0x04 ; 4
  6348. 2550: b0 df rcall .-160 ; 0x24b2 <I2C_SendByte>
  6349. I2C_SendByte((cmd & 0xF0) & ~LCD_RS);
  6350. 2552: 8d 2f mov r24, r29
  6351. 2554: ae df rcall .-164 ; 0x24b2 <I2C_SendByte>
  6352. I2C_SendByte(((cmd << 4) & ~LCD_RS) | LCD_E);
  6353. 2556: 20 e1 ldi r18, 0x10 ; 16
  6354. 2558: c2 9f mul r28, r18
  6355. 255a: c0 01 movw r24, r0
  6356. 255c: 11 24 eor r1, r1
  6357. 255e: 84 60 ori r24, 0x04 ; 4
  6358. 2560: a8 df rcall .-176 ; 0x24b2 <I2C_SendByte>
  6359. I2C_SendByte((cmd << 4) & ~LCD_RS);
  6360. 2562: 8c 2f mov r24, r28
  6361. 2564: 82 95 swap r24
  6362. 2566: 80 7f andi r24, 0xF0 ; 240
  6363. 2568: a4 df rcall .-184 ; 0x24b2 <I2C_SendByte>
  6364. if(cmd == LCD_CLR)
  6365. 256a: c1 30 cpi r28, 0x01 ; 1
  6366. 256c: 31 f0 breq .+12 ; 0x257a <LCD_SendCmd+0x38>
  6367. 256e: 98 e2 ldi r25, 0x28 ; 40
  6368. 2570: 9a 95 dec r25
  6369. 2572: f1 f7 brne .-4 ; 0x2570 <LCD_SendCmd+0x2e>
  6370. }
  6371. else
  6372. {
  6373. _delay_us(10);
  6374. }
  6375. }
  6376. 2574: df 91 pop r29
  6377. 2576: cf 91 pop r28
  6378. 2578: 08 95 ret
  6379. #else
  6380. //round up by default
  6381. __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
  6382. #endif
  6383. __builtin_avr_delay_cycles(__ticks_dc);
  6384. 257a: 8f e4 ldi r24, 0x4F ; 79
  6385. 257c: 96 e4 ldi r25, 0x46 ; 70
  6386. 257e: 01 97 sbiw r24, 0x01 ; 1
  6387. 2580: f1 f7 brne .-4 ; 0x257e <LCD_SendCmd+0x3c>
  6388. 2582: 00 c0 rjmp .+0 ; 0x2584 <LCD_SendCmd+0x42>
  6389. 2584: 00 00 nop
  6390. 2586: df 91 pop r29
  6391. 2588: cf 91 pop r28
  6392. 258a: 08 95 ret
  6393. 0000258c <LCD_SetPos>:
  6394. void LCD_SetPos(uint8_t x, uint8_t y)
  6395. {
  6396. y = ((y & 0x01) * 0x40);
  6397. 258c: 61 70 andi r22, 0x01 ; 1
  6398. x &= 0x0F;
  6399. LCD_SendCmd(LCD_DDRAM | (x + y));
  6400. 258e: 8f 70 andi r24, 0x0F ; 15
  6401. 2590: 90 e4 ldi r25, 0x40 ; 64
  6402. 2592: 69 9f mul r22, r25
  6403. 2594: 80 0d add r24, r0
  6404. 2596: 11 24 eor r1, r1
  6405. 2598: 80 68 ori r24, 0x80 ; 128
  6406. 259a: d3 cf rjmp .-90 ; 0x2542 <LCD_SendCmd>
  6407. 0000259c <LoadSymbols>:
  6408. }
  6409. void LoadSymbols()
  6410. {
  6411. 259c: cf 92 push r12
  6412. 259e: df 92 push r13
  6413. 25a0: ff 92 push r15
  6414. 25a2: 0f 93 push r16
  6415. 25a4: 1f 93 push r17
  6416. 25a6: cf 93 push r28
  6417. 25a8: df 93 push r29
  6418. 25aa: 84 ea ldi r24, 0xA4 ; 164
  6419. 25ac: c8 2e mov r12, r24
  6420. 25ae: 82 e0 ldi r24, 0x02 ; 2
  6421. 25b0: d8 2e mov r13, r24
  6422. 25b2: f1 2c mov r15, r1
  6423. 25b4: d0 e0 ldi r29, 0x00 ; 0
  6424. for(uint8_t i = 0; i < 8; i++)
  6425. {
  6426. LCD_SendCmd(LCD_CGRAM | (0x08 * i));
  6427. 25b6: 8f 2d mov r24, r15
  6428. 25b8: 80 64 ori r24, 0x40 ; 64
  6429. 25ba: c3 df rcall .-122 ; 0x2542 <LCD_SendCmd>
  6430. 25bc: 86 01 movw r16, r12
  6431. 25be: c8 e0 ldi r28, 0x08 ; 8
  6432. 25c0: 03 c0 rjmp .+6 ; 0x25c8 <LoadSymbols+0x2c>
  6433. 25c2: f8 01 movw r30, r16
  6434. 25c4: d1 91 ld r29, Z+
  6435. 25c6: 8f 01 movw r16, r30
  6436. for(uint8_t j = 0; j < 8; j++)
  6437. {
  6438. LCD_SendData(symbols[i][j]);
  6439. 25c8: 8d 2f mov r24, r29
  6440. 25ca: a0 df rcall .-192 ; 0x250c <LCD_SendData>
  6441. 25cc: c1 50 subi r28, 0x01 ; 1
  6442. void LoadSymbols()
  6443. {
  6444. for(uint8_t i = 0; i < 8; i++)
  6445. {
  6446. LCD_SendCmd(LCD_CGRAM | (0x08 * i));
  6447. for(uint8_t j = 0; j < 8; j++)
  6448. 25ce: c9 f7 brne .-14 ; 0x25c2 <LoadSymbols+0x26>
  6449. 25d0: f8 e0 ldi r31, 0x08 ; 8
  6450. 25d2: ff 0e add r15, r31
  6451. LCD_SendCmd(LCD_DDRAM | (x + y));
  6452. }
  6453. void LoadSymbols()
  6454. {
  6455. for(uint8_t i = 0; i < 8; i++)
  6456. 25d4: 80 e4 ldi r24, 0x40 ; 64
  6457. 25d6: f8 16 cp r15, r24
  6458. 25d8: 31 f0 breq .+12 ; 0x25e6 <LoadSymbols+0x4a>
  6459. 25da: f6 01 movw r30, r12
  6460. 25dc: d7 81 ldd r29, Z+7 ; 0x07
  6461. 25de: f8 e0 ldi r31, 0x08 ; 8
  6462. 25e0: cf 0e add r12, r31
  6463. 25e2: d1 1c adc r13, r1
  6464. 25e4: e8 cf rjmp .-48 ; 0x25b6 <LoadSymbols+0x1a>
  6465. for(uint8_t j = 0; j < 8; j++)
  6466. {
  6467. LCD_SendData(symbols[i][j]);
  6468. }
  6469. }
  6470. }
  6471. 25e6: df 91 pop r29
  6472. 25e8: cf 91 pop r28
  6473. 25ea: 1f 91 pop r17
  6474. 25ec: 0f 91 pop r16
  6475. 25ee: ff 90 pop r15
  6476. 25f0: df 90 pop r13
  6477. 25f2: cf 90 pop r12
  6478. 25f4: 08 95 ret
  6479. 000025f6 <LCD_Init>:
  6480. void LCD_Init(void)
  6481. {
  6482. 25f6: cf 93 push r28
  6483. I2C_SendByte(0x00);
  6484. 25f8: 80 e0 ldi r24, 0x00 ; 0
  6485. 25fa: 5b df rcall .-330 ; 0x24b2 <I2C_SendByte>
  6486. 25fc: 2f eb ldi r18, 0xBF ; 191
  6487. 25fe: 84 ed ldi r24, 0xD4 ; 212
  6488. 2600: 91 e0 ldi r25, 0x01 ; 1
  6489. 2602: 21 50 subi r18, 0x01 ; 1
  6490. 2604: 80 40 sbci r24, 0x00 ; 0
  6491. 2606: 90 40 sbci r25, 0x00 ; 0
  6492. 2608: e1 f7 brne .-8 ; 0x2602 <LCD_Init+0xc>
  6493. 260a: 00 c0 rjmp .+0 ; 0x260c <LCD_Init+0x16>
  6494. 260c: 00 00 nop
  6495. 260e: c5 e0 ldi r28, 0x05 ; 5
  6496. _delay_ms(50);
  6497. for(uint8_t i = 0; i < 5; i++)
  6498. {
  6499. I2C_SendByte(0x00 | LCD_E);
  6500. 2610: 84 e0 ldi r24, 0x04 ; 4
  6501. 2612: 4f df rcall .-354 ; 0x24b2 <I2C_SendByte>
  6502. I2C_SendByte(0x00 & ~LCD_E);
  6503. 2614: 80 e0 ldi r24, 0x00 ; 0
  6504. 2616: 4d df rcall .-358 ; 0x24b2 <I2C_SendByte>
  6505. 2618: c1 50 subi r28, 0x01 ; 1
  6506. 261a: d1 f7 brne .-12 ; 0x2610 <LCD_Init+0x1a>
  6507. {
  6508. I2C_SendByte(0x00);
  6509. _delay_ms(50);
  6510. for(uint8_t i = 0; i < 5; i++)
  6511. 261c: 28 ec ldi r18, 0xC8 ; 200
  6512. #else
  6513. //round up by default
  6514. __ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
  6515. #endif
  6516. __builtin_avr_delay_cycles(__ticks_dc);
  6517. 261e: 2a 95 dec r18
  6518. 2620: f1 f7 brne .-4 ; 0x261e <LCD_Init+0x28>
  6519. I2C_SendByte(0x00 | LCD_E);
  6520. I2C_SendByte(0x00 & ~LCD_E);
  6521. }
  6522. _delay_us(50);
  6523. I2C_SendByte(LCD_WIDTH | LCD_E);
  6524. 2622: 84 e2 ldi r24, 0x24 ; 36
  6525. 2624: 46 df rcall .-372 ; 0x24b2 <I2C_SendByte>
  6526. I2C_SendByte(LCD_WIDTH & ~LCD_E);
  6527. 2626: 80 e2 ldi r24, 0x20 ; 32
  6528. 2628: 44 df rcall .-376 ; 0x24b2 <I2C_SendByte>
  6529. LCD_SendCmd(LCD_WIDTH | LCD_WIDTH_N | LCD_WIDTH_FT1);
  6530. 262a: 8a e2 ldi r24, 0x2A ; 42
  6531. 262c: 8a df rcall .-236 ; 0x2542 <LCD_SendCmd>
  6532. LCD_SendCmd(LCD_ONOFF);
  6533. 262e: 88 e0 ldi r24, 0x08 ; 8
  6534. 2630: 88 df rcall .-240 ; 0x2542 <LCD_SendCmd>
  6535. LCD_SendCmd(LCD_CLR);
  6536. 2632: 81 e0 ldi r24, 0x01 ; 1
  6537. 2634: 86 df rcall .-244 ; 0x2542 <LCD_SendCmd>
  6538. LCD_SendCmd(LCD_DIR | LCD_DIR_ID);
  6539. 2636: 86 e0 ldi r24, 0x06 ; 6
  6540. 2638: 84 df rcall .-248 ; 0x2542 <LCD_SendCmd>
  6541. 263a: 8c e0 ldi r24, 0x0C ; 12
  6542. LCD_SendCmd(LCD_ONOFF | LCD_ONOFF_D);
  6543. 263c: 82 df rcall .-252 ; 0x2542 <LCD_SendCmd>
  6544. 263e: cf 91 pop r28
  6545. 2640: ad cf rjmp .-166 ; 0x259c <LoadSymbols>
  6546. 00002642 <POT_SendData>:
  6547. LoadSymbols();
  6548. }
  6549. 2642: 95 b1 in r25, 0x05 ; 5
  6550. LCD_SendCmd(LCD_WIDTH | LCD_WIDTH_N | LCD_WIDTH_FT1);
  6551. LCD_SendCmd(LCD_ONOFF);
  6552. LCD_SendCmd(LCD_CLR);
  6553. LCD_SendCmd(LCD_DIR | LCD_DIR_ID);
  6554. LCD_SendCmd(LCD_ONOFF | LCD_ONOFF_D);
  6555. LoadSymbols();
  6556. 2644: 98 7f andi r25, 0xF8 ; 248
  6557. 2646: 67 70 andi r22, 0x07 ; 7
  6558. ch = (ch & 0x01) * 2;
  6559. potval = (uint8_t)((shift * 255.0) / 2.037);
  6560. POT_SendData(potval, ch);
  6561. //return (((float)potval * 2.037) / 255.0);
  6562. return potval;
  6563. }
  6564. 2648: 69 2b or r22, r25
  6565. 264a: 65 b9 out 0x05, r22 ; 5
  6566. 264c: 2c 98 cbi 0x05, 4 ; 5
  6567. 264e: 91 e1 ldi r25, 0x11 ; 17
  6568. 2650: 9e bd out 0x2e, r25 ; 46
  6569. 2652: 0d b4 in r0, 0x2d ; 45
  6570. 2654: 07 fe sbrs r0, 7
  6571. 2656: fd cf rjmp .-6 ; 0x2652 <POT_SendData+0x10>
  6572. 2658: 8e bd out 0x2e, r24 ; 46
  6573. 265a: 0d b4 in r0, 0x2d ; 45
  6574. 265c: 07 fe sbrs r0, 7
  6575. 265e: fd cf rjmp .-6 ; 0x265a <POT_SendData+0x18>
  6576. 2660: 2c 9a sbi 0x05, 4 ; 5
  6577. 2662: 08 95 ret
  6578. 00002664 <SetDriveVoltage>:
  6579. uint8_t SetDriveVoltage(uint8_t ch, float voltage)
  6580. {
  6581. 2664: cf 92 push r12
  6582. 2666: df 92 push r13
  6583. 2668: ef 92 push r14
  6584. 266a: ff 92 push r15
  6585. 266c: cf 93 push r28
  6586. 266e: df 93 push r29
  6587. 2670: 6a 01 movw r12, r20
  6588. 2672: 7b 01 movw r14, r22
  6589. uint8_t potval;
  6590. ch = POT_DRIVE1 + (ch & 0x01);
  6591. 2674: c8 2f mov r28, r24
  6592. 2676: c1 70 andi r28, 0x01 ; 1
  6593. potval = (uint8_t)(voltage * 25.76);
  6594. 2678: 2b e7 ldi r18, 0x7B ; 123
  6595. 267a: 34 e1 ldi r19, 0x14 ; 20
  6596. 267c: 4e ec ldi r20, 0xCE ; 206
  6597. 267e: 51 e4 ldi r21, 0x41 ; 65
  6598. 2680: c7 01 movw r24, r14
  6599. 2682: b6 01 movw r22, r12
  6600. 2684: c8 d3 rcall .+1936 ; 0x2e16 <__mulsf3>
  6601. 2686: e5 d2 rcall .+1482 ; 0x2c52 <__fixunssfsi>
  6602. 2688: d6 2f mov r29, r22
  6603. POT_SendData(potval, ch);
  6604. 268a: 64 e0 ldi r22, 0x04 ; 4
  6605. 268c: 6c 0f add r22, r28
  6606. 268e: 8d 2f mov r24, r29
  6607. 2690: d8 df rcall .-80 ; 0x2642 <POT_SendData>
  6608. //return ((float)potval / 25.76);
  6609. return potval;
  6610. }
  6611. 2692: 8d 2f mov r24, r29
  6612. 2694: df 91 pop r29
  6613. 2696: cf 91 pop r28
  6614. 2698: ff 90 pop r15
  6615. 269a: ef 90 pop r14
  6616. 269c: df 90 pop r13
  6617. 269e: cf 90 pop r12
  6618. 26a0: 08 95 ret
  6619. 000026a2 <SetInputRange>:
  6620. void SetInputRange(uint8_t ch, float vlow, float vhigh)
  6621. {
  6622. 26a2: 8f 92 push r8
  6623. 26a4: 9f 92 push r9
  6624. 26a6: af 92 push r10
  6625. 26a8: bf 92 push r11
  6626. 26aa: cf 92 push r12
  6627. 26ac: df 92 push r13
  6628. 26ae: ef 92 push r14
  6629. 26b0: ff 92 push r15
  6630. 26b2: 0f 93 push r16
  6631. 26b4: 1f 93 push r17
  6632. 26b6: cf 93 push r28
  6633. 26b8: df 93 push r29
  6634. 26ba: e8 2f mov r30, r24
  6635. 26bc: 4a 01 movw r8, r20
  6636. 26be: 5b 01 movw r10, r22
  6637. 26c0: c9 01 movw r24, r18
  6638. 26c2: b8 01 movw r22, r16
  6639. heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow)));
  6640. 26c4: ce 2e mov r12, r30
  6641. 26c6: d1 2c mov r13, r1
  6642. }
  6643. uint8_t SetOpampGain(uint8_t ch, float gain)
  6644. {
  6645. uint8_t potval;
  6646. ch = ((ch & 0x01) * 2) + 1;
  6647. 26c8: 2e 2f mov r18, r30
  6648. 26ca: 21 70 andi r18, 0x01 ; 1
  6649. 26cc: c2 2f mov r28, r18
  6650. 26ce: cc 0f add r28, r28
  6651. potval = (uint8_t)((8.448 * gain) - 8.9088);
  6652. 26d0: a5 01 movw r20, r10
  6653. 26d2: 94 01 movw r18, r8
  6654. 26d4: e8 d1 rcall .+976 ; 0x2aa6 <__subsf3>
  6655. 26d6: 9b 01 movw r18, r22
  6656. 26d8: ac 01 movw r20, r24
  6657. 26da: 63 e3 ldi r22, 0x33 ; 51
  6658. 26dc: 73 e3 ldi r23, 0x33 ; 51
  6659. 26de: 83 e5 ldi r24, 0x53 ; 83
  6660. 26e0: 90 e4 ldi r25, 0x40 ; 64
  6661. 26e2: 4a d2 rcall .+1172 ; 0x2b78 <__divsf3>
  6662. 26e4: 22 e0 ldi r18, 0x02 ; 2
  6663. 26e6: 3b e2 ldi r19, 0x2B ; 43
  6664. 26e8: 47 e0 ldi r20, 0x07 ; 7
  6665. 26ea: 51 e4 ldi r21, 0x41 ; 65
  6666. 26ec: 94 d3 rcall .+1832 ; 0x2e16 <__mulsf3>
  6667. 26ee: 22 e7 ldi r18, 0x72 ; 114
  6668. 26f0: 3a e8 ldi r19, 0x8A ; 138
  6669. 26f2: 4e e0 ldi r20, 0x0E ; 14
  6670. 26f4: 51 e4 ldi r21, 0x41 ; 65
  6671. 26f6: d7 d1 rcall .+942 ; 0x2aa6 <__subsf3>
  6672. 26f8: ac d2 rcall .+1368 ; 0x2c52 <__fixunssfsi>
  6673. 26fa: d6 2f mov r29, r22
  6674. POT_SendData(potval, ch);
  6675. 26fc: 61 e0 ldi r22, 0x01 ; 1
  6676. 26fe: 6c 0f add r22, r28
  6677. 2700: 8d 2f mov r24, r29
  6678. 2702: 9f df rcall .-194 ; 0x2642 <POT_SendData>
  6679. 2704: 83 e1 ldi r24, 0x13 ; 19
  6680. return potval;
  6681. }
  6682. void SetInputRange(uint8_t ch, float vlow, float vhigh)
  6683. {
  6684. heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow)));
  6685. 2706: 8c 9d mul r24, r12
  6686. 2708: 80 01 movw r16, r0
  6687. 270a: 8d 9d mul r24, r13
  6688. 270c: 10 0d add r17, r0
  6689. 270e: 11 24 eor r1, r1
  6690. 2710: 00 5e subi r16, 0xE0 ; 224
  6691. 2712: 1c 4f sbci r17, 0xFC ; 252
  6692. 2714: f8 01 movw r30, r16
  6693. 2716: d0 8b std Z+16, r29 ; 0x10
  6694. 2718: 2a e4 ldi r18, 0x4A ; 74
  6695. uint8_t SetOpampShift(uint8_t ch, float shift)
  6696. {
  6697. uint8_t potval;
  6698. ch = (ch & 0x01) * 2;
  6699. potval = (uint8_t)((shift * 255.0) / 2.037);
  6700. 271a: 3c e0 ldi r19, 0x0C ; 12
  6701. 271c: 42 e4 ldi r20, 0x42 ; 66
  6702. 271e: 5f e3 ldi r21, 0x3F ; 63
  6703. 2720: c5 01 movw r24, r10
  6704. 2722: b4 01 movw r22, r8
  6705. 2724: 78 d3 rcall .+1776 ; 0x2e16 <__mulsf3>
  6706. 2726: 20 e0 ldi r18, 0x00 ; 0
  6707. 2728: 30 e0 ldi r19, 0x00 ; 0
  6708. 272a: 4f e7 ldi r20, 0x7F ; 127
  6709. 272c: 53 e4 ldi r21, 0x43 ; 67
  6710. 272e: 73 d3 rcall .+1766 ; 0x2e16 <__mulsf3>
  6711. 2730: 25 e3 ldi r18, 0x35 ; 53
  6712. 2732: 3e e5 ldi r19, 0x5E ; 94
  6713. 2734: 42 e0 ldi r20, 0x02 ; 2
  6714. 2736: 50 e4 ldi r21, 0x40 ; 64
  6715. 2738: 1f d2 rcall .+1086 ; 0x2b78 <__divsf3>
  6716. 273a: 8b d2 rcall .+1302 ; 0x2c52 <__fixunssfsi>
  6717. 273c: d6 2f mov r29, r22
  6718. POT_SendData(potval, ch);
  6719. 273e: 6c 2f mov r22, r28
  6720. 2740: 8d 2f mov r24, r29
  6721. 2742: 7f df rcall .-258 ; 0x2642 <POT_SendData>
  6722. 2744: f8 01 movw r30, r16
  6723. }
  6724. void SetInputRange(uint8_t ch, float vlow, float vhigh)
  6725. {
  6726. heater[ch].gain = SetOpampGain(ch, (3.3 / (vhigh - vlow)));
  6727. heater[ch].shift = SetOpampShift(ch, (0.758 * vlow));
  6728. 2746: d1 8b std Z+17, r29 ; 0x11
  6729. 2748: 2d e0 ldi r18, 0x0D ; 13
  6730. opamp[ch].gain = (((float)heater[ch].gain + 8.9088) / 8.448);
  6731. 274a: 2c 9d mul r18, r12
  6732. 274c: c0 01 movw r24, r0
  6733. 274e: 2d 9d mul r18, r13
  6734. 2750: 90 0d add r25, r0
  6735. 2752: 11 24 eor r1, r1
  6736. 2754: 9c 01 movw r18, r24
  6737. 2756: 22 57 subi r18, 0x72 ; 114
  6738. 2758: 39 4f sbci r19, 0xF9 ; 249
  6739. 275a: 79 01 movw r14, r18
  6740. 275c: 60 89 ldd r22, Z+16 ; 0x10
  6741. 275e: 70 e0 ldi r23, 0x00 ; 0
  6742. 2760: 80 e0 ldi r24, 0x00 ; 0
  6743. 2762: 90 e0 ldi r25, 0x00 ; 0
  6744. 2764: a2 d2 rcall .+1348 ; 0x2caa <__floatunsisf>
  6745. 2766: 22 e7 ldi r18, 0x72 ; 114
  6746. 2768: 3a e8 ldi r19, 0x8A ; 138
  6747. 276a: 4e e0 ldi r20, 0x0E ; 14
  6748. 276c: 51 e4 ldi r21, 0x41 ; 65
  6749. 276e: 9c d1 rcall .+824 ; 0x2aa8 <__addsf3>
  6750. 2770: 22 e0 ldi r18, 0x02 ; 2
  6751. 2772: 3b e2 ldi r19, 0x2B ; 43
  6752. 2774: 47 e0 ldi r20, 0x07 ; 7
  6753. 2776: 51 e4 ldi r21, 0x41 ; 65
  6754. 2778: ff d1 rcall .+1022 ; 0x2b78 <__divsf3>
  6755. 277a: f7 01 movw r30, r14
  6756. 277c: 61 83 std Z+1, r22 ; 0x01
  6757. 277e: 72 83 std Z+2, r23 ; 0x02
  6758. 2780: 83 83 std Z+3, r24 ; 0x03
  6759. opamp[ch].shift = (((float)heater[ch].shift * 2.037) / 255.0);
  6760. 2782: 94 83 std Z+4, r25 ; 0x04
  6761. 2784: 6d 2f mov r22, r29
  6762. 2786: 70 e0 ldi r23, 0x00 ; 0
  6763. 2788: 80 e0 ldi r24, 0x00 ; 0
  6764. 278a: 90 e0 ldi r25, 0x00 ; 0
  6765. 278c: 8e d2 rcall .+1308 ; 0x2caa <__floatunsisf>
  6766. 278e: 25 e3 ldi r18, 0x35 ; 53
  6767. 2790: 3e e5 ldi r19, 0x5E ; 94
  6768. 2792: 42 e0 ldi r20, 0x02 ; 2
  6769. 2794: 50 e4 ldi r21, 0x40 ; 64
  6770. 2796: 3f d3 rcall .+1662 ; 0x2e16 <__mulsf3>
  6771. 2798: 20 e0 ldi r18, 0x00 ; 0
  6772. 279a: 30 e0 ldi r19, 0x00 ; 0
  6773. 279c: 4f e7 ldi r20, 0x7F ; 127
  6774. 279e: 53 e4 ldi r21, 0x43 ; 67
  6775. 27a0: eb d1 rcall .+982 ; 0x2b78 <__divsf3>
  6776. 27a2: f7 01 movw r30, r14
  6777. 27a4: 65 83 std Z+5, r22 ; 0x05
  6778. 27a6: 76 83 std Z+6, r23 ; 0x06
  6779. 27a8: 87 83 std Z+7, r24 ; 0x07
  6780. 27aa: 90 87 std Z+8, r25 ; 0x08
  6781. 27ac: df 91 pop r29
  6782. }
  6783. 27ae: cf 91 pop r28
  6784. 27b0: 1f 91 pop r17
  6785. 27b2: 0f 91 pop r16
  6786. 27b4: ff 90 pop r15
  6787. 27b6: ef 90 pop r14
  6788. 27b8: df 90 pop r13
  6789. 27ba: cf 90 pop r12
  6790. 27bc: bf 90 pop r11
  6791. 27be: af 90 pop r10
  6792. 27c0: 9f 90 pop r9
  6793. 27c2: 8f 90 pop r8
  6794. 27c4: 08 95 ret
  6795. 000027c6 <SetGainData>:
  6796. 27c6: 1f 93 push r17
  6797. void SetGainData(uint8_t ch, uint8_t data)
  6798. {
  6799. 27c8: cf 93 push r28
  6800. 27ca: df 93 push r29
  6801. 27cc: c8 2f mov r28, r24
  6802. 27ce: 16 2f mov r17, r22
  6803. POT_SendData(data, ((ch & 0x01) * 2) + 1);
  6804. 27d0: 68 2f mov r22, r24
  6805. 27d2: 61 70 andi r22, 0x01 ; 1
  6806. 27d4: 66 0f add r22, r22
  6807. 27d6: 6f 5f subi r22, 0xFF ; 255
  6808. 27d8: 81 2f mov r24, r17
  6809. 27da: 33 df rcall .-410 ; 0x2642 <POT_SendData>
  6810. heater[ch].gain = data;
  6811. 27dc: 83 e1 ldi r24, 0x13 ; 19
  6812. 27de: c8 9f mul r28, r24
  6813. 27e0: f0 01 movw r30, r0
  6814. 27e2: 11 24 eor r1, r1
  6815. 27e4: e0 5e subi r30, 0xE0 ; 224
  6816. 27e6: fc 4f sbci r31, 0xFC ; 252
  6817. 27e8: 10 8b std Z+16, r17 ; 0x10
  6818. opamp[ch].gain = (((float)data + 8.9088) / 8.448);
  6819. 27ea: 8d e0 ldi r24, 0x0D ; 13
  6820. 27ec: c8 9f mul r28, r24
  6821. 27ee: e0 01 movw r28, r0
  6822. 27f0: 11 24 eor r1, r1
  6823. 27f2: c2 57 subi r28, 0x72 ; 114
  6824. 27f4: d9 4f sbci r29, 0xF9 ; 249
  6825. 27f6: 61 2f mov r22, r17
  6826. 27f8: 70 e0 ldi r23, 0x00 ; 0
  6827. 27fa: 80 e0 ldi r24, 0x00 ; 0
  6828. 27fc: 90 e0 ldi r25, 0x00 ; 0
  6829. 27fe: 55 d2 rcall .+1194 ; 0x2caa <__floatunsisf>
  6830. 2800: 22 e7 ldi r18, 0x72 ; 114
  6831. 2802: 3a e8 ldi r19, 0x8A ; 138
  6832. 2804: 4e e0 ldi r20, 0x0E ; 14
  6833. 2806: 51 e4 ldi r21, 0x41 ; 65
  6834. 2808: 4f d1 rcall .+670 ; 0x2aa8 <__addsf3>
  6835. 280a: 22 e0 ldi r18, 0x02 ; 2
  6836. 280c: 3b e2 ldi r19, 0x2B ; 43
  6837. 280e: 47 e0 ldi r20, 0x07 ; 7
  6838. 2810: 51 e4 ldi r21, 0x41 ; 65
  6839. 2812: b2 d1 rcall .+868 ; 0x2b78 <__divsf3>
  6840. 2814: 69 83 std Y+1, r22 ; 0x01
  6841. 2816: 7a 83 std Y+2, r23 ; 0x02
  6842. 2818: 8b 83 std Y+3, r24 ; 0x03
  6843. 281a: 9c 83 std Y+4, r25 ; 0x04
  6844. }
  6845. 281c: df 91 pop r29
  6846. 281e: cf 91 pop r28
  6847. 2820: 1f 91 pop r17
  6848. 2822: 08 95 ret
  6849. 00002824 <SetShiftData>:
  6850. void SetShiftData(uint8_t ch, uint8_t data)
  6851. {
  6852. 2824: 1f 93 push r17
  6853. 2826: cf 93 push r28
  6854. 2828: df 93 push r29
  6855. 282a: c8 2f mov r28, r24
  6856. 282c: 16 2f mov r17, r22
  6857. POT_SendData(data, (ch & 0x01) * 2);
  6858. 282e: 68 2f mov r22, r24
  6859. 2830: 61 70 andi r22, 0x01 ; 1
  6860. 2832: 66 0f add r22, r22
  6861. 2834: 81 2f mov r24, r17
  6862. 2836: 05 df rcall .-502 ; 0x2642 <POT_SendData>
  6863. heater[ch].shift = data;
  6864. 2838: 83 e1 ldi r24, 0x13 ; 19
  6865. 283a: c8 9f mul r28, r24
  6866. 283c: f0 01 movw r30, r0
  6867. 283e: 11 24 eor r1, r1
  6868. 2840: e0 5e subi r30, 0xE0 ; 224
  6869. 2842: fc 4f sbci r31, 0xFC ; 252
  6870. 2844: 11 8b std Z+17, r17 ; 0x11
  6871. opamp[ch].shift = (((float)data * 2.037) / 255.0);
  6872. 2846: 8d e0 ldi r24, 0x0D ; 13
  6873. 2848: c8 9f mul r28, r24
  6874. 284a: e0 01 movw r28, r0
  6875. 284c: 11 24 eor r1, r1
  6876. 284e: c2 57 subi r28, 0x72 ; 114
  6877. 2850: d9 4f sbci r29, 0xF9 ; 249
  6878. 2852: 61 2f mov r22, r17
  6879. 2854: 70 e0 ldi r23, 0x00 ; 0
  6880. 2856: 80 e0 ldi r24, 0x00 ; 0
  6881. 2858: 90 e0 ldi r25, 0x00 ; 0
  6882. 285a: 27 d2 rcall .+1102 ; 0x2caa <__floatunsisf>
  6883. 285c: 25 e3 ldi r18, 0x35 ; 53
  6884. 285e: 3e e5 ldi r19, 0x5E ; 94
  6885. 2860: 42 e0 ldi r20, 0x02 ; 2
  6886. 2862: 50 e4 ldi r21, 0x40 ; 64
  6887. 2864: d8 d2 rcall .+1456 ; 0x2e16 <__mulsf3>
  6888. 2866: 20 e0 ldi r18, 0x00 ; 0
  6889. 2868: 30 e0 ldi r19, 0x00 ; 0
  6890. 286a: 4f e7 ldi r20, 0x7F ; 127
  6891. 286c: 53 e4 ldi r21, 0x43 ; 67
  6892. 286e: 84 d1 rcall .+776 ; 0x2b78 <__divsf3>
  6893. 2870: 6d 83 std Y+5, r22 ; 0x05
  6894. 2872: 7e 83 std Y+6, r23 ; 0x06
  6895. 2874: 8f 83 std Y+7, r24 ; 0x07
  6896. 2876: 98 87 std Y+8, r25 ; 0x08
  6897. }
  6898. 2878: df 91 pop r29
  6899. 287a: cf 91 pop r28
  6900. 287c: 1f 91 pop r17
  6901. 287e: 08 95 ret
  6902. 00002880 <SetDriveData>:
  6903. void SetDriveData(uint8_t ch, uint8_t data)
  6904. {
  6905. 2880: cf 93 push r28
  6906. 2882: df 93 push r29
  6907. heater[ch].drive = data;
  6908. 2884: 93 e1 ldi r25, 0x13 ; 19
  6909. 2886: 89 9f mul r24, r25
  6910. 2888: f0 01 movw r30, r0
  6911. 288a: 11 24 eor r1, r1
  6912. 288c: e0 5e subi r30, 0xE0 ; 224
  6913. 288e: fc 4f sbci r31, 0xFC ; 252
  6914. 2890: 62 8b std Z+18, r22 ; 0x12
  6915. opamp[ch].drive = ((float)data / 25.76);
  6916. 2892: 9d e0 ldi r25, 0x0D ; 13
  6917. 2894: 89 9f mul r24, r25
  6918. 2896: e0 01 movw r28, r0
  6919. 2898: 11 24 eor r1, r1
  6920. 289a: c2 57 subi r28, 0x72 ; 114
  6921. 289c: d9 4f sbci r29, 0xF9 ; 249
  6922. 289e: 70 e0 ldi r23, 0x00 ; 0
  6923. 28a0: 80 e0 ldi r24, 0x00 ; 0
  6924. 28a2: 90 e0 ldi r25, 0x00 ; 0
  6925. 28a4: 02 d2 rcall .+1028 ; 0x2caa <__floatunsisf>
  6926. 28a6: 2b e7 ldi r18, 0x7B ; 123
  6927. 28a8: 34 e1 ldi r19, 0x14 ; 20
  6928. 28aa: 4e ec ldi r20, 0xCE ; 206
  6929. 28ac: 51 e4 ldi r21, 0x41 ; 65
  6930. 28ae: 64 d1 rcall .+712 ; 0x2b78 <__divsf3>
  6931. 28b0: 69 87 std Y+9, r22 ; 0x09
  6932. 28b2: 7a 87 std Y+10, r23 ; 0x0a
  6933. 28b4: 8b 87 std Y+11, r24 ; 0x0b
  6934. 28b6: 9c 87 std Y+12, r25 ; 0x0c
  6935. }
  6936. 28b8: df 91 pop r29
  6937. 28ba: cf 91 pop r28
  6938. 28bc: 08 95 ret
  6939. 000028be <SwitchDrive>:
  6940. void SwitchDrive(uint8_t ch, uint8_t onoff)
  6941. {
  6942. 28be: 96 2f mov r25, r22
  6943. uint8_t potnum = POT_DRIVE1 + (ch & 0x01);
  6944. POT_SendData(heater[ch].drive * (onoff & 0x01), potnum);
  6945. 28c0: 68 2f mov r22, r24
  6946. 28c2: 61 70 andi r22, 0x01 ; 1
  6947. 28c4: 6c 5f subi r22, 0xFC ; 252
  6948. 28c6: 23 e1 ldi r18, 0x13 ; 19
  6949. 28c8: 82 9f mul r24, r18
  6950. 28ca: f0 01 movw r30, r0
  6951. 28cc: 11 24 eor r1, r1
  6952. 28ce: e0 5e subi r30, 0xE0 ; 224
  6953. 28d0: fc 4f sbci r31, 0xFC ; 252
  6954. 28d2: 89 2f mov r24, r25
  6955. 28d4: 81 70 andi r24, 0x01 ; 1
  6956. 28d6: 92 89 ldd r25, Z+18 ; 0x12
  6957. 28d8: 89 9f mul r24, r25
  6958. 28da: 80 2d mov r24, r0
  6959. 28dc: 11 24 eor r1, r1
  6960. 28de: b1 ce rjmp .-670 ; 0x2642 <POT_SendData>
  6961. 000028e0 <LoadPrefs>:
  6962. extern heater_str heater[2];
  6963. extern opamp_str opamp[2];
  6964. extern preset_str preset[2];
  6965. void LoadPrefs()
  6966. {
  6967. 28e0: 21 e0 ldi r18, 0x01 ; 1
  6968. 28e2: 80 e0 ldi r24, 0x00 ; 0
  6969. 28e4: 90 e0 ldi r25, 0x00 ; 0
  6970. for(uint8_t addr = 0; addr < 4; addr++)
  6971. {
  6972. EEAR = addr;
  6973. 28e6: 92 bd out 0x22, r25 ; 34
  6974. 28e8: 81 bd out 0x21, r24 ; 33
  6975. EECR |= (1 << EERE);
  6976. 28ea: f8 9a sbi 0x1f, 0 ; 31
  6977. switch(addr)
  6978. 28ec: 82 30 cpi r24, 0x02 ; 2
  6979. 28ee: 81 f0 breq .+32 ; 0x2910 <LoadPrefs+0x30>
  6980. 28f0: 83 30 cpi r24, 0x03 ; 3
  6981. 28f2: c1 f0 breq .+48 ; 0x2924 <LoadPrefs+0x44>
  6982. {
  6983. case 0:
  6984. heater[CH0].preset = EEDR;
  6985. break;
  6986. case 1:
  6987. heater[CH1].preset = EEDR;
  6988. 28f4: 30 b5 in r19, 0x20 ; 32
  6989. {
  6990. for(uint8_t addr = 0; addr < 4; addr++)
  6991. {
  6992. EEAR = addr;
  6993. EECR |= (1 << EERE);
  6994. switch(addr)
  6995. 28f6: 81 30 cpi r24, 0x01 ; 1
  6996. 28f8: 91 f0 breq .+36 ; 0x291e <LoadPrefs+0x3e>
  6997. {
  6998. case 0:
  6999. heater[CH0].preset = EEDR;
  7000. 28fa: 30 93 22 03 sts 0x0322, r19 ; 0x800322 <heater+0x2>
  7001. extern opamp_str opamp[2];
  7002. extern preset_str preset[2];
  7003. void LoadPrefs()
  7004. {
  7005. for(uint8_t addr = 0; addr < 4; addr++)
  7006. 28fe: 24 30 cpi r18, 0x04 ; 4
  7007. 2900: c1 f0 breq .+48 ; 0x2932 <LoadPrefs+0x52>
  7008. 2902: 01 96 adiw r24, 0x01 ; 1
  7009. 2904: 2f 5f subi r18, 0xFF ; 255
  7010. {
  7011. EEAR = addr;
  7012. 2906: 92 bd out 0x22, r25 ; 34
  7013. 2908: 81 bd out 0x21, r24 ; 33
  7014. EECR |= (1 << EERE);
  7015. 290a: f8 9a sbi 0x1f, 0 ; 31
  7016. switch(addr)
  7017. 290c: 82 30 cpi r24, 0x02 ; 2
  7018. 290e: 81 f7 brne .-32 ; 0x28f0 <LoadPrefs+0x10>
  7019. break;
  7020. case 1:
  7021. heater[CH1].preset = EEDR;
  7022. break;
  7023. case 2:
  7024. heater[CH0].tset = EEDR;
  7025. 2910: 40 b5 in r20, 0x20 ; 32
  7026. 2912: 50 e0 ldi r21, 0x00 ; 0
  7027. 2914: 50 93 2b 03 sts 0x032B, r21 ; 0x80032b <heater+0xb>
  7028. 2918: 40 93 2a 03 sts 0x032A, r20 ; 0x80032a <heater+0xa>
  7029. break;
  7030. 291c: f2 cf rjmp .-28 ; 0x2902 <LoadPrefs+0x22>
  7031. {
  7032. case 0:
  7033. heater[CH0].preset = EEDR;
  7034. break;
  7035. case 1:
  7036. heater[CH1].preset = EEDR;
  7037. 291e: 30 93 35 03 sts 0x0335, r19 ; 0x800335 <heater+0x15>
  7038. break;
  7039. 2922: ef cf rjmp .-34 ; 0x2902 <LoadPrefs+0x22>
  7040. case 2:
  7041. heater[CH0].tset = EEDR;
  7042. break;
  7043. case 3:
  7044. heater[CH1].tset = EEDR;
  7045. 2924: 80 b5 in r24, 0x20 ; 32
  7046. 2926: 90 e0 ldi r25, 0x00 ; 0
  7047. 2928: 90 93 3e 03 sts 0x033E, r25 ; 0x80033e <heater+0x1e>
  7048. 292c: 80 93 3d 03 sts 0x033D, r24 ; 0x80033d <heater+0x1d>
  7049. 2930: 08 95 ret
  7050. 2932: 08 95 ret
  7051. 00002934 <SavePrefs>:
  7052. }
  7053. }
  7054. void SavePrefs()
  7055. {
  7056. cli();
  7057. 2934: f8 94 cli
  7058. 2936: 80 e0 ldi r24, 0x00 ; 0
  7059. 2938: 90 e0 ldi r25, 0x00 ; 0
  7060. for(uint8_t addr = 0; addr < 4; addr++)
  7061. {
  7062. EEAR = addr;
  7063. 293a: 92 bd out 0x22, r25 ; 34
  7064. 293c: 81 bd out 0x21, r24 ; 33
  7065. switch(addr)
  7066. 293e: 82 30 cpi r24, 0x02 ; 2
  7067. 2940: c9 f0 breq .+50 ; 0x2974 <SavePrefs+0x40>
  7068. 2942: 83 30 cpi r24, 0x03 ; 3
  7069. 2944: 99 f0 breq .+38 ; 0x296c <SavePrefs+0x38>
  7070. 2946: 81 30 cpi r24, 0x01 ; 1
  7071. 2948: 69 f0 breq .+26 ; 0x2964 <SavePrefs+0x30>
  7072. {
  7073. case 0:
  7074. EEDR = heater[CH0].preset;
  7075. 294a: 20 91 22 03 lds r18, 0x0322 ; 0x800322 <heater+0x2>
  7076. 294e: 20 bd out 0x20, r18 ; 32
  7077. case 3:
  7078. EEDR = heater[CH1].tset;
  7079. break;
  7080. }
  7081. EECR |= (1 << EEMPE);
  7082. 2950: fa 9a sbi 0x1f, 2 ; 31
  7083. EECR |= (1 << EEPE);
  7084. 2952: f9 9a sbi 0x1f, 1 ; 31
  7085. while(EECR & (1 << EEPE));
  7086. 2954: f9 99 sbic 0x1f, 1 ; 31
  7087. 2956: fe cf rjmp .-4 ; 0x2954 <SavePrefs+0x20>
  7088. 2958: 01 96 adiw r24, 0x01 ; 1
  7089. }
  7090. void SavePrefs()
  7091. {
  7092. cli();
  7093. for(uint8_t addr = 0; addr < 4; addr++)
  7094. 295a: 84 30 cpi r24, 0x04 ; 4
  7095. 295c: 91 05 cpc r25, r1
  7096. 295e: 69 f7 brne .-38 ; 0x293a <SavePrefs+0x6>
  7097. EECR |= (1 << EEMPE);
  7098. EECR |= (1 << EEPE);
  7099. while(EECR & (1 << EEPE));
  7100. }
  7101. sei();
  7102. 2960: 78 94 sei
  7103. 2962: 08 95 ret
  7104. {
  7105. case 0:
  7106. EEDR = heater[CH0].preset;
  7107. break;
  7108. case 1:
  7109. EEDR = heater[CH1].preset;
  7110. 2964: 20 91 35 03 lds r18, 0x0335 ; 0x800335 <heater+0x15>
  7111. 2968: 20 bd out 0x20, r18 ; 32
  7112. break;
  7113. 296a: f2 cf rjmp .-28 ; 0x2950 <SavePrefs+0x1c>
  7114. case 2:
  7115. EEDR = heater[CH0].tset;
  7116. break;
  7117. case 3:
  7118. EEDR = heater[CH1].tset;
  7119. 296c: 20 91 3d 03 lds r18, 0x033D ; 0x80033d <heater+0x1d>
  7120. 2970: 20 bd out 0x20, r18 ; 32
  7121. break;
  7122. 2972: ee cf rjmp .-36 ; 0x2950 <SavePrefs+0x1c>
  7123. break;
  7124. case 1:
  7125. EEDR = heater[CH1].preset;
  7126. break;
  7127. case 2:
  7128. EEDR = heater[CH0].tset;
  7129. 2974: 20 91 2a 03 lds r18, 0x032A ; 0x80032a <heater+0xa>
  7130. 2978: 20 bd out 0x20, r18 ; 32
  7131. break;
  7132. 297a: ea cf rjmp .-44 ; 0x2950 <SavePrefs+0x1c>
  7133. 0000297c <LoadPreset>:
  7134. }
  7135. sei();
  7136. }
  7137. void LoadPreset(uint8_t ch)
  7138. {
  7139. 297c: 0f 93 push r16
  7140. 297e: 1f 93 push r17
  7141. 2980: cf 93 push r28
  7142. 2982: df 93 push r29
  7143. 2984: c8 2f mov r28, r24
  7144. 2986: 20 e5 ldi r18, 0x50 ; 80
  7145. 2988: 82 9f mul r24, r18
  7146. 298a: f0 01 movw r30, r0
  7147. 298c: 11 24 eor r1, r1
  7148. 298e: ea 5b subi r30, 0xBA ; 186
  7149. 2990: fc 4f sbci r31, 0xFC ; 252
  7150. 2992: 80 e0 ldi r24, 0x00 ; 0
  7151. 2994: 90 e0 ldi r25, 0x00 ; 0
  7152. uint8_t offset;
  7153. for(offset = 0; offset < sizeof(preset_str); offset++)
  7154. {
  7155. EEAR = 0x30 + (heater[ch].preset * sizeof(preset_str)) + offset;
  7156. 2996: 4c 2f mov r20, r28
  7157. 2998: 50 e0 ldi r21, 0x00 ; 0
  7158. 299a: 63 e1 ldi r22, 0x13 ; 19
  7159. 299c: c6 9f mul r28, r22
  7160. 299e: d0 01 movw r26, r0
  7161. 29a0: 11 24 eor r1, r1
  7162. 29a2: ae 5d subi r26, 0xDE ; 222
  7163. 29a4: bc 4f sbci r27, 0xFC ; 252
  7164. 29a6: 2c 91 ld r18, X
  7165. 29a8: bc 01 movw r22, r24
  7166. 29aa: d0 e5 ldi r29, 0x50 ; 80
  7167. 29ac: 2d 9f mul r18, r29
  7168. 29ae: 60 0d add r22, r0
  7169. 29b0: 71 1d adc r23, r1
  7170. 29b2: 11 24 eor r1, r1
  7171. 29b4: 9b 01 movw r18, r22
  7172. 29b6: 20 5d subi r18, 0xD0 ; 208
  7173. 29b8: 3f 4f sbci r19, 0xFF ; 255
  7174. 29ba: 32 bd out 0x22, r19 ; 34
  7175. 29bc: 21 bd out 0x21, r18 ; 33
  7176. EECR |= (1 << EERE);
  7177. 29be: f8 9a sbi 0x1f, 0 ; 31
  7178. ((uint8_t*)&preset[ch])[offset] = EEDR;
  7179. 29c0: 20 b5 in r18, 0x20 ; 32
  7180. 29c2: 21 93 st Z+, r18
  7181. 29c4: 01 96 adiw r24, 0x01 ; 1
  7182. }
  7183. void LoadPreset(uint8_t ch)
  7184. {
  7185. uint8_t offset;
  7186. for(offset = 0; offset < sizeof(preset_str); offset++)
  7187. 29c6: 80 35 cpi r24, 0x50 ; 80
  7188. 29c8: 91 05 cpc r25, r1
  7189. 29ca: 69 f7 brne .-38 ; 0x29a6 <LoadPreset+0x2a>
  7190. EEAR = 0x30 + (heater[ch].preset * sizeof(preset_str)) + offset;
  7191. EECR |= (1 << EERE);
  7192. ((uint8_t*)&preset[ch])[offset] = EEDR;
  7193. }
  7194. SetGainData(ch, preset[ch].gain);
  7195. 29cc: 80 e5 ldi r24, 0x50 ; 80
  7196. 29ce: 84 9f mul r24, r20
  7197. 29d0: 80 01 movw r16, r0
  7198. 29d2: 85 9f mul r24, r21
  7199. 29d4: 10 0d add r17, r0
  7200. 29d6: 11 24 eor r1, r1
  7201. 29d8: 0a 5b subi r16, 0xBA ; 186
  7202. 29da: 1c 4f sbci r17, 0xFC ; 252
  7203. 29dc: f8 01 movw r30, r16
  7204. 29de: 65 85 ldd r22, Z+13 ; 0x0d
  7205. 29e0: 8c 2f mov r24, r28
  7206. 29e2: f1 de rcall .-542 ; 0x27c6 <SetGainData>
  7207. SetShiftData(ch, preset[ch].shift);
  7208. 29e4: f8 01 movw r30, r16
  7209. 29e6: 66 85 ldd r22, Z+14 ; 0x0e
  7210. 29e8: 8c 2f mov r24, r28
  7211. 29ea: 1c df rcall .-456 ; 0x2824 <SetShiftData>
  7212. SetDriveData(ch, preset[ch].drive);
  7213. 29ec: f8 01 movw r30, r16
  7214. 29ee: 67 85 ldd r22, Z+15 ; 0x0f
  7215. 29f0: 8c 2f mov r24, r28
  7216. 29f2: 46 df rcall .-372 ; 0x2880 <SetDriveData>
  7217. SwitchDrive(ch, OFF);
  7218. 29f4: 60 e0 ldi r22, 0x00 ; 0
  7219. 29f6: 8c 2f mov r24, r28
  7220. }
  7221. 29f8: df 91 pop r29
  7222. 29fa: cf 91 pop r28
  7223. 29fc: 1f 91 pop r17
  7224. }
  7225. SetGainData(ch, preset[ch].gain);
  7226. SetShiftData(ch, preset[ch].shift);
  7227. SetDriveData(ch, preset[ch].drive);
  7228. SwitchDrive(ch, OFF);
  7229. 29fe: 0f 91 pop r16
  7230. 2a00: 5e cf rjmp .-324 ; 0x28be <SwitchDrive>
  7231. 00002a02 <SavePreset>:
  7232. }
  7233. void SavePreset(uint8_t ch)
  7234. {
  7235. 2a02: cf 92 push r12
  7236. 2a04: df 92 push r13
  7237. 2a06: ef 92 push r14
  7238. 2a08: ff 92 push r15
  7239. 2a0a: 0f 93 push r16
  7240. 2a0c: 1f 93 push r17
  7241. 2a0e: cf 93 push r28
  7242. 2a10: df 93 push r29
  7243. 2a12: 08 2f mov r16, r24
  7244. uint8_t offset;
  7245. static FILE lcd_stdout = FDEV_SETUP_STREAM(lcd_putchar, NULL, _FDEV_SETUP_WRITE);
  7246. cli();
  7247. 2a14: f8 94 cli
  7248. LCD_SendCmd(LCD_CLR);
  7249. 2a16: 81 e0 ldi r24, 0x01 ; 1
  7250. 2a18: 94 dd rcall .-1240 ; 0x2542 <LCD_SendCmd>
  7251. LCD_SetPos(0, 0);
  7252. 2a1a: 60 e0 ldi r22, 0x00 ; 0
  7253. 2a1c: 80 e0 ldi r24, 0x00 ; 0
  7254. 2a1e: b6 dd rcall .-1172 ; 0x258c <LCD_SetPos>
  7255. fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ...");
  7256. 2a20: 24 e2 ldi r18, 0x24 ; 36
  7257. 2a22: 31 e0 ldi r19, 0x01 ; 1
  7258. 2a24: 4d e0 ldi r20, 0x0D ; 13
  7259. 2a26: 50 e0 ldi r21, 0x00 ; 0
  7260. 2a28: 61 e0 ldi r22, 0x01 ; 1
  7261. 2a2a: 70 e0 ldi r23, 0x00 ; 0
  7262. 2a2c: 83 ee ldi r24, 0xE3 ; 227
  7263. 2a2e: 92 e0 ldi r25, 0x02 ; 2
  7264. 2a30: 0e 94 d2 1d call 0x3ba4 ; 0x3ba4 <fwrite>
  7265. LCD_SetPos(0, 1);
  7266. 2a34: 61 e0 ldi r22, 0x01 ; 1
  7267. 2a36: 80 e0 ldi r24, 0x00 ; 0
  7268. 2a38: a9 dd rcall .-1198 ; 0x258c <LCD_SetPos>
  7269. 2a3a: 20 e5 ldi r18, 0x50 ; 80
  7270. 2a3c: 02 9f mul r16, r18
  7271. 2a3e: 80 01 movw r16, r0
  7272. 2a40: 11 24 eor r1, r1
  7273. 2a42: 0a 5b subi r16, 0xBA ; 186
  7274. 2a44: 1c 4f sbci r17, 0xFC ; 252
  7275. 2a46: c0 e0 ldi r28, 0x00 ; 0
  7276. 2a48: d0 e0 ldi r29, 0x00 ; 0
  7277. for(offset = 0; offset < sizeof(preset_str); offset++)
  7278. {
  7279. EEAR = 0x30 + (preset[ch].number * sizeof(preset_str)) + offset;
  7280. 2a4a: 68 01 movw r12, r16
  7281. EEDR = ((uint8_t*)&preset[ch])[offset];
  7282. EECR |= (1 << EEMPE);
  7283. EECR |= (1 << EEPE);
  7284. while(EECR & (1 << EEPE));
  7285. if((offset + 1) % 5 == 0)
  7286. 2a4c: 85 e0 ldi r24, 0x05 ; 5
  7287. 2a4e: e8 2e mov r14, r24
  7288. 2a50: f1 2c mov r15, r1
  7289. LCD_SetPos(0, 0);
  7290. fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ...");
  7291. LCD_SetPos(0, 1);
  7292. for(offset = 0; offset < sizeof(preset_str); offset++)
  7293. {
  7294. EEAR = 0x30 + (preset[ch].number * sizeof(preset_str)) + offset;
  7295. 2a52: f6 01 movw r30, r12
  7296. 2a54: 80 81 ld r24, Z
  7297. 2a56: 9e 01 movw r18, r28
  7298. 2a58: 40 e5 ldi r20, 0x50 ; 80
  7299. 2a5a: 84 9f mul r24, r20
  7300. 2a5c: 20 0d add r18, r0
  7301. 2a5e: 31 1d adc r19, r1
  7302. 2a60: 11 24 eor r1, r1
  7303. 2a62: c9 01 movw r24, r18
  7304. 2a64: c0 96 adiw r24, 0x30 ; 48
  7305. 2a66: 92 bd out 0x22, r25 ; 34
  7306. 2a68: 81 bd out 0x21, r24 ; 33
  7307. EEDR = ((uint8_t*)&preset[ch])[offset];
  7308. 2a6a: f8 01 movw r30, r16
  7309. 2a6c: 81 91 ld r24, Z+
  7310. 2a6e: 8f 01 movw r16, r30
  7311. 2a70: 21 96 adiw r28, 0x01 ; 1
  7312. 2a72: 80 bd out 0x20, r24 ; 32
  7313. EECR |= (1 << EEMPE);
  7314. 2a74: fa 9a sbi 0x1f, 2 ; 31
  7315. EECR |= (1 << EEPE);
  7316. 2a76: f9 9a sbi 0x1f, 1 ; 31
  7317. while(EECR & (1 << EEPE));
  7318. 2a78: f9 99 sbic 0x1f, 1 ; 31
  7319. if((offset + 1) % 5 == 0)
  7320. 2a7a: fe cf rjmp .-4 ; 0x2a78 <SavePreset+0x76>
  7321. 2a7c: ce 01 movw r24, r28
  7322. 2a7e: b7 01 movw r22, r14
  7323. 2a80: 8b d5 rcall .+2838 ; 0x3598 <__divmodhi4>
  7324. 2a82: 89 2b or r24, r25
  7325. 2a84: 69 f0 breq .+26 ; 0x2aa0 <SavePreset+0x9e>
  7326. cli();
  7327. LCD_SendCmd(LCD_CLR);
  7328. LCD_SetPos(0, 0);
  7329. fprintf(&lcd_stdout, "ÑÎÕÐÀÍÅÍÈÅ...");
  7330. LCD_SetPos(0, 1);
  7331. for(offset = 0; offset < sizeof(preset_str); offset++)
  7332. 2a86: c0 35 cpi r28, 0x50 ; 80
  7333. 2a88: d1 05 cpc r29, r1
  7334. 2a8a: 19 f7 brne .-58 ; 0x2a52 <SavePreset+0x50>
  7335. EECR |= (1 << EEPE);
  7336. while(EECR & (1 << EEPE));
  7337. if((offset + 1) % 5 == 0)
  7338. LCD_SendData(0xFF);
  7339. }
  7340. sei();
  7341. 2a8c: 78 94 sei
  7342. }
  7343. 2a8e: df 91 pop r29
  7344. 2a90: cf 91 pop r28
  7345. 2a92: 1f 91 pop r17
  7346. 2a94: 0f 91 pop r16
  7347. 2a96: ff 90 pop r15
  7348. 2a98: ef 90 pop r14
  7349. 2a9a: df 90 pop r13
  7350. 2a9c: cf 90 pop r12
  7351. EEDR = ((uint8_t*)&preset[ch])[offset];
  7352. EECR |= (1 << EEMPE);
  7353. EECR |= (1 << EEPE);
  7354. while(EECR & (1 << EEPE));
  7355. if((offset + 1) % 5 == 0)
  7356. LCD_SendData(0xFF);
  7357. 2a9e: 08 95 ret
  7358. 2aa0: 8f ef ldi r24, 0xFF ; 255
  7359. 2aa2: 34 dd rcall .-1432 ; 0x250c <LCD_SendData>
  7360. 2aa4: f0 cf rjmp .-32 ; 0x2a86 <SavePreset+0x84>
  7361. 00002aa6 <__subsf3>:
  7362. 2aa6: 50 58 subi r21, 0x80 ; 128
  7363. 00002aa8 <__addsf3>:
  7364. 2aa8: bb 27 eor r27, r27
  7365. 2aaa: aa 27 eor r26, r26
  7366. 2aac: 0e d0 rcall .+28 ; 0x2aca <__addsf3x>
  7367. 2aae: 75 c1 rjmp .+746 ; 0x2d9a <__fp_round>
  7368. 2ab0: 66 d1 rcall .+716 ; 0x2d7e <__fp_pscA>
  7369. 2ab2: 30 f0 brcs .+12 ; 0x2ac0 <__addsf3+0x18>
  7370. 2ab4: 6b d1 rcall .+726 ; 0x2d8c <__fp_pscB>
  7371. 2ab6: 20 f0 brcs .+8 ; 0x2ac0 <__addsf3+0x18>
  7372. 2ab8: 31 f4 brne .+12 ; 0x2ac6 <__addsf3+0x1e>
  7373. 2aba: 9f 3f cpi r25, 0xFF ; 255
  7374. 2abc: 11 f4 brne .+4 ; 0x2ac2 <__addsf3+0x1a>
  7375. 2abe: 1e f4 brtc .+6 ; 0x2ac6 <__addsf3+0x1e>
  7376. 2ac0: 5b c1 rjmp .+694 ; 0x2d78 <__fp_nan>
  7377. 2ac2: 0e f4 brtc .+2 ; 0x2ac6 <__addsf3+0x1e>
  7378. 2ac4: e0 95 com r30
  7379. 2ac6: e7 fb bst r30, 7
  7380. 2ac8: 51 c1 rjmp .+674 ; 0x2d6c <__fp_inf>
  7381. 00002aca <__addsf3x>:
  7382. 2aca: e9 2f mov r30, r25
  7383. 2acc: 77 d1 rcall .+750 ; 0x2dbc <__fp_split3>
  7384. 2ace: 80 f3 brcs .-32 ; 0x2ab0 <__addsf3+0x8>
  7385. 2ad0: ba 17 cp r27, r26
  7386. 2ad2: 62 07 cpc r22, r18
  7387. 2ad4: 73 07 cpc r23, r19
  7388. 2ad6: 84 07 cpc r24, r20
  7389. 2ad8: 95 07 cpc r25, r21
  7390. 2ada: 18 f0 brcs .+6 ; 0x2ae2 <__addsf3x+0x18>
  7391. 2adc: 71 f4 brne .+28 ; 0x2afa <__addsf3x+0x30>
  7392. 2ade: 9e f5 brtc .+102 ; 0x2b46 <__addsf3x+0x7c>
  7393. 2ae0: 8f c1 rjmp .+798 ; 0x2e00 <__fp_zero>
  7394. 2ae2: 0e f4 brtc .+2 ; 0x2ae6 <__addsf3x+0x1c>
  7395. 2ae4: e0 95 com r30
  7396. 2ae6: 0b 2e mov r0, r27
  7397. 2ae8: ba 2f mov r27, r26
  7398. 2aea: a0 2d mov r26, r0
  7399. 2aec: 0b 01 movw r0, r22
  7400. 2aee: b9 01 movw r22, r18
  7401. 2af0: 90 01 movw r18, r0
  7402. 2af2: 0c 01 movw r0, r24
  7403. 2af4: ca 01 movw r24, r20
  7404. 2af6: a0 01 movw r20, r0
  7405. 2af8: 11 24 eor r1, r1
  7406. 2afa: ff 27 eor r31, r31
  7407. 2afc: 59 1b sub r21, r25
  7408. 2afe: 99 f0 breq .+38 ; 0x2b26 <__addsf3x+0x5c>
  7409. 2b00: 59 3f cpi r21, 0xF9 ; 249
  7410. 2b02: 50 f4 brcc .+20 ; 0x2b18 <__addsf3x+0x4e>
  7411. 2b04: 50 3e cpi r21, 0xE0 ; 224
  7412. 2b06: 68 f1 brcs .+90 ; 0x2b62 <__addsf3x+0x98>
  7413. 2b08: 1a 16 cp r1, r26
  7414. 2b0a: f0 40 sbci r31, 0x00 ; 0
  7415. 2b0c: a2 2f mov r26, r18
  7416. 2b0e: 23 2f mov r18, r19
  7417. 2b10: 34 2f mov r19, r20
  7418. 2b12: 44 27 eor r20, r20
  7419. 2b14: 58 5f subi r21, 0xF8 ; 248
  7420. 2b16: f3 cf rjmp .-26 ; 0x2afe <__addsf3x+0x34>
  7421. 2b18: 46 95 lsr r20
  7422. 2b1a: 37 95 ror r19
  7423. 2b1c: 27 95 ror r18
  7424. 2b1e: a7 95 ror r26
  7425. 2b20: f0 40 sbci r31, 0x00 ; 0
  7426. 2b22: 53 95 inc r21
  7427. 2b24: c9 f7 brne .-14 ; 0x2b18 <__addsf3x+0x4e>
  7428. 2b26: 7e f4 brtc .+30 ; 0x2b46 <__addsf3x+0x7c>
  7429. 2b28: 1f 16 cp r1, r31
  7430. 2b2a: ba 0b sbc r27, r26
  7431. 2b2c: 62 0b sbc r22, r18
  7432. 2b2e: 73 0b sbc r23, r19
  7433. 2b30: 84 0b sbc r24, r20
  7434. 2b32: ba f0 brmi .+46 ; 0x2b62 <__addsf3x+0x98>
  7435. 2b34: 91 50 subi r25, 0x01 ; 1
  7436. 2b36: a1 f0 breq .+40 ; 0x2b60 <__addsf3x+0x96>
  7437. 2b38: ff 0f add r31, r31
  7438. 2b3a: bb 1f adc r27, r27
  7439. 2b3c: 66 1f adc r22, r22
  7440. 2b3e: 77 1f adc r23, r23
  7441. 2b40: 88 1f adc r24, r24
  7442. 2b42: c2 f7 brpl .-16 ; 0x2b34 <__addsf3x+0x6a>
  7443. 2b44: 0e c0 rjmp .+28 ; 0x2b62 <__addsf3x+0x98>
  7444. 2b46: ba 0f add r27, r26
  7445. 2b48: 62 1f adc r22, r18
  7446. 2b4a: 73 1f adc r23, r19
  7447. 2b4c: 84 1f adc r24, r20
  7448. 2b4e: 48 f4 brcc .+18 ; 0x2b62 <__addsf3x+0x98>
  7449. 2b50: 87 95 ror r24
  7450. 2b52: 77 95 ror r23
  7451. 2b54: 67 95 ror r22
  7452. 2b56: b7 95 ror r27
  7453. 2b58: f7 95 ror r31
  7454. 2b5a: 9e 3f cpi r25, 0xFE ; 254
  7455. 2b5c: 08 f0 brcs .+2 ; 0x2b60 <__addsf3x+0x96>
  7456. 2b5e: b3 cf rjmp .-154 ; 0x2ac6 <__addsf3+0x1e>
  7457. 2b60: 93 95 inc r25
  7458. 2b62: 88 0f add r24, r24
  7459. 2b64: 08 f0 brcs .+2 ; 0x2b68 <__addsf3x+0x9e>
  7460. 2b66: 99 27 eor r25, r25
  7461. 2b68: ee 0f add r30, r30
  7462. 2b6a: 97 95 ror r25
  7463. 2b6c: 87 95 ror r24
  7464. 2b6e: 08 95 ret
  7465. 00002b70 <__cmpsf2>:
  7466. 2b70: d9 d0 rcall .+434 ; 0x2d24 <__fp_cmp>
  7467. 2b72: 08 f4 brcc .+2 ; 0x2b76 <__cmpsf2+0x6>
  7468. 2b74: 81 e0 ldi r24, 0x01 ; 1
  7469. 2b76: 08 95 ret
  7470. 00002b78 <__divsf3>:
  7471. 2b78: 0c d0 rcall .+24 ; 0x2b92 <__divsf3x>
  7472. 2b7a: 0f c1 rjmp .+542 ; 0x2d9a <__fp_round>
  7473. 2b7c: 07 d1 rcall .+526 ; 0x2d8c <__fp_pscB>
  7474. 2b7e: 40 f0 brcs .+16 ; 0x2b90 <__divsf3+0x18>
  7475. 2b80: fe d0 rcall .+508 ; 0x2d7e <__fp_pscA>
  7476. 2b82: 30 f0 brcs .+12 ; 0x2b90 <__divsf3+0x18>
  7477. 2b84: 21 f4 brne .+8 ; 0x2b8e <__divsf3+0x16>
  7478. 2b86: 5f 3f cpi r21, 0xFF ; 255
  7479. 2b88: 19 f0 breq .+6 ; 0x2b90 <__divsf3+0x18>
  7480. 2b8a: f0 c0 rjmp .+480 ; 0x2d6c <__fp_inf>
  7481. 2b8c: 51 11 cpse r21, r1
  7482. 2b8e: 39 c1 rjmp .+626 ; 0x2e02 <__fp_szero>
  7483. 2b90: f3 c0 rjmp .+486 ; 0x2d78 <__fp_nan>
  7484. 00002b92 <__divsf3x>:
  7485. 2b92: 14 d1 rcall .+552 ; 0x2dbc <__fp_split3>
  7486. 2b94: 98 f3 brcs .-26 ; 0x2b7c <__divsf3+0x4>
  7487. 00002b96 <__divsf3_pse>:
  7488. 2b96: 99 23 and r25, r25
  7489. 2b98: c9 f3 breq .-14 ; 0x2b8c <__divsf3+0x14>
  7490. 2b9a: 55 23 and r21, r21
  7491. 2b9c: b1 f3 breq .-20 ; 0x2b8a <__divsf3+0x12>
  7492. 2b9e: 95 1b sub r25, r21
  7493. 2ba0: 55 0b sbc r21, r21
  7494. 2ba2: bb 27 eor r27, r27
  7495. 2ba4: aa 27 eor r26, r26
  7496. 2ba6: 62 17 cp r22, r18
  7497. 2ba8: 73 07 cpc r23, r19
  7498. 2baa: 84 07 cpc r24, r20
  7499. 2bac: 38 f0 brcs .+14 ; 0x2bbc <__divsf3_pse+0x26>
  7500. 2bae: 9f 5f subi r25, 0xFF ; 255
  7501. 2bb0: 5f 4f sbci r21, 0xFF ; 255
  7502. 2bb2: 22 0f add r18, r18
  7503. 2bb4: 33 1f adc r19, r19
  7504. 2bb6: 44 1f adc r20, r20
  7505. 2bb8: aa 1f adc r26, r26
  7506. 2bba: a9 f3 breq .-22 ; 0x2ba6 <__divsf3_pse+0x10>
  7507. 2bbc: 33 d0 rcall .+102 ; 0x2c24 <__divsf3_pse+0x8e>
  7508. 2bbe: 0e 2e mov r0, r30
  7509. 2bc0: 3a f0 brmi .+14 ; 0x2bd0 <__divsf3_pse+0x3a>
  7510. 2bc2: e0 e8 ldi r30, 0x80 ; 128
  7511. 2bc4: 30 d0 rcall .+96 ; 0x2c26 <__divsf3_pse+0x90>
  7512. 2bc6: 91 50 subi r25, 0x01 ; 1
  7513. 2bc8: 50 40 sbci r21, 0x00 ; 0
  7514. 2bca: e6 95 lsr r30
  7515. 2bcc: 00 1c adc r0, r0
  7516. 2bce: ca f7 brpl .-14 ; 0x2bc2 <__divsf3_pse+0x2c>
  7517. 2bd0: 29 d0 rcall .+82 ; 0x2c24 <__divsf3_pse+0x8e>
  7518. 2bd2: fe 2f mov r31, r30
  7519. 2bd4: 27 d0 rcall .+78 ; 0x2c24 <__divsf3_pse+0x8e>
  7520. 2bd6: 66 0f add r22, r22
  7521. 2bd8: 77 1f adc r23, r23
  7522. 2bda: 88 1f adc r24, r24
  7523. 2bdc: bb 1f adc r27, r27
  7524. 2bde: 26 17 cp r18, r22
  7525. 2be0: 37 07 cpc r19, r23
  7526. 2be2: 48 07 cpc r20, r24
  7527. 2be4: ab 07 cpc r26, r27
  7528. 2be6: b0 e8 ldi r27, 0x80 ; 128
  7529. 2be8: 09 f0 breq .+2 ; 0x2bec <__divsf3_pse+0x56>
  7530. 2bea: bb 0b sbc r27, r27
  7531. 2bec: 80 2d mov r24, r0
  7532. 2bee: bf 01 movw r22, r30
  7533. 2bf0: ff 27 eor r31, r31
  7534. 2bf2: 93 58 subi r25, 0x83 ; 131
  7535. 2bf4: 5f 4f sbci r21, 0xFF ; 255
  7536. 2bf6: 2a f0 brmi .+10 ; 0x2c02 <__divsf3_pse+0x6c>
  7537. 2bf8: 9e 3f cpi r25, 0xFE ; 254
  7538. 2bfa: 51 05 cpc r21, r1
  7539. 2bfc: 68 f0 brcs .+26 ; 0x2c18 <__divsf3_pse+0x82>
  7540. 2bfe: b6 c0 rjmp .+364 ; 0x2d6c <__fp_inf>
  7541. 2c00: 00 c1 rjmp .+512 ; 0x2e02 <__fp_szero>
  7542. 2c02: 5f 3f cpi r21, 0xFF ; 255
  7543. 2c04: ec f3 brlt .-6 ; 0x2c00 <__divsf3_pse+0x6a>
  7544. 2c06: 98 3e cpi r25, 0xE8 ; 232
  7545. 2c08: dc f3 brlt .-10 ; 0x2c00 <__divsf3_pse+0x6a>
  7546. 2c0a: 86 95 lsr r24
  7547. 2c0c: 77 95 ror r23
  7548. 2c0e: 67 95 ror r22
  7549. 2c10: b7 95 ror r27
  7550. 2c12: f7 95 ror r31
  7551. 2c14: 9f 5f subi r25, 0xFF ; 255
  7552. 2c16: c9 f7 brne .-14 ; 0x2c0a <__divsf3_pse+0x74>
  7553. 2c18: 88 0f add r24, r24
  7554. 2c1a: 91 1d adc r25, r1
  7555. 2c1c: 96 95 lsr r25
  7556. 2c1e: 87 95 ror r24
  7557. 2c20: 97 f9 bld r25, 7
  7558. 2c22: 08 95 ret
  7559. 2c24: e1 e0 ldi r30, 0x01 ; 1
  7560. 2c26: 66 0f add r22, r22
  7561. 2c28: 77 1f adc r23, r23
  7562. 2c2a: 88 1f adc r24, r24
  7563. 2c2c: bb 1f adc r27, r27
  7564. 2c2e: 62 17 cp r22, r18
  7565. 2c30: 73 07 cpc r23, r19
  7566. 2c32: 84 07 cpc r24, r20
  7567. 2c34: ba 07 cpc r27, r26
  7568. 2c36: 20 f0 brcs .+8 ; 0x2c40 <__divsf3_pse+0xaa>
  7569. 2c38: 62 1b sub r22, r18
  7570. 2c3a: 73 0b sbc r23, r19
  7571. 2c3c: 84 0b sbc r24, r20
  7572. 2c3e: ba 0b sbc r27, r26
  7573. 2c40: ee 1f adc r30, r30
  7574. 2c42: 88 f7 brcc .-30 ; 0x2c26 <__divsf3_pse+0x90>
  7575. 2c44: e0 95 com r30
  7576. 2c46: 08 95 ret
  7577. 00002c48 <__fixsfsi>:
  7578. 2c48: 04 d0 rcall .+8 ; 0x2c52 <__fixunssfsi>
  7579. 2c4a: 68 94 set
  7580. 2c4c: b1 11 cpse r27, r1
  7581. 2c4e: d9 c0 rjmp .+434 ; 0x2e02 <__fp_szero>
  7582. 2c50: 08 95 ret
  7583. 00002c52 <__fixunssfsi>:
  7584. 2c52: bc d0 rcall .+376 ; 0x2dcc <__fp_splitA>
  7585. 2c54: 88 f0 brcs .+34 ; 0x2c78 <__fixunssfsi+0x26>
  7586. 2c56: 9f 57 subi r25, 0x7F ; 127
  7587. 2c58: 90 f0 brcs .+36 ; 0x2c7e <__fixunssfsi+0x2c>
  7588. 2c5a: b9 2f mov r27, r25
  7589. 2c5c: 99 27 eor r25, r25
  7590. 2c5e: b7 51 subi r27, 0x17 ; 23
  7591. 2c60: a0 f0 brcs .+40 ; 0x2c8a <__fixunssfsi+0x38>
  7592. 2c62: d1 f0 breq .+52 ; 0x2c98 <__fixunssfsi+0x46>
  7593. 2c64: 66 0f add r22, r22
  7594. 2c66: 77 1f adc r23, r23
  7595. 2c68: 88 1f adc r24, r24
  7596. 2c6a: 99 1f adc r25, r25
  7597. 2c6c: 1a f0 brmi .+6 ; 0x2c74 <__fixunssfsi+0x22>
  7598. 2c6e: ba 95 dec r27
  7599. 2c70: c9 f7 brne .-14 ; 0x2c64 <__fixunssfsi+0x12>
  7600. 2c72: 12 c0 rjmp .+36 ; 0x2c98 <__fixunssfsi+0x46>
  7601. 2c74: b1 30 cpi r27, 0x01 ; 1
  7602. 2c76: 81 f0 breq .+32 ; 0x2c98 <__fixunssfsi+0x46>
  7603. 2c78: c3 d0 rcall .+390 ; 0x2e00 <__fp_zero>
  7604. 2c7a: b1 e0 ldi r27, 0x01 ; 1
  7605. 2c7c: 08 95 ret
  7606. 2c7e: c0 c0 rjmp .+384 ; 0x2e00 <__fp_zero>
  7607. 2c80: 67 2f mov r22, r23
  7608. 2c82: 78 2f mov r23, r24
  7609. 2c84: 88 27 eor r24, r24
  7610. 2c86: b8 5f subi r27, 0xF8 ; 248
  7611. 2c88: 39 f0 breq .+14 ; 0x2c98 <__fixunssfsi+0x46>
  7612. 2c8a: b9 3f cpi r27, 0xF9 ; 249
  7613. 2c8c: cc f3 brlt .-14 ; 0x2c80 <__fixunssfsi+0x2e>
  7614. 2c8e: 86 95 lsr r24
  7615. 2c90: 77 95 ror r23
  7616. 2c92: 67 95 ror r22
  7617. 2c94: b3 95 inc r27
  7618. 2c96: d9 f7 brne .-10 ; 0x2c8e <__fixunssfsi+0x3c>
  7619. 2c98: 3e f4 brtc .+14 ; 0x2ca8 <__fixunssfsi+0x56>
  7620. 2c9a: 90 95 com r25
  7621. 2c9c: 80 95 com r24
  7622. 2c9e: 70 95 com r23
  7623. 2ca0: 61 95 neg r22
  7624. 2ca2: 7f 4f sbci r23, 0xFF ; 255
  7625. 2ca4: 8f 4f sbci r24, 0xFF ; 255
  7626. 2ca6: 9f 4f sbci r25, 0xFF ; 255
  7627. 2ca8: 08 95 ret
  7628. 00002caa <__floatunsisf>:
  7629. 2caa: e8 94 clt
  7630. 2cac: 09 c0 rjmp .+18 ; 0x2cc0 <__floatsisf+0x12>
  7631. 00002cae <__floatsisf>:
  7632. 2cae: 97 fb bst r25, 7
  7633. 2cb0: 3e f4 brtc .+14 ; 0x2cc0 <__floatsisf+0x12>
  7634. 2cb2: 90 95 com r25
  7635. 2cb4: 80 95 com r24
  7636. 2cb6: 70 95 com r23
  7637. 2cb8: 61 95 neg r22
  7638. 2cba: 7f 4f sbci r23, 0xFF ; 255
  7639. 2cbc: 8f 4f sbci r24, 0xFF ; 255
  7640. 2cbe: 9f 4f sbci r25, 0xFF ; 255
  7641. 2cc0: 99 23 and r25, r25
  7642. 2cc2: a9 f0 breq .+42 ; 0x2cee <__floatsisf+0x40>
  7643. 2cc4: f9 2f mov r31, r25
  7644. 2cc6: 96 e9 ldi r25, 0x96 ; 150
  7645. 2cc8: bb 27 eor r27, r27
  7646. 2cca: 93 95 inc r25
  7647. 2ccc: f6 95 lsr r31
  7648. 2cce: 87 95 ror r24
  7649. 2cd0: 77 95 ror r23
  7650. 2cd2: 67 95 ror r22
  7651. 2cd4: b7 95 ror r27
  7652. 2cd6: f1 11 cpse r31, r1
  7653. 2cd8: f8 cf rjmp .-16 ; 0x2cca <__floatsisf+0x1c>
  7654. 2cda: fa f4 brpl .+62 ; 0x2d1a <__floatsisf+0x6c>
  7655. 2cdc: bb 0f add r27, r27
  7656. 2cde: 11 f4 brne .+4 ; 0x2ce4 <__floatsisf+0x36>
  7657. 2ce0: 60 ff sbrs r22, 0
  7658. 2ce2: 1b c0 rjmp .+54 ; 0x2d1a <__floatsisf+0x6c>
  7659. 2ce4: 6f 5f subi r22, 0xFF ; 255
  7660. 2ce6: 7f 4f sbci r23, 0xFF ; 255
  7661. 2ce8: 8f 4f sbci r24, 0xFF ; 255
  7662. 2cea: 9f 4f sbci r25, 0xFF ; 255
  7663. 2cec: 16 c0 rjmp .+44 ; 0x2d1a <__floatsisf+0x6c>
  7664. 2cee: 88 23 and r24, r24
  7665. 2cf0: 11 f0 breq .+4 ; 0x2cf6 <__floatsisf+0x48>
  7666. 2cf2: 96 e9 ldi r25, 0x96 ; 150
  7667. 2cf4: 11 c0 rjmp .+34 ; 0x2d18 <__floatsisf+0x6a>
  7668. 2cf6: 77 23 and r23, r23
  7669. 2cf8: 21 f0 breq .+8 ; 0x2d02 <__floatsisf+0x54>
  7670. 2cfa: 9e e8 ldi r25, 0x8E ; 142
  7671. 2cfc: 87 2f mov r24, r23
  7672. 2cfe: 76 2f mov r23, r22
  7673. 2d00: 05 c0 rjmp .+10 ; 0x2d0c <__floatsisf+0x5e>
  7674. 2d02: 66 23 and r22, r22
  7675. 2d04: 71 f0 breq .+28 ; 0x2d22 <__floatsisf+0x74>
  7676. 2d06: 96 e8 ldi r25, 0x86 ; 134
  7677. 2d08: 86 2f mov r24, r22
  7678. 2d0a: 70 e0 ldi r23, 0x00 ; 0
  7679. 2d0c: 60 e0 ldi r22, 0x00 ; 0
  7680. 2d0e: 2a f0 brmi .+10 ; 0x2d1a <__floatsisf+0x6c>
  7681. 2d10: 9a 95 dec r25
  7682. 2d12: 66 0f add r22, r22
  7683. 2d14: 77 1f adc r23, r23
  7684. 2d16: 88 1f adc r24, r24
  7685. 2d18: da f7 brpl .-10 ; 0x2d10 <__floatsisf+0x62>
  7686. 2d1a: 88 0f add r24, r24
  7687. 2d1c: 96 95 lsr r25
  7688. 2d1e: 87 95 ror r24
  7689. 2d20: 97 f9 bld r25, 7
  7690. 2d22: 08 95 ret
  7691. 00002d24 <__fp_cmp>:
  7692. 2d24: 99 0f add r25, r25
  7693. 2d26: 00 08 sbc r0, r0
  7694. 2d28: 55 0f add r21, r21
  7695. 2d2a: aa 0b sbc r26, r26
  7696. 2d2c: e0 e8 ldi r30, 0x80 ; 128
  7697. 2d2e: fe ef ldi r31, 0xFE ; 254
  7698. 2d30: 16 16 cp r1, r22
  7699. 2d32: 17 06 cpc r1, r23
  7700. 2d34: e8 07 cpc r30, r24
  7701. 2d36: f9 07 cpc r31, r25
  7702. 2d38: c0 f0 brcs .+48 ; 0x2d6a <__fp_cmp+0x46>
  7703. 2d3a: 12 16 cp r1, r18
  7704. 2d3c: 13 06 cpc r1, r19
  7705. 2d3e: e4 07 cpc r30, r20
  7706. 2d40: f5 07 cpc r31, r21
  7707. 2d42: 98 f0 brcs .+38 ; 0x2d6a <__fp_cmp+0x46>
  7708. 2d44: 62 1b sub r22, r18
  7709. 2d46: 73 0b sbc r23, r19
  7710. 2d48: 84 0b sbc r24, r20
  7711. 2d4a: 95 0b sbc r25, r21
  7712. 2d4c: 39 f4 brne .+14 ; 0x2d5c <__fp_cmp+0x38>
  7713. 2d4e: 0a 26 eor r0, r26
  7714. 2d50: 61 f0 breq .+24 ; 0x2d6a <__fp_cmp+0x46>
  7715. 2d52: 23 2b or r18, r19
  7716. 2d54: 24 2b or r18, r20
  7717. 2d56: 25 2b or r18, r21
  7718. 2d58: 21 f4 brne .+8 ; 0x2d62 <__fp_cmp+0x3e>
  7719. 2d5a: 08 95 ret
  7720. 2d5c: 0a 26 eor r0, r26
  7721. 2d5e: 09 f4 brne .+2 ; 0x2d62 <__fp_cmp+0x3e>
  7722. 2d60: a1 40 sbci r26, 0x01 ; 1
  7723. 2d62: a6 95 lsr r26
  7724. 2d64: 8f ef ldi r24, 0xFF ; 255
  7725. 2d66: 81 1d adc r24, r1
  7726. 2d68: 81 1d adc r24, r1
  7727. 2d6a: 08 95 ret
  7728. 00002d6c <__fp_inf>:
  7729. 2d6c: 97 f9 bld r25, 7
  7730. 2d6e: 9f 67 ori r25, 0x7F ; 127
  7731. 2d70: 80 e8 ldi r24, 0x80 ; 128
  7732. 2d72: 70 e0 ldi r23, 0x00 ; 0
  7733. 2d74: 60 e0 ldi r22, 0x00 ; 0
  7734. 2d76: 08 95 ret
  7735. 00002d78 <__fp_nan>:
  7736. 2d78: 9f ef ldi r25, 0xFF ; 255
  7737. 2d7a: 80 ec ldi r24, 0xC0 ; 192
  7738. 2d7c: 08 95 ret
  7739. 00002d7e <__fp_pscA>:
  7740. 2d7e: 00 24 eor r0, r0
  7741. 2d80: 0a 94 dec r0
  7742. 2d82: 16 16 cp r1, r22
  7743. 2d84: 17 06 cpc r1, r23
  7744. 2d86: 18 06 cpc r1, r24
  7745. 2d88: 09 06 cpc r0, r25
  7746. 2d8a: 08 95 ret
  7747. 00002d8c <__fp_pscB>:
  7748. 2d8c: 00 24 eor r0, r0
  7749. 2d8e: 0a 94 dec r0
  7750. 2d90: 12 16 cp r1, r18
  7751. 2d92: 13 06 cpc r1, r19
  7752. 2d94: 14 06 cpc r1, r20
  7753. 2d96: 05 06 cpc r0, r21
  7754. 2d98: 08 95 ret
  7755. 00002d9a <__fp_round>:
  7756. 2d9a: 09 2e mov r0, r25
  7757. 2d9c: 03 94 inc r0
  7758. 2d9e: 00 0c add r0, r0
  7759. 2da0: 11 f4 brne .+4 ; 0x2da6 <__fp_round+0xc>
  7760. 2da2: 88 23 and r24, r24
  7761. 2da4: 52 f0 brmi .+20 ; 0x2dba <__fp_round+0x20>
  7762. 2da6: bb 0f add r27, r27
  7763. 2da8: 40 f4 brcc .+16 ; 0x2dba <__fp_round+0x20>
  7764. 2daa: bf 2b or r27, r31
  7765. 2dac: 11 f4 brne .+4 ; 0x2db2 <__fp_round+0x18>
  7766. 2dae: 60 ff sbrs r22, 0
  7767. 2db0: 04 c0 rjmp .+8 ; 0x2dba <__fp_round+0x20>
  7768. 2db2: 6f 5f subi r22, 0xFF ; 255
  7769. 2db4: 7f 4f sbci r23, 0xFF ; 255
  7770. 2db6: 8f 4f sbci r24, 0xFF ; 255
  7771. 2db8: 9f 4f sbci r25, 0xFF ; 255
  7772. 2dba: 08 95 ret
  7773. 00002dbc <__fp_split3>:
  7774. 2dbc: 57 fd sbrc r21, 7
  7775. 2dbe: 90 58 subi r25, 0x80 ; 128
  7776. 2dc0: 44 0f add r20, r20
  7777. 2dc2: 55 1f adc r21, r21
  7778. 2dc4: 59 f0 breq .+22 ; 0x2ddc <__fp_splitA+0x10>
  7779. 2dc6: 5f 3f cpi r21, 0xFF ; 255
  7780. 2dc8: 71 f0 breq .+28 ; 0x2de6 <__fp_splitA+0x1a>
  7781. 2dca: 47 95 ror r20
  7782. 00002dcc <__fp_splitA>:
  7783. 2dcc: 88 0f add r24, r24
  7784. 2dce: 97 fb bst r25, 7
  7785. 2dd0: 99 1f adc r25, r25
  7786. 2dd2: 61 f0 breq .+24 ; 0x2dec <__fp_splitA+0x20>
  7787. 2dd4: 9f 3f cpi r25, 0xFF ; 255
  7788. 2dd6: 79 f0 breq .+30 ; 0x2df6 <__fp_splitA+0x2a>
  7789. 2dd8: 87 95 ror r24
  7790. 2dda: 08 95 ret
  7791. 2ddc: 12 16 cp r1, r18
  7792. 2dde: 13 06 cpc r1, r19
  7793. 2de0: 14 06 cpc r1, r20
  7794. 2de2: 55 1f adc r21, r21
  7795. 2de4: f2 cf rjmp .-28 ; 0x2dca <__fp_split3+0xe>
  7796. 2de6: 46 95 lsr r20
  7797. 2de8: f1 df rcall .-30 ; 0x2dcc <__fp_splitA>
  7798. 2dea: 08 c0 rjmp .+16 ; 0x2dfc <__fp_splitA+0x30>
  7799. 2dec: 16 16 cp r1, r22
  7800. 2dee: 17 06 cpc r1, r23
  7801. 2df0: 18 06 cpc r1, r24
  7802. 2df2: 99 1f adc r25, r25
  7803. 2df4: f1 cf rjmp .-30 ; 0x2dd8 <__fp_splitA+0xc>
  7804. 2df6: 86 95 lsr r24
  7805. 2df8: 71 05 cpc r23, r1
  7806. 2dfa: 61 05 cpc r22, r1
  7807. 2dfc: 08 94 sec
  7808. 2dfe: 08 95 ret
  7809. 00002e00 <__fp_zero>:
  7810. 2e00: e8 94 clt
  7811. 00002e02 <__fp_szero>:
  7812. 2e02: bb 27 eor r27, r27
  7813. 2e04: 66 27 eor r22, r22
  7814. 2e06: 77 27 eor r23, r23
  7815. 2e08: cb 01 movw r24, r22
  7816. 2e0a: 97 f9 bld r25, 7
  7817. 2e0c: 08 95 ret
  7818. 00002e0e <__gesf2>:
  7819. 2e0e: 8a df rcall .-236 ; 0x2d24 <__fp_cmp>
  7820. 2e10: 08 f4 brcc .+2 ; 0x2e14 <__gesf2+0x6>
  7821. 2e12: 8f ef ldi r24, 0xFF ; 255
  7822. 2e14: 08 95 ret
  7823. 00002e16 <__mulsf3>:
  7824. 2e16: 0b d0 rcall .+22 ; 0x2e2e <__mulsf3x>
  7825. 2e18: c0 cf rjmp .-128 ; 0x2d9a <__fp_round>
  7826. 2e1a: b1 df rcall .-158 ; 0x2d7e <__fp_pscA>
  7827. 2e1c: 28 f0 brcs .+10 ; 0x2e28 <__mulsf3+0x12>
  7828. 2e1e: b6 df rcall .-148 ; 0x2d8c <__fp_pscB>
  7829. 2e20: 18 f0 brcs .+6 ; 0x2e28 <__mulsf3+0x12>
  7830. 2e22: 95 23 and r25, r21
  7831. 2e24: 09 f0 breq .+2 ; 0x2e28 <__mulsf3+0x12>
  7832. 2e26: a2 cf rjmp .-188 ; 0x2d6c <__fp_inf>
  7833. 2e28: a7 cf rjmp .-178 ; 0x2d78 <__fp_nan>
  7834. 2e2a: 11 24 eor r1, r1
  7835. 2e2c: ea cf rjmp .-44 ; 0x2e02 <__fp_szero>
  7836. 00002e2e <__mulsf3x>:
  7837. 2e2e: c6 df rcall .-116 ; 0x2dbc <__fp_split3>
  7838. 2e30: a0 f3 brcs .-24 ; 0x2e1a <__mulsf3+0x4>
  7839. 00002e32 <__mulsf3_pse>:
  7840. 2e32: 95 9f mul r25, r21
  7841. 2e34: d1 f3 breq .-12 ; 0x2e2a <__mulsf3+0x14>
  7842. 2e36: 95 0f add r25, r21
  7843. 2e38: 50 e0 ldi r21, 0x00 ; 0
  7844. 2e3a: 55 1f adc r21, r21
  7845. 2e3c: 62 9f mul r22, r18
  7846. 2e3e: f0 01 movw r30, r0
  7847. 2e40: 72 9f mul r23, r18
  7848. 2e42: bb 27 eor r27, r27
  7849. 2e44: f0 0d add r31, r0
  7850. 2e46: b1 1d adc r27, r1
  7851. 2e48: 63 9f mul r22, r19
  7852. 2e4a: aa 27 eor r26, r26
  7853. 2e4c: f0 0d add r31, r0
  7854. 2e4e: b1 1d adc r27, r1
  7855. 2e50: aa 1f adc r26, r26
  7856. 2e52: 64 9f mul r22, r20
  7857. 2e54: 66 27 eor r22, r22
  7858. 2e56: b0 0d add r27, r0
  7859. 2e58: a1 1d adc r26, r1
  7860. 2e5a: 66 1f adc r22, r22
  7861. 2e5c: 82 9f mul r24, r18
  7862. 2e5e: 22 27 eor r18, r18
  7863. 2e60: b0 0d add r27, r0
  7864. 2e62: a1 1d adc r26, r1
  7865. 2e64: 62 1f adc r22, r18
  7866. 2e66: 73 9f mul r23, r19
  7867. 2e68: b0 0d add r27, r0
  7868. 2e6a: a1 1d adc r26, r1
  7869. 2e6c: 62 1f adc r22, r18
  7870. 2e6e: 83 9f mul r24, r19
  7871. 2e70: a0 0d add r26, r0
  7872. 2e72: 61 1d adc r22, r1
  7873. 2e74: 22 1f adc r18, r18
  7874. 2e76: 74 9f mul r23, r20
  7875. 2e78: 33 27 eor r19, r19
  7876. 2e7a: a0 0d add r26, r0
  7877. 2e7c: 61 1d adc r22, r1
  7878. 2e7e: 23 1f adc r18, r19
  7879. 2e80: 84 9f mul r24, r20
  7880. 2e82: 60 0d add r22, r0
  7881. 2e84: 21 1d adc r18, r1
  7882. 2e86: 82 2f mov r24, r18
  7883. 2e88: 76 2f mov r23, r22
  7884. 2e8a: 6a 2f mov r22, r26
  7885. 2e8c: 11 24 eor r1, r1
  7886. 2e8e: 9f 57 subi r25, 0x7F ; 127
  7887. 2e90: 50 40 sbci r21, 0x00 ; 0
  7888. 2e92: 8a f0 brmi .+34 ; 0x2eb6 <__mulsf3_pse+0x84>
  7889. 2e94: e1 f0 breq .+56 ; 0x2ece <__mulsf3_pse+0x9c>
  7890. 2e96: 88 23 and r24, r24
  7891. 2e98: 4a f0 brmi .+18 ; 0x2eac <__mulsf3_pse+0x7a>
  7892. 2e9a: ee 0f add r30, r30
  7893. 2e9c: ff 1f adc r31, r31
  7894. 2e9e: bb 1f adc r27, r27
  7895. 2ea0: 66 1f adc r22, r22
  7896. 2ea2: 77 1f adc r23, r23
  7897. 2ea4: 88 1f adc r24, r24
  7898. 2ea6: 91 50 subi r25, 0x01 ; 1
  7899. 2ea8: 50 40 sbci r21, 0x00 ; 0
  7900. 2eaa: a9 f7 brne .-22 ; 0x2e96 <__mulsf3_pse+0x64>
  7901. 2eac: 9e 3f cpi r25, 0xFE ; 254
  7902. 2eae: 51 05 cpc r21, r1
  7903. 2eb0: 70 f0 brcs .+28 ; 0x2ece <__mulsf3_pse+0x9c>
  7904. 2eb2: 5c cf rjmp .-328 ; 0x2d6c <__fp_inf>
  7905. 2eb4: a6 cf rjmp .-180 ; 0x2e02 <__fp_szero>
  7906. 2eb6: 5f 3f cpi r21, 0xFF ; 255
  7907. 2eb8: ec f3 brlt .-6 ; 0x2eb4 <__mulsf3_pse+0x82>
  7908. 2eba: 98 3e cpi r25, 0xE8 ; 232
  7909. 2ebc: dc f3 brlt .-10 ; 0x2eb4 <__mulsf3_pse+0x82>
  7910. 2ebe: 86 95 lsr r24
  7911. 2ec0: 77 95 ror r23
  7912. 2ec2: 67 95 ror r22
  7913. 2ec4: b7 95 ror r27
  7914. 2ec6: f7 95 ror r31
  7915. 2ec8: e7 95 ror r30
  7916. 2eca: 9f 5f subi r25, 0xFF ; 255
  7917. 2ecc: c1 f7 brne .-16 ; 0x2ebe <__mulsf3_pse+0x8c>
  7918. 2ece: fe 2b or r31, r30
  7919. 2ed0: 88 0f add r24, r24
  7920. 2ed2: 91 1d adc r25, r1
  7921. 2ed4: 96 95 lsr r25
  7922. 2ed6: 87 95 ror r24
  7923. 2ed8: 97 f9 bld r25, 7
  7924. 2eda: 08 95 ret
  7925. 00002edc <vfprintf>:
  7926. 2edc: a0 e1 ldi r26, 0x10 ; 16
  7927. 2ede: b0 e0 ldi r27, 0x00 ; 0
  7928. 2ee0: e3 e7 ldi r30, 0x73 ; 115
  7929. 2ee2: f7 e1 ldi r31, 0x17 ; 23
  7930. 2ee4: 81 c3 rjmp .+1794 ; 0x35e8 <__prologue_saves__>
  7931. 2ee6: 7c 01 movw r14, r24
  7932. 2ee8: 1b 01 movw r2, r22
  7933. 2eea: 6a 01 movw r12, r20
  7934. 2eec: fc 01 movw r30, r24
  7935. 2eee: 17 82 std Z+7, r1 ; 0x07
  7936. 2ef0: 16 82 std Z+6, r1 ; 0x06
  7937. 2ef2: 83 81 ldd r24, Z+3 ; 0x03
  7938. 2ef4: 81 ff sbrs r24, 1
  7939. 2ef6: 2a c3 rjmp .+1620 ; 0x354c <vfprintf+0x670>
  7940. 2ef8: 9e 01 movw r18, r28
  7941. 2efa: 2f 5f subi r18, 0xFF ; 255
  7942. 2efc: 3f 4f sbci r19, 0xFF ; 255
  7943. 2efe: 39 01 movw r6, r18
  7944. 2f00: f7 01 movw r30, r14
  7945. 2f02: 93 81 ldd r25, Z+3 ; 0x03
  7946. 2f04: f1 01 movw r30, r2
  7947. 2f06: 93 fd sbrc r25, 3
  7948. 2f08: 85 91 lpm r24, Z+
  7949. 2f0a: 93 ff sbrs r25, 3
  7950. 2f0c: 81 91 ld r24, Z+
  7951. 2f0e: 1f 01 movw r2, r30
  7952. 2f10: 88 23 and r24, r24
  7953. 2f12: 09 f4 brne .+2 ; 0x2f16 <vfprintf+0x3a>
  7954. 2f14: 17 c3 rjmp .+1582 ; 0x3544 <vfprintf+0x668>
  7955. 2f16: 85 32 cpi r24, 0x25 ; 37
  7956. 2f18: 39 f4 brne .+14 ; 0x2f28 <vfprintf+0x4c>
  7957. 2f1a: 93 fd sbrc r25, 3
  7958. 2f1c: 85 91 lpm r24, Z+
  7959. 2f1e: 93 ff sbrs r25, 3
  7960. 2f20: 81 91 ld r24, Z+
  7961. 2f22: 1f 01 movw r2, r30
  7962. 2f24: 85 32 cpi r24, 0x25 ; 37
  7963. 2f26: 31 f4 brne .+12 ; 0x2f34 <vfprintf+0x58>
  7964. 2f28: b7 01 movw r22, r14
  7965. 2f2a: 90 e0 ldi r25, 0x00 ; 0
  7966. 2f2c: ff d5 rcall .+3070 ; 0x3b2c <fputc>
  7967. 2f2e: 56 01 movw r10, r12
  7968. 2f30: 65 01 movw r12, r10
  7969. 2f32: e6 cf rjmp .-52 ; 0x2f00 <vfprintf+0x24>
  7970. 2f34: 10 e0 ldi r17, 0x00 ; 0
  7971. 2f36: 51 2c mov r5, r1
  7972. 2f38: 91 2c mov r9, r1
  7973. 2f3a: ff e1 ldi r31, 0x1F ; 31
  7974. 2f3c: f9 15 cp r31, r9
  7975. 2f3e: d8 f0 brcs .+54 ; 0x2f76 <vfprintf+0x9a>
  7976. 2f40: 8b 32 cpi r24, 0x2B ; 43
  7977. 2f42: 79 f0 breq .+30 ; 0x2f62 <vfprintf+0x86>
  7978. 2f44: 38 f4 brcc .+14 ; 0x2f54 <vfprintf+0x78>
  7979. 2f46: 80 32 cpi r24, 0x20 ; 32
  7980. 2f48: 79 f0 breq .+30 ; 0x2f68 <vfprintf+0x8c>
  7981. 2f4a: 83 32 cpi r24, 0x23 ; 35
  7982. 2f4c: a1 f4 brne .+40 ; 0x2f76 <vfprintf+0x9a>
  7983. 2f4e: f9 2d mov r31, r9
  7984. 2f50: f0 61 ori r31, 0x10 ; 16
  7985. 2f52: 2e c0 rjmp .+92 ; 0x2fb0 <vfprintf+0xd4>
  7986. 2f54: 8d 32 cpi r24, 0x2D ; 45
  7987. 2f56: 61 f0 breq .+24 ; 0x2f70 <vfprintf+0x94>
  7988. 2f58: 80 33 cpi r24, 0x30 ; 48
  7989. 2f5a: 69 f4 brne .+26 ; 0x2f76 <vfprintf+0x9a>
  7990. 2f5c: 29 2d mov r18, r9
  7991. 2f5e: 21 60 ori r18, 0x01 ; 1
  7992. 2f60: 2d c0 rjmp .+90 ; 0x2fbc <vfprintf+0xe0>
  7993. 2f62: 39 2d mov r19, r9
  7994. 2f64: 32 60 ori r19, 0x02 ; 2
  7995. 2f66: 93 2e mov r9, r19
  7996. 2f68: 89 2d mov r24, r9
  7997. 2f6a: 84 60 ori r24, 0x04 ; 4
  7998. 2f6c: 98 2e mov r9, r24
  7999. 2f6e: 2a c0 rjmp .+84 ; 0x2fc4 <vfprintf+0xe8>
  8000. 2f70: e9 2d mov r30, r9
  8001. 2f72: e8 60 ori r30, 0x08 ; 8
  8002. 2f74: 15 c0 rjmp .+42 ; 0x2fa0 <vfprintf+0xc4>
  8003. 2f76: 97 fc sbrc r9, 7
  8004. 2f78: 2d c0 rjmp .+90 ; 0x2fd4 <vfprintf+0xf8>
  8005. 2f7a: 20 ed ldi r18, 0xD0 ; 208
  8006. 2f7c: 28 0f add r18, r24
  8007. 2f7e: 2a 30 cpi r18, 0x0A ; 10
  8008. 2f80: 88 f4 brcc .+34 ; 0x2fa4 <vfprintf+0xc8>
  8009. 2f82: 96 fe sbrs r9, 6
  8010. 2f84: 06 c0 rjmp .+12 ; 0x2f92 <vfprintf+0xb6>
  8011. 2f86: 3a e0 ldi r19, 0x0A ; 10
  8012. 2f88: 13 9f mul r17, r19
  8013. 2f8a: 20 0d add r18, r0
  8014. 2f8c: 11 24 eor r1, r1
  8015. 2f8e: 12 2f mov r17, r18
  8016. 2f90: 19 c0 rjmp .+50 ; 0x2fc4 <vfprintf+0xe8>
  8017. 2f92: 8a e0 ldi r24, 0x0A ; 10
  8018. 2f94: 58 9e mul r5, r24
  8019. 2f96: 20 0d add r18, r0
  8020. 2f98: 11 24 eor r1, r1
  8021. 2f9a: 52 2e mov r5, r18
  8022. 2f9c: e9 2d mov r30, r9
  8023. 2f9e: e0 62 ori r30, 0x20 ; 32
  8024. 2fa0: 9e 2e mov r9, r30
  8025. 2fa2: 10 c0 rjmp .+32 ; 0x2fc4 <vfprintf+0xe8>
  8026. 2fa4: 8e 32 cpi r24, 0x2E ; 46
  8027. 2fa6: 31 f4 brne .+12 ; 0x2fb4 <vfprintf+0xd8>
  8028. 2fa8: 96 fc sbrc r9, 6
  8029. 2faa: cc c2 rjmp .+1432 ; 0x3544 <vfprintf+0x668>
  8030. 2fac: f9 2d mov r31, r9
  8031. 2fae: f0 64 ori r31, 0x40 ; 64
  8032. 2fb0: 9f 2e mov r9, r31
  8033. 2fb2: 08 c0 rjmp .+16 ; 0x2fc4 <vfprintf+0xe8>
  8034. 2fb4: 8c 36 cpi r24, 0x6C ; 108
  8035. 2fb6: 21 f4 brne .+8 ; 0x2fc0 <vfprintf+0xe4>
  8036. 2fb8: 29 2d mov r18, r9
  8037. 2fba: 20 68 ori r18, 0x80 ; 128
  8038. 2fbc: 92 2e mov r9, r18
  8039. 2fbe: 02 c0 rjmp .+4 ; 0x2fc4 <vfprintf+0xe8>
  8040. 2fc0: 88 36 cpi r24, 0x68 ; 104
  8041. 2fc2: 41 f4 brne .+16 ; 0x2fd4 <vfprintf+0xf8>
  8042. 2fc4: f1 01 movw r30, r2
  8043. 2fc6: 93 fd sbrc r25, 3
  8044. 2fc8: 85 91 lpm r24, Z+
  8045. 2fca: 93 ff sbrs r25, 3
  8046. 2fcc: 81 91 ld r24, Z+
  8047. 2fce: 1f 01 movw r2, r30
  8048. 2fd0: 81 11 cpse r24, r1
  8049. 2fd2: b3 cf rjmp .-154 ; 0x2f3a <vfprintf+0x5e>
  8050. 2fd4: 9b eb ldi r25, 0xBB ; 187
  8051. 2fd6: 98 0f add r25, r24
  8052. 2fd8: 93 30 cpi r25, 0x03 ; 3
  8053. 2fda: 20 f4 brcc .+8 ; 0x2fe4 <vfprintf+0x108>
  8054. 2fdc: 99 2d mov r25, r9
  8055. 2fde: 90 61 ori r25, 0x10 ; 16
  8056. 2fe0: 80 5e subi r24, 0xE0 ; 224
  8057. 2fe2: 07 c0 rjmp .+14 ; 0x2ff2 <vfprintf+0x116>
  8058. 2fe4: 9b e9 ldi r25, 0x9B ; 155
  8059. 2fe6: 98 0f add r25, r24
  8060. 2fe8: 93 30 cpi r25, 0x03 ; 3
  8061. 2fea: 08 f0 brcs .+2 ; 0x2fee <vfprintf+0x112>
  8062. 2fec: 59 c1 rjmp .+690 ; 0x32a0 <vfprintf+0x3c4>
  8063. 2fee: 99 2d mov r25, r9
  8064. 2ff0: 9f 7e andi r25, 0xEF ; 239
  8065. 2ff2: 96 ff sbrs r25, 6
  8066. 2ff4: 16 e0 ldi r17, 0x06 ; 6
  8067. 2ff6: 9f 73 andi r25, 0x3F ; 63
  8068. 2ff8: 99 2e mov r9, r25
  8069. 2ffa: 85 36 cpi r24, 0x65 ; 101
  8070. 2ffc: 19 f4 brne .+6 ; 0x3004 <vfprintf+0x128>
  8071. 2ffe: 90 64 ori r25, 0x40 ; 64
  8072. 3000: 99 2e mov r9, r25
  8073. 3002: 08 c0 rjmp .+16 ; 0x3014 <vfprintf+0x138>
  8074. 3004: 86 36 cpi r24, 0x66 ; 102
  8075. 3006: 21 f4 brne .+8 ; 0x3010 <vfprintf+0x134>
  8076. 3008: 39 2f mov r19, r25
  8077. 300a: 30 68 ori r19, 0x80 ; 128
  8078. 300c: 93 2e mov r9, r19
  8079. 300e: 02 c0 rjmp .+4 ; 0x3014 <vfprintf+0x138>
  8080. 3010: 11 11 cpse r17, r1
  8081. 3012: 11 50 subi r17, 0x01 ; 1
  8082. 3014: 97 fe sbrs r9, 7
  8083. 3016: 07 c0 rjmp .+14 ; 0x3026 <vfprintf+0x14a>
  8084. 3018: 1c 33 cpi r17, 0x3C ; 60
  8085. 301a: 50 f4 brcc .+20 ; 0x3030 <vfprintf+0x154>
  8086. 301c: 44 24 eor r4, r4
  8087. 301e: 43 94 inc r4
  8088. 3020: 41 0e add r4, r17
  8089. 3022: 27 e0 ldi r18, 0x07 ; 7
  8090. 3024: 0b c0 rjmp .+22 ; 0x303c <vfprintf+0x160>
  8091. 3026: 18 30 cpi r17, 0x08 ; 8
  8092. 3028: 38 f0 brcs .+14 ; 0x3038 <vfprintf+0x15c>
  8093. 302a: 27 e0 ldi r18, 0x07 ; 7
  8094. 302c: 17 e0 ldi r17, 0x07 ; 7
  8095. 302e: 05 c0 rjmp .+10 ; 0x303a <vfprintf+0x15e>
  8096. 3030: 27 e0 ldi r18, 0x07 ; 7
  8097. 3032: 9c e3 ldi r25, 0x3C ; 60
  8098. 3034: 49 2e mov r4, r25
  8099. 3036: 02 c0 rjmp .+4 ; 0x303c <vfprintf+0x160>
  8100. 3038: 21 2f mov r18, r17
  8101. 303a: 41 2c mov r4, r1
  8102. 303c: 56 01 movw r10, r12
  8103. 303e: 84 e0 ldi r24, 0x04 ; 4
  8104. 3040: a8 0e add r10, r24
  8105. 3042: b1 1c adc r11, r1
  8106. 3044: f6 01 movw r30, r12
  8107. 3046: 60 81 ld r22, Z
  8108. 3048: 71 81 ldd r23, Z+1 ; 0x01
  8109. 304a: 82 81 ldd r24, Z+2 ; 0x02
  8110. 304c: 93 81 ldd r25, Z+3 ; 0x03
  8111. 304e: 04 2d mov r16, r4
  8112. 3050: a3 01 movw r20, r6
  8113. 3052: 50 d4 rcall .+2208 ; 0x38f4 <__ftoa_engine>
  8114. 3054: 6c 01 movw r12, r24
  8115. 3056: f9 81 ldd r31, Y+1 ; 0x01
  8116. 3058: fc 87 std Y+12, r31 ; 0x0c
  8117. 305a: f0 ff sbrs r31, 0
  8118. 305c: 02 c0 rjmp .+4 ; 0x3062 <vfprintf+0x186>
  8119. 305e: f3 ff sbrs r31, 3
  8120. 3060: 06 c0 rjmp .+12 ; 0x306e <vfprintf+0x192>
  8121. 3062: 91 fc sbrc r9, 1
  8122. 3064: 06 c0 rjmp .+12 ; 0x3072 <vfprintf+0x196>
  8123. 3066: 92 fe sbrs r9, 2
  8124. 3068: 06 c0 rjmp .+12 ; 0x3076 <vfprintf+0x19a>
  8125. 306a: 00 e2 ldi r16, 0x20 ; 32
  8126. 306c: 05 c0 rjmp .+10 ; 0x3078 <vfprintf+0x19c>
  8127. 306e: 0d e2 ldi r16, 0x2D ; 45
  8128. 3070: 03 c0 rjmp .+6 ; 0x3078 <vfprintf+0x19c>
  8129. 3072: 0b e2 ldi r16, 0x2B ; 43
  8130. 3074: 01 c0 rjmp .+2 ; 0x3078 <vfprintf+0x19c>
  8131. 3076: 00 e0 ldi r16, 0x00 ; 0
  8132. 3078: 8c 85 ldd r24, Y+12 ; 0x0c
  8133. 307a: 8c 70 andi r24, 0x0C ; 12
  8134. 307c: 19 f0 breq .+6 ; 0x3084 <vfprintf+0x1a8>
  8135. 307e: 01 11 cpse r16, r1
  8136. 3080: 43 c2 rjmp .+1158 ; 0x3508 <vfprintf+0x62c>
  8137. 3082: 80 c2 rjmp .+1280 ; 0x3584 <vfprintf+0x6a8>
  8138. 3084: 97 fe sbrs r9, 7
  8139. 3086: 10 c0 rjmp .+32 ; 0x30a8 <vfprintf+0x1cc>
  8140. 3088: 4c 0c add r4, r12
  8141. 308a: fc 85 ldd r31, Y+12 ; 0x0c
  8142. 308c: f4 ff sbrs r31, 4
  8143. 308e: 04 c0 rjmp .+8 ; 0x3098 <vfprintf+0x1bc>
  8144. 3090: 8a 81 ldd r24, Y+2 ; 0x02
  8145. 3092: 81 33 cpi r24, 0x31 ; 49
  8146. 3094: 09 f4 brne .+2 ; 0x3098 <vfprintf+0x1bc>
  8147. 3096: 4a 94 dec r4
  8148. 3098: 14 14 cp r1, r4
  8149. 309a: 74 f5 brge .+92 ; 0x30f8 <vfprintf+0x21c>
  8150. 309c: 28 e0 ldi r18, 0x08 ; 8
  8151. 309e: 24 15 cp r18, r4
  8152. 30a0: 78 f5 brcc .+94 ; 0x3100 <vfprintf+0x224>
  8153. 30a2: 88 e0 ldi r24, 0x08 ; 8
  8154. 30a4: 48 2e mov r4, r24
  8155. 30a6: 2c c0 rjmp .+88 ; 0x3100 <vfprintf+0x224>
  8156. 30a8: 96 fc sbrc r9, 6
  8157. 30aa: 2a c0 rjmp .+84 ; 0x3100 <vfprintf+0x224>
  8158. 30ac: 81 2f mov r24, r17
  8159. 30ae: 90 e0 ldi r25, 0x00 ; 0
  8160. 30b0: 8c 15 cp r24, r12
  8161. 30b2: 9d 05 cpc r25, r13
  8162. 30b4: 9c f0 brlt .+38 ; 0x30dc <vfprintf+0x200>
  8163. 30b6: 3c ef ldi r19, 0xFC ; 252
  8164. 30b8: c3 16 cp r12, r19
  8165. 30ba: 3f ef ldi r19, 0xFF ; 255
  8166. 30bc: d3 06 cpc r13, r19
  8167. 30be: 74 f0 brlt .+28 ; 0x30dc <vfprintf+0x200>
  8168. 30c0: 89 2d mov r24, r9
  8169. 30c2: 80 68 ori r24, 0x80 ; 128
  8170. 30c4: 98 2e mov r9, r24
  8171. 30c6: 0a c0 rjmp .+20 ; 0x30dc <vfprintf+0x200>
  8172. 30c8: e2 e0 ldi r30, 0x02 ; 2
  8173. 30ca: f0 e0 ldi r31, 0x00 ; 0
  8174. 30cc: ec 0f add r30, r28
  8175. 30ce: fd 1f adc r31, r29
  8176. 30d0: e1 0f add r30, r17
  8177. 30d2: f1 1d adc r31, r1
  8178. 30d4: 80 81 ld r24, Z
  8179. 30d6: 80 33 cpi r24, 0x30 ; 48
  8180. 30d8: 19 f4 brne .+6 ; 0x30e0 <vfprintf+0x204>
  8181. 30da: 11 50 subi r17, 0x01 ; 1
  8182. 30dc: 11 11 cpse r17, r1
  8183. 30de: f4 cf rjmp .-24 ; 0x30c8 <vfprintf+0x1ec>
  8184. 30e0: 97 fe sbrs r9, 7
  8185. 30e2: 0e c0 rjmp .+28 ; 0x3100 <vfprintf+0x224>
  8186. 30e4: 44 24 eor r4, r4
  8187. 30e6: 43 94 inc r4
  8188. 30e8: 41 0e add r4, r17
  8189. 30ea: 81 2f mov r24, r17
  8190. 30ec: 90 e0 ldi r25, 0x00 ; 0
  8191. 30ee: c8 16 cp r12, r24
  8192. 30f0: d9 06 cpc r13, r25
  8193. 30f2: 2c f4 brge .+10 ; 0x30fe <vfprintf+0x222>
  8194. 30f4: 1c 19 sub r17, r12
  8195. 30f6: 04 c0 rjmp .+8 ; 0x3100 <vfprintf+0x224>
  8196. 30f8: 44 24 eor r4, r4
  8197. 30fa: 43 94 inc r4
  8198. 30fc: 01 c0 rjmp .+2 ; 0x3100 <vfprintf+0x224>
  8199. 30fe: 10 e0 ldi r17, 0x00 ; 0
  8200. 3100: 97 fe sbrs r9, 7
  8201. 3102: 06 c0 rjmp .+12 ; 0x3110 <vfprintf+0x234>
  8202. 3104: 1c 14 cp r1, r12
  8203. 3106: 1d 04 cpc r1, r13
  8204. 3108: 34 f4 brge .+12 ; 0x3116 <vfprintf+0x23a>
  8205. 310a: c6 01 movw r24, r12
  8206. 310c: 01 96 adiw r24, 0x01 ; 1
  8207. 310e: 05 c0 rjmp .+10 ; 0x311a <vfprintf+0x23e>
  8208. 3110: 85 e0 ldi r24, 0x05 ; 5
  8209. 3112: 90 e0 ldi r25, 0x00 ; 0
  8210. 3114: 02 c0 rjmp .+4 ; 0x311a <vfprintf+0x23e>
  8211. 3116: 81 e0 ldi r24, 0x01 ; 1
  8212. 3118: 90 e0 ldi r25, 0x00 ; 0
  8213. 311a: 01 11 cpse r16, r1
  8214. 311c: 01 96 adiw r24, 0x01 ; 1
  8215. 311e: 11 23 and r17, r17
  8216. 3120: 31 f0 breq .+12 ; 0x312e <vfprintf+0x252>
  8217. 3122: 21 2f mov r18, r17
  8218. 3124: 30 e0 ldi r19, 0x00 ; 0
  8219. 3126: 2f 5f subi r18, 0xFF ; 255
  8220. 3128: 3f 4f sbci r19, 0xFF ; 255
  8221. 312a: 82 0f add r24, r18
  8222. 312c: 93 1f adc r25, r19
  8223. 312e: 25 2d mov r18, r5
  8224. 3130: 30 e0 ldi r19, 0x00 ; 0
  8225. 3132: 82 17 cp r24, r18
  8226. 3134: 93 07 cpc r25, r19
  8227. 3136: 14 f4 brge .+4 ; 0x313c <vfprintf+0x260>
  8228. 3138: 58 1a sub r5, r24
  8229. 313a: 01 c0 rjmp .+2 ; 0x313e <vfprintf+0x262>
  8230. 313c: 51 2c mov r5, r1
  8231. 313e: 89 2d mov r24, r9
  8232. 3140: 89 70 andi r24, 0x09 ; 9
  8233. 3142: 41 f4 brne .+16 ; 0x3154 <vfprintf+0x278>
  8234. 3144: 55 20 and r5, r5
  8235. 3146: 31 f0 breq .+12 ; 0x3154 <vfprintf+0x278>
  8236. 3148: b7 01 movw r22, r14
  8237. 314a: 80 e2 ldi r24, 0x20 ; 32
  8238. 314c: 90 e0 ldi r25, 0x00 ; 0
  8239. 314e: ee d4 rcall .+2524 ; 0x3b2c <fputc>
  8240. 3150: 5a 94 dec r5
  8241. 3152: f8 cf rjmp .-16 ; 0x3144 <vfprintf+0x268>
  8242. 3154: 00 23 and r16, r16
  8243. 3156: 21 f0 breq .+8 ; 0x3160 <vfprintf+0x284>
  8244. 3158: b7 01 movw r22, r14
  8245. 315a: 80 2f mov r24, r16
  8246. 315c: 90 e0 ldi r25, 0x00 ; 0
  8247. 315e: e6 d4 rcall .+2508 ; 0x3b2c <fputc>
  8248. 3160: 93 fc sbrc r9, 3
  8249. 3162: 08 c0 rjmp .+16 ; 0x3174 <vfprintf+0x298>
  8250. 3164: 55 20 and r5, r5
  8251. 3166: 31 f0 breq .+12 ; 0x3174 <vfprintf+0x298>
  8252. 3168: b7 01 movw r22, r14
  8253. 316a: 80 e3 ldi r24, 0x30 ; 48
  8254. 316c: 90 e0 ldi r25, 0x00 ; 0
  8255. 316e: de d4 rcall .+2492 ; 0x3b2c <fputc>
  8256. 3170: 5a 94 dec r5
  8257. 3172: f8 cf rjmp .-16 ; 0x3164 <vfprintf+0x288>
  8258. 3174: 97 fe sbrs r9, 7
  8259. 3176: 4a c0 rjmp .+148 ; 0x320c <vfprintf+0x330>
  8260. 3178: 46 01 movw r8, r12
  8261. 317a: d7 fe sbrs r13, 7
  8262. 317c: 02 c0 rjmp .+4 ; 0x3182 <vfprintf+0x2a6>
  8263. 317e: 81 2c mov r8, r1
  8264. 3180: 91 2c mov r9, r1
  8265. 3182: c6 01 movw r24, r12
  8266. 3184: 88 19 sub r24, r8
  8267. 3186: 99 09 sbc r25, r9
  8268. 3188: f3 01 movw r30, r6
  8269. 318a: e8 0f add r30, r24
  8270. 318c: f9 1f adc r31, r25
  8271. 318e: fe 87 std Y+14, r31 ; 0x0e
  8272. 3190: ed 87 std Y+13, r30 ; 0x0d
  8273. 3192: 96 01 movw r18, r12
  8274. 3194: 24 19 sub r18, r4
  8275. 3196: 31 09 sbc r19, r1
  8276. 3198: 38 8b std Y+16, r19 ; 0x10
  8277. 319a: 2f 87 std Y+15, r18 ; 0x0f
  8278. 319c: 01 2f mov r16, r17
  8279. 319e: 10 e0 ldi r17, 0x00 ; 0
  8280. 31a0: 11 95 neg r17
  8281. 31a2: 01 95 neg r16
  8282. 31a4: 11 09 sbc r17, r1
  8283. 31a6: 3f ef ldi r19, 0xFF ; 255
  8284. 31a8: 83 16 cp r8, r19
  8285. 31aa: 93 06 cpc r9, r19
  8286. 31ac: 21 f4 brne .+8 ; 0x31b6 <vfprintf+0x2da>
  8287. 31ae: b7 01 movw r22, r14
  8288. 31b0: 8e e2 ldi r24, 0x2E ; 46
  8289. 31b2: 90 e0 ldi r25, 0x00 ; 0
  8290. 31b4: bb d4 rcall .+2422 ; 0x3b2c <fputc>
  8291. 31b6: c8 14 cp r12, r8
  8292. 31b8: d9 04 cpc r13, r9
  8293. 31ba: 4c f0 brlt .+18 ; 0x31ce <vfprintf+0x2f2>
  8294. 31bc: 8f 85 ldd r24, Y+15 ; 0x0f
  8295. 31be: 98 89 ldd r25, Y+16 ; 0x10
  8296. 31c0: 88 15 cp r24, r8
  8297. 31c2: 99 05 cpc r25, r9
  8298. 31c4: 24 f4 brge .+8 ; 0x31ce <vfprintf+0x2f2>
  8299. 31c6: ed 85 ldd r30, Y+13 ; 0x0d
  8300. 31c8: fe 85 ldd r31, Y+14 ; 0x0e
  8301. 31ca: 81 81 ldd r24, Z+1 ; 0x01
  8302. 31cc: 01 c0 rjmp .+2 ; 0x31d0 <vfprintf+0x2f4>
  8303. 31ce: 80 e3 ldi r24, 0x30 ; 48
  8304. 31d0: f1 e0 ldi r31, 0x01 ; 1
  8305. 31d2: 8f 1a sub r8, r31
  8306. 31d4: 91 08 sbc r9, r1
  8307. 31d6: 2d 85 ldd r18, Y+13 ; 0x0d
  8308. 31d8: 3e 85 ldd r19, Y+14 ; 0x0e
  8309. 31da: 2f 5f subi r18, 0xFF ; 255
  8310. 31dc: 3f 4f sbci r19, 0xFF ; 255
  8311. 31de: 3e 87 std Y+14, r19 ; 0x0e
  8312. 31e0: 2d 87 std Y+13, r18 ; 0x0d
  8313. 31e2: 80 16 cp r8, r16
  8314. 31e4: 91 06 cpc r9, r17
  8315. 31e6: 24 f0 brlt .+8 ; 0x31f0 <vfprintf+0x314>
  8316. 31e8: b7 01 movw r22, r14
  8317. 31ea: 90 e0 ldi r25, 0x00 ; 0
  8318. 31ec: 9f d4 rcall .+2366 ; 0x3b2c <fputc>
  8319. 31ee: db cf rjmp .-74 ; 0x31a6 <vfprintf+0x2ca>
  8320. 31f0: c8 14 cp r12, r8
  8321. 31f2: d9 04 cpc r13, r9
  8322. 31f4: 41 f4 brne .+16 ; 0x3206 <vfprintf+0x32a>
  8323. 31f6: 9a 81 ldd r25, Y+2 ; 0x02
  8324. 31f8: 96 33 cpi r25, 0x36 ; 54
  8325. 31fa: 20 f4 brcc .+8 ; 0x3204 <vfprintf+0x328>
  8326. 31fc: 95 33 cpi r25, 0x35 ; 53
  8327. 31fe: 19 f4 brne .+6 ; 0x3206 <vfprintf+0x32a>
  8328. 3200: 3c 85 ldd r19, Y+12 ; 0x0c
  8329. 3202: 34 ff sbrs r19, 4
  8330. 3204: 81 e3 ldi r24, 0x31 ; 49
  8331. 3206: b7 01 movw r22, r14
  8332. 3208: 90 e0 ldi r25, 0x00 ; 0
  8333. 320a: 48 c0 rjmp .+144 ; 0x329c <vfprintf+0x3c0>
  8334. 320c: 8a 81 ldd r24, Y+2 ; 0x02
  8335. 320e: 81 33 cpi r24, 0x31 ; 49
  8336. 3210: 19 f0 breq .+6 ; 0x3218 <vfprintf+0x33c>
  8337. 3212: 9c 85 ldd r25, Y+12 ; 0x0c
  8338. 3214: 9f 7e andi r25, 0xEF ; 239
  8339. 3216: 9c 87 std Y+12, r25 ; 0x0c
  8340. 3218: b7 01 movw r22, r14
  8341. 321a: 90 e0 ldi r25, 0x00 ; 0
  8342. 321c: 87 d4 rcall .+2318 ; 0x3b2c <fputc>
  8343. 321e: 11 11 cpse r17, r1
  8344. 3220: 05 c0 rjmp .+10 ; 0x322c <vfprintf+0x350>
  8345. 3222: 94 fc sbrc r9, 4
  8346. 3224: 16 c0 rjmp .+44 ; 0x3252 <vfprintf+0x376>
  8347. 3226: 85 e6 ldi r24, 0x65 ; 101
  8348. 3228: 90 e0 ldi r25, 0x00 ; 0
  8349. 322a: 15 c0 rjmp .+42 ; 0x3256 <vfprintf+0x37a>
  8350. 322c: b7 01 movw r22, r14
  8351. 322e: 8e e2 ldi r24, 0x2E ; 46
  8352. 3230: 90 e0 ldi r25, 0x00 ; 0
  8353. 3232: 7c d4 rcall .+2296 ; 0x3b2c <fputc>
  8354. 3234: 1e 5f subi r17, 0xFE ; 254
  8355. 3236: 82 e0 ldi r24, 0x02 ; 2
  8356. 3238: 01 e0 ldi r16, 0x01 ; 1
  8357. 323a: 08 0f add r16, r24
  8358. 323c: f3 01 movw r30, r6
  8359. 323e: e8 0f add r30, r24
  8360. 3240: f1 1d adc r31, r1
  8361. 3242: 80 81 ld r24, Z
  8362. 3244: b7 01 movw r22, r14
  8363. 3246: 90 e0 ldi r25, 0x00 ; 0
  8364. 3248: 71 d4 rcall .+2274 ; 0x3b2c <fputc>
  8365. 324a: 80 2f mov r24, r16
  8366. 324c: 01 13 cpse r16, r17
  8367. 324e: f4 cf rjmp .-24 ; 0x3238 <vfprintf+0x35c>
  8368. 3250: e8 cf rjmp .-48 ; 0x3222 <vfprintf+0x346>
  8369. 3252: 85 e4 ldi r24, 0x45 ; 69
  8370. 3254: 90 e0 ldi r25, 0x00 ; 0
  8371. 3256: b7 01 movw r22, r14
  8372. 3258: 69 d4 rcall .+2258 ; 0x3b2c <fputc>
  8373. 325a: d7 fc sbrc r13, 7
  8374. 325c: 06 c0 rjmp .+12 ; 0x326a <vfprintf+0x38e>
  8375. 325e: c1 14 cp r12, r1
  8376. 3260: d1 04 cpc r13, r1
  8377. 3262: 41 f4 brne .+16 ; 0x3274 <vfprintf+0x398>
  8378. 3264: ec 85 ldd r30, Y+12 ; 0x0c
  8379. 3266: e4 ff sbrs r30, 4
  8380. 3268: 05 c0 rjmp .+10 ; 0x3274 <vfprintf+0x398>
  8381. 326a: d1 94 neg r13
  8382. 326c: c1 94 neg r12
  8383. 326e: d1 08 sbc r13, r1
  8384. 3270: 8d e2 ldi r24, 0x2D ; 45
  8385. 3272: 01 c0 rjmp .+2 ; 0x3276 <vfprintf+0x39a>
  8386. 3274: 8b e2 ldi r24, 0x2B ; 43
  8387. 3276: b7 01 movw r22, r14
  8388. 3278: 90 e0 ldi r25, 0x00 ; 0
  8389. 327a: 58 d4 rcall .+2224 ; 0x3b2c <fputc>
  8390. 327c: 80 e3 ldi r24, 0x30 ; 48
  8391. 327e: 2a e0 ldi r18, 0x0A ; 10
  8392. 3280: c2 16 cp r12, r18
  8393. 3282: d1 04 cpc r13, r1
  8394. 3284: 2c f0 brlt .+10 ; 0x3290 <vfprintf+0x3b4>
  8395. 3286: 8f 5f subi r24, 0xFF ; 255
  8396. 3288: fa e0 ldi r31, 0x0A ; 10
  8397. 328a: cf 1a sub r12, r31
  8398. 328c: d1 08 sbc r13, r1
  8399. 328e: f7 cf rjmp .-18 ; 0x327e <vfprintf+0x3a2>
  8400. 3290: b7 01 movw r22, r14
  8401. 3292: 90 e0 ldi r25, 0x00 ; 0
  8402. 3294: 4b d4 rcall .+2198 ; 0x3b2c <fputc>
  8403. 3296: b7 01 movw r22, r14
  8404. 3298: c6 01 movw r24, r12
  8405. 329a: c0 96 adiw r24, 0x30 ; 48
  8406. 329c: 47 d4 rcall .+2190 ; 0x3b2c <fputc>
  8407. 329e: 49 c1 rjmp .+658 ; 0x3532 <vfprintf+0x656>
  8408. 32a0: 83 36 cpi r24, 0x63 ; 99
  8409. 32a2: 31 f0 breq .+12 ; 0x32b0 <vfprintf+0x3d4>
  8410. 32a4: 83 37 cpi r24, 0x73 ; 115
  8411. 32a6: 79 f0 breq .+30 ; 0x32c6 <vfprintf+0x3ea>
  8412. 32a8: 83 35 cpi r24, 0x53 ; 83
  8413. 32aa: 09 f0 breq .+2 ; 0x32ae <vfprintf+0x3d2>
  8414. 32ac: 52 c0 rjmp .+164 ; 0x3352 <vfprintf+0x476>
  8415. 32ae: 1f c0 rjmp .+62 ; 0x32ee <vfprintf+0x412>
  8416. 32b0: 56 01 movw r10, r12
  8417. 32b2: 32 e0 ldi r19, 0x02 ; 2
  8418. 32b4: a3 0e add r10, r19
  8419. 32b6: b1 1c adc r11, r1
  8420. 32b8: f6 01 movw r30, r12
  8421. 32ba: 80 81 ld r24, Z
  8422. 32bc: 89 83 std Y+1, r24 ; 0x01
  8423. 32be: 01 e0 ldi r16, 0x01 ; 1
  8424. 32c0: 10 e0 ldi r17, 0x00 ; 0
  8425. 32c2: 63 01 movw r12, r6
  8426. 32c4: 11 c0 rjmp .+34 ; 0x32e8 <vfprintf+0x40c>
  8427. 32c6: 56 01 movw r10, r12
  8428. 32c8: f2 e0 ldi r31, 0x02 ; 2
  8429. 32ca: af 0e add r10, r31
  8430. 32cc: b1 1c adc r11, r1
  8431. 32ce: f6 01 movw r30, r12
  8432. 32d0: c0 80 ld r12, Z
  8433. 32d2: d1 80 ldd r13, Z+1 ; 0x01
  8434. 32d4: 96 fe sbrs r9, 6
  8435. 32d6: 03 c0 rjmp .+6 ; 0x32de <vfprintf+0x402>
  8436. 32d8: 61 2f mov r22, r17
  8437. 32da: 70 e0 ldi r23, 0x00 ; 0
  8438. 32dc: 02 c0 rjmp .+4 ; 0x32e2 <vfprintf+0x406>
  8439. 32de: 6f ef ldi r22, 0xFF ; 255
  8440. 32e0: 7f ef ldi r23, 0xFF ; 255
  8441. 32e2: c6 01 movw r24, r12
  8442. 32e4: 09 d4 rcall .+2066 ; 0x3af8 <strnlen>
  8443. 32e6: 8c 01 movw r16, r24
  8444. 32e8: f9 2d mov r31, r9
  8445. 32ea: ff 77 andi r31, 0x7F ; 127
  8446. 32ec: 13 c0 rjmp .+38 ; 0x3314 <vfprintf+0x438>
  8447. 32ee: 56 01 movw r10, r12
  8448. 32f0: 22 e0 ldi r18, 0x02 ; 2
  8449. 32f2: a2 0e add r10, r18
  8450. 32f4: b1 1c adc r11, r1
  8451. 32f6: f6 01 movw r30, r12
  8452. 32f8: c0 80 ld r12, Z
  8453. 32fa: d1 80 ldd r13, Z+1 ; 0x01
  8454. 32fc: 96 fe sbrs r9, 6
  8455. 32fe: 03 c0 rjmp .+6 ; 0x3306 <vfprintf+0x42a>
  8456. 3300: 61 2f mov r22, r17
  8457. 3302: 70 e0 ldi r23, 0x00 ; 0
  8458. 3304: 02 c0 rjmp .+4 ; 0x330a <vfprintf+0x42e>
  8459. 3306: 6f ef ldi r22, 0xFF ; 255
  8460. 3308: 7f ef ldi r23, 0xFF ; 255
  8461. 330a: c6 01 movw r24, r12
  8462. 330c: cb d3 rcall .+1942 ; 0x3aa4 <strnlen_P>
  8463. 330e: 8c 01 movw r16, r24
  8464. 3310: f9 2d mov r31, r9
  8465. 3312: f0 68 ori r31, 0x80 ; 128
  8466. 3314: 9f 2e mov r9, r31
  8467. 3316: f3 fd sbrc r31, 3
  8468. 3318: 18 c0 rjmp .+48 ; 0x334a <vfprintf+0x46e>
  8469. 331a: 85 2d mov r24, r5
  8470. 331c: 90 e0 ldi r25, 0x00 ; 0
  8471. 331e: 08 17 cp r16, r24
  8472. 3320: 19 07 cpc r17, r25
  8473. 3322: 98 f4 brcc .+38 ; 0x334a <vfprintf+0x46e>
  8474. 3324: b7 01 movw r22, r14
  8475. 3326: 80 e2 ldi r24, 0x20 ; 32
  8476. 3328: 90 e0 ldi r25, 0x00 ; 0
  8477. 332a: 00 d4 rcall .+2048 ; 0x3b2c <fputc>
  8478. 332c: 5a 94 dec r5
  8479. 332e: f5 cf rjmp .-22 ; 0x331a <vfprintf+0x43e>
  8480. 3330: f6 01 movw r30, r12
  8481. 3332: 97 fc sbrc r9, 7
  8482. 3334: 85 91 lpm r24, Z+
  8483. 3336: 97 fe sbrs r9, 7
  8484. 3338: 81 91 ld r24, Z+
  8485. 333a: 6f 01 movw r12, r30
  8486. 333c: b7 01 movw r22, r14
  8487. 333e: 90 e0 ldi r25, 0x00 ; 0
  8488. 3340: f5 d3 rcall .+2026 ; 0x3b2c <fputc>
  8489. 3342: 51 10 cpse r5, r1
  8490. 3344: 5a 94 dec r5
  8491. 3346: 01 50 subi r16, 0x01 ; 1
  8492. 3348: 11 09 sbc r17, r1
  8493. 334a: 01 15 cp r16, r1
  8494. 334c: 11 05 cpc r17, r1
  8495. 334e: 81 f7 brne .-32 ; 0x3330 <vfprintf+0x454>
  8496. 3350: f0 c0 rjmp .+480 ; 0x3532 <vfprintf+0x656>
  8497. 3352: 84 36 cpi r24, 0x64 ; 100
  8498. 3354: 11 f0 breq .+4 ; 0x335a <vfprintf+0x47e>
  8499. 3356: 89 36 cpi r24, 0x69 ; 105
  8500. 3358: 59 f5 brne .+86 ; 0x33b0 <vfprintf+0x4d4>
  8501. 335a: 56 01 movw r10, r12
  8502. 335c: 97 fe sbrs r9, 7
  8503. 335e: 09 c0 rjmp .+18 ; 0x3372 <vfprintf+0x496>
  8504. 3360: 24 e0 ldi r18, 0x04 ; 4
  8505. 3362: a2 0e add r10, r18
  8506. 3364: b1 1c adc r11, r1
  8507. 3366: f6 01 movw r30, r12
  8508. 3368: 60 81 ld r22, Z
  8509. 336a: 71 81 ldd r23, Z+1 ; 0x01
  8510. 336c: 82 81 ldd r24, Z+2 ; 0x02
  8511. 336e: 93 81 ldd r25, Z+3 ; 0x03
  8512. 3370: 0a c0 rjmp .+20 ; 0x3386 <vfprintf+0x4aa>
  8513. 3372: f2 e0 ldi r31, 0x02 ; 2
  8514. 3374: af 0e add r10, r31
  8515. 3376: b1 1c adc r11, r1
  8516. 3378: f6 01 movw r30, r12
  8517. 337a: 60 81 ld r22, Z
  8518. 337c: 71 81 ldd r23, Z+1 ; 0x01
  8519. 337e: 07 2e mov r0, r23
  8520. 3380: 00 0c add r0, r0
  8521. 3382: 88 0b sbc r24, r24
  8522. 3384: 99 0b sbc r25, r25
  8523. 3386: f9 2d mov r31, r9
  8524. 3388: ff 76 andi r31, 0x6F ; 111
  8525. 338a: 9f 2e mov r9, r31
  8526. 338c: 97 ff sbrs r25, 7
  8527. 338e: 09 c0 rjmp .+18 ; 0x33a2 <vfprintf+0x4c6>
  8528. 3390: 90 95 com r25
  8529. 3392: 80 95 com r24
  8530. 3394: 70 95 com r23
  8531. 3396: 61 95 neg r22
  8532. 3398: 7f 4f sbci r23, 0xFF ; 255
  8533. 339a: 8f 4f sbci r24, 0xFF ; 255
  8534. 339c: 9f 4f sbci r25, 0xFF ; 255
  8535. 339e: f0 68 ori r31, 0x80 ; 128
  8536. 33a0: 9f 2e mov r9, r31
  8537. 33a2: 2a e0 ldi r18, 0x0A ; 10
  8538. 33a4: 30 e0 ldi r19, 0x00 ; 0
  8539. 33a6: a3 01 movw r20, r6
  8540. 33a8: 2f d4 rcall .+2142 ; 0x3c08 <__ultoa_invert>
  8541. 33aa: c8 2e mov r12, r24
  8542. 33ac: c6 18 sub r12, r6
  8543. 33ae: 3e c0 rjmp .+124 ; 0x342c <vfprintf+0x550>
  8544. 33b0: 09 2d mov r16, r9
  8545. 33b2: 85 37 cpi r24, 0x75 ; 117
  8546. 33b4: 21 f4 brne .+8 ; 0x33be <vfprintf+0x4e2>
  8547. 33b6: 0f 7e andi r16, 0xEF ; 239
  8548. 33b8: 2a e0 ldi r18, 0x0A ; 10
  8549. 33ba: 30 e0 ldi r19, 0x00 ; 0
  8550. 33bc: 1d c0 rjmp .+58 ; 0x33f8 <vfprintf+0x51c>
  8551. 33be: 09 7f andi r16, 0xF9 ; 249
  8552. 33c0: 8f 36 cpi r24, 0x6F ; 111
  8553. 33c2: 91 f0 breq .+36 ; 0x33e8 <vfprintf+0x50c>
  8554. 33c4: 18 f4 brcc .+6 ; 0x33cc <vfprintf+0x4f0>
  8555. 33c6: 88 35 cpi r24, 0x58 ; 88
  8556. 33c8: 59 f0 breq .+22 ; 0x33e0 <vfprintf+0x504>
  8557. 33ca: bc c0 rjmp .+376 ; 0x3544 <vfprintf+0x668>
  8558. 33cc: 80 37 cpi r24, 0x70 ; 112
  8559. 33ce: 19 f0 breq .+6 ; 0x33d6 <vfprintf+0x4fa>
  8560. 33d0: 88 37 cpi r24, 0x78 ; 120
  8561. 33d2: 11 f0 breq .+4 ; 0x33d8 <vfprintf+0x4fc>
  8562. 33d4: b7 c0 rjmp .+366 ; 0x3544 <vfprintf+0x668>
  8563. 33d6: 00 61 ori r16, 0x10 ; 16
  8564. 33d8: 04 ff sbrs r16, 4
  8565. 33da: 09 c0 rjmp .+18 ; 0x33ee <vfprintf+0x512>
  8566. 33dc: 04 60 ori r16, 0x04 ; 4
  8567. 33de: 07 c0 rjmp .+14 ; 0x33ee <vfprintf+0x512>
  8568. 33e0: 94 fe sbrs r9, 4
  8569. 33e2: 08 c0 rjmp .+16 ; 0x33f4 <vfprintf+0x518>
  8570. 33e4: 06 60 ori r16, 0x06 ; 6
  8571. 33e6: 06 c0 rjmp .+12 ; 0x33f4 <vfprintf+0x518>
  8572. 33e8: 28 e0 ldi r18, 0x08 ; 8
  8573. 33ea: 30 e0 ldi r19, 0x00 ; 0
  8574. 33ec: 05 c0 rjmp .+10 ; 0x33f8 <vfprintf+0x51c>
  8575. 33ee: 20 e1 ldi r18, 0x10 ; 16
  8576. 33f0: 30 e0 ldi r19, 0x00 ; 0
  8577. 33f2: 02 c0 rjmp .+4 ; 0x33f8 <vfprintf+0x51c>
  8578. 33f4: 20 e1 ldi r18, 0x10 ; 16
  8579. 33f6: 32 e0 ldi r19, 0x02 ; 2
  8580. 33f8: 56 01 movw r10, r12
  8581. 33fa: 07 ff sbrs r16, 7
  8582. 33fc: 09 c0 rjmp .+18 ; 0x3410 <vfprintf+0x534>
  8583. 33fe: 84 e0 ldi r24, 0x04 ; 4
  8584. 3400: a8 0e add r10, r24
  8585. 3402: b1 1c adc r11, r1
  8586. 3404: f6 01 movw r30, r12
  8587. 3406: 60 81 ld r22, Z
  8588. 3408: 71 81 ldd r23, Z+1 ; 0x01
  8589. 340a: 82 81 ldd r24, Z+2 ; 0x02
  8590. 340c: 93 81 ldd r25, Z+3 ; 0x03
  8591. 340e: 08 c0 rjmp .+16 ; 0x3420 <vfprintf+0x544>
  8592. 3410: f2 e0 ldi r31, 0x02 ; 2
  8593. 3412: af 0e add r10, r31
  8594. 3414: b1 1c adc r11, r1
  8595. 3416: f6 01 movw r30, r12
  8596. 3418: 60 81 ld r22, Z
  8597. 341a: 71 81 ldd r23, Z+1 ; 0x01
  8598. 341c: 80 e0 ldi r24, 0x00 ; 0
  8599. 341e: 90 e0 ldi r25, 0x00 ; 0
  8600. 3420: a3 01 movw r20, r6
  8601. 3422: f2 d3 rcall .+2020 ; 0x3c08 <__ultoa_invert>
  8602. 3424: c8 2e mov r12, r24
  8603. 3426: c6 18 sub r12, r6
  8604. 3428: 0f 77 andi r16, 0x7F ; 127
  8605. 342a: 90 2e mov r9, r16
  8606. 342c: 96 fe sbrs r9, 6
  8607. 342e: 0b c0 rjmp .+22 ; 0x3446 <vfprintf+0x56a>
  8608. 3430: 09 2d mov r16, r9
  8609. 3432: 0e 7f andi r16, 0xFE ; 254
  8610. 3434: c1 16 cp r12, r17
  8611. 3436: 50 f4 brcc .+20 ; 0x344c <vfprintf+0x570>
  8612. 3438: 94 fe sbrs r9, 4
  8613. 343a: 0a c0 rjmp .+20 ; 0x3450 <vfprintf+0x574>
  8614. 343c: 92 fc sbrc r9, 2
  8615. 343e: 08 c0 rjmp .+16 ; 0x3450 <vfprintf+0x574>
  8616. 3440: 09 2d mov r16, r9
  8617. 3442: 0e 7e andi r16, 0xEE ; 238
  8618. 3444: 05 c0 rjmp .+10 ; 0x3450 <vfprintf+0x574>
  8619. 3446: dc 2c mov r13, r12
  8620. 3448: 09 2d mov r16, r9
  8621. 344a: 03 c0 rjmp .+6 ; 0x3452 <vfprintf+0x576>
  8622. 344c: dc 2c mov r13, r12
  8623. 344e: 01 c0 rjmp .+2 ; 0x3452 <vfprintf+0x576>
  8624. 3450: d1 2e mov r13, r17
  8625. 3452: 04 ff sbrs r16, 4
  8626. 3454: 0d c0 rjmp .+26 ; 0x3470 <vfprintf+0x594>
  8627. 3456: fe 01 movw r30, r28
  8628. 3458: ec 0d add r30, r12
  8629. 345a: f1 1d adc r31, r1
  8630. 345c: 80 81 ld r24, Z
  8631. 345e: 80 33 cpi r24, 0x30 ; 48
  8632. 3460: 11 f4 brne .+4 ; 0x3466 <vfprintf+0x58a>
  8633. 3462: 09 7e andi r16, 0xE9 ; 233
  8634. 3464: 09 c0 rjmp .+18 ; 0x3478 <vfprintf+0x59c>
  8635. 3466: 02 ff sbrs r16, 2
  8636. 3468: 06 c0 rjmp .+12 ; 0x3476 <vfprintf+0x59a>
  8637. 346a: d3 94 inc r13
  8638. 346c: d3 94 inc r13
  8639. 346e: 04 c0 rjmp .+8 ; 0x3478 <vfprintf+0x59c>
  8640. 3470: 80 2f mov r24, r16
  8641. 3472: 86 78 andi r24, 0x86 ; 134
  8642. 3474: 09 f0 breq .+2 ; 0x3478 <vfprintf+0x59c>
  8643. 3476: d3 94 inc r13
  8644. 3478: 03 fd sbrc r16, 3
  8645. 347a: 10 c0 rjmp .+32 ; 0x349c <vfprintf+0x5c0>
  8646. 347c: 00 ff sbrs r16, 0
  8647. 347e: 06 c0 rjmp .+12 ; 0x348c <vfprintf+0x5b0>
  8648. 3480: 1c 2d mov r17, r12
  8649. 3482: d5 14 cp r13, r5
  8650. 3484: 78 f4 brcc .+30 ; 0x34a4 <vfprintf+0x5c8>
  8651. 3486: 15 0d add r17, r5
  8652. 3488: 1d 19 sub r17, r13
  8653. 348a: 0c c0 rjmp .+24 ; 0x34a4 <vfprintf+0x5c8>
  8654. 348c: d5 14 cp r13, r5
  8655. 348e: 50 f4 brcc .+20 ; 0x34a4 <vfprintf+0x5c8>
  8656. 3490: b7 01 movw r22, r14
  8657. 3492: 80 e2 ldi r24, 0x20 ; 32
  8658. 3494: 90 e0 ldi r25, 0x00 ; 0
  8659. 3496: 4a d3 rcall .+1684 ; 0x3b2c <fputc>
  8660. 3498: d3 94 inc r13
  8661. 349a: f8 cf rjmp .-16 ; 0x348c <vfprintf+0x5b0>
  8662. 349c: d5 14 cp r13, r5
  8663. 349e: 10 f4 brcc .+4 ; 0x34a4 <vfprintf+0x5c8>
  8664. 34a0: 5d 18 sub r5, r13
  8665. 34a2: 01 c0 rjmp .+2 ; 0x34a6 <vfprintf+0x5ca>
  8666. 34a4: 51 2c mov r5, r1
  8667. 34a6: 04 ff sbrs r16, 4
  8668. 34a8: 0f c0 rjmp .+30 ; 0x34c8 <vfprintf+0x5ec>
  8669. 34aa: b7 01 movw r22, r14
  8670. 34ac: 80 e3 ldi r24, 0x30 ; 48
  8671. 34ae: 90 e0 ldi r25, 0x00 ; 0
  8672. 34b0: 3d d3 rcall .+1658 ; 0x3b2c <fputc>
  8673. 34b2: 02 ff sbrs r16, 2
  8674. 34b4: 16 c0 rjmp .+44 ; 0x34e2 <vfprintf+0x606>
  8675. 34b6: 01 fd sbrc r16, 1
  8676. 34b8: 03 c0 rjmp .+6 ; 0x34c0 <vfprintf+0x5e4>
  8677. 34ba: 88 e7 ldi r24, 0x78 ; 120
  8678. 34bc: 90 e0 ldi r25, 0x00 ; 0
  8679. 34be: 02 c0 rjmp .+4 ; 0x34c4 <vfprintf+0x5e8>
  8680. 34c0: 88 e5 ldi r24, 0x58 ; 88
  8681. 34c2: 90 e0 ldi r25, 0x00 ; 0
  8682. 34c4: b7 01 movw r22, r14
  8683. 34c6: 0c c0 rjmp .+24 ; 0x34e0 <vfprintf+0x604>
  8684. 34c8: 80 2f mov r24, r16
  8685. 34ca: 86 78 andi r24, 0x86 ; 134
  8686. 34cc: 51 f0 breq .+20 ; 0x34e2 <vfprintf+0x606>
  8687. 34ce: 01 ff sbrs r16, 1
  8688. 34d0: 02 c0 rjmp .+4 ; 0x34d6 <vfprintf+0x5fa>
  8689. 34d2: 8b e2 ldi r24, 0x2B ; 43
  8690. 34d4: 01 c0 rjmp .+2 ; 0x34d8 <vfprintf+0x5fc>
  8691. 34d6: 80 e2 ldi r24, 0x20 ; 32
  8692. 34d8: 07 fd sbrc r16, 7
  8693. 34da: 8d e2 ldi r24, 0x2D ; 45
  8694. 34dc: b7 01 movw r22, r14
  8695. 34de: 90 e0 ldi r25, 0x00 ; 0
  8696. 34e0: 25 d3 rcall .+1610 ; 0x3b2c <fputc>
  8697. 34e2: c1 16 cp r12, r17
  8698. 34e4: 30 f4 brcc .+12 ; 0x34f2 <vfprintf+0x616>
  8699. 34e6: b7 01 movw r22, r14
  8700. 34e8: 80 e3 ldi r24, 0x30 ; 48
  8701. 34ea: 90 e0 ldi r25, 0x00 ; 0
  8702. 34ec: 1f d3 rcall .+1598 ; 0x3b2c <fputc>
  8703. 34ee: 11 50 subi r17, 0x01 ; 1
  8704. 34f0: f8 cf rjmp .-16 ; 0x34e2 <vfprintf+0x606>
  8705. 34f2: ca 94 dec r12
  8706. 34f4: f3 01 movw r30, r6
  8707. 34f6: ec 0d add r30, r12
  8708. 34f8: f1 1d adc r31, r1
  8709. 34fa: 80 81 ld r24, Z
  8710. 34fc: b7 01 movw r22, r14
  8711. 34fe: 90 e0 ldi r25, 0x00 ; 0
  8712. 3500: 15 d3 rcall .+1578 ; 0x3b2c <fputc>
  8713. 3502: c1 10 cpse r12, r1
  8714. 3504: f6 cf rjmp .-20 ; 0x34f2 <vfprintf+0x616>
  8715. 3506: 15 c0 rjmp .+42 ; 0x3532 <vfprintf+0x656>
  8716. 3508: f4 e0 ldi r31, 0x04 ; 4
  8717. 350a: f5 15 cp r31, r5
  8718. 350c: 50 f5 brcc .+84 ; 0x3562 <vfprintf+0x686>
  8719. 350e: 84 e0 ldi r24, 0x04 ; 4
  8720. 3510: 58 1a sub r5, r24
  8721. 3512: 93 fe sbrs r9, 3
  8722. 3514: 1e c0 rjmp .+60 ; 0x3552 <vfprintf+0x676>
  8723. 3516: 01 11 cpse r16, r1
  8724. 3518: 25 c0 rjmp .+74 ; 0x3564 <vfprintf+0x688>
  8725. 351a: 2c 85 ldd r18, Y+12 ; 0x0c
  8726. 351c: 23 ff sbrs r18, 3
  8727. 351e: 27 c0 rjmp .+78 ; 0x356e <vfprintf+0x692>
  8728. 3520: 00 e9 ldi r16, 0x90 ; 144
  8729. 3522: 10 e0 ldi r17, 0x00 ; 0
  8730. 3524: 39 2d mov r19, r9
  8731. 3526: 30 71 andi r19, 0x10 ; 16
  8732. 3528: 93 2e mov r9, r19
  8733. 352a: f8 01 movw r30, r16
  8734. 352c: 84 91 lpm r24, Z
  8735. 352e: 81 11 cpse r24, r1
  8736. 3530: 21 c0 rjmp .+66 ; 0x3574 <vfprintf+0x698>
  8737. 3532: 55 20 and r5, r5
  8738. 3534: 09 f4 brne .+2 ; 0x3538 <vfprintf+0x65c>
  8739. 3536: fc cc rjmp .-1544 ; 0x2f30 <vfprintf+0x54>
  8740. 3538: b7 01 movw r22, r14
  8741. 353a: 80 e2 ldi r24, 0x20 ; 32
  8742. 353c: 90 e0 ldi r25, 0x00 ; 0
  8743. 353e: f6 d2 rcall .+1516 ; 0x3b2c <fputc>
  8744. 3540: 5a 94 dec r5
  8745. 3542: f7 cf rjmp .-18 ; 0x3532 <vfprintf+0x656>
  8746. 3544: f7 01 movw r30, r14
  8747. 3546: 86 81 ldd r24, Z+6 ; 0x06
  8748. 3548: 97 81 ldd r25, Z+7 ; 0x07
  8749. 354a: 23 c0 rjmp .+70 ; 0x3592 <vfprintf+0x6b6>
  8750. 354c: 8f ef ldi r24, 0xFF ; 255
  8751. 354e: 9f ef ldi r25, 0xFF ; 255
  8752. 3550: 20 c0 rjmp .+64 ; 0x3592 <vfprintf+0x6b6>
  8753. 3552: b7 01 movw r22, r14
  8754. 3554: 80 e2 ldi r24, 0x20 ; 32
  8755. 3556: 90 e0 ldi r25, 0x00 ; 0
  8756. 3558: e9 d2 rcall .+1490 ; 0x3b2c <fputc>
  8757. 355a: 5a 94 dec r5
  8758. 355c: 51 10 cpse r5, r1
  8759. 355e: f9 cf rjmp .-14 ; 0x3552 <vfprintf+0x676>
  8760. 3560: da cf rjmp .-76 ; 0x3516 <vfprintf+0x63a>
  8761. 3562: 51 2c mov r5, r1
  8762. 3564: b7 01 movw r22, r14
  8763. 3566: 80 2f mov r24, r16
  8764. 3568: 90 e0 ldi r25, 0x00 ; 0
  8765. 356a: e0 d2 rcall .+1472 ; 0x3b2c <fputc>
  8766. 356c: d6 cf rjmp .-84 ; 0x351a <vfprintf+0x63e>
  8767. 356e: 04 e9 ldi r16, 0x94 ; 148
  8768. 3570: 10 e0 ldi r17, 0x00 ; 0
  8769. 3572: d8 cf rjmp .-80 ; 0x3524 <vfprintf+0x648>
  8770. 3574: 91 10 cpse r9, r1
  8771. 3576: 80 52 subi r24, 0x20 ; 32
  8772. 3578: b7 01 movw r22, r14
  8773. 357a: 90 e0 ldi r25, 0x00 ; 0
  8774. 357c: d7 d2 rcall .+1454 ; 0x3b2c <fputc>
  8775. 357e: 0f 5f subi r16, 0xFF ; 255
  8776. 3580: 1f 4f sbci r17, 0xFF ; 255
  8777. 3582: d3 cf rjmp .-90 ; 0x352a <vfprintf+0x64e>
  8778. 3584: 23 e0 ldi r18, 0x03 ; 3
  8779. 3586: 25 15 cp r18, r5
  8780. 3588: 10 f4 brcc .+4 ; 0x358e <vfprintf+0x6b2>
  8781. 358a: 83 e0 ldi r24, 0x03 ; 3
  8782. 358c: c1 cf rjmp .-126 ; 0x3510 <vfprintf+0x634>
  8783. 358e: 51 2c mov r5, r1
  8784. 3590: c4 cf rjmp .-120 ; 0x351a <vfprintf+0x63e>
  8785. 3592: 60 96 adiw r28, 0x10 ; 16
  8786. 3594: e2 e1 ldi r30, 0x12 ; 18
  8787. 3596: 44 c0 rjmp .+136 ; 0x3620 <__epilogue_restores__>
  8788. 00003598 <__divmodhi4>:
  8789. 3598: 97 fb bst r25, 7
  8790. 359a: 07 2e mov r0, r23
  8791. 359c: 16 f4 brtc .+4 ; 0x35a2 <__divmodhi4+0xa>
  8792. 359e: 00 94 com r0
  8793. 35a0: 06 d0 rcall .+12 ; 0x35ae <__divmodhi4_neg1>
  8794. 35a2: 77 fd sbrc r23, 7
  8795. 35a4: 08 d0 rcall .+16 ; 0x35b6 <__divmodhi4_neg2>
  8796. 35a6: 57 d0 rcall .+174 ; 0x3656 <__udivmodhi4>
  8797. 35a8: 07 fc sbrc r0, 7
  8798. 35aa: 05 d0 rcall .+10 ; 0x35b6 <__divmodhi4_neg2>
  8799. 35ac: 3e f4 brtc .+14 ; 0x35bc <__divmodhi4_exit>
  8800. 000035ae <__divmodhi4_neg1>:
  8801. 35ae: 90 95 com r25
  8802. 35b0: 81 95 neg r24
  8803. 35b2: 9f 4f sbci r25, 0xFF ; 255
  8804. 35b4: 08 95 ret
  8805. 000035b6 <__divmodhi4_neg2>:
  8806. 35b6: 70 95 com r23
  8807. 35b8: 61 95 neg r22
  8808. 35ba: 7f 4f sbci r23, 0xFF ; 255
  8809. 000035bc <__divmodhi4_exit>:
  8810. 35bc: 08 95 ret
  8811. 000035be <__tablejump2__>:
  8812. 35be: ee 0f add r30, r30
  8813. 35c0: ff 1f adc r31, r31
  8814. 35c2: 05 90 lpm r0, Z+
  8815. 35c4: f4 91 lpm r31, Z
  8816. 35c6: e0 2d mov r30, r0
  8817. 35c8: 09 94 ijmp
  8818. 000035ca <__umulhisi3>:
  8819. 35ca: a2 9f mul r26, r18
  8820. 35cc: b0 01 movw r22, r0
  8821. 35ce: b3 9f mul r27, r19
  8822. 35d0: c0 01 movw r24, r0
  8823. 35d2: a3 9f mul r26, r19
  8824. 35d4: 70 0d add r23, r0
  8825. 35d6: 81 1d adc r24, r1
  8826. 35d8: 11 24 eor r1, r1
  8827. 35da: 91 1d adc r25, r1
  8828. 35dc: b2 9f mul r27, r18
  8829. 35de: 70 0d add r23, r0
  8830. 35e0: 81 1d adc r24, r1
  8831. 35e2: 11 24 eor r1, r1
  8832. 35e4: 91 1d adc r25, r1
  8833. 35e6: 08 95 ret
  8834. 000035e8 <__prologue_saves__>:
  8835. 35e8: 2f 92 push r2
  8836. 35ea: 3f 92 push r3
  8837. 35ec: 4f 92 push r4
  8838. 35ee: 5f 92 push r5
  8839. 35f0: 6f 92 push r6
  8840. 35f2: 7f 92 push r7
  8841. 35f4: 8f 92 push r8
  8842. 35f6: 9f 92 push r9
  8843. 35f8: af 92 push r10
  8844. 35fa: bf 92 push r11
  8845. 35fc: cf 92 push r12
  8846. 35fe: df 92 push r13
  8847. 3600: ef 92 push r14
  8848. 3602: ff 92 push r15
  8849. 3604: 0f 93 push r16
  8850. 3606: 1f 93 push r17
  8851. 3608: cf 93 push r28
  8852. 360a: df 93 push r29
  8853. 360c: cd b7 in r28, 0x3d ; 61
  8854. 360e: de b7 in r29, 0x3e ; 62
  8855. 3610: ca 1b sub r28, r26
  8856. 3612: db 0b sbc r29, r27
  8857. 3614: 0f b6 in r0, 0x3f ; 63
  8858. 3616: f8 94 cli
  8859. 3618: de bf out 0x3e, r29 ; 62
  8860. 361a: 0f be out 0x3f, r0 ; 63
  8861. 361c: cd bf out 0x3d, r28 ; 61
  8862. 361e: 09 94 ijmp
  8863. 00003620 <__epilogue_restores__>:
  8864. 3620: 2a 88 ldd r2, Y+18 ; 0x12
  8865. 3622: 39 88 ldd r3, Y+17 ; 0x11
  8866. 3624: 48 88 ldd r4, Y+16 ; 0x10
  8867. 3626: 5f 84 ldd r5, Y+15 ; 0x0f
  8868. 3628: 6e 84 ldd r6, Y+14 ; 0x0e
  8869. 362a: 7d 84 ldd r7, Y+13 ; 0x0d
  8870. 362c: 8c 84 ldd r8, Y+12 ; 0x0c
  8871. 362e: 9b 84 ldd r9, Y+11 ; 0x0b
  8872. 3630: aa 84 ldd r10, Y+10 ; 0x0a
  8873. 3632: b9 84 ldd r11, Y+9 ; 0x09
  8874. 3634: c8 84 ldd r12, Y+8 ; 0x08
  8875. 3636: df 80 ldd r13, Y+7 ; 0x07
  8876. 3638: ee 80 ldd r14, Y+6 ; 0x06
  8877. 363a: fd 80 ldd r15, Y+5 ; 0x05
  8878. 363c: 0c 81 ldd r16, Y+4 ; 0x04
  8879. 363e: 1b 81 ldd r17, Y+3 ; 0x03
  8880. 3640: aa 81 ldd r26, Y+2 ; 0x02
  8881. 3642: b9 81 ldd r27, Y+1 ; 0x01
  8882. 3644: ce 0f add r28, r30
  8883. 3646: d1 1d adc r29, r1
  8884. 3648: 0f b6 in r0, 0x3f ; 63
  8885. 364a: f8 94 cli
  8886. 364c: de bf out 0x3e, r29 ; 62
  8887. 364e: 0f be out 0x3f, r0 ; 63
  8888. 3650: cd bf out 0x3d, r28 ; 61
  8889. 3652: ed 01 movw r28, r26
  8890. 3654: 08 95 ret
  8891. 00003656 <__udivmodhi4>:
  8892. 3656: aa 1b sub r26, r26
  8893. 3658: bb 1b sub r27, r27
  8894. 365a: 51 e1 ldi r21, 0x11 ; 17
  8895. 365c: 07 c0 rjmp .+14 ; 0x366c <__udivmodhi4_ep>
  8896. 0000365e <__udivmodhi4_loop>:
  8897. 365e: aa 1f adc r26, r26
  8898. 3660: bb 1f adc r27, r27
  8899. 3662: a6 17 cp r26, r22
  8900. 3664: b7 07 cpc r27, r23
  8901. 3666: 10 f0 brcs .+4 ; 0x366c <__udivmodhi4_ep>
  8902. 3668: a6 1b sub r26, r22
  8903. 366a: b7 0b sbc r27, r23
  8904. 0000366c <__udivmodhi4_ep>:
  8905. 366c: 88 1f adc r24, r24
  8906. 366e: 99 1f adc r25, r25
  8907. 3670: 5a 95 dec r21
  8908. 3672: a9 f7 brne .-22 ; 0x365e <__udivmodhi4_loop>
  8909. 3674: 80 95 com r24
  8910. 3676: 90 95 com r25
  8911. 3678: bc 01 movw r22, r24
  8912. 367a: cd 01 movw r24, r26
  8913. 367c: 08 95 ret
  8914. 0000367e <calloc>:
  8915. 367e: 0f 93 push r16
  8916. 3680: 1f 93 push r17
  8917. 3682: cf 93 push r28
  8918. 3684: df 93 push r29
  8919. 3686: 86 9f mul r24, r22
  8920. 3688: 80 01 movw r16, r0
  8921. 368a: 87 9f mul r24, r23
  8922. 368c: 10 0d add r17, r0
  8923. 368e: 96 9f mul r25, r22
  8924. 3690: 10 0d add r17, r0
  8925. 3692: 11 24 eor r1, r1
  8926. 3694: c8 01 movw r24, r16
  8927. 3696: 0d d0 rcall .+26 ; 0x36b2 <malloc>
  8928. 3698: ec 01 movw r28, r24
  8929. 369a: 00 97 sbiw r24, 0x00 ; 0
  8930. 369c: 21 f0 breq .+8 ; 0x36a6 <calloc+0x28>
  8931. 369e: a8 01 movw r20, r16
  8932. 36a0: 60 e0 ldi r22, 0x00 ; 0
  8933. 36a2: 70 e0 ldi r23, 0x00 ; 0
  8934. 36a4: 13 d2 rcall .+1062 ; 0x3acc <memset>
  8935. 36a6: ce 01 movw r24, r28
  8936. 36a8: df 91 pop r29
  8937. 36aa: cf 91 pop r28
  8938. 36ac: 1f 91 pop r17
  8939. 36ae: 0f 91 pop r16
  8940. 36b0: 08 95 ret
  8941. 000036b2 <malloc>:
  8942. 36b2: 0f 93 push r16
  8943. 36b4: 1f 93 push r17
  8944. 36b6: cf 93 push r28
  8945. 36b8: df 93 push r29
  8946. 36ba: 82 30 cpi r24, 0x02 ; 2
  8947. 36bc: 91 05 cpc r25, r1
  8948. 36be: 10 f4 brcc .+4 ; 0x36c4 <malloc+0x12>
  8949. 36c0: 82 e0 ldi r24, 0x02 ; 2
  8950. 36c2: 90 e0 ldi r25, 0x00 ; 0
  8951. 36c4: e0 91 aa 06 lds r30, 0x06AA ; 0x8006aa <__flp>
  8952. 36c8: f0 91 ab 06 lds r31, 0x06AB ; 0x8006ab <__flp+0x1>
  8953. 36cc: 20 e0 ldi r18, 0x00 ; 0
  8954. 36ce: 30 e0 ldi r19, 0x00 ; 0
  8955. 36d0: a0 e0 ldi r26, 0x00 ; 0
  8956. 36d2: b0 e0 ldi r27, 0x00 ; 0
  8957. 36d4: 30 97 sbiw r30, 0x00 ; 0
  8958. 36d6: 19 f1 breq .+70 ; 0x371e <malloc+0x6c>
  8959. 36d8: 40 81 ld r20, Z
  8960. 36da: 51 81 ldd r21, Z+1 ; 0x01
  8961. 36dc: 02 81 ldd r16, Z+2 ; 0x02
  8962. 36de: 13 81 ldd r17, Z+3 ; 0x03
  8963. 36e0: 48 17 cp r20, r24
  8964. 36e2: 59 07 cpc r21, r25
  8965. 36e4: c8 f0 brcs .+50 ; 0x3718 <malloc+0x66>
  8966. 36e6: 84 17 cp r24, r20
  8967. 36e8: 95 07 cpc r25, r21
  8968. 36ea: 69 f4 brne .+26 ; 0x3706 <malloc+0x54>
  8969. 36ec: 10 97 sbiw r26, 0x00 ; 0
  8970. 36ee: 31 f0 breq .+12 ; 0x36fc <malloc+0x4a>
  8971. 36f0: 12 96 adiw r26, 0x02 ; 2
  8972. 36f2: 0c 93 st X, r16
  8973. 36f4: 12 97 sbiw r26, 0x02 ; 2
  8974. 36f6: 13 96 adiw r26, 0x03 ; 3
  8975. 36f8: 1c 93 st X, r17
  8976. 36fa: 27 c0 rjmp .+78 ; 0x374a <malloc+0x98>
  8977. 36fc: 00 93 aa 06 sts 0x06AA, r16 ; 0x8006aa <__flp>
  8978. 3700: 10 93 ab 06 sts 0x06AB, r17 ; 0x8006ab <__flp+0x1>
  8979. 3704: 22 c0 rjmp .+68 ; 0x374a <malloc+0x98>
  8980. 3706: 21 15 cp r18, r1
  8981. 3708: 31 05 cpc r19, r1
  8982. 370a: 19 f0 breq .+6 ; 0x3712 <malloc+0x60>
  8983. 370c: 42 17 cp r20, r18
  8984. 370e: 53 07 cpc r21, r19
  8985. 3710: 18 f4 brcc .+6 ; 0x3718 <malloc+0x66>
  8986. 3712: 9a 01 movw r18, r20
  8987. 3714: bd 01 movw r22, r26
  8988. 3716: ef 01 movw r28, r30
  8989. 3718: df 01 movw r26, r30
  8990. 371a: f8 01 movw r30, r16
  8991. 371c: db cf rjmp .-74 ; 0x36d4 <malloc+0x22>
  8992. 371e: 21 15 cp r18, r1
  8993. 3720: 31 05 cpc r19, r1
  8994. 3722: f9 f0 breq .+62 ; 0x3762 <malloc+0xb0>
  8995. 3724: 28 1b sub r18, r24
  8996. 3726: 39 0b sbc r19, r25
  8997. 3728: 24 30 cpi r18, 0x04 ; 4
  8998. 372a: 31 05 cpc r19, r1
  8999. 372c: 80 f4 brcc .+32 ; 0x374e <malloc+0x9c>
  9000. 372e: 8a 81 ldd r24, Y+2 ; 0x02
  9001. 3730: 9b 81 ldd r25, Y+3 ; 0x03
  9002. 3732: 61 15 cp r22, r1
  9003. 3734: 71 05 cpc r23, r1
  9004. 3736: 21 f0 breq .+8 ; 0x3740 <malloc+0x8e>
  9005. 3738: fb 01 movw r30, r22
  9006. 373a: 93 83 std Z+3, r25 ; 0x03
  9007. 373c: 82 83 std Z+2, r24 ; 0x02
  9008. 373e: 04 c0 rjmp .+8 ; 0x3748 <malloc+0x96>
  9009. 3740: 90 93 ab 06 sts 0x06AB, r25 ; 0x8006ab <__flp+0x1>
  9010. 3744: 80 93 aa 06 sts 0x06AA, r24 ; 0x8006aa <__flp>
  9011. 3748: fe 01 movw r30, r28
  9012. 374a: 32 96 adiw r30, 0x02 ; 2
  9013. 374c: 44 c0 rjmp .+136 ; 0x37d6 <malloc+0x124>
  9014. 374e: fe 01 movw r30, r28
  9015. 3750: e2 0f add r30, r18
  9016. 3752: f3 1f adc r31, r19
  9017. 3754: 81 93 st Z+, r24
  9018. 3756: 91 93 st Z+, r25
  9019. 3758: 22 50 subi r18, 0x02 ; 2
  9020. 375a: 31 09 sbc r19, r1
  9021. 375c: 39 83 std Y+1, r19 ; 0x01
  9022. 375e: 28 83 st Y, r18
  9023. 3760: 3a c0 rjmp .+116 ; 0x37d6 <malloc+0x124>
  9024. 3762: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval>
  9025. 3766: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1>
  9026. 376a: 23 2b or r18, r19
  9027. 376c: 41 f4 brne .+16 ; 0x377e <malloc+0xcc>
  9028. 376e: 20 91 02 01 lds r18, 0x0102 ; 0x800102 <__malloc_heap_start>
  9029. 3772: 30 91 03 01 lds r19, 0x0103 ; 0x800103 <__malloc_heap_start+0x1>
  9030. 3776: 30 93 a9 06 sts 0x06A9, r19 ; 0x8006a9 <__brkval+0x1>
  9031. 377a: 20 93 a8 06 sts 0x06A8, r18 ; 0x8006a8 <__brkval>
  9032. 377e: 20 91 00 01 lds r18, 0x0100 ; 0x800100 <__data_start>
  9033. 3782: 30 91 01 01 lds r19, 0x0101 ; 0x800101 <__data_start+0x1>
  9034. 3786: 21 15 cp r18, r1
  9035. 3788: 31 05 cpc r19, r1
  9036. 378a: 41 f4 brne .+16 ; 0x379c <malloc+0xea>
  9037. 378c: 2d b7 in r18, 0x3d ; 61
  9038. 378e: 3e b7 in r19, 0x3e ; 62
  9039. 3790: 40 91 04 01 lds r20, 0x0104 ; 0x800104 <__malloc_margin>
  9040. 3794: 50 91 05 01 lds r21, 0x0105 ; 0x800105 <__malloc_margin+0x1>
  9041. 3798: 24 1b sub r18, r20
  9042. 379a: 35 0b sbc r19, r21
  9043. 379c: e0 91 a8 06 lds r30, 0x06A8 ; 0x8006a8 <__brkval>
  9044. 37a0: f0 91 a9 06 lds r31, 0x06A9 ; 0x8006a9 <__brkval+0x1>
  9045. 37a4: e2 17 cp r30, r18
  9046. 37a6: f3 07 cpc r31, r19
  9047. 37a8: a0 f4 brcc .+40 ; 0x37d2 <malloc+0x120>
  9048. 37aa: 2e 1b sub r18, r30
  9049. 37ac: 3f 0b sbc r19, r31
  9050. 37ae: 28 17 cp r18, r24
  9051. 37b0: 39 07 cpc r19, r25
  9052. 37b2: 78 f0 brcs .+30 ; 0x37d2 <malloc+0x120>
  9053. 37b4: ac 01 movw r20, r24
  9054. 37b6: 4e 5f subi r20, 0xFE ; 254
  9055. 37b8: 5f 4f sbci r21, 0xFF ; 255
  9056. 37ba: 24 17 cp r18, r20
  9057. 37bc: 35 07 cpc r19, r21
  9058. 37be: 48 f0 brcs .+18 ; 0x37d2 <malloc+0x120>
  9059. 37c0: 4e 0f add r20, r30
  9060. 37c2: 5f 1f adc r21, r31
  9061. 37c4: 50 93 a9 06 sts 0x06A9, r21 ; 0x8006a9 <__brkval+0x1>
  9062. 37c8: 40 93 a8 06 sts 0x06A8, r20 ; 0x8006a8 <__brkval>
  9063. 37cc: 81 93 st Z+, r24
  9064. 37ce: 91 93 st Z+, r25
  9065. 37d0: 02 c0 rjmp .+4 ; 0x37d6 <malloc+0x124>
  9066. 37d2: e0 e0 ldi r30, 0x00 ; 0
  9067. 37d4: f0 e0 ldi r31, 0x00 ; 0
  9068. 37d6: cf 01 movw r24, r30
  9069. 37d8: df 91 pop r29
  9070. 37da: cf 91 pop r28
  9071. 37dc: 1f 91 pop r17
  9072. 37de: 0f 91 pop r16
  9073. 37e0: 08 95 ret
  9074. 000037e2 <free>:
  9075. 37e2: cf 93 push r28
  9076. 37e4: df 93 push r29
  9077. 37e6: 00 97 sbiw r24, 0x00 ; 0
  9078. 37e8: 09 f4 brne .+2 ; 0x37ec <free+0xa>
  9079. 37ea: 81 c0 rjmp .+258 ; 0x38ee <free+0x10c>
  9080. 37ec: fc 01 movw r30, r24
  9081. 37ee: 32 97 sbiw r30, 0x02 ; 2
  9082. 37f0: 13 82 std Z+3, r1 ; 0x03
  9083. 37f2: 12 82 std Z+2, r1 ; 0x02
  9084. 37f4: a0 91 aa 06 lds r26, 0x06AA ; 0x8006aa <__flp>
  9085. 37f8: b0 91 ab 06 lds r27, 0x06AB ; 0x8006ab <__flp+0x1>
  9086. 37fc: 10 97 sbiw r26, 0x00 ; 0
  9087. 37fe: 81 f4 brne .+32 ; 0x3820 <free+0x3e>
  9088. 3800: 20 81 ld r18, Z
  9089. 3802: 31 81 ldd r19, Z+1 ; 0x01
  9090. 3804: 82 0f add r24, r18
  9091. 3806: 93 1f adc r25, r19
  9092. 3808: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval>
  9093. 380c: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1>
  9094. 3810: 28 17 cp r18, r24
  9095. 3812: 39 07 cpc r19, r25
  9096. 3814: 51 f5 brne .+84 ; 0x386a <free+0x88>
  9097. 3816: f0 93 a9 06 sts 0x06A9, r31 ; 0x8006a9 <__brkval+0x1>
  9098. 381a: e0 93 a8 06 sts 0x06A8, r30 ; 0x8006a8 <__brkval>
  9099. 381e: 67 c0 rjmp .+206 ; 0x38ee <free+0x10c>
  9100. 3820: ed 01 movw r28, r26
  9101. 3822: 20 e0 ldi r18, 0x00 ; 0
  9102. 3824: 30 e0 ldi r19, 0x00 ; 0
  9103. 3826: ce 17 cp r28, r30
  9104. 3828: df 07 cpc r29, r31
  9105. 382a: 40 f4 brcc .+16 ; 0x383c <free+0x5a>
  9106. 382c: 4a 81 ldd r20, Y+2 ; 0x02
  9107. 382e: 5b 81 ldd r21, Y+3 ; 0x03
  9108. 3830: 9e 01 movw r18, r28
  9109. 3832: 41 15 cp r20, r1
  9110. 3834: 51 05 cpc r21, r1
  9111. 3836: f1 f0 breq .+60 ; 0x3874 <free+0x92>
  9112. 3838: ea 01 movw r28, r20
  9113. 383a: f5 cf rjmp .-22 ; 0x3826 <free+0x44>
  9114. 383c: d3 83 std Z+3, r29 ; 0x03
  9115. 383e: c2 83 std Z+2, r28 ; 0x02
  9116. 3840: 40 81 ld r20, Z
  9117. 3842: 51 81 ldd r21, Z+1 ; 0x01
  9118. 3844: 84 0f add r24, r20
  9119. 3846: 95 1f adc r25, r21
  9120. 3848: c8 17 cp r28, r24
  9121. 384a: d9 07 cpc r29, r25
  9122. 384c: 59 f4 brne .+22 ; 0x3864 <free+0x82>
  9123. 384e: 88 81 ld r24, Y
  9124. 3850: 99 81 ldd r25, Y+1 ; 0x01
  9125. 3852: 84 0f add r24, r20
  9126. 3854: 95 1f adc r25, r21
  9127. 3856: 02 96 adiw r24, 0x02 ; 2
  9128. 3858: 91 83 std Z+1, r25 ; 0x01
  9129. 385a: 80 83 st Z, r24
  9130. 385c: 8a 81 ldd r24, Y+2 ; 0x02
  9131. 385e: 9b 81 ldd r25, Y+3 ; 0x03
  9132. 3860: 93 83 std Z+3, r25 ; 0x03
  9133. 3862: 82 83 std Z+2, r24 ; 0x02
  9134. 3864: 21 15 cp r18, r1
  9135. 3866: 31 05 cpc r19, r1
  9136. 3868: 29 f4 brne .+10 ; 0x3874 <free+0x92>
  9137. 386a: f0 93 ab 06 sts 0x06AB, r31 ; 0x8006ab <__flp+0x1>
  9138. 386e: e0 93 aa 06 sts 0x06AA, r30 ; 0x8006aa <__flp>
  9139. 3872: 3d c0 rjmp .+122 ; 0x38ee <free+0x10c>
  9140. 3874: e9 01 movw r28, r18
  9141. 3876: fb 83 std Y+3, r31 ; 0x03
  9142. 3878: ea 83 std Y+2, r30 ; 0x02
  9143. 387a: 49 91 ld r20, Y+
  9144. 387c: 59 91 ld r21, Y+
  9145. 387e: c4 0f add r28, r20
  9146. 3880: d5 1f adc r29, r21
  9147. 3882: ec 17 cp r30, r28
  9148. 3884: fd 07 cpc r31, r29
  9149. 3886: 61 f4 brne .+24 ; 0x38a0 <free+0xbe>
  9150. 3888: 80 81 ld r24, Z
  9151. 388a: 91 81 ldd r25, Z+1 ; 0x01
  9152. 388c: 84 0f add r24, r20
  9153. 388e: 95 1f adc r25, r21
  9154. 3890: 02 96 adiw r24, 0x02 ; 2
  9155. 3892: e9 01 movw r28, r18
  9156. 3894: 99 83 std Y+1, r25 ; 0x01
  9157. 3896: 88 83 st Y, r24
  9158. 3898: 82 81 ldd r24, Z+2 ; 0x02
  9159. 389a: 93 81 ldd r25, Z+3 ; 0x03
  9160. 389c: 9b 83 std Y+3, r25 ; 0x03
  9161. 389e: 8a 83 std Y+2, r24 ; 0x02
  9162. 38a0: e0 e0 ldi r30, 0x00 ; 0
  9163. 38a2: f0 e0 ldi r31, 0x00 ; 0
  9164. 38a4: 12 96 adiw r26, 0x02 ; 2
  9165. 38a6: 8d 91 ld r24, X+
  9166. 38a8: 9c 91 ld r25, X
  9167. 38aa: 13 97 sbiw r26, 0x03 ; 3
  9168. 38ac: 00 97 sbiw r24, 0x00 ; 0
  9169. 38ae: 19 f0 breq .+6 ; 0x38b6 <free+0xd4>
  9170. 38b0: fd 01 movw r30, r26
  9171. 38b2: dc 01 movw r26, r24
  9172. 38b4: f7 cf rjmp .-18 ; 0x38a4 <free+0xc2>
  9173. 38b6: 8d 91 ld r24, X+
  9174. 38b8: 9c 91 ld r25, X
  9175. 38ba: 11 97 sbiw r26, 0x01 ; 1
  9176. 38bc: 9d 01 movw r18, r26
  9177. 38be: 2e 5f subi r18, 0xFE ; 254
  9178. 38c0: 3f 4f sbci r19, 0xFF ; 255
  9179. 38c2: 82 0f add r24, r18
  9180. 38c4: 93 1f adc r25, r19
  9181. 38c6: 20 91 a8 06 lds r18, 0x06A8 ; 0x8006a8 <__brkval>
  9182. 38ca: 30 91 a9 06 lds r19, 0x06A9 ; 0x8006a9 <__brkval+0x1>
  9183. 38ce: 28 17 cp r18, r24
  9184. 38d0: 39 07 cpc r19, r25
  9185. 38d2: 69 f4 brne .+26 ; 0x38ee <free+0x10c>
  9186. 38d4: 30 97 sbiw r30, 0x00 ; 0
  9187. 38d6: 29 f4 brne .+10 ; 0x38e2 <free+0x100>
  9188. 38d8: 10 92 ab 06 sts 0x06AB, r1 ; 0x8006ab <__flp+0x1>
  9189. 38dc: 10 92 aa 06 sts 0x06AA, r1 ; 0x8006aa <__flp>
  9190. 38e0: 02 c0 rjmp .+4 ; 0x38e6 <free+0x104>
  9191. 38e2: 13 82 std Z+3, r1 ; 0x03
  9192. 38e4: 12 82 std Z+2, r1 ; 0x02
  9193. 38e6: b0 93 a9 06 sts 0x06A9, r27 ; 0x8006a9 <__brkval+0x1>
  9194. 38ea: a0 93 a8 06 sts 0x06A8, r26 ; 0x8006a8 <__brkval>
  9195. 38ee: df 91 pop r29
  9196. 38f0: cf 91 pop r28
  9197. 38f2: 08 95 ret
  9198. 000038f4 <__ftoa_engine>:
  9199. 38f4: 28 30 cpi r18, 0x08 ; 8
  9200. 38f6: 08 f0 brcs .+2 ; 0x38fa <__ftoa_engine+0x6>
  9201. 38f8: 27 e0 ldi r18, 0x07 ; 7
  9202. 38fa: 33 27 eor r19, r19
  9203. 38fc: da 01 movw r26, r20
  9204. 38fe: 99 0f add r25, r25
  9205. 3900: 31 1d adc r19, r1
  9206. 3902: 87 fd sbrc r24, 7
  9207. 3904: 91 60 ori r25, 0x01 ; 1
  9208. 3906: 00 96 adiw r24, 0x00 ; 0
  9209. 3908: 61 05 cpc r22, r1
  9210. 390a: 71 05 cpc r23, r1
  9211. 390c: 39 f4 brne .+14 ; 0x391c <__ftoa_engine+0x28>
  9212. 390e: 32 60 ori r19, 0x02 ; 2
  9213. 3910: 2e 5f subi r18, 0xFE ; 254
  9214. 3912: 3d 93 st X+, r19
  9215. 3914: 30 e3 ldi r19, 0x30 ; 48
  9216. 3916: 2a 95 dec r18
  9217. 3918: e1 f7 brne .-8 ; 0x3912 <__ftoa_engine+0x1e>
  9218. 391a: 08 95 ret
  9219. 391c: 9f 3f cpi r25, 0xFF ; 255
  9220. 391e: 30 f0 brcs .+12 ; 0x392c <__ftoa_engine+0x38>
  9221. 3920: 80 38 cpi r24, 0x80 ; 128
  9222. 3922: 71 05 cpc r23, r1
  9223. 3924: 61 05 cpc r22, r1
  9224. 3926: 09 f0 breq .+2 ; 0x392a <__ftoa_engine+0x36>
  9225. 3928: 3c 5f subi r19, 0xFC ; 252
  9226. 392a: 3c 5f subi r19, 0xFC ; 252
  9227. 392c: 3d 93 st X+, r19
  9228. 392e: 91 30 cpi r25, 0x01 ; 1
  9229. 3930: 08 f0 brcs .+2 ; 0x3934 <__ftoa_engine+0x40>
  9230. 3932: 80 68 ori r24, 0x80 ; 128
  9231. 3934: 91 1d adc r25, r1
  9232. 3936: df 93 push r29
  9233. 3938: cf 93 push r28
  9234. 393a: 1f 93 push r17
  9235. 393c: 0f 93 push r16
  9236. 393e: ff 92 push r15
  9237. 3940: ef 92 push r14
  9238. 3942: 19 2f mov r17, r25
  9239. 3944: 98 7f andi r25, 0xF8 ; 248
  9240. 3946: 96 95 lsr r25
  9241. 3948: e9 2f mov r30, r25
  9242. 394a: 96 95 lsr r25
  9243. 394c: 96 95 lsr r25
  9244. 394e: e9 0f add r30, r25
  9245. 3950: ff 27 eor r31, r31
  9246. 3952: ee 50 subi r30, 0x0E ; 14
  9247. 3954: ff 4f sbci r31, 0xFF ; 255
  9248. 3956: 99 27 eor r25, r25
  9249. 3958: 33 27 eor r19, r19
  9250. 395a: ee 24 eor r14, r14
  9251. 395c: ff 24 eor r15, r15
  9252. 395e: a7 01 movw r20, r14
  9253. 3960: e7 01 movw r28, r14
  9254. 3962: 05 90 lpm r0, Z+
  9255. 3964: 08 94 sec
  9256. 3966: 07 94 ror r0
  9257. 3968: 28 f4 brcc .+10 ; 0x3974 <__ftoa_engine+0x80>
  9258. 396a: 36 0f add r19, r22
  9259. 396c: e7 1e adc r14, r23
  9260. 396e: f8 1e adc r15, r24
  9261. 3970: 49 1f adc r20, r25
  9262. 3972: 51 1d adc r21, r1
  9263. 3974: 66 0f add r22, r22
  9264. 3976: 77 1f adc r23, r23
  9265. 3978: 88 1f adc r24, r24
  9266. 397a: 99 1f adc r25, r25
  9267. 397c: 06 94 lsr r0
  9268. 397e: a1 f7 brne .-24 ; 0x3968 <__ftoa_engine+0x74>
  9269. 3980: 05 90 lpm r0, Z+
  9270. 3982: 07 94 ror r0
  9271. 3984: 28 f4 brcc .+10 ; 0x3990 <__ftoa_engine+0x9c>
  9272. 3986: e7 0e add r14, r23
  9273. 3988: f8 1e adc r15, r24
  9274. 398a: 49 1f adc r20, r25
  9275. 398c: 56 1f adc r21, r22
  9276. 398e: c1 1d adc r28, r1
  9277. 3990: 77 0f add r23, r23
  9278. 3992: 88 1f adc r24, r24
  9279. 3994: 99 1f adc r25, r25
  9280. 3996: 66 1f adc r22, r22
  9281. 3998: 06 94 lsr r0
  9282. 399a: a1 f7 brne .-24 ; 0x3984 <__ftoa_engine+0x90>
  9283. 399c: 05 90 lpm r0, Z+
  9284. 399e: 07 94 ror r0
  9285. 39a0: 28 f4 brcc .+10 ; 0x39ac <__ftoa_engine+0xb8>
  9286. 39a2: f8 0e add r15, r24
  9287. 39a4: 49 1f adc r20, r25
  9288. 39a6: 56 1f adc r21, r22
  9289. 39a8: c7 1f adc r28, r23
  9290. 39aa: d1 1d adc r29, r1
  9291. 39ac: 88 0f add r24, r24
  9292. 39ae: 99 1f adc r25, r25
  9293. 39b0: 66 1f adc r22, r22
  9294. 39b2: 77 1f adc r23, r23
  9295. 39b4: 06 94 lsr r0
  9296. 39b6: a1 f7 brne .-24 ; 0x39a0 <__ftoa_engine+0xac>
  9297. 39b8: 05 90 lpm r0, Z+
  9298. 39ba: 07 94 ror r0
  9299. 39bc: 20 f4 brcc .+8 ; 0x39c6 <__ftoa_engine+0xd2>
  9300. 39be: 49 0f add r20, r25
  9301. 39c0: 56 1f adc r21, r22
  9302. 39c2: c7 1f adc r28, r23
  9303. 39c4: d8 1f adc r29, r24
  9304. 39c6: 99 0f add r25, r25
  9305. 39c8: 66 1f adc r22, r22
  9306. 39ca: 77 1f adc r23, r23
  9307. 39cc: 88 1f adc r24, r24
  9308. 39ce: 06 94 lsr r0
  9309. 39d0: a9 f7 brne .-22 ; 0x39bc <__ftoa_engine+0xc8>
  9310. 39d2: 84 91 lpm r24, Z
  9311. 39d4: 10 95 com r17
  9312. 39d6: 17 70 andi r17, 0x07 ; 7
  9313. 39d8: 41 f0 breq .+16 ; 0x39ea <__ftoa_engine+0xf6>
  9314. 39da: d6 95 lsr r29
  9315. 39dc: c7 95 ror r28
  9316. 39de: 57 95 ror r21
  9317. 39e0: 47 95 ror r20
  9318. 39e2: f7 94 ror r15
  9319. 39e4: e7 94 ror r14
  9320. 39e6: 1a 95 dec r17
  9321. 39e8: c1 f7 brne .-16 ; 0x39da <__ftoa_engine+0xe6>
  9322. 39ea: e8 e9 ldi r30, 0x98 ; 152
  9323. 39ec: f0 e0 ldi r31, 0x00 ; 0
  9324. 39ee: 68 94 set
  9325. 39f0: 15 90 lpm r1, Z+
  9326. 39f2: 15 91 lpm r17, Z+
  9327. 39f4: 35 91 lpm r19, Z+
  9328. 39f6: 65 91 lpm r22, Z+
  9329. 39f8: 95 91 lpm r25, Z+
  9330. 39fa: 05 90 lpm r0, Z+
  9331. 39fc: 7f e2 ldi r23, 0x2F ; 47
  9332. 39fe: 73 95 inc r23
  9333. 3a00: e1 18 sub r14, r1
  9334. 3a02: f1 0a sbc r15, r17
  9335. 3a04: 43 0b sbc r20, r19
  9336. 3a06: 56 0b sbc r21, r22
  9337. 3a08: c9 0b sbc r28, r25
  9338. 3a0a: d0 09 sbc r29, r0
  9339. 3a0c: c0 f7 brcc .-16 ; 0x39fe <__ftoa_engine+0x10a>
  9340. 3a0e: e1 0c add r14, r1
  9341. 3a10: f1 1e adc r15, r17
  9342. 3a12: 43 1f adc r20, r19
  9343. 3a14: 56 1f adc r21, r22
  9344. 3a16: c9 1f adc r28, r25
  9345. 3a18: d0 1d adc r29, r0
  9346. 3a1a: 7e f4 brtc .+30 ; 0x3a3a <__ftoa_engine+0x146>
  9347. 3a1c: 70 33 cpi r23, 0x30 ; 48
  9348. 3a1e: 11 f4 brne .+4 ; 0x3a24 <__ftoa_engine+0x130>
  9349. 3a20: 8a 95 dec r24
  9350. 3a22: e6 cf rjmp .-52 ; 0x39f0 <__ftoa_engine+0xfc>
  9351. 3a24: e8 94 clt
  9352. 3a26: 01 50 subi r16, 0x01 ; 1
  9353. 3a28: 30 f0 brcs .+12 ; 0x3a36 <__ftoa_engine+0x142>
  9354. 3a2a: 08 0f add r16, r24
  9355. 3a2c: 0a f4 brpl .+2 ; 0x3a30 <__ftoa_engine+0x13c>
  9356. 3a2e: 00 27 eor r16, r16
  9357. 3a30: 02 17 cp r16, r18
  9358. 3a32: 08 f4 brcc .+2 ; 0x3a36 <__ftoa_engine+0x142>
  9359. 3a34: 20 2f mov r18, r16
  9360. 3a36: 23 95 inc r18
  9361. 3a38: 02 2f mov r16, r18
  9362. 3a3a: 7a 33 cpi r23, 0x3A ; 58
  9363. 3a3c: 28 f0 brcs .+10 ; 0x3a48 <__ftoa_engine+0x154>
  9364. 3a3e: 79 e3 ldi r23, 0x39 ; 57
  9365. 3a40: 7d 93 st X+, r23
  9366. 3a42: 2a 95 dec r18
  9367. 3a44: e9 f7 brne .-6 ; 0x3a40 <__ftoa_engine+0x14c>
  9368. 3a46: 10 c0 rjmp .+32 ; 0x3a68 <__ftoa_engine+0x174>
  9369. 3a48: 7d 93 st X+, r23
  9370. 3a4a: 2a 95 dec r18
  9371. 3a4c: 89 f6 brne .-94 ; 0x39f0 <__ftoa_engine+0xfc>
  9372. 3a4e: 06 94 lsr r0
  9373. 3a50: 97 95 ror r25
  9374. 3a52: 67 95 ror r22
  9375. 3a54: 37 95 ror r19
  9376. 3a56: 17 95 ror r17
  9377. 3a58: 17 94 ror r1
  9378. 3a5a: e1 18 sub r14, r1
  9379. 3a5c: f1 0a sbc r15, r17
  9380. 3a5e: 43 0b sbc r20, r19
  9381. 3a60: 56 0b sbc r21, r22
  9382. 3a62: c9 0b sbc r28, r25
  9383. 3a64: d0 09 sbc r29, r0
  9384. 3a66: 98 f0 brcs .+38 ; 0x3a8e <__ftoa_engine+0x19a>
  9385. 3a68: 23 95 inc r18
  9386. 3a6a: 7e 91 ld r23, -X
  9387. 3a6c: 73 95 inc r23
  9388. 3a6e: 7a 33 cpi r23, 0x3A ; 58
  9389. 3a70: 08 f0 brcs .+2 ; 0x3a74 <__ftoa_engine+0x180>
  9390. 3a72: 70 e3 ldi r23, 0x30 ; 48
  9391. 3a74: 7c 93 st X, r23
  9392. 3a76: 20 13 cpse r18, r16
  9393. 3a78: b8 f7 brcc .-18 ; 0x3a68 <__ftoa_engine+0x174>
  9394. 3a7a: 7e 91 ld r23, -X
  9395. 3a7c: 70 61 ori r23, 0x10 ; 16
  9396. 3a7e: 7d 93 st X+, r23
  9397. 3a80: 30 f0 brcs .+12 ; 0x3a8e <__ftoa_engine+0x19a>
  9398. 3a82: 83 95 inc r24
  9399. 3a84: 71 e3 ldi r23, 0x31 ; 49
  9400. 3a86: 7d 93 st X+, r23
  9401. 3a88: 70 e3 ldi r23, 0x30 ; 48
  9402. 3a8a: 2a 95 dec r18
  9403. 3a8c: e1 f7 brne .-8 ; 0x3a86 <__ftoa_engine+0x192>
  9404. 3a8e: 11 24 eor r1, r1
  9405. 3a90: ef 90 pop r14
  9406. 3a92: ff 90 pop r15
  9407. 3a94: 0f 91 pop r16
  9408. 3a96: 1f 91 pop r17
  9409. 3a98: cf 91 pop r28
  9410. 3a9a: df 91 pop r29
  9411. 3a9c: 99 27 eor r25, r25
  9412. 3a9e: 87 fd sbrc r24, 7
  9413. 3aa0: 90 95 com r25
  9414. 3aa2: 08 95 ret
  9415. 00003aa4 <strnlen_P>:
  9416. 3aa4: fc 01 movw r30, r24
  9417. 3aa6: 05 90 lpm r0, Z+
  9418. 3aa8: 61 50 subi r22, 0x01 ; 1
  9419. 3aaa: 70 40 sbci r23, 0x00 ; 0
  9420. 3aac: 01 10 cpse r0, r1
  9421. 3aae: d8 f7 brcc .-10 ; 0x3aa6 <strnlen_P+0x2>
  9422. 3ab0: 80 95 com r24
  9423. 3ab2: 90 95 com r25
  9424. 3ab4: 8e 0f add r24, r30
  9425. 3ab6: 9f 1f adc r25, r31
  9426. 3ab8: 08 95 ret
  9427. 00003aba <memcpy>:
  9428. 3aba: fb 01 movw r30, r22
  9429. 3abc: dc 01 movw r26, r24
  9430. 3abe: 02 c0 rjmp .+4 ; 0x3ac4 <memcpy+0xa>
  9431. 3ac0: 01 90 ld r0, Z+
  9432. 3ac2: 0d 92 st X+, r0
  9433. 3ac4: 41 50 subi r20, 0x01 ; 1
  9434. 3ac6: 50 40 sbci r21, 0x00 ; 0
  9435. 3ac8: d8 f7 brcc .-10 ; 0x3ac0 <memcpy+0x6>
  9436. 3aca: 08 95 ret
  9437. 00003acc <memset>:
  9438. 3acc: dc 01 movw r26, r24
  9439. 3ace: 01 c0 rjmp .+2 ; 0x3ad2 <memset+0x6>
  9440. 3ad0: 6d 93 st X+, r22
  9441. 3ad2: 41 50 subi r20, 0x01 ; 1
  9442. 3ad4: 50 40 sbci r21, 0x00 ; 0
  9443. 3ad6: e0 f7 brcc .-8 ; 0x3ad0 <memset+0x4>
  9444. 3ad8: 08 95 ret
  9445. 00003ada <strncpy>:
  9446. 3ada: fb 01 movw r30, r22
  9447. 3adc: dc 01 movw r26, r24
  9448. 3ade: 41 50 subi r20, 0x01 ; 1
  9449. 3ae0: 50 40 sbci r21, 0x00 ; 0
  9450. 3ae2: 48 f0 brcs .+18 ; 0x3af6 <strncpy+0x1c>
  9451. 3ae4: 01 90 ld r0, Z+
  9452. 3ae6: 0d 92 st X+, r0
  9453. 3ae8: 00 20 and r0, r0
  9454. 3aea: c9 f7 brne .-14 ; 0x3ade <strncpy+0x4>
  9455. 3aec: 01 c0 rjmp .+2 ; 0x3af0 <strncpy+0x16>
  9456. 3aee: 1d 92 st X+, r1
  9457. 3af0: 41 50 subi r20, 0x01 ; 1
  9458. 3af2: 50 40 sbci r21, 0x00 ; 0
  9459. 3af4: e0 f7 brcc .-8 ; 0x3aee <strncpy+0x14>
  9460. 3af6: 08 95 ret
  9461. 00003af8 <strnlen>:
  9462. 3af8: fc 01 movw r30, r24
  9463. 3afa: 61 50 subi r22, 0x01 ; 1
  9464. 3afc: 70 40 sbci r23, 0x00 ; 0
  9465. 3afe: 01 90 ld r0, Z+
  9466. 3b00: 01 10 cpse r0, r1
  9467. 3b02: d8 f7 brcc .-10 ; 0x3afa <strnlen+0x2>
  9468. 3b04: 80 95 com r24
  9469. 3b06: 90 95 com r25
  9470. 3b08: 8e 0f add r24, r30
  9471. 3b0a: 9f 1f adc r25, r31
  9472. 3b0c: 08 95 ret
  9473. 00003b0e <fprintf>:
  9474. 3b0e: a0 e0 ldi r26, 0x00 ; 0
  9475. 3b10: b0 e0 ldi r27, 0x00 ; 0
  9476. 3b12: ec e8 ldi r30, 0x8C ; 140
  9477. 3b14: fd e1 ldi r31, 0x1D ; 29
  9478. 3b16: 78 cd rjmp .-1296 ; 0x3608 <__prologue_saves__+0x20>
  9479. 3b18: ae 01 movw r20, r28
  9480. 3b1a: 47 5f subi r20, 0xF7 ; 247
  9481. 3b1c: 5f 4f sbci r21, 0xFF ; 255
  9482. 3b1e: 6f 81 ldd r22, Y+7 ; 0x07
  9483. 3b20: 78 85 ldd r23, Y+8 ; 0x08
  9484. 3b22: 8d 81 ldd r24, Y+5 ; 0x05
  9485. 3b24: 9e 81 ldd r25, Y+6 ; 0x06
  9486. 3b26: da d9 rcall .-3148 ; 0x2edc <vfprintf>
  9487. 3b28: e2 e0 ldi r30, 0x02 ; 2
  9488. 3b2a: 8a cd rjmp .-1260 ; 0x3640 <__epilogue_restores__+0x20>
  9489. 00003b2c <fputc>:
  9490. 3b2c: 0f 93 push r16
  9491. 3b2e: 1f 93 push r17
  9492. 3b30: cf 93 push r28
  9493. 3b32: df 93 push r29
  9494. 3b34: fb 01 movw r30, r22
  9495. 3b36: 23 81 ldd r18, Z+3 ; 0x03
  9496. 3b38: 21 fd sbrc r18, 1
  9497. 3b3a: 03 c0 rjmp .+6 ; 0x3b42 <fputc+0x16>
  9498. 3b3c: 8f ef ldi r24, 0xFF ; 255
  9499. 3b3e: 9f ef ldi r25, 0xFF ; 255
  9500. 3b40: 2c c0 rjmp .+88 ; 0x3b9a <fputc+0x6e>
  9501. 3b42: 22 ff sbrs r18, 2
  9502. 3b44: 16 c0 rjmp .+44 ; 0x3b72 <fputc+0x46>
  9503. 3b46: 46 81 ldd r20, Z+6 ; 0x06
  9504. 3b48: 57 81 ldd r21, Z+7 ; 0x07
  9505. 3b4a: 24 81 ldd r18, Z+4 ; 0x04
  9506. 3b4c: 35 81 ldd r19, Z+5 ; 0x05
  9507. 3b4e: 42 17 cp r20, r18
  9508. 3b50: 53 07 cpc r21, r19
  9509. 3b52: 44 f4 brge .+16 ; 0x3b64 <fputc+0x38>
  9510. 3b54: a0 81 ld r26, Z
  9511. 3b56: b1 81 ldd r27, Z+1 ; 0x01
  9512. 3b58: 9d 01 movw r18, r26
  9513. 3b5a: 2f 5f subi r18, 0xFF ; 255
  9514. 3b5c: 3f 4f sbci r19, 0xFF ; 255
  9515. 3b5e: 31 83 std Z+1, r19 ; 0x01
  9516. 3b60: 20 83 st Z, r18
  9517. 3b62: 8c 93 st X, r24
  9518. 3b64: 26 81 ldd r18, Z+6 ; 0x06
  9519. 3b66: 37 81 ldd r19, Z+7 ; 0x07
  9520. 3b68: 2f 5f subi r18, 0xFF ; 255
  9521. 3b6a: 3f 4f sbci r19, 0xFF ; 255
  9522. 3b6c: 37 83 std Z+7, r19 ; 0x07
  9523. 3b6e: 26 83 std Z+6, r18 ; 0x06
  9524. 3b70: 14 c0 rjmp .+40 ; 0x3b9a <fputc+0x6e>
  9525. 3b72: 8b 01 movw r16, r22
  9526. 3b74: ec 01 movw r28, r24
  9527. 3b76: fb 01 movw r30, r22
  9528. 3b78: 00 84 ldd r0, Z+8 ; 0x08
  9529. 3b7a: f1 85 ldd r31, Z+9 ; 0x09
  9530. 3b7c: e0 2d mov r30, r0
  9531. 3b7e: 09 95 icall
  9532. 3b80: 89 2b or r24, r25
  9533. 3b82: e1 f6 brne .-72 ; 0x3b3c <fputc+0x10>
  9534. 3b84: d8 01 movw r26, r16
  9535. 3b86: 16 96 adiw r26, 0x06 ; 6
  9536. 3b88: 8d 91 ld r24, X+
  9537. 3b8a: 9c 91 ld r25, X
  9538. 3b8c: 17 97 sbiw r26, 0x07 ; 7
  9539. 3b8e: 01 96 adiw r24, 0x01 ; 1
  9540. 3b90: 17 96 adiw r26, 0x07 ; 7
  9541. 3b92: 9c 93 st X, r25
  9542. 3b94: 8e 93 st -X, r24
  9543. 3b96: 16 97 sbiw r26, 0x06 ; 6
  9544. 3b98: ce 01 movw r24, r28
  9545. 3b9a: df 91 pop r29
  9546. 3b9c: cf 91 pop r28
  9547. 3b9e: 1f 91 pop r17
  9548. 3ba0: 0f 91 pop r16
  9549. 3ba2: 08 95 ret
  9550. 00003ba4 <fwrite>:
  9551. 3ba4: a0 e0 ldi r26, 0x00 ; 0
  9552. 3ba6: b0 e0 ldi r27, 0x00 ; 0
  9553. 3ba8: e7 ed ldi r30, 0xD7 ; 215
  9554. 3baa: fd e1 ldi r31, 0x1D ; 29
  9555. 3bac: 23 cd rjmp .-1466 ; 0x35f4 <__prologue_saves__+0xc>
  9556. 3bae: 5b 01 movw r10, r22
  9557. 3bb0: 4a 01 movw r8, r20
  9558. 3bb2: 79 01 movw r14, r18
  9559. 3bb4: d9 01 movw r26, r18
  9560. 3bb6: 13 96 adiw r26, 0x03 ; 3
  9561. 3bb8: 2c 91 ld r18, X
  9562. 3bba: 21 ff sbrs r18, 1
  9563. 3bbc: 1d c0 rjmp .+58 ; 0x3bf8 <fwrite+0x54>
  9564. 3bbe: c0 e0 ldi r28, 0x00 ; 0
  9565. 3bc0: d0 e0 ldi r29, 0x00 ; 0
  9566. 3bc2: c8 15 cp r28, r8
  9567. 3bc4: d9 05 cpc r29, r9
  9568. 3bc6: d9 f0 breq .+54 ; 0x3bfe <fwrite+0x5a>
  9569. 3bc8: 8c 01 movw r16, r24
  9570. 3bca: 6c 01 movw r12, r24
  9571. 3bcc: ca 0c add r12, r10
  9572. 3bce: db 1c adc r13, r11
  9573. 3bd0: c8 01 movw r24, r16
  9574. 3bd2: 0c 15 cp r16, r12
  9575. 3bd4: 1d 05 cpc r17, r13
  9576. 3bd6: 71 f0 breq .+28 ; 0x3bf4 <fwrite+0x50>
  9577. 3bd8: 0f 5f subi r16, 0xFF ; 255
  9578. 3bda: 1f 4f sbci r17, 0xFF ; 255
  9579. 3bdc: d7 01 movw r26, r14
  9580. 3bde: 18 96 adiw r26, 0x08 ; 8
  9581. 3be0: ed 91 ld r30, X+
  9582. 3be2: fc 91 ld r31, X
  9583. 3be4: 19 97 sbiw r26, 0x09 ; 9
  9584. 3be6: b7 01 movw r22, r14
  9585. 3be8: dc 01 movw r26, r24
  9586. 3bea: 8c 91 ld r24, X
  9587. 3bec: 09 95 icall
  9588. 3bee: 89 2b or r24, r25
  9589. 3bf0: 79 f3 breq .-34 ; 0x3bd0 <fwrite+0x2c>
  9590. 3bf2: 05 c0 rjmp .+10 ; 0x3bfe <fwrite+0x5a>
  9591. 3bf4: 21 96 adiw r28, 0x01 ; 1
  9592. 3bf6: e5 cf rjmp .-54 ; 0x3bc2 <fwrite+0x1e>
  9593. 3bf8: 80 e0 ldi r24, 0x00 ; 0
  9594. 3bfa: 90 e0 ldi r25, 0x00 ; 0
  9595. 3bfc: 01 c0 rjmp .+2 ; 0x3c00 <fwrite+0x5c>
  9596. 3bfe: ce 01 movw r24, r28
  9597. 3c00: cd b7 in r28, 0x3d ; 61
  9598. 3c02: de b7 in r29, 0x3e ; 62
  9599. 3c04: ec e0 ldi r30, 0x0C ; 12
  9600. 3c06: 12 cd rjmp .-1500 ; 0x362c <__epilogue_restores__+0xc>
  9601. 00003c08 <__ultoa_invert>:
  9602. 3c08: fa 01 movw r30, r20
  9603. 3c0a: aa 27 eor r26, r26
  9604. 3c0c: 28 30 cpi r18, 0x08 ; 8
  9605. 3c0e: 51 f1 breq .+84 ; 0x3c64 <__ultoa_invert+0x5c>
  9606. 3c10: 20 31 cpi r18, 0x10 ; 16
  9607. 3c12: 81 f1 breq .+96 ; 0x3c74 <__ultoa_invert+0x6c>
  9608. 3c14: e8 94 clt
  9609. 3c16: 6f 93 push r22
  9610. 3c18: 6e 7f andi r22, 0xFE ; 254
  9611. 3c1a: 6e 5f subi r22, 0xFE ; 254
  9612. 3c1c: 7f 4f sbci r23, 0xFF ; 255
  9613. 3c1e: 8f 4f sbci r24, 0xFF ; 255
  9614. 3c20: 9f 4f sbci r25, 0xFF ; 255
  9615. 3c22: af 4f sbci r26, 0xFF ; 255
  9616. 3c24: b1 e0 ldi r27, 0x01 ; 1
  9617. 3c26: 3e d0 rcall .+124 ; 0x3ca4 <__ultoa_invert+0x9c>
  9618. 3c28: b4 e0 ldi r27, 0x04 ; 4
  9619. 3c2a: 3c d0 rcall .+120 ; 0x3ca4 <__ultoa_invert+0x9c>
  9620. 3c2c: 67 0f add r22, r23
  9621. 3c2e: 78 1f adc r23, r24
  9622. 3c30: 89 1f adc r24, r25
  9623. 3c32: 9a 1f adc r25, r26
  9624. 3c34: a1 1d adc r26, r1
  9625. 3c36: 68 0f add r22, r24
  9626. 3c38: 79 1f adc r23, r25
  9627. 3c3a: 8a 1f adc r24, r26
  9628. 3c3c: 91 1d adc r25, r1
  9629. 3c3e: a1 1d adc r26, r1
  9630. 3c40: 6a 0f add r22, r26
  9631. 3c42: 71 1d adc r23, r1
  9632. 3c44: 81 1d adc r24, r1
  9633. 3c46: 91 1d adc r25, r1
  9634. 3c48: a1 1d adc r26, r1
  9635. 3c4a: 20 d0 rcall .+64 ; 0x3c8c <__ultoa_invert+0x84>
  9636. 3c4c: 09 f4 brne .+2 ; 0x3c50 <__ultoa_invert+0x48>
  9637. 3c4e: 68 94 set
  9638. 3c50: 3f 91 pop r19
  9639. 3c52: 2a e0 ldi r18, 0x0A ; 10
  9640. 3c54: 26 9f mul r18, r22
  9641. 3c56: 11 24 eor r1, r1
  9642. 3c58: 30 19 sub r19, r0
  9643. 3c5a: 30 5d subi r19, 0xD0 ; 208
  9644. 3c5c: 31 93 st Z+, r19
  9645. 3c5e: de f6 brtc .-74 ; 0x3c16 <__ultoa_invert+0xe>
  9646. 3c60: cf 01 movw r24, r30
  9647. 3c62: 08 95 ret
  9648. 3c64: 46 2f mov r20, r22
  9649. 3c66: 47 70 andi r20, 0x07 ; 7
  9650. 3c68: 40 5d subi r20, 0xD0 ; 208
  9651. 3c6a: 41 93 st Z+, r20
  9652. 3c6c: b3 e0 ldi r27, 0x03 ; 3
  9653. 3c6e: 0f d0 rcall .+30 ; 0x3c8e <__ultoa_invert+0x86>
  9654. 3c70: c9 f7 brne .-14 ; 0x3c64 <__ultoa_invert+0x5c>
  9655. 3c72: f6 cf rjmp .-20 ; 0x3c60 <__ultoa_invert+0x58>
  9656. 3c74: 46 2f mov r20, r22
  9657. 3c76: 4f 70 andi r20, 0x0F ; 15
  9658. 3c78: 40 5d subi r20, 0xD0 ; 208
  9659. 3c7a: 4a 33 cpi r20, 0x3A ; 58
  9660. 3c7c: 18 f0 brcs .+6 ; 0x3c84 <__ultoa_invert+0x7c>
  9661. 3c7e: 49 5d subi r20, 0xD9 ; 217
  9662. 3c80: 31 fd sbrc r19, 1
  9663. 3c82: 40 52 subi r20, 0x20 ; 32
  9664. 3c84: 41 93 st Z+, r20
  9665. 3c86: 02 d0 rcall .+4 ; 0x3c8c <__ultoa_invert+0x84>
  9666. 3c88: a9 f7 brne .-22 ; 0x3c74 <__ultoa_invert+0x6c>
  9667. 3c8a: ea cf rjmp .-44 ; 0x3c60 <__ultoa_invert+0x58>
  9668. 3c8c: b4 e0 ldi r27, 0x04 ; 4
  9669. 3c8e: a6 95 lsr r26
  9670. 3c90: 97 95 ror r25
  9671. 3c92: 87 95 ror r24
  9672. 3c94: 77 95 ror r23
  9673. 3c96: 67 95 ror r22
  9674. 3c98: ba 95 dec r27
  9675. 3c9a: c9 f7 brne .-14 ; 0x3c8e <__ultoa_invert+0x86>
  9676. 3c9c: 00 97 sbiw r24, 0x00 ; 0
  9677. 3c9e: 61 05 cpc r22, r1
  9678. 3ca0: 71 05 cpc r23, r1
  9679. 3ca2: 08 95 ret
  9680. 3ca4: 9b 01 movw r18, r22
  9681. 3ca6: ac 01 movw r20, r24
  9682. 3ca8: 0a 2e mov r0, r26
  9683. 3caa: 06 94 lsr r0
  9684. 3cac: 57 95 ror r21
  9685. 3cae: 47 95 ror r20
  9686. 3cb0: 37 95 ror r19
  9687. 3cb2: 27 95 ror r18
  9688. 3cb4: ba 95 dec r27
  9689. 3cb6: c9 f7 brne .-14 ; 0x3caa <__ultoa_invert+0xa2>
  9690. 3cb8: 62 0f add r22, r18
  9691. 3cba: 73 1f adc r23, r19
  9692. 3cbc: 84 1f adc r24, r20
  9693. 3cbe: 95 1f adc r25, r21
  9694. 3cc0: a0 1d adc r26, r0
  9695. 3cc2: 08 95 ret
  9696. 00003cc4 <_exit>:
  9697. 3cc4: f8 94 cli
  9698. 00003cc6 <__stop_program>:
  9699. 3cc6: ff cf rjmp .-2 ; 0x3cc6 <__stop_program>