hi, in "standard" way it is possible to locate a variable next way:
; motors control register MOTORS_CONTROL DATA 0x20 ; motor 1 CTRL1_UP BIT CONTROL_BITS.0 CTRL1_DOWN BIT CONTROL_BITS.1 CTRL1_LEFT BIT CONTROL_BITS.2 CTRL1_RIGHT BIT CONTROL_BITS.3 ; motor 2 CTRL2_UP BIT CONTROL_BITS.4 CTRL2_DOWN BIT CONTROL_BITS.5 CTRL2_LEFT BIT CONTROL_BITS.6 CTRL2_RIGHT BIT CONTROL_BITS.7
SETB CTRL1_UP ; motor 1 goes up SETB CTRL2_LEFT ; motor 2 goes left
ORL MOTORS_CONTROL,#00010001b ; both motors go up
?BI?MOTORS_CTRL SEGMENT BIT RSEG ?BI?MOTORS_CTRL CTRL1_UP: DBIT 1 CTRL1_DOWN: DBIT 1 ; etc
It seems that much of what I do to handle things like this (NOT a problem, just observing) is things that were needed with older software, but is not with current Keil. I'll probably continue trodding along in my well worn and proven path, but for the freshmen the features comming out of the woodwork in this thread seems the way to go. Erik