How do you flash your LED. Do you have some sort IO circuit like the 8255 or do you just use a simple addressable data latch. I for my part have no clue what SOD is. A schematic would REALLY help. Also what is the SIM statement. Is it some directive to the simulator