🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #6592

Suitable Amiga Assembler?

#6592
From: Chris Dailey
Date: Tue, 13 Nov 1990 20:20
92 lines
2324 bytes
I have a program that I'm writing for in standard ANSI C++ on the Suns
at school.  I do not have access to a C++ compiler for the Amiga, and
would like to run it on the Amiga some day when it's done.  Using the -S
switch with g++, I can get the assembly code.  The question remains
whether the format of g++'s 68000 assembly is the same as that of any
Amiga assembler.  I'll include a sample, cut down to about 80 lines
(from ~1000).

Thanks in advance.  While we're at it, I'll redirect follow-ups to
myself and post a summary to save bandwidth.

--------------------------[ Here it is. ]-----------------------------
#NO_APP
gcc_compiled.:
.text
	.even
LC0:
	.double 0r0.00000000000000000000e+00
LC1:
	.ascii "invalid index\0"
	.even
_type$PCc__C6String:
	link a6,#0
	movel a2,sp@-
	movel a6@(8),a2
	clrl sp@-
	movel a2@,d0
	addql #4,d0
	jra L1538
L1538:
	movel d0,sp@-
	jbsr _str__FPCci
	addqw #8,sp
	jra L1537
L1537:
	movel a6@(-4),a2
	unlk a6
	rts
.globl _outputfile
.data
	.even
_outputfile:
	.skip 24
.globl _status
	.even
_status:
	.skip 40
.globl _parser
	.even
_parser:
	.skip 8
.globl _inputfile
	.even
_inputfile:
	.skip 20
.globl _flag2_file
	.even
_flag2_file:
	.skip 24
.globl _err
	.even
_err:
	.skip 12
.text
LC2:
	.ascii "flag2file\0"
LC3:
	.ascii "Too few arguments.\12\0"

[... LC4 through LC9 deleted ...]

LC10:
	.ascii "ERROR: File on opening file '%s'.\12\0"
	.even
.globl _main
_main:
	link a6,#-8
	moveml #0x2020,sp@-
	jbsr ___main
	movel d0,d0
	moveq #1,d1
	movel d1,a6@(-4)
	subql #8,sp
	lea sp@(4),a2
	movel #LC2,d2
	pea -1:w
------------------------[ remainder deleted ]----------------------------
--
Chris Dailey   dailey@(frith.egr|cpsin.cps).msu.edu
BRD += DDR;
DDR = NULL;
num_countries --;
Technical Details
Message-ID: <1990Nov13.202010.9677@msuinfo.cl.msu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!msuinfo!frith!dailey

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!msuinfo!frith!dailey
From: dailey@frith.uucp (Chris Dailey)
Newsgroups: comp.sys.amiga.tech
Subject: Suitable Amiga Assembler?
Keywords: g++, assembler
Message-ID: <1990Nov13.202010.9677@msuinfo.cl.msu.edu>
Date: 13 Nov 90 20:20:10 GMT
Sender: news@msuinfo.cl.msu.edu
Followup-To: dailey@frith.egr.msu.edu
Organization: Michigan State University
Lines: 92