buttons.A.changed and buttons.B.changed (and others) converted to exactly same asm code (BCF 73.0). both of code uses same memory and everything goes wrong.
i want to differend bytes, bits. (example)
buttons.A.changed = false; --> BCF 73.0
buttons.B.changed = false; --> BCF 73.2
what is i'm doing wrong?
can i use structs in another struct to get this?
thanks.
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Sun Jan 30, 2005 6:15 pm
change
Code:
struct
{
byte A_last;
byte B_last;
byte C_last;
byte D_last;
struct A {int1 changed; int1 pressed;};
struct B {int1 changed; int1 pressed;};
struct C {int1 changed; int1 pressed;};
struct D {int1 changed; int1 pressed;};
} Buttons;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum