;----------------------------------------------------------------- ; EX61.ASM C.P. Diduch 2001 ; ; Continuously read input port IPORT ; and write to output port OPORT. ; ; Author(s): ; Signature(s): Date: ;----------------------------------------------------------------- .EQU IPORT 0 ; #define IPORT 0 .EQU OPORT 2 ; #define OPORT 2 ; .ORG 0x8000 ; "assign the following to ROM" ; ; void main(void) { ; BACK: LOADP R0, IPORT ; do { R0 = inport(IPORT) STOREP OPORT, R0 ; outport(OPORT, R0); JMP BACK ; } ; }