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

; ALGORITHM:
; Clear accumulator
; Add input / 16 to accumulator
; Add input / 256 to accumulator
; Move accumulator to result
;
; Approximated constant: 0.0664063, Error: 0.390624 %

;     Input: ACC0, 8 bits
;    Output: ACC0, 5 bits
; Code size: 12 instructions

ACC0	DS	1
TEMP0	DS	1

;copy accumulator to temporary
	mov	w, ACC0
	mov	TEMP0, w


;shift accumulator right 4 times
	mov	w, <>ACC0
	and	w, #$0F
	mov	ACC0, w

;add temporary to accumulator
	mov	w, TEMP0
	add	ACC0, w

;shift accumulator right 4 times
	mov	w, <>ACC0
	and	w, #$0F
	mov	ACC0, w
	snc
	setb	ACC0.4

; Generated by www.piclist.com/cgi-bin/constdivmul.exe (1-May-2002 version)
; Thu Oct 19 02:07:18 2017 GMT