local p_mainCycle = 0xF54D local mainCycle = 0 local oldCycle = 5 local height = client.screenheight( ); while true do mainCycle = mainmemory.readbyte(p_mainCycle) if mainCycle == 3 then gui.drawRectangle(0,(height/2)-4,4,4,"green","green") end if mainCycle == oldCycle then gui.drawRectangle(4,(height/2)-4,4,4,"red","red") end oldCycle = mainCycle emu.frameadvance(); end