On Sunday 09 July 2006 21:52, Timothy Miller wrote: > On 7/9/06, Jared Putnam <[EMAIL PROTECTED]> wrote: > > I'm confused about the mnemonics of the assembly. A typical statement > > looks like > > > > NOOP [-v,-h,-d] #640 > > > > Am I correct in concluding that -v and -h refer to the vblank and > > hblank assertions? In the program Timothy posted, every instruction > > has the -d modifier. Does this mean that some programs will never need > > to assert the data line, or is this an oversight? Also, how is cursor > > control reflected in the mnemonics? > > Actually, the syntax was just something I made up on the spot and is > perhaps something we should change.
[deleted] > [If x is present without y, cursor y advances by 1 line.] > > My next suggestion is to remove the commas, just stringing them > together in any order. > > And then perhaps we can remove the brackets. If any flags are set, > they're separated from the mnemonic by a dot. So NOOP with +v and +h > looks like this: > > NOOP.vh > > Is that good, or would that confuse people, since it's the same syntax Actually calling it a NOOP confuses me... NOOP to me means increment the program counter. Do nothing else. Affect no other flags... Why separate by a .? Why not something like ASSERT v,h It's clear, does what it says on the tin. etc. > that some assemblers use for operand size? Do we care, since almost > no one will ever see the assembly code or even use it indirectly (ie. > compiler goes directly to binary)? > > I think we can retain # to indicate a count and an unadorned number is > an address (program or memory). Or perhaps we can put an address in > parentheses with the count being a prefix. So, for instance, if we > wanted to call address 200 a count of 40 times, it would look like > this: Dropping # would be good. Too many languages use it as a comment (e.g. perl, shell scripts). (Sorry, just thinking about readability). > > CALL.rvh 40(200) > > Or would that confuse people, making them think it's an offset? Maybe something like [EMAIL PROTECTED] (The syntax reminds me of a till then. 40 items @ 200 :) H
pgpIS99ZiL60P.pgp
Description: PGP signature
_______________________________________________ Open-graphics mailing list [email protected] http://lists.duskglow.com/mailman/listinfo/open-graphics List service provided by Duskglow Consulting, LLC (www.duskglow.com)
