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

; ALGORITHM:
; Clear accumulator
; Add input / 64 to accumulator
; Add input / 128 to accumulator
; Add input / 512 to accumulator
; Add input / 1024 to accumulator
; Move accumulator to result
;
; Approximated constant: 0.0263672, Error: 0.195313 %

;     Input: ACC0, 8 bits
;    Output: ACC0, 3 bits
; Code size: 18 instructions

ACC0	DS	1
ACC1	DS	1

;copy accumulator to temporary
	mov	w, ACC0


;shift accumulator right 1 times
	clc
	rr	ACC0

;add temporary to accumulator
	add	ACC0, w

;shift accumulator right 2 times
	rr	ACC0
	clc
	rr	ACC0

;add temporary to accumulator
	add	ACC0, w

;shift accumulator right 1 times
	rr	ACC0

;add temporary to accumulator
	add	ACC0, w

;shift accumulator right 6 times
	clr	ACC1
	rl	ACC1
	rl	ACC0
	rl	ACC1
	rl	ACC0
	rl	ACC1
	mov	w, ACC1
	mov	ACC0, w

; Generated by www.piclist.com/cgi-bin/constdivmul.exe (1-May-2002 version)
; Mon Dec 11 13:04:07 2017 GMT