Maxim Integrated 19-12
MAX31782 User’s Guide
Revision 0; 8/11
19.7.3 Conditional Jumps
Conditional jumps transfer program execution based on the value of one of the status flags (C, E, Z, S). Except where
noted for JUMP E and JUMP NE, the absolute and relative operands allowed are the same as for the unconditional
JUMP command.
jump c,Label1 ;jumptoLabel1ifCarryisset
jump nc,LongJump;jumptoLongJumpifCarryisnotset
jump z,LC[0] ;jumpto16-bitregisterdestinationif
; Zeroisset
jump nz,Label1 ;jumptoLabel1ifZeroisnotset(Acc<>0)
jump s,A[2] ;jumptoA[2]ifSignflagisset
jump e,Label1 ;jumptoLabel1ifEqualisset
jump ne, Label1 ; jump toLabel1ifEqualis cleared
JUMP E and JUMP NE may only use immediate destinations.
19.7.4 Calling Subroutines
The CALL instruction works the same as the unconditional JUMP, except that the next execution address is pushed
on the stack before transferring program execution to the branch address. The RET instruction is used to return from a
normal call, and RETI is used to return from an interrupt handler routine.
call Label1 ; ifLabel1isrelative,
;assemblesto: call#immediate
call LongCall ;assemblesto: movePFX[0],#high(LongCall)
;call#low(LongCall)
call LC[0] ;calltoaddressinLC[0]
LongCall:
ret ;returnfromsubroutine
Comentários a estes Manuais