Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!labpca!jake From: jake@labpca.mscs.mu.edu (Jake Buchholz) Newsgroups: comp.sys.apple2 Subject: Arrrgh, why's this not working? Message-ID: <1181@spool.mu.edu> Date: 12 Jun 91 18:32:47 GMT Sender: news@spool.mu.edu Organization: Marquette University - Department MSCS Lines: 59 Nntp-Posting-Host: labpca.mscs.mu.edu Righto, time to ask for more help... The following code is supposed to take two parameters off the stack, and then print t1 as a character t2 times. ----- mcopy 2/ainclude/m16.msc mcopy 2/ainclude/m16.i.o rpt start t1 dc i'0' t2 dc i'0' pl2 t1 pl2 t2 lda #0 l1 cmp t1 beq l3 l2 cout t2 dec t1 bne l2 l3 rtl end ----- This is what the assembler says when I try to compile this bugger... ----- ORCA/M ASM65816 1.1.1 9 Jun 1991 14:18:47 Pass 1: rpt Pass 2: rpt 0014 + PH2 &CHAR Error RPT.ASM 22 Unidentified Operation 1 errors found 16 was highest error level 26 source lines 5 macros expanded 33 lines generated ----- I don't use assembly very often, I could have missed something very obvious. If you have an idea what went wrong, please respond. If it has any bearing on this at all, I'm attempting to link this code into an Orca/C program with #append "file.asm", with it declared as extern void rpt(char c, int n); Another question would be whether or not I'm passing the parameters correctly. (Either this kind of thing doesn't show up in the manuals (Orca/C or Orca/M) or my retina's been burnt out by this screen worse than I've expected...) jake@sc.mscs.mu.edu -- [][][][][][][][][][][][][][][][]---------------------------------------------+ [] Jacob S. Buchholz [] With great intellect, comes an even greater | [] jake@labpca.mscs.mu.edu [] possibility of a showing of a lack thereof. | [][][][][][][][][][][][][][][][]---------------------------------------------+