In SX Microcontrollers, SX/B Compiler and SX-Key Tool, repnz_cmpsb wrote: hmm - yeah - I can live with that... the biggest trick to a neat clean appearance is the leading spaces, not possible with the forum's copy/pasting... [code]MEASURING_THE_TEMPERATURE ; [b]MOV[/b] FSR,#80 [color=green>;a] [b]MOV[/b] IND,#16 [b]MOV[/b] W,#0 [b]INC[/b] FSR ;fsr 81 - lsb of sixteen answers[/color] [b]MOV[/b] IND,W [color=green> ;clears][/color] [b]INC[/b] FSR [color=green>;fsr][/color] [b] MOV[/b] IND,W [color=green>;clears][/color];--- MEASURE_LOOP [color=green>];---[/color] [b]CALL[/b] MEASURE_W_LTC_1298 [color=green>;loads]msb & [u]lsb[/u] ;[/color] [b]MOV[/b] FSR,#81 [color=green>;and][/color] [b]ADD[/b] IND,LSB [color=green> ]INC FSR ;does [i][u]NOT[/u][/i] affect the carry flag[/color] [b]SNC[/b] [b]INC[/b] IND [color=green>;the] [b]ADD[/b] IND,MSB ;fsr 82 - sum of sixteen readings - msb ; [/color] [b]MOV[/b] FSR,#80 [color=green>][/color] [b]DEC[/b] IND [b]CJNE[/b] IND,#0,MEASURE_LOOP ;---
tommy[/code]
---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=176326#m176339 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)