fys wrote: > > Main: JMP CLSProc ; hop to the CLS procedure > > ; Point A > > > > .exit > > > > CLSProc: MOV ax, 0003h ; A CLS I think > > INT 10h ; > > RET ; What to put here to return to point A? JRET? > > ; Point B > > Main: CALL CLSProc > > not JMP Thanx. > In the above, due to DOS's way of clearing the word > at the current stack location, the RET at the end of CLSProc > would actually RETurn to DOS. :-) Actualy that fact is more usefull than it seems. > > - JCC = Jump on condition (what is the syntax?) > > - JZ = Jump on zero (same as je) > > - JNZ = Jump on not zero (smae as jne) Hmm, zero = false, nonzero = true usualy. So if I wanted to skip out of a loop when say, BX was 4, what codeblock would I use? XOR BX,4 JZ BX,AnOffset ? BTW, are there/what is the naming method for user-defined variables? Say I want to store a register value for later use, while I use the register for some other operation, how do I do that? > > - JC = Jump on carry (same as jb) > > - JNC = Jump on not carry (same as jnb) "Carry"? > > - LOOP = loop back to a point (to what point? what is the syntax?) > > Same as a conditional jump except it uses (e)cx for the condition. > > loop label > is the same as > dec cx > jnz short label What is DEC? > > - MOV ax,?? = move a unit of data from DB to ax (how?) > > DB is "declare Byte". MOV al,?? would be better for DB. > DW is "declare Word" Aha. Thanx. > > Ok. If I use: > > > > XOR ax,bx > > > > Are ax and bx the input bits and where is the output? > > AX is XOR'ed with BX and the result goes to AX Thanx. > I think the file name was something like "opcodes.lst" or similar. Got it. Observer aka DustWolf aka CyberLegend aka Jure Sah C'ya! -- Cellphone: 0038640809676 (SMS enabled) Don't feel bad about asking/telling me anything, I will always gladly reply. [AC/HFA(AS) -- no suprize] The perfect package for online business, get your free copy of the ICI system now: http://www.aimetasearch.com/ici/index.htm MesonAI -- If nobody else wants to do it, why shouldn't we?(TM)