ASM Editor home Projects Docs Learn Blog
Donate
Star on github
M68K Addressing modes Condition codes Shift directions Trap tasks Synth Exceptions Directives Assembler features Complete documentation

abcdaddaddaaddiaddqaddxandandiasdaslasrbccbchgbclrbcsbeqbfchgbfclrbfextsbfextubfffobfinsbfsetbftstbgebgtbhibhsbkptblebloblsbltbmibnebplbrabsetbsrbtstbvcbvscascas2chkchk2clrcmpcmp2cmpacmpicmpmdbccdbcsdbeqdbfdbgedbgtdbhidbhsdbledblodblsdbltdbmidbnedbpldbradbtdbvcdbvsdivsdivsldivudivuleoreoriexgextextbillegaljmpjsrlealinklsdlsllsrmovemoveamovecmovemmovepmoveqmovesmulsmulunbcdnegnegxnopnotororipackpearesetrodrolrorroxdroxlroxrrtdrtertrrtssbcdsccscsseqsfsgesgtshishsslesloslssltsmisnesplststopsubsubasubisubqsubxsvcsvsswaptastraptrapcctrapcstrapeqtrapftrapgetrapgttraphitraphstrapletraplotraplstraplttrapmitrapnetrappltrapttrapvtrapvctrapvststunlkunpk
Create your first project

tas

Test and set an operand

Tests a byte to set the condition codes, then sets its top bit.

Size .b

XNZVC –●●00
  • ● depends on the result
  • 0 always 0
  • – not changed

Forms

  • tas

Operands

<ea>
An operand using one of the addressing modes listed for this form. The list determines whether it can be a register, memory or an immediate value. With opt p=68020, an allowed d(An,Xn) or d(PC,Xn) mode also permits the corresponding 68020 indexed and memory indirect forms. See 68020 addressing. More