Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-unix!sri-spam!ames!elroy!jplgodo!wlbr!scgvaxd!ashtate!dbase!csun!polyslo!jchikin From: jchikin@polyslo.UUCP (Joe Chikin) Newsgroups: comp.sys.cbm Subject: Re: assembler info wanted Message-ID: <385@polyslo.UUCP> Date: Sun, 5-Jul-87 19:38:00 EDT Article-I.D.: polyslo.385 Posted: Sun Jul 5 19:38:00 1987 Date-Received: Fri, 10-Jul-87 06:33:14 EDT References: <3670@sunybcs.UUCP> <1022@killer.UUCP> Reply-To: jchikin@polyslo.UUCP (Joe Chikin) Distribution: na Organization: Cal Poly State Univ,CSC Dept,San Luis Obispo,CA 93407 Lines: 59 > 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 ------------------------------------------- Anyway, I tried this for a while without much success but I went in with a sector editor and examined the .obj files and found textual (ascii) references to itself and other routines mixed in with a lot of other gibberish. I couldn't decipher the exact meaning other than it might be a symbol table of some sort following the actual object code. Moreover, there were numerous JSRs to the $0d00 region which is defined as a C system buffer. Now does anyone know how to properly link a Power C object file with an assembled object file? (What is my assembly file missing?). Thanks in advance. Chikin Joe (jchikin@polyslo.UUCP) 61 N. Broad #216 San Luis Obispo, CA 93401. (805) 544-0907