Lines Matching refs:CodeLen

583 …onOffsWithFlags(pArg, !!(*pArg->Str == '$'), UInt16, &OK, &Flags) - (EProgCounter() + CodeLen + 1);  in AppendDisp()
587 CodeLen = 0; in AppendDisp()
590 BAsmCode[CodeLen++] = Dist & 0xff; in AppendDisp()
673 BAsmCode[CodeLen++] = Lo(Index); in DecodeFixed()
698 BAsmCode[CodeLen++] = 0xb8 | DestAdrResult.Val; in DecodeMOV()
699 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
705 BAsmCode[CodeLen++] = 0xd0 | SrcAdrResult.Val; in DecodeMOV()
708 BAsmCode[CodeLen++] = 0x24; in DecodeMOV()
709 BAsmCode[CodeLen++] = (DestAdrResult.Val << 4) | SrcAdrResult.Val; in DecodeMOV()
714 BAsmCode[CodeLen++] = 0x58 | SrcAdrResult.Vals[0]; in DecodeMOV()
717 BAsmCode[CodeLen++] = 0x00 | SrcAdrResult.Val; in DecodeMOV()
718 BAsmCode[CodeLen++] = 0x00 | (SrcAdrResult.Vals[0] << 4); in DecodeMOV()
719 memcpy(BAsmCode + CodeLen, SrcAdrResult.Vals + 1, SrcAdrResult.Cnt - 1); in DecodeMOV()
720 CodeLen += SrcAdrResult.Cnt - 1; in DecodeMOV()
724 BAsmCode[CodeLen++] = 0x09; in DecodeMOV()
725 BAsmCode[CodeLen++] = 0xf0; in DecodeMOV()
726 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
727 BAsmCode[CodeLen++] = SrcAdrResult.Vals[1]; in DecodeMOV()
730 BAsmCode[CodeLen++] = 0x20; in DecodeMOV()
731 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
734 BAsmCode[CodeLen++] = 0x10; in DecodeMOV()
735 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
738 BAsmCode[CodeLen++] = 0x18; in DecodeMOV()
739 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
751 BAsmCode[CodeLen++] = 0x09; in DecodeMOV()
752 BAsmCode[CodeLen++] = 0x44; in DecodeMOV()
753 BAsmCode[CodeLen++] = 0xff - SrcAdrResult.Vals[0]; in DecodeMOV()
754 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
766 BAsmCode[CodeLen++] = 0x09; in DecodeMOV()
767 BAsmCode[CodeLen++] = 0x42; in DecodeMOV()
768 BAsmCode[CodeLen++] = 0xff - SrcAdrResult.Vals[0]; in DecodeMOV()
769 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
781 BAsmCode[CodeLen++] = 0x24; in DecodeMOV()
782 BAsmCode[CodeLen++] = 0x08 | (DestAdrResult.Val << 5) | SrcAdrResult.Val; in DecodeMOV()
785 BAsmCode[CodeLen++] = 0x60 | DestAdrResult.Val; in DecodeMOV()
786 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
787 BAsmCode[CodeLen++] = SrcAdrResult.Vals[1]; in DecodeMOV()
790 BAsmCode[CodeLen++] = 0x1c; in DecodeMOV()
791 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
794 BAsmCode[CodeLen++] = 0x11; in DecodeMOV()
795 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
798 BAsmCode[CodeLen++] = 0x11; in DecodeMOV()
799 BAsmCode[CodeLen++] = 0xfc; in DecodeMOV()
814 BAsmCode[CodeLen++] = 0x13; in DecodeMOV()
815 BAsmCode[CodeLen++] = 0xfc; in DecodeMOV()
819 BAsmCode[CodeLen++] = 0x0b; in DecodeMOV()
820 BAsmCode[CodeLen++] = 0xfc; in DecodeMOV()
821 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
822 BAsmCode[CodeLen++] = SrcAdrResult.Vals[1]; in DecodeMOV()
835 BAsmCode[CodeLen++] = OpSize ? 0x0c : 0x3a; in DecodeMOV()
836 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
837 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
839 BAsmCode[CodeLen++] = SrcAdrResult.Vals[1]; in DecodeMOV()
843 BAsmCode[CodeLen++] = (OpSize == 1) ? 0x3c : 0x38; in DecodeMOV()
844 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
845 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
851 BAsmCode[CodeLen++] = 0x22; in DecodeMOV()
852 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
859 BAsmCode[CodeLen++] = 0x1a; in DecodeMOV()
860 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
874 BAsmCode[CodeLen++] = OpSize ? 0x0b : 0x2b; in DecodeMOV()
875 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
876 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeMOV()
878 BAsmCode[CodeLen++] = SrcAdrResult.Vals[1]; in DecodeMOV()
884 BAsmCode[CodeLen++] = 0x12; in DecodeMOV()
885 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
892 BAsmCode[CodeLen++] = 0x13; in DecodeMOV()
893 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
909 BAsmCode[CodeLen++] = 0x50 | DestAdrResult.Vals[0]; in DecodeMOV()
912 BAsmCode[CodeLen++] = 0x00 | DestAdrResult.Val; in DecodeMOV()
913 BAsmCode[CodeLen++] = 0x80 | (DestAdrResult.Vals[0] << 4); in DecodeMOV()
914 memcpy(BAsmCode + CodeLen, DestAdrResult.Vals + 1, DestAdrResult.Cnt - 1); in DecodeMOV()
915 CodeLen += DestAdrResult.Cnt - 1; in DecodeMOV()
932 BAsmCode[CodeLen++] = 0x09; in DecodeMOV()
933 BAsmCode[CodeLen++] = 0xf1; in DecodeMOV()
934 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
935 BAsmCode[CodeLen++] = DestAdrResult.Vals[1]; in DecodeMOV()
951 BAsmCode[CodeLen++] = 0x19; in DecodeMOV()
952 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeMOV()
982 BAsmCode[CodeLen++] = 0xd8 | SrcAdrResult.Val; in DecodeXCH()
984 BAsmCode[CodeLen++] = 0xd8 | DestAdrResult.Val; in DecodeXCH()
987 BAsmCode[CodeLen++] = 0x25; in DecodeXCH()
988 BAsmCode[CodeLen++] = 0x00 | (SrcAdrResult.Val << 4) | DestAdrResult.Val; in DecodeXCH()
992 BAsmCode[CodeLen++] = 0x25; in DecodeXCH()
993 BAsmCode[CodeLen++] = 0x00 | (DestAdrResult.Val << 4) | SrcAdrResult.Val; in DecodeXCH()
999 BAsmCode[CodeLen++] = 0x00 | SrcAdrResult.Val; in DecodeXCH()
1000 BAsmCode[CodeLen++] = 0x04 | (SrcAdrResult.Vals[0] << 4); in DecodeXCH()
1001 memcpy(BAsmCode + CodeLen, SrcAdrResult.Vals + 1, SrcAdrResult.Cnt - 1); in DecodeXCH()
1002 CodeLen += SrcAdrResult.Cnt - 1; in DecodeXCH()
1005 BAsmCode[CodeLen++] = 0x21; in DecodeXCH()
1006 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeXCH()
1009 BAsmCode[CodeLen++] = 0x01; in DecodeXCH()
1010 BAsmCode[CodeLen++] = 0x21; in DecodeXCH()
1011 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeXCH()
1014 BAsmCode[CodeLen++] = 0x23; in DecodeXCH()
1015 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeXCH()
1027 BAsmCode[CodeLen++] = 0x25; in DecodeXCH()
1028 BAsmCode[CodeLen++] = 0x08 | (DestAdrResult.Val << 5) | SrcAdrResult.Val; in DecodeXCH()
1031 BAsmCode[CodeLen++] = 0x1b; in DecodeXCH()
1032 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeXCH()
1035 BAsmCode[CodeLen++] = 0x01; in DecodeXCH()
1036 BAsmCode[CodeLen++] = 0x1b; in DecodeXCH()
1037 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeXCH()
1052 BAsmCode[CodeLen++] = 0x21; in DecodeXCH()
1053 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeXCH()
1060 BAsmCode[CodeLen++] = 0x1b; in DecodeXCH()
1061 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeXCH()
1065 BAsmCode[CodeLen++] = (OpSize == 1) ? 0x2a : 0x39; in DecodeXCH()
1066 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeXCH()
1067 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeXCH()
1082 BAsmCode[CodeLen++] = 0x01; in DecodeXCH()
1083 BAsmCode[CodeLen++] = 0x21; in DecodeXCH()
1084 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeXCH()
1091 BAsmCode[CodeLen++] = 0x01; in DecodeXCH()
1092 BAsmCode[CodeLen++] = 0x1b; in DecodeXCH()
1093 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeXCH()
1109 BAsmCode[CodeLen++] = 0x00 | DestAdrResult.Val; in DecodeXCH()
1110 BAsmCode[CodeLen++] = 0x04 | (DestAdrResult.Vals[0] << 4); in DecodeXCH()
1111 memcpy(BAsmCode + CodeLen, DestAdrResult.Vals + 1, DestAdrResult.Cnt - 1); in DecodeXCH()
1112 CodeLen += DestAdrResult.Cnt - 1; in DecodeXCH()
1128 BAsmCode[CodeLen++] = 0x23; in DecodeXCH()
1129 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeXCH()
1169 BAsmCode[CodeLen++] = 0x88 | Code8; in DecodeALU()
1170 BAsmCode[CodeLen++] = (DestAdrResult.Val << 4) | SrcAdrResult.Val; in DecodeALU()
1174 BAsmCode[CodeLen++] = 0x98 | Code8; in DecodeALU()
1175 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1178 BAsmCode[CodeLen++] = 0x01; in DecodeALU()
1179 BAsmCode[CodeLen++] = 0x98 | Code8; in DecodeALU()
1180 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1183 BAsmCode[CodeLen++] = 0x00 | SrcAdrResult.Val; in DecodeALU()
1184 BAsmCode[CodeLen++] = 0x08 | Code8 | (SrcAdrResult.Vals[0] << 4); in DecodeALU()
1185 memcpy(BAsmCode + CodeLen, SrcAdrResult.Vals + 1, SrcAdrResult.Cnt - 1); in DecodeALU()
1186 CodeLen += SrcAdrResult.Cnt - 1; in DecodeALU()
1189 BAsmCode[CodeLen++] = 0xa8 | Code8; in DecodeALU()
1190 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1202 BAsmCode[CodeLen++] = 0x88 | Code16Reg; in DecodeALU()
1203 BAsmCode[CodeLen++] = 0x08 | (DestAdrResult.Val << 5) | SrcAdrResult.Val; in DecodeALU()
1206 BAsmCode[CodeLen++] = 0x10 | Code16; in DecodeALU()
1207 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1210 BAsmCode[CodeLen++] = 0x01; in DecodeALU()
1211 BAsmCode[CodeLen++] = 0x1d | Code16; in DecodeALU()
1212 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1215 BAsmCode[CodeLen++] = 0x20 | Code16; in DecodeALU()
1216 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1229 BAsmCode[CodeLen++] = OpSize ? (0x30 | Code16) : (0x78 | Code8); in DecodeALU()
1230 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1231 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeALU()
1234 BAsmCode[CodeLen++] = OpSize ? (0x00 | Code16) : (0x68 | Code8); in DecodeALU()
1235 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeALU()
1236 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1238 BAsmCode[CodeLen++] = SrcAdrResult.Vals[1]; in DecodeALU()
1251 BAsmCode[CodeLen++] = 0x01; in DecodeALU()
1252 BAsmCode[CodeLen++] = OpSize ? (0x00 | Code16) : (0x68 | Code8); in DecodeALU()
1253 BAsmCode[CodeLen++] = DestAdrResult.Vals[0]; in DecodeALU()
1254 BAsmCode[CodeLen++] = SrcAdrResult.Vals[0]; in DecodeALU()
1256 BAsmCode[CodeLen++] = SrcAdrResult.Vals[1]; in DecodeALU()
1271 BAsmCode[CodeLen++] = 0x00 | DestAdrResult.Val; in DecodeALU()
1272 BAsmCode[CodeLen++] = 0x88 | Code8 | (DestAdrResult.Vals[0] << 4); in DecodeALU()
1273 memcpy(BAsmCode + CodeLen, DestAdrResult.Vals + 1, DestAdrResult.Cnt - 1); in DecodeALU()
1274 CodeLen += DestAdrResult.Cnt - 1; in DecodeALU()
1298 BAsmCode[CodeLen++] = 0x05; in DecodeMULDIV()
1299 BAsmCode[CodeLen++] = 0x08 | ((Props << 4) & 0xf0) | AdrResult.Val; in DecodeMULDIV()
1303 BAsmCode[CodeLen++] = 0x05; in DecodeMULDIV()
1304 BAsmCode[CodeLen++] = 0x08 | (Props & 0xf0) | AdrResult.Val; in DecodeMULDIV()
1325 BAsmCode[CodeLen++] = 0xc0 | AdrResult.Val | (Code << 3); in DecodeINCDEC()
1330 BAsmCode[CodeLen++] = 0x40 | AdrResult.Val | (Code << 3); in DecodeINCDEC()
1333 BAsmCode[CodeLen++] = 0x05; in DecodeINCDEC()
1334 BAsmCode[CodeLen++] = 0xc8 | Code; in DecodeINCDEC()
1339 BAsmCode[CodeLen++] = 0x07; in DecodeINCDEC()
1340 BAsmCode[CodeLen++] = 0xe8 | Code; in DecodeINCDEC()
1343 BAsmCode[CodeLen++] = 0x26 | Code; in DecodeINCDEC()
1344 BAsmCode[CodeLen++] = AdrResult.Vals[0]; in DecodeINCDEC()
1371 BAsmCode[CodeLen++] = 0x30 | (Props & 1); in DecodeShift()
1372 BAsmCode[CodeLen++] = (Props & 0xf0) | AdrResult.Val | (Shift << 3); in DecodeShift()
1376 BAsmCode[CodeLen++] = 0x30 | (Props & 1); in DecodeShift()
1377 BAsmCode[CodeLen++] = ((Props & 0xf00) >> 4) | AdrResult.Val | (Shift << 3); in DecodeShift()
1390 BAsmCode[CodeLen++] = 0x05; in DecodeROLROR4()
1391 BAsmCode[CodeLen++] = Code | Reg; in DecodeROLROR4()
1426 BAsmCode[CodeLen++] = 0x00 | ((Bit >> 16) & 0xff); in DecodeMOV1()
1427 BAsmCode[CodeLen++] = ((2 - ArgPos) << 4) | ((Bit >> 8) & 0xff); in DecodeMOV1()
1429 BAsmCode[CodeLen++] = Bit & 0xff; in DecodeMOV1()
1453 BAsmCode[CodeLen++] = 0x00 | ((Bit >> 16) & 0xff); in DecodeANDOR1()
1454 BAsmCode[CodeLen++] = Index | ((Bit >> 8) & 0xff); in DecodeANDOR1()
1456 BAsmCode[CodeLen++] = Bit & 0xff; in DecodeANDOR1()
1473 BAsmCode[CodeLen++] = 0x00 | ((Bit >> 16) & 0xff); in DecodeXOR1()
1474 BAsmCode[CodeLen++] = 0x60 | ((Bit >> 8) & 0xff); in DecodeXOR1()
1476 BAsmCode[CodeLen++] = Bit & 0xff; in DecodeXOR1()
1490 BAsmCode[CodeLen++] = 0x40 | (9 - (Index >> 4)); in DecodeBit1()
1496 BAsmCode[CodeLen++] = (0x130 - Index) | ((Bit >> 8) & 7); in DecodeBit1()
1497 BAsmCode[CodeLen++] = Bit & 0xff; in DecodeBit1()
1501 BAsmCode[CodeLen++] = 0x00 | ((Bit >> 16) & 0xff); in DecodeBit1()
1502 BAsmCode[CodeLen++] = Index | ((Bit >> 8) & 0xff); in DecodeBit1()
1504 BAsmCode[CodeLen++] = Bit & 0xff; in DecodeBit1()
1518 BAsmCode[CodeLen++] = 0x05; in DecodeCALL()
1519 BAsmCode[CodeLen++] = 0x78 | Reg; in DecodeCALL()
1528 BAsmCode[CodeLen++] = 0x28; in DecodeCALL()
1529 BAsmCode[CodeLen++] = AdrResult.Vals[0]; in DecodeCALL()
1530 BAsmCode[CodeLen++] = AdrResult.Vals[1]; in DecodeCALL()
1533 BAsmCode[CodeLen++] = 0x05; in DecodeCALL()
1534 BAsmCode[CodeLen++] = 0x58 | AdrResult.Val; in DecodeCALL()
1559 BAsmCode[CodeLen++] = 0x90 | (Hi(AdrWord) & 7); in DecodeCALLF()
1560 BAsmCode[CodeLen++] = Lo(AdrWord); in DecodeCALLF()
1595 BAsmCode[CodeLen++] = 0xe0 | ((AdrWord - 0x40) >> 1); in DecodeCALLT()
1646 BAsmCode[CodeLen++] = Hi(Code); in DecodePUSHPOP()
1649 BAsmCode[CodeLen++] = Lo(Code); in DecodePUSHPOP()
1650 BAsmCode[CodeLen++] = Lo(Mask); in DecodePUSHPOP()
1664 BAsmCode[CodeLen++] = 0x05; in DecodeBR()
1665 BAsmCode[CodeLen++] = 0x68 | Reg; in DecodeBR()
1674 BAsmCode[CodeLen++] = 0x05; in DecodeBR()
1675 BAsmCode[CodeLen++] = 0x48 | AdrResult.Val; in DecodeBR()
1686 BAsmCode[CodeLen++] = 0x14; in DecodeBR()
1687 BAsmCode[CodeLen++] = AdrResult.Vals[0]; in DecodeBR()
1688 BAsmCode[CodeLen++] = AdrResult.Vals[1]; in DecodeBR()
1692 BAsmCode[CodeLen++] = 0x14; in DecodeBR()
1693 BAsmCode[CodeLen++] = Dist & 0xff; in DecodeBR()
1706 BAsmCode[CodeLen++] = Hi(Code); in DecodeBranch()
1707 BAsmCode[CodeLen++] = Lo(Code); in DecodeBranch()
1726 BAsmCode[CodeLen++] = 0x70 | ((Bit >> 8) & 7); in DecodeBrBit()
1727 BAsmCode[CodeLen++] = Bit & 0xff; in DecodeBrBit()
1731 BAsmCode[CodeLen++] = 0x00 | ((Bit >> 16) & 0xff); in DecodeBrBit()
1732 BAsmCode[CodeLen++] = (0x130 - Index) | ((Bit >> 8) & 0xff); in DecodeBrBit()
1734 BAsmCode[CodeLen++] = Bit & 0xff; in DecodeBrBit()
1739 BAsmCode[CodeLen++] = 0x00 | ((Bit >> 16) & 0xff); in DecodeBrBit()
1740 BAsmCode[CodeLen++] = (0x130 - Index) | ((Bit >> 8) & 0xff); in DecodeBrBit()
1742 BAsmCode[CodeLen++] = Bit & 0xff; in DecodeBrBit()
1762 BAsmCode[CodeLen++] = 0x30 | (AdrResult.Val & 3); in DecodeDBNZ()
1765 BAsmCode[CodeLen++] = 0x3b; in DecodeDBNZ()
1766 BAsmCode[CodeLen++] = AdrResult.Vals[0]; in DecodeDBNZ()
1786 BAsmCode[CodeLen++] = 0x05; in DecodeBRKCS()
1787 BAsmCode[CodeLen++] = 0xd8 | Bank; in DecodeBRKCS()
1802 BAsmCode[CodeLen++] = 0x29; in DecodeRETCS()
1803 BAsmCode[CodeLen++] = AdrResult.Vals[0]; in DecodeRETCS()
1804 BAsmCode[CodeLen++] = AdrResult.Vals[1]; in DecodeRETCS()
1826 BAsmCode[CodeLen++] = 0x15; in DecodeString1()
1827 BAsmCode[CodeLen++] = Code | ((AdrResult.Vals[0] & 2) << 3); in DecodeString1()
1861 BAsmCode[CodeLen++] = 0x15; in DecodeString2()
1862 BAsmCode[CodeLen++] = Code | ((SrcAdrResult.Vals[0] & 2) << 3); in DecodeString2()
1875 BAsmCode[CodeLen++] = 0x05; in DecodeSEL()
1876 BAsmCode[CodeLen++] = 0xa8 | Bank | ((ArgCnt - 1) << 4); in DecodeSEL()
2019 CodeLen = 0; DontPrint = False; OpSize = -1; in MakeCode_78K3()