Do NOT use code like that, unless you want to eat the batteries. Always use halt for delay loops, as it puts the processor into low power mode. > You also could do: > > ld hl,8000h > ld de,8000h > ld bc,1000 > ldir