; ACC = ACC * 0.333333
; Temp = TEMP
; ACC size = 8 bits
; Error = 0.5 %
; Bytes order = little endian
; Round = no

; ALGORITHM:
; Clear accumulator
; Add input / 4 to accumulator
; Add input / 16 to accumulator
; Add input / 64 to accumulator
; Add input / 256 to accumulator
; Move accumulator to result
;
; Approximated constant: 0.332031, Error: 0.390525 %

;     Input: ACC0, 8 bits
;    Output: ACC0, 7 bits
; Code size: 17 instructions

	cblock
	ACC0
	endc

;copy accumulator to temporary
	movf	ACC0, w


;shift accumulator right 2 times
	clrc
	rrf	ACC0, f
	clrc
	rrf	ACC0, f

;add temporary to accumulator
	addwf	ACC0, f

;shift accumulator right 2 times
	rrf	ACC0, f
	clrc
	rrf	ACC0, f

;add temporary to accumulator
	addwf	ACC0, f

;shift accumulator right 2 times
	rrf	ACC0, f
	clrc
	rrf	ACC0, f

;add temporary to accumulator
	addwf	ACC0, f

;shift accumulator right 2 times
	rrf	ACC0, f
	clrc
	rrf	ACC0, f

; Generated by www.piclist.com/cgi-bin/constdivmul.exe (1-May-2002 version)
; Sun Dec 17 17:47:30 2017 GMT