3DO ZONE Forums

The Only R.E.A.L. 3DO Experience.
It is currently Sun May 28, 2017 3:56 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Sat Feb 21, 2015 7:40 pm 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
I am going to experiment with the two 32bit jagrisc syntax of flavors of vasm(standard and motorola). I am having trouble getting it to compile. It's driving me nuts. Here is what I am getting.

Code:
C:\vasm>make clean

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

        rm -f obj/__vasm.o obj/__atom.o obj/__expr.o obj/__symtab.o obj/__symbol
.o  obj/__error.o obj/__parse.o obj/__reloc.o obj/__hugeint.o  obj/__supp.o obj/
__cpu.o obj/__syntax.o  obj/__output_test.o obj/__output_elf.o obj/__output_bin.
o  obj/__output_vobj.o obj/__output_hunk.o obj/__output_aout.o  obj/__output_tos
.o vasm_
'rm' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.

C:\vasm>mingw32-make cpu=jagrisc syntax=mot
'mingw32-make' is not recognized as an internal or external command,
operable program or batch file.

C:\vasm>set PATH=c:\stuff\dev-cpp\mingw32\bin;%PATH% ]

C:\vasm>set PATH=c:\stuff\dev-cpp\mingw32\bin;%PATH%

C:\vasm>mingw32-make cpu=jagrisc syntax=mot
mingw32-make: *** No rule to make target 'cpus//cpu.h', needed by 'obj/__vasm.o'
.  Stop.

C:\vasm>vasm
vasm 1.7 (c) in 2002-2014 Volker Barthelmann
vasm M68k/CPU32/ColdFire cpu backend 2.0 (c) 2002-2014 Frank Wille
vasm motorola syntax module 3.6 (c) 2002-2014 Frank Wille
vasm test output module 1.0 (c) 2002 Volker Barthelmann

fatal error 16: no input file specified
aborting...

C:\vasm>mingw32-make makefile cpu=jagrisc syntax=mot
mingw32-make: Nothing to be done for 'makefile'.

C:\vasm>

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sat Feb 21, 2015 7:45 pm 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
Also the package I downloaded already has a built vasm binary in it for the m68k/coldfire setup. I'm not sure why that is but anyways. I've deleted it. I will see if it builds now.

I tried again. I still get this:

Code:
C:\vasm>mingw32-make cpu=jagrisc syntax=mot
mingw32-make: *** No rule to make target 'cpus//cpu.h', needed by 'obj/__vasm.o
.  Stop.

C:\vasm>


The module is there. I don't know what the deal is why it isn't building.

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sat Feb 21, 2015 8:01 pm 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
whoops maybe its case sensitive. Lemme retry this. :P

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sat Feb 21, 2015 8:06 pm 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
ok that worked. lol. I will try the test.s file later. See what happens.

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sat Feb 21, 2015 8:09 pm 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
Code:
C:\vasm>vasmjagrisc_mot
vasm 1.7 (c) in 2002-2014 Volker Barthelmann
vasm Jaguar RISC cpu backend 0.2 (c) 2014 Frank Wille
vasm motorola syntax module 3.6 (c) 2002-2014 Frank Wille
vasm test output module 1.0 (c) 2002 Volker Barthelmann

fatal error 16: no input file specified
aborting...

C:\vasm>

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sun Feb 22, 2015 12:29 am 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
Here is the code I'm using generated from Chilly Willy's test.s file from his experiments with the jrisc compiler to test the two jrisc builds of VASM(standard and motorola):

Code:
;GCC for Atari Jaguar GPU/DSP (Jun 12 1995) (C)1994-95 Brainstorm
   MACRO   _RTS
   load   (ST),TMP
   jump   T,(TMP)
   addqt   #4,ST   ;rts
   ENDM
_test_start::
   .GPU
   .ORG   $F03000
ST   .REGEQU   r18
FP   .REGEQU   r17
TMP   .REGEQU   r16
GT   .CCDEF   $15
gcc2_compiled_for_madmac:
   ;(.DATA)
   .LONG
_global::
   .DC.L   5
   ;(.TEXT)
   .EVEN
