Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2023-10-08 05:10:29

theskad81
New member
Registered: 2023-10-08
Posts: 2

Halt bug in empty main loop

Hi,

do you please knows if on REAL hardware halt bug skips next INSTRUCTION or next BYTE?

I happen to have empty main loop and do most of the work in stat and vblank interrupt handler. My question is if following main loop works or not:

loop:
  halt
  jr loop
  jr loop

If yes it would potentially save a lot of cpu cycles on nop execution overtime. Is it worth it?

Thx

Offline

 

#2 2023-10-08 05:14:41

theskad81
New member
Registered: 2023-10-08
Posts: 2

Re: Halt bug in empty main loop

Nah, please ignore. I re-read pandocs with thinking about the text and it contains the answer. BYTE.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson