Hallo,

ja kann man machen.

vergibst an die einzelnen ports einfach ein alias amen und dann nimmst du zum ansprechen nur noch den namen.

zb:

Code:
Action

Indicates that the variable can be referenced with another name.



Syntax

newvar ALIAS oldvar 
 
 

Remarks 

Oldvar	Name of the variable such as PORTB.1
newvar	New name of the variable such as direction
Aliasing port pins can give the pin names a more meaningful name. 
 


See also

CONST

Example

Config Pinb.1 = Output
Direction Alias Portb.1	'now you can refer to PORTB.1 with the variable direction
Do
  Set Direction		'has the same effect as SET PORTB.1
  Waitms 1
  Reset Directopn
Loop
End
steht auch in der Bascom Hilfe drin

z.B.

Porta.4 alias Portz.0


cu arno