_GetTest1::
   subqt   #4,ST
   store   FP,(ST)
   move   ST,FP   ;link
   subqt   #8,ST
   move   FP,r1   ;movsi   FP->r1
   move   FP,r2   ;movsi   FP->r2
   subqt   #4,r2   ;isubqtsi3   r2-#4->r2
   move   r2,r3   ;movsi   r2->r3
   store   r0,(r3)   ;movsi   r0->(r3)
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r0   ;movsi   r4->r0
   moveq   #0,r6   ;movsi   #0->r6
   store   r6,(r0)   ;movsi   r6->(r0)
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #4,r4   ;isubqtsi3   r4-#4->r4
   move   r4,r0   ;movsi   r4->r0
   load   (r0),r4   ;movsi   (r0)->r4
   moveq   #9,r0   ;movsi   #9->r0
   cmp   r4,r0   ;rcmpsi   r4,r0
   movei   #L2,TMP
   jump   GT,(TMP)
   nop      ;jgt   L2
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r0   ;movsi   r4->r0
   movei   #100,r6   ;movsi   #100->r6
   store   r6,(r0)   ;movsi   r6->(r0)
   movei   #L3,TMP
   jump   T,(TMP)
   nop      ;jt   L3
   .EVEN
L2:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #4,r4   ;isubqtsi3   r4-#4->r4
   move   r4,r0   ;movsi   r4->r0
   load   (r0),r4   ;movsi   (r0)->r4
   moveq   #9,r0   ;movsi   #9->r0
   cmp   r4,r0   ;rcmpsi   r4,r0
   movei   #L4,TMP
   jump   GT,(TMP)
   nop      ;jgt   L4
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r0   ;movsi   r4->r0
   moveq   #10,r6   ;movsi   #10->r6
   store   r6,(r0)   ;movsi   r6->(r0)
   movei   #L5,TMP
   jump   T,(TMP)
   nop      ;jt   L5
   .EVEN
L4:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #4,r4   ;isubqtsi3   r4-#4->r4
   move   r4,r0   ;movsi   r4->r0
   load   (r0),r4   ;movsi   (r0)->r4
   cmpq   #0,r4   ;tstsi   r4
   movei   #L6,TMP
   jump   EQ,(TMP)
   nop      ;jeq   L6
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r0   ;movsi   r4->r0
   moveq   #1,r6   ;movsi   #1->r6
   store   r6,(r0)   ;movsi   r6->(r0)
L6:
L5:
L3:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r5   ;movsi   r4->r5
   load   (r5),r0   ;movsi   (r5)->r0
   movei   #L1,TMP
   jump   T,(TMP)
   nop      ;jt   L1
   .EVEN
L1:
   move   FP,ST
   load   (ST),FP
   addqt   #4,ST   ;unlk
   _RTS
   .EVEN
_GetTest2::
   subqt   #4,ST
   store   FP,(ST)
   move   ST,FP   ;link
   subqt   #8,ST
   move   FP,r1   ;movsi   FP->r1
   move   FP,r2   ;movsi   FP->r2
   subqt   #4,r2   ;isubqtsi3   r2-#4->r2
   move   r2,r3   ;movsi   r2->r3
   store   r0,(r3)   ;movsi   r0->(r3)
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r0   ;movsi   r4->r0
   moveq   #0,r6   ;movsi   #0->r6
   store   r6,(r0)   ;movsi   r6->(r0)
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #4,r4   ;isubqtsi3   r4-#4->r4
   move   r4,r5   ;movsi   r4->r5
   load   (r5),r0   ;movsi   (r5)->r0
   moveq   #9,r4   ;movsi   #9->r4
   cmp   r4,r0   ;cmpsi   r4,r0
   movei   #L18,TMP
   jump   GT,(TMP)
   nop      ;jgt   L18
   moveq   #1,r4   ;movsi   #1->r4
   cmp   r4,r0   ;cmpsi   r4,r0
   movei   #L18,TMP
   jump   MI,(TMP)
   nop      ;jlt   L18
   movei   #L9,TMP
   jump   T,(TMP)
   nop      ;jt   L9
   .EVEN
