For many years now there has been a 9010 script "out there" for Asteroids. One of the tests that it does is to draw a cross on the screen exercising the extremities of X & Y.
Does anyone know the origin of this? Was it in an official bulletin by some company, or was it just something someone knocked up?
The reason for asking is that in a totally unrelated, almost entirely non arcade related endeavour I've been dissecting and hacking away at the Asteroids vector ROM today. On my travels I've had to go right back to the schematics as the two main texts that I was following either seemed to fall apart in incompleteness, incorrectness, assumptions, or any combination thereof!!
In the end I've managed to thoroughly come to an understanding, well, enough of one to achieve what I want, and along the way, I believe that the writer of that script is incorrect.
My understanding is that while the co-ordinate system for the screen goes from 0 - 1023 in both axis, for X 0 is the far left, 512 is the middle and 1023 is the far right, but for Y the bottom isn't 0, it's 128, the middle is (correctly) 512 and the top, again, is not 1023 but 996.
So, this script that moves the beam to absolute position Y:1023, and then relative Y:-1023 is actually trying to draw off-screen and is only being prevented by the overflow on the position counters pulling the positioning back to a sensible value.
Does anyone agree? Disagree? Am I talking double dutch, or barking up completely the wrong tree?
The only thing I've not got my head around yet is the scaling. But...
1) I'm not convinced it's relevant for what I'm up to as I believe it's related to the time the beam takes to be drawn and thus keeping the thing in proportion and at the correct intensity
2) I've not actually looked it up yet
guddler2011-01-01 22:15:42
Does anyone know the origin of this? Was it in an official bulletin by some company, or was it just something someone knocked up?
The reason for asking is that in a totally unrelated, almost entirely non arcade related endeavour I've been dissecting and hacking away at the Asteroids vector ROM today. On my travels I've had to go right back to the schematics as the two main texts that I was following either seemed to fall apart in incompleteness, incorrectness, assumptions, or any combination thereof!!
In the end I've managed to thoroughly come to an understanding, well, enough of one to achieve what I want, and along the way, I believe that the writer of that script is incorrect.
My understanding is that while the co-ordinate system for the screen goes from 0 - 1023 in both axis, for X 0 is the far left, 512 is the middle and 1023 is the far right, but for Y the bottom isn't 0, it's 128, the middle is (correctly) 512 and the top, again, is not 1023 but 996.
So, this script that moves the beam to absolute position Y:1023, and then relative Y:-1023 is actually trying to draw off-screen and is only being prevented by the overflow on the position counters pulling the positioning back to a sensible value.
Does anyone agree? Disagree? Am I talking double dutch, or barking up completely the wrong tree?
The only thing I've not got my head around yet is the scaling. But...
1) I'm not convinced it's relevant for what I'm up to as I believe it's related to the time the beam takes to be drawn and thus keeping the thing in proportion and at the correct intensity
2) I've not actually looked it up yet
guddler2011-01-01 22:15:42