I have a few very basic questions about the Hello World program that comes with NESICIDE 2.
First, in .proc reset, there is a brief loop:
Which is then followed by initializing a few values.
Then we get to
Why is vwait1 even included in the code?
It appears to me that this program loops the 'vwait1' portion until the PPU is ready, then sets a few values, then does 'wait2', but by that time the PPU is already warmed up.
If I comment out vwait1, (all three lines mentioned above) the compiled program appears to run just as well.
The basic process is then: Power on console. Initialize a few values, then wait for PPU before proceeding.
First, in .proc reset, there is a brief loop:
Code:
vwait1:
bit PPUSTATUS
bpl vwait1
bit PPUSTATUS
bpl vwait1
Which is then followed by initializing a few values.
Then we get to
Code:
vwait2:
bit PPUSTATUS
bpl vwait2
bit PPUSTATUS
bpl vwait2
Why is vwait1 even included in the code?
It appears to me that this program loops the 'vwait1' portion until the PPU is ready, then sets a few values, then does 'wait2', but by that time the PPU is already warmed up.
If I comment out vwait1, (all three lines mentioned above) the compiled program appears to run just as well.
The basic process is then: Power on console. Initialize a few values, then wait for PPU before proceeding.