vishy71
Full Member level 2
Hi
I wanna discribe RB0 as a bit register!for example we can write this code in BASIC:
x0 var portb.0
so x0=RB0! and then we can use this bit like as this:
x0=0
or
0x=1
but in Assembly how we can do this?
thanks
---------- Post added at 12:19 ---------- Previous post was at 11:01 ----------
Hi
this is my purpose:
movlw 0xfe
movwf tmp
now: if tmp.0=1 then RB0=1,delay,RB0=0,return else RB0=0,delay,return
if tmp.1=1 then RB0=1,delay,RB0=0,return else RB0=0,delay,return
....
thanks
I wanna discribe RB0 as a bit register!for example we can write this code in BASIC:
x0 var portb.0
so x0=RB0! and then we can use this bit like as this:
x0=0
or
0x=1
but in Assembly how we can do this?
thanks
---------- Post added at 12:19 ---------- Previous post was at 11:01 ----------
Hi
this is my purpose:
movlw 0xfe
movwf tmp
now: if tmp.0=1 then RB0=1,delay,RB0=0,return else RB0=0,delay,return
if tmp.1=1 then RB0=1,delay,RB0=0,return else RB0=0,delay,return
....
thanks