L9:
L10:
L11:
L12:
L13:
L14:
L15:
L16:
L17:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r0   ;movsi   r4->r0
   moveq   #1,r6   ;movsi   #1->r6
   store   r6,(r0)   ;movsi   r6->(r0)
   movei   #L8,TMP
   jump   T,(TMP)
   nop      ;jt   L8
   .EVEN
L18:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r0   ;movsi   r4->r0
   moveq   #10,r6   ;movsi   #10->r6
   store   r6,(r0)   ;movsi   r6->(r0)
L8:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r4   ;movsi   FP->r4
   subqt   #8,r4   ;isubqtsi3   r4-#8->r4
   move   r4,r5   ;movsi   r4->r5
   load   (r5),r0   ;movsi   (r5)->r0
   movei   #L7,TMP
   jump   T,(TMP)
   nop      ;jt   L7
   .EVEN
L7:
   move   FP,ST
   load   (ST),FP
   addqt   #4,ST   ;unlk
   _RTS
   .EVEN
_Test3::
   subqt   #4,ST
   store   FP,(ST)
   move   ST,FP   ;link
   subqt   #32,ST
   subqt   #8,ST
   move   ST,r14
   store   r19,(ST)
   store   r20,(r14+1)
   store   r21,(r14+2)
   store   r22,(r14+3)
   store   r23,(r14+4)
   store   r24,(r14+5)
   move   FP,r19   ;movsi   FP->r19
   move   FP,r20   ;movsi   FP->r20
   subqt   #4,r20   ;isubqtsi3   r20-#4->r20
   move   r20,r21   ;movsi   r20->r21
   store   r0,(r21)   ;movsi   r0->(r21)
   move   FP,r0   ;movsi   FP->r0
   move   FP,r1   ;movsi   FP->r1
   subqt   #8,r1   ;isubqtsi3   r1-#8->r1
   move   r1,r0   ;movsi   r1->r0
   moveq   #0,r3   ;movsi   #0->r3
   store   r3,(r0)   ;movsi   r3->(r0)
   move   FP,r0   ;movsi   FP->r0
   move   FP,r1   ;movsi   FP->r1
   subqt   #16,r1   ;isubqtsi3   r1-#16->r1
   move   r1,r0   ;movsi   r1->r0
   moveq   #0,r3   ;movsi   #0->r3
   store   r3,(r0)   ;movsi   r3->(r0)
L21:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r1   ;movsi   FP->r1
   subqt   #8,r1   ;isubqtsi3   r1-#8->r1
   move   r1,r0   ;movsi   r1->r0
   move   FP,r1   ;movsi   FP->r1
   move   FP,r2   ;movsi   FP->r2
   subqt   #4,r2   ;isubqtsi3   r2-#4->r2
   move   r2,r1   ;movsi   r2->r1
   load   (r0),r0   ;movsi   (r0)->r0
   load   (r1),r1   ;movsi   (r1)->r1
   cmp   r1,r0   ;cmpsi   r1,r0
   movei   #L24,TMP
   jump   MI,(TMP)
   nop      ;jlt   L24
   movei   #L22,TMP
   jump   T,(TMP)
   nop      ;jt   L22
   .EVEN
