On Tue, 27 Feb 2007 23:58:15 -0000, Daniele Terdina <[EMAIL PROTECTED]> wrote:
>> Is there an easy way under QDOS to check which chip is in use - if it >> is a >> 68000 or 68008 I would use 2 (or 4) MOVE.B commands instead? SMSQ does >> implement the processor in the system variables, but it is not present >> on >> QDOS alas. > > Here is what smsqe does: > > move #$3700,sr !!!!!!!!! > move.w sr,d1 > cmp.w #$2700,d1 ; 68000? > beq.s copy ; ... yes > move.w #$2700,sr ; ... no, reset to normal OK I should implement a similar routine to this. George also provided a solution, but this seems easier. > There may be other ways, for example I think C68 has a CPU detection > routine. > > However, another problem is that smsqe won't even check for the Aurora > card on 68000 systems, i.e. 68000 + smsqe + aurora is not currently a > possible > combination. So how do the high colour drivers work on smsq/e + aurora? Or don't they? > Easiest solution to your specific problem (QWord on Q-emuLator) would be > to > assume a 68000 CPU when running on Q-emuLator (as I believe you are > already > testing for this platform). The worst that could happen is that if in the > future I start emulating a 68020 or 68040 in Q-emuLator, you would still > use > four MOVE.B instead of one MOVE.L and on the 10GHz CPU PCs that we'll > have > at that time your code will incur a penalty of perhaps a nanosecond ;) Yes I could do this, but I wanted to ensure that the code would also work on a Gold Card for possible future projects - not just QWord. Still no-one has still reported whether it works on a Gold Card+aurora or not yet !! -- Rich Mellor RWAP Services URL:http://www.rwapsoftware.co.uk URL:http://www.rwapservices.co.uk _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
