[comp.sources.d] problems with DUNGEON

keyman%doorway@Sun.COM (David Evans) (09/19/87)

Hello, I get the following error when compiling dungeon:

f77 -c -O  dso7.F
/tmp/cpp.8095.0.f:
        encryp:
        cpgoto:
        cpinfo:
as: error (/tmp/c2.8095.7.s:153): Invalid op-code
as: error (/tmp/c2.8095.7.s:182): Invalid op-code
as: error (/tmp/c2.8095.7.s:191): Invalid op-code
as: error (/tmp/c2.8095.7.s:239): Invalid op-code
*** Error code 255

Stop.

I have then compiled to get the assem code and what I find is(line numbers included):

   147          rts
   148  L77003:
   149          pea     1
   150          movl    #v.15+-1,a0
   151          addl    d7,a0
   152          movb    a0@,d0
   153          extbl   d0
   154          subql   #4,sp
   155          moveq   #-64,d1
   156          addl    d1,d0
   157          movl    d0,a6@(-8)
   158          movl    d4,a0
   159          movl    a6@(-68),a1

also :

   178  LY00000:
   179          pea     1
   180          lea     a3@(0,d6:l),a0
   181          movb    a0@,d0
   182          extbl   d0
   183          subql   #4,sp
   184          moveq   #-64,d1
   185          addl    d1,d0
   186          movl    d0,a5@
   187          pea     1
   188          movl    #ARR_SEG1+-1,a0
   189          addl    d7,a0
   190          movb    a0@,d0
   191          extbl   d0
   192          subql   #4,sp

and:

   234  L77007:
   235          pea     1
   236          movl    #ARR_SEG1+-1,a0
   237          addl    d6,a0
   238          movb    a0@,d0
   239          extbl   d0
   240          subql   #4,sp
   241          movl    a5@,d1

Now the problem is that the "extbl d0" is a 68020 opcode and I am attempting to compile this on a sun 2/120 (68010) (I have also attempted to add the flag 
-mc68010 to the flags given to the f77 compiler, but this has not helped because it is only a flag to the assembler).  Now it compiles past this if I include the flag -mc68020 (tell the assembler to accept 68020 opcodes), but this causes the .o file to be stamped 68020 not 68010 (and also prob. not work).  I think that the f77 compiler should not produce these opcodes on my machine.

	Any help would be appreciated.

		-Dave

-Keyman

UUCP: {ucbvax,decvax,allegra,decwrl,cbosgd,ihnp4,seismo}!sun!keyman
ARPA: keyman@sun.com