Gast
#1244416
Beim Assemblieren mit WinCupl erhalte ich die Fehlermeldung "expression contains undefined symbol: InPort". Die Meldung erscheint unabhängig davon, ob ich sie global oder im Macro aufführe. Wo liegt mein Fehler? Das Programm soll InPort zum Outport addieren (siehe Beitrag "Baustein mit 8-Bit Register gesucht"). Device g22V10 ; /* *************** INPUT PINS *********************/ PIN 1 = Clock ; PIN [2..9] = [D7..0] ; PIN 10 = preset ; PIN 11 = enable ; /* *************** OUTPUT PINS *********************/ PIN [14..21] = [Q7..0] ; field InPort = [D7..0] ; field OutPort = [Q7..0] ; $MACRO Addit field InPort = [D7..0] ; field OutPort = [Q7..0] ; OutPort.d = {InPort + QutPort}; $MEND Addit () ; OutPort.ar = 'h'00 ; OutPort.oe = enable ; OutPort.sp = preset ;