;---------------------------------------------------------------- ; LD211.ASM ; Continuously accumulate the value read at port 0 and write ; a value to port 2. C.P. Diduch, September 28, 2004. ;---------------------------------------------------------------- .ORG 0x8000 ; // Assign the following to ROM. ; ; void main(void) { BACK: LOADP R0, 0 ; do { R0 = inport(0); STOREP 2, R0 ; outport(2, R0); JMP BACK ; } ; }