0 Members and 6 Guests are viewing this topic.
That could be made more generic Perhaps something like EXPR!#, where EXPR is any expression, ! is the factorial symbol, and # is a constant or variable between 0 and 3 indicating what nibble.
I think it would be useful only if it was the variable part? Since if it was constant, using / or ^ would be a bit easier. Using it as a variable could be useful for half byte tilemapping
this: ld b,h ld c,l pop hlcan become: ex (sp),hl pop bcIts slightly slower, but its one byte less.