Hi all
I have found a minor but annoying problem when trying to compile an asm file generated by GCBasic with MPASM from MPLAB X IDE
I have the following bit function:
Function detect175Hz as bit
' some code here
if cumultot > treshold1 then
detect175Hz = true
else
detect175Hz = false
end if
end function
The compiler translates that portion of code into:
;if cumultot > treshold1 then
; some asm code here
goto ELSE3_1
;detect175Hz = true
bsf DETECT175HZ
;else
goto ENDIF3
ELSE3_1
;detect175Hz = false
bcf DETECT175HZ
;end if
MPASM does not like that and generates and error since it is expecting 2 args for bsf & bcf. I have to manually fix the pb by appending a 0 (ie bsf DETECT175HZ,0). Am I missing something ?
Last edit: Jacques Nilo 2014-05-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all
I have found a minor but annoying problem when trying to compile an asm file generated by GCBasic with MPASM from MPLAB X IDE
I have the following bit function:
The compiler translates that portion of code into:
MPASM does not like that and generates and error since it is expecting 2 args for bsf & bcf. I have to manually fix the pb by appending a 0 (ie bsf DETECT175HZ,0). Am I missing something ?
Last edit: Jacques Nilo 2014-05-04