L24:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r1   ;movsi   FP->r1
   subqt   #12,r1   ;isubqtsi3   r1-#12->r1
   move   r1,r0   ;movsi   r1->r0
   move   FP,r1   ;movsi   FP->r1
   move   FP,r2   ;movsi   FP->r2
   subqt   #8,r2   ;isubqtsi3   r2-#8->r2
   move   r2,r1   ;movsi   r2->r1
   moveq   #1,r2   ;movsi   #1->r2
   load   (r1),r1   ;movsi   (r1)->r1
   neg   r1   ;negsi2   r1->r1
   sha   r1,r2   ;iashlsi3   r2<<r1->r2
   neg   r1   ;negsi2   r1->r1
   store   r2,(r0)   ;movsi   r2->(r0)
   move   FP,r0   ;movsi   FP->r0
   move   FP,r1   ;movsi   FP->r1
   subqt   #16,r1   ;isubqtsi3   r1-#16->r1
   move   r1,r22   ;movsi   r1->r22
   move   ST,r0   ;movsi   ST->r0
   move   FP,r1   ;movsi   FP->r1
   move   FP,r0   ;movsi   FP->r0
   subqt   #8,r0   ;isubqtsi3   r0-#8->r0
   move   r0,r1   ;movsi   r0->r1
   load   (r1),r0   ;movsi   (r1)->r0
   movei   #_GetTest1,r23   ;movsi   #_GetTest1->r23
   move   PC,TMP
   subqt   #4,ST
   addqt   #10,TMP
   jump   T,(r23)
   store   TMP,(ST)   ;call   r23->r0
   move   r0,r23   ;movsi   r0->r23
   move   ST,r0   ;movsi   ST->r0
   move   FP,r1   ;movsi   FP->r1
   move   FP,r0   ;movsi   FP->r0
   subqt   #12,r0   ;isubqtsi3   r0-#12->r0
   move   r0,r1   ;movsi   r0->r1
   load   (r1),r0   ;movsi   (r1)->r0
   movei   #_GetTest2,r24   ;movsi   #_GetTest2->r24
   move   PC,TMP
   subqt   #4,ST
   addqt   #10,TMP
   jump   T,(r24)
   store   TMP,(ST)   ;call   r24->r0
   move   FP,r1   ;movsi   FP->r1
   move   FP,r2   ;movsi   FP->r2
   subqt   #16,r2   ;isubqtsi3   r2-#16->r2
   move   r2,r1   ;movsi   r2->r1
   add   r23,r0   ;iaddsi3   r23+r0->r0
   load   (r1),r1   ;movsi   (r1)->r1
   add   r1,r0   ;iaddsi3   r1+r0->r0
   store   r0,(r22)   ;movsi   r0->(r22)
L23:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r1   ;movsi   FP->r1
   subqt   #8,r1   ;isubqtsi3   r1-#8->r1
   move   r1,r0   ;movsi   r1->r0
   move   FP,r1   ;movsi   FP->r1
   move   FP,r2   ;movsi   FP->r2
   subqt   #8,r2   ;isubqtsi3   r2-#8->r2
   move   r2,r0   ;movsi   r2->r0
   move   FP,r1   ;movsi   FP->r1
   move   FP,r2   ;movsi   FP->r2
   subqt   #8,r2   ;isubqtsi3   r2-#8->r2
   move   r2,r1   ;movsi   r2->r1
   load   (r1),r2   ;movsi   (r1)->r2
   move   r2,r1   ;movsi   r2->r1
   addqt   #1,r1   ;iaddqtsi3   #1+r1->r1
   move   r1,r2   ;movsi   r1->r2
   store   r2,(r0)   ;movsi   r2->(r0)
   movei   #L21,TMP
   jump   T,(TMP)
   nop      ;jt   L21
   .EVEN
L22:
   move   FP,r0   ;movsi   FP->r0
   move   FP,r1   ;movsi   FP->r1
   subqt   #16,r1   ;isubqtsi3   r1-#16->r1
   move   r1,r2   ;movsi   r1->r2
   load   (r2),r0   ;movsi   (r2)->r0
   movei   #L20,TMP
   jump   T,(TMP)
   nop      ;jt   L20
   .EVEN
L20:
   move   ST,r14
   load   (ST),r19
   load   (r14+1),r20
   load   (r14+2),r21
   load   (r14+3),r22
   load   (r14+4),r23
   load   (r14+5),r24
   move   FP,ST
   load   (ST),FP
   addqt   #4,ST   ;unlk
   _RTS
   .LONG
   .68000
_test_end::
_test_size   .EQU   *-_test_start
   .GLOBL   _test_size
   .IF   _test_size>$1000
   .PRINT   "Code size (",/l/x _test_size,") is over $1000"
   .FAIL
   .ENDIF


First test with the standard syntax module:

Code:
C:\vasm\test>vasmjagrisc_std test.o test.s
vasm 1.7 (c) in 2002-2014 Volker Barthelmann
vasm Jaguar RISC cpu backend 0.2 (c) 2014 Frank Wille
vasm std syntax module 3.8d (c) 2002-2014 Volker Barthelmann
vasm test output module 1.0 (c) 2002 Volker Barthelmann

