thanks for sharing Alan.
One remark : i see cbi/sbi which will work fine but you can best use SET/RESET or just PORTX.y= 1|0 , bascom will make exact the same cbi/sbi instructions.
The advantage : when you change processor and it does not have these ports at the low address , cbi/sbi will not work.
bascom will create the proper code in that case. so for better portability between chips it is best to use basic instead of asm.
↧