> 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

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.

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 ;)

Daniele


_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to