View Single Post
Old 17 September 2021, 19:48   #3
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,711
Quote:
Originally Posted by Thomas Richter View Post
Not enough information. What means "spawn a console"? If you open a console window with stream=Open("CON:...",MODE_NEWFILE), you close the window with Close(stream).
Any program that doesn't attempt to open an Intuition window, will spawn a console when ran in Workbench. That's my understanding of it, at least. I don't spawn a console manually.

Quote:
Originally Posted by Thomas Richter View Post
Besides, if you want to wait for a key pressed, why don't you open a RAW: window and wait for a key by a Read() on the stream? Poking the hardware is considered very bad practise.
Because it's the simplest way, I'm new to Amiga programming, and I still need the main loop to be up and functioning.

Quote:
Originally Posted by Thomas Richter View Post
WaitTOF() is not your "generic delay function". For that, please use dos/Delay() instead. WaitTOF() may do something different on graphics cards.
I'm fully aware, I'm using it to wait until all vblank interrupts are done so that I'm in "idle time" in the frame. http://amiga.nvg.org/amiga/reference.../node048B.html
8bitbubsy is offline  
 
Page generated in 0.12373 seconds with 11 queries