23 1. Lua programming Edit [Main] program Step 2: add the following string to the [Main] program. This part of the program compares the values of $100 and $101, and then write the result to $200. If these two values are equal, the result is 1; if not, the result is 0. [require "Prog001"] in the second line loads Prog001. The instruction in line 9 calls the function in the subroutine. require "Prog001" while true do -- Add loop code here (cyclic run) -- read $100,$101 v1 = mem.inter.Read(100) v2 = mem.inter.Read(101) -- compare these values result = equal(v1,v2) --write result to $200 rev = mem.inter.Write(200,result) -- one cycle is 250ms sys.Sleep(250) end