On 6/5/2012 4:51 AM, McKown, John wrote: > My rule for most instructions is "place any required label on a separate DS 0H > as the preceding statement."
Yep. I was taught that as canon in my first job. ObAnecdote: I had been writing 370 assembler for three or four years -- system mods to VM/SP -- when I took a university class in Commodore SuperPet assembler (required for the degree I was working on). Our final project was a fairly stupid game, moving some critters around the screen. I couldn't be bothered to fully debug mine, because it was so dumb, and so my project was a bit confused about where the screen edges were, though it worked fine otherwise. A buddy pulled a couple of all-nighters getting his to work perfectly. When we got our graded projects back, he got 45/50. I got 48/50. I lost two points for: 1) Using EQU * on labels (no DS 0H in SuperPet assembler) 2) Using the condition code as a return value from subroutines that were testing for exactly one condition I pointed out to the professor (who of course had not done the marking -- that's what grad students are for) that this was bogus, that both were perfectly reasonable (even recommended) practices in assembler. He shrugged and said "48 out of 50 is pretty good". Needless to say, I was not impressed...nor did it stop me from using either practice! ...phsiii