error 12: multiple input files

error 2 in line 2 of "test.s": unknown mnemonic <MACRO>
>   MACRO   _RTS

error 1 in line 3 of "test.s": illegal operand types
>   load   (ST),TMP

error 1 in line 4 of "test.s": illegal operand types
>   jump   T,(TMP)

error 1 in line 5 of "test.s": illegal operand types
>   addqt   #4,ST   ;rts
***maximum number of errors reached!***

C:\vasm\test>


I think I can get rid of the 'multiple input file' error.

Now I'll try the motorola/devpak build:

Code:
C:\vasm\test>vasmjagrisc_mot test.o test.s
vasm 1.7 (c) in 2002-2014 Volker Barthelmann
vasm Jaguar RISC cpu backend 0.2 (c) 2014 Frank Wille
vasm motorola syntax module 3.6 (c) 2002-2014 Frank Wille
vasm test output module 1.0 (c) 2002 Volker Barthelmann

error 12: multiple input files

error 1011 in line 7 of "test.s": identifier expected
>_test_start::

error 2 in line 8 of "test.s": unknown mnemonic <.GPU>
>   .GPU

error 2 in line 9 of "test.s": unknown mnemonic <.ORG>
>   .ORG   $F03000

error 2 in line 10 of "test.s": unknown mnemonic <.REGEQU>
>ST   .REGEQU   r18
***maximum number of errors reached!***

C:\vasm\test>


And for now there we are.

Interesting to note the assemblers are choking on different things. the motorola syntax seems to get farther before it hits an error.

I know nothing about assembly unfortunately.

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sun Feb 22, 2015 4:35 am 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
To me it seems obvious that if Frank or someone else does a madmac syntax module for vasm it will immediately render madmac, smac and rmac irreversibly obsolete.

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sun Feb 22, 2015 6:12 am 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
I am going to try removing the '.' before GPU, ORG and REGEQU in lines 8,9 and 10 and see if that clears it up a little with the devpak syntax. I have no idea how to deal with the 'identifier expected' at _test_start::

Here we go...

Code:
C:\vasm\test>vasmjagrisc_mot test.o test.s
vasm 1.7 (c) in 2002-2014 Volker Barthelmann
vasm Jaguar RISC cpu backend 0.2 (c) 2014 Frank Wille
vasm motorola syntax module 3.6 (c) 2002-2014 Frank Wille
vasm test output module 1.0 (c) 2002 Volker Barthelmann

error 12: multiple input files

error 1011 in line 7 of "test.s": identifier expected
>_test_start::

error 2 in line 8 of "test.s": unknown mnemonic <GPU>
>   GPU

error 2 in line 10 of "test.s": unknown mnemonic <REGEQU>
>ST   REGEQU   r18

error 2 in line 11 of "test.s": unknown mnemonic <.REGEQU>
>FP   .REGEQU   r17
***maximum number of errors reached!***

C:\vasm\test>


So the problem is a little bit bigger than just removing the '.' and out of my experience range.

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Wed Feb 25, 2015 6:31 pm 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
I got feedback from Frank on this

Quote:
error 12: multiple input files
- As it says. You specified test.o and test.s as input sources. If you
want to name the output file test.o you should write "-o test.o".


whoops


Quote:
error 1011 in line 7 of "test.s": identifier expected
> _test_start::
- Terminating a label with two colons is not allowed. Remove one.
Maybe I can allow that, when it is very common, but it seems stupid.


error 2 in line 8 of "test.s": unknown mnemonic <GPU>
- Switches to the GPU instruction set. At the moment this can only be
done on the command line, with "-mgpu". The default is to support GPU
and DSP instructions, so you can probably delete it.


error 2 in line 10 of "test.s": unknown mnemonic <REGEQU>
- Directives to assign register symbols are still missing vasmjagrisc.


I need a list of common directives used in Jaguar assembler sources,
so I can implement them. Besides GPU there is probably also DSP?

