Using DebugPrintF and Forbid
Using DebugPrintF and Forbid
Does DebugPrintF enter wait state? In other words, should DebugPrintFs be removed out of Forbid/Permit context?
- tonyw
- AmigaOS Core Developer
- Posts: 1479
- Joined: Wed Mar 09, 2011 1:36 pm
- Location: Sydney, Australia
Re: Using DebugPrintF and Forbid
No, DebugPrintF() waits on the "done" bit in the serial device register. It uses no interrupts and hangs the machine while it outputs the string of characters.
Forbid/Permit calls are unnecessary for DebugPrintF() to work and will have no effect on it.
Forbid/Permit calls are unnecessary for DebugPrintF() to work and will have no effect on it.
cheers
tony
tony
Re: Using DebugPrintF and Forbid
Thanks for the information.