[ CnUnix ] in KIDS 글 쓴 이(By): jeffrey (‘김정현’�) 날 짜 (Date): 1994년06월17일(금) 04시30분30초 KDT 제 목(Title): [re] Test And Set - 68000 음, 제가 갖고 있는 책에서 인용할께요. TAS{.B} <adea> This line first tests the byte at <adea> and then sets the Z and N flags in the CCR (Z=1 if byte is zero, N=1 if sign bit 7 is 1). Finally, TAS unconditionally sets the destination sign bit 7 to 1 - forcing the byte to be negative. TAS의 Instruction Code Map(2진수 기계어 코드)은 0100101011Destin 입니다. "Destin"은 어드레싱 모드를 말합니다. <adea>는 Alterable Data Effective Address를 뜻하고요, 여기에는 다음과 같은 어드레싱 모드가 포함됩니다. Address Mode Name Mod Reg Mode Data register direct 000 rrr Dn Address register indirect 010 rrr (An) Address register indirect 011 rrr (An)+ with postincrement Address register indirect 100 rrr -(An) with predecrement Address register indirect 101 rrr d16(An) with displacement Address register indirect 110 rrr d8(An,Xi) with index and 8-bit displacement Absolute short 111 000 Abs.W Absolute long 111 001 Abs.L Address register indirect 110 rrr bd(An,Xi) with index and base displacement (020) Memory indirect 110 rrr [bd,An],Xi,od post-indexed (020) Memory indirect 110 rrr [bd,An,Xi],od pre-indexed (020) 헥헥... 그러니까 예를 들어 TAS (A3)를 이진수 코드로 표현하면, 0100101011010011이 되는 거죠. ^^^^^^ (A3) == 010 011 도움이 되었기를... |