What different assembler syntaxes exist for Jaguar RISC? Just Madmac?


Regards,

--
Frank Wille

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Wed Feb 25, 2015 8:03 pm 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
Code:
C:\vasm\test>vasmjagrisc_mot -o  test.o test.s
vasm 1.7 (c) in 2002-2014 Volker Barthelmann
vasm Jaguar RISC cpu backend 0.2 (c) 2014 Frank Wille
vasm motorola syntax module 3.6 (c) 2002-2014 Frank Wille
vasm test output module 1.0 (c) 2002 Volker Barthelmann

error 2 in line 8 of "test.s": unknown mnemonic <.ORG>
>   .ORG   $F03000

error 2 in line 9 of "test.s": unknown mnemonic <.REGEQU>
>ST   .REGEQU   r18

error 2 in line 10 of "test.s": unknown mnemonic <.REGEQU>
>FP   .REGEQU   r17

error 2 in line 11 of "test.s": unknown mnemonic <.REGEQU>
>TMP   .REGEQU   r16

error 2 in line 12 of "test.s": unknown mnemonic <.CCDEF>
>GT   .CCDEF   $15
***maximum number of errors reached!***

C:\vasm\test>

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sat Mar 14, 2015 6:09 am 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
On Thursday March 12th I downloaded the vasm daily snapshot(NOT official release) and compiled both syntax flavors for testing.

Here are the results with test.s from above with the standard syntax first which the results look about the same. Though the jagrisc backend version number has climbed.

Code:
C:\vasm\test>vasmjagrisc_std -o test.o test.s
vasm 1.7c (c) in 2002-2015 Volker Barthelmann
vasm Jaguar RISC cpu backend 0.3a (c) 2014-2015 Frank Wille
vasm std syntax module 3.8f (c) 2002-2014 Volker Barthelmann
vasm test output module 1.0 (c) 2002 Volker Barthelmann

error 2 in line 2 of "test.s": unknown mnemonic <MACRO>
>   MACRO   _RTS

error 1 in line 3 of "test.s": illegal operand types
>   load   (ST),TMP

error 1 in line 4 of "test.s": illegal operand types
>   jump   T,(TMP)

error 1 in line 5 of "test.s": illegal operand types
>   addqt   #4,ST   ;rts

error 2 in line 6 of "test.s": unknown mnemonic <ENDM>
>   ENDM
***maximum number of errors reached!***

C:\vasm\test>


This time though it seems to be allowing more errors. 5 versus 4.

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
PostPosted: Sat Mar 14, 2015 6:20 am 
Offline
Jaguar MOD
User avatar

Joined: Mon Apr 01, 2013 7:09 am
Posts: 820
And now the Motorola devpak syntax.

Code:
C:\vasm\test>vasmjagrisc_mot -o test.o test.s
vasm 1.7c (c) in 2002-2015 Volker Barthelmann
vasm Jaguar RISC cpu backend 0.3a (c) 2014-2015 Frank Wille
vasm motorola syntax module 3.7 (c) 2002-2015 Frank Wille
vasm test output module 1.0 (c) 2002 Volker Barthelmann

error 1011 in line 7 of "test.s": identifier expected
>_test_start::

error 2 in line 9 of "test.s": unknown mnemonic <.ORG>
>   .ORG   $F03000

error 2 in line 13 of "test.s": unknown mnemonic <.CCDEF>
>GT   .CCDEF   $15

error 2 in line 16 of "test.s": unknown mnemonic <.LONG>
>   .LONG

error 1011 in line 17 of "test.s": identifier expected
>_global::
***maximum number of errors reached!***

C:\vasm\test>


So this does do what he claimed and gets past the three directives he put in there.

Quote:
I added GPU, DSP and REGEQU, with an optional leading dot.

New snapshot will be available around 04:00 UTC.

Regards,

--
Frank Wille


Since then I have given him an entire list of directives along with the smac manual with their descriptions so he is working on it.

Looks promising.

_________________
What came after the Jaguar was the PS1 which for all it's greatness, ushered in corporate development and with it the bleached, repetitive, bland titles which for the most part we're still playing today. - David Wightman


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group