Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!amdahl!dwl10 From: dwl10@amdahl.UUCP Newsgroups: comp.sys.cbm Subject: Re: assembler info wanted Message-ID: <9800@amdahl.amdahl.com> Date: Thu, 9-Jul-87 07:54:48 EDT Article-I.D.: amdahl.9800 Posted: Thu Jul 9 07:54:48 1987 Date-Received: Sat, 11-Jul-87 17:58:04 EDT References: <3670@sunybcs.UUCP> <1022@killer.UUCP> <385@polyslo.UUCP> Reply-To: dwl10@amdahl.UUCP (Dave Lowrey) Distribution: na Organization: Amdahl Corporation, Columbia MD Lines: 61 In article <385@polyslo.UUCP> jchikin@polyslo.UUCP (Joe Chikin) writes: >> Eric Green >> >>PS to Mark: When we gonna get a 128 version of the assembler? For example, the >>128 version of Power C already does your "openfile" with ordinary fopen... > >Hey Erik, >I just purchased Spinnaker's Power Assembler (Proline's buddy Assembler) >and the disk contains an Assembler for Power C 128. The Asm.sh is >probably like Mark Rinfret's 6502 assembler except it works in the 128 >mode. > >I'm happy that I have a good assembler but I have another problem. What >format does Power C (C-Power) use for ml. I tried writing a short ml >program and linked it to another program but the linker said that I had >an undefined external reference. Here is an example of what I tried. > >This is the C module: > >------------------------------------------- >main() >{ > >test(); > >printf("this is a test of the assembler\n"); >} >------------------------------------------- > > >this is the ML module: > > >------------------------------------------- >test lda #$93 ;clear screen > jsr $ffd2 ;print char > jsr $ff7d ;print string routine >.asc "end of ml module" >.byte 13,0 > rts >------------------------------------------- > I can't say for Spinnaker's assembler, but in C/ASSM, you have to define all external symbols. So for your sample above, you would need the following line at the beginning of your assembler source: .def test If you wish to reference externally defined names, you need to define the names with a ".ref" statement. Hope this helps. -- ------------------------------------------------------------------- Dave Lowrey "So it goes, so it goes, so it goes, so it goes. But where it's going, nobody knows" [Nick Lowe] ...!{ihnp4,cbosgd,hplabs}!amdahl!dwl10 [ The opinions expressedbe those of the author and not necessarily those of his most eminent employer. ]