Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!ucsd!ucbvax!UMCVMB.BITNET!C445585 From: C445585@UMCVMB.BITNET ("John M. Kelsey") Newsgroups: comp.lang.asm370 Subject: programming style Message-ID: <9102262153.AA04320@ucbvax.Berkeley.EDU> Date: 26 Feb 91 21:27:43 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List Distribution: inet Organization: The Internet Lines: 20 One thing I've always done, but have seldom seen other programmers do, is to use some character to separate the assembly language instructions and operands from the line comments by some character--in my case, a semicolon. This seems to make programs a lot more readable, and, with properly written XEDIT macros, is fairly simple.... Something like this: LOOPTOP L R4,0(R5) ; Get ARR1(I) integer A R4,0(R6) ; Add it to ARR2(I) ST R4,0(R5) ; Put it back into ARR1(I) LA R5,4(R4) ; Move ptrs to next locations-- LA R6,4(R6) ; essentially I = I + 1 BCT R3,LOOPTOP ; Bottom of loop Does anyone else do anything similar? (I've seen one person use asterisks instead of semicolons, but I started learning 370 assembly language and 8086 assembly language at the same time, and semicolons somehow look more 'natural.' --John