From 0b25311881c42ad378577d82212e041f25056366 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 17 Feb 2016 10:03:28 -0600 Subject: [PATCH] wwww ^^ --- asmyt.c | 121 +++++++++++++++++++++++++- asmyt.err | 242 ---------------------------------------------------- asmyt.o | Bin 0 -> 447 bytes makefile | 15 ++-- plzpart.map | 205 ++++++++++++++++++++++---------------------- 5 files changed, 227 insertions(+), 356 deletions(-) delete mode 100755 asmyt.err create mode 100755 asmyt.o diff --git a/asmyt.c b/asmyt.c index a615e54..f06b7af 100755 --- a/asmyt.c +++ b/asmyt.c @@ -15,19 +15,132 @@ // ; db 16384 dup(?) // } -void set_plzstart(word start) +word set_plzstart(word start) { __asm{ mov dx, 3d4h mov al, 18h ; linecompare - mov ah, [Byte start] + mov ah, [Byte PTR start] out dx, ax mov al, 07h - mov ah, [Byte start+1] - shl ah, 4d + mov ah, [Byte PTR start+1] + shl ah, 1d + shl ah, 1d + shl ah, 1d + shl ah, 1d and ah, 10h or ah, 0fh out dx, ax ; 8th bit } return start; } +/* +function plzline(y, vseg) +{ + // vseg represented a segment, so multiply by sixteen (shift left by 4) + // to convert into an offset. + var nVgaYOffset = vseg * 16; + + var cccTable = + [ + 3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12,19,18,17,16,23,22,21,20,27,26,25,24,31,30,29,28,35,34,33,32,39,38,37,36,43,42,41,40,47,46,45,44,51,50,49,48,55,54,53,52,59,58,57,56,63,62,61,60,67,66,65,64,71,70,69,68,75,74,73,72,79,78,77,76,83,82,81,80 + ]; + var nCount = 84; + + var ah = 0; + var al = 0; + var eax = 0; + + for (var nIndex = 0; nIndex < nCount; nIndex++) + { + var ccc = cccTable[nIndex]; + + if ((ccc & 1) == 1) + { + var nByteOffset = 0; + var bx = 0; + + nByteOffset = (y * 2) + anSelfModifyOffsets_ReadWord((2 * 84) + ccc); + nByteOffset &= 0xFFFF; + bx = psini_ReadWord(nByteOffset); + + nByteOffset = bx + anSelfModifyOffsets_ReadWord((1 * 84) + ccc); + nByteOffset &= 0xFFFF; + ah = psini_ReadByte(nByteOffset); + + nByteOffset = (y * 2) + anSelfModifyOffsets_ReadWord((4 * 84) + ccc); + nByteOffset &= 0xFFFF; + bx = psini_ReadWord(nByteOffset); + + nByteOffset = bx + (y * 2) + anSelfModifyOffsets_ReadWord((3 * 84) + ccc); + nByteOffset &= 0xFFFF; + ah += psini_ReadByte(nByteOffset); + ah &= 0xFF; + } + else + { + var nByteOffset = 0; + var bx = 0; + + nByteOffset = (y * 2) + anSelfModifyOffsets_ReadWord((2 * 84) + ccc); + nByteOffset &= 0xFFFF; + bx = psini_ReadWord(nByteOffset); + + nByteOffset = bx + anSelfModifyOffsets_ReadWord((1 * 84) + ccc); + nByteOffset &= 0xFFFF; + al = psini_ReadByte(nByteOffset); + + nByteOffset = (y * 2) + anSelfModifyOffsets_ReadWord((4 * 84) + ccc); + nByteOffset &= 0xFFFF; + bx = psini_ReadWord(nByteOffset); + + nByteOffset = bx + (y * 2) + anSelfModifyOffsets_ReadWord((3 * 84) + ccc); + nByteOffset &= 0xFFFF; + al += psini_ReadByte(nByteOffset); + al &= 0xFF; + } + + if ((ccc & 3) == 2) + { + eax = (ah << 8) | (al << 0); + eax <<= 16; + } + + if ((ccc & 3) == 0) + { + eax |= (ah << 8) | (al << 0); + + VGA_WriteDword(nVgaYOffset + ccc, eax); + } + } + + return 0; +} + +function setplzparas(c1, c2, c3, c4) +{ + var psiniOffset = 0; + var lsini16Offset = lsini16_GetOffset(); + var lsini4Offset = lsini4_GetOffset(); + + for (var ccc = 0; ccc < 84; ccc++) + { + var lc1 = c1 + psiniOffset + (ccc * 8); + lc1 &= 0xFFFF; + anSelfModifyOffsets_WriteWord((1 * 84) + ccc, lc1); + + var lc2 = (c2 * 2) + lsini16Offset - (ccc * 8) + (80 * 8); + lc2 &= 0xFFFF; + anSelfModifyOffsets_WriteWord((2 * 84) + ccc, lc2); + + var lc3 = c3 + psiniOffset - (ccc * 4) + (80 * 4); + lc3 &= 0xFFFF; + anSelfModifyOffsets_WriteWord((3 * 84) + ccc, lc3); + + var lc4 = (c4 * 2) + lsini4Offset + (ccc * 32); + lc4 &= 0xFFFF; + anSelfModifyOffsets_WriteWord((4 * 84) + ccc, lc4); + } + + return 0; +}*/ diff --git a/asmyt.err b/asmyt.err deleted file mode 100755 index 9ffd574..0000000 --- a/asmyt.err +++ /dev/null @@ -1,242 +0,0 @@ -asmyt.asm(3): Error! E019: Unknown directive -asmyt.asm(26): Error! E514: Colon is expected -asmyt.asm(30): Error! E065: Operator is expected -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(64): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(64): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(48): Error! E077: A constant operand is expected in multiplication -asmyt.asm(50): Error! E077: A constant operand is expected in multiplication -asmyt.asm(57): Error! E077: A constant operand is expected in multiplication -asmyt.asm(59): Error! E077: A constant operand is expected in multiplication -asmyt.asm(67): Error! E027: Cannot use 386 register with current CPU setting -asmyt.asm(70): Error! E065: Operator is expected -asmyt.asm(74): Error! E600: 'C' is already defined -asmyt.asm(76): Error! E611: ARG may only be used within a PROC and before the first instruction -asmyt.asm(95): Error! E506: Block nesting error -asmyt.asm(99): Error! E600: 'C' is already defined -asmyt.asm(101): Error! E611: ARG may only be used within a PROC and before the first instruction -asmyt.asm(109): Error! E002: Invalid instruction with current CPU setting -asmyt.asm(115): Error! E506: Block nesting error diff --git a/asmyt.o b/asmyt.o new file mode 100755 index 0000000000000000000000000000000000000000..94c75223804b8c88a37eb0c5d49526cd7117b2a3 GIT binary patch literal 447 zcmZn=VGz^{O`NnzVxPj zi;s(njE?m^9XN-T;S6UOqwxe01_nmn;?$COUv#1C2Z|MHnb71Z0T-p)!Lp zg9?KgLtYOr16O=fW_o;beoAUQLvaTeL&N;M{M6i13-di-PHtjJhJ|^?xh^IKh7tf| C(vblG literal 0 HcmV?d00001 diff --git a/makefile b/makefile index 4fb6609..a9729e8 100755 --- a/makefile +++ b/makefile @@ -62,16 +62,15 @@ FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS) EXEC = plzpart.exe +OBJS = copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ) asmyt.$(OBJ) all: $(EXEC) -#asmyt.$(OBJ) - # #game and bakapi executables # -plzpart.exe: plzpart.$(OBJ) copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ) - wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ) -fm=plzpart.map +plzpart.exe: plzpart.$(OBJ) $(OBJS) + wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) $(OBJS) -fm=plzpart.map # @@ -87,15 +86,15 @@ plz.$(OBJ): plz.h plz.c wcl $(FLAGS) -c plz.c tweak.$(OBJ): tweak.h tweak.c wcl $(FLAGS) -c tweak.c -# asmyt.$(OBJ): asmyt.h asmyt.c -# wcl $(FLAGS) -c asmyt.c +asmyt.$(OBJ): asmyt.h asmyt.c + wcl $(FLAGS) -c asmyt.c #tasm compiled... copper.$(OBJ): copper.h copper.asm wcl $(AFLAGS) -zcm=tasm -c copper.asm # tweak.$(OBJ): tweak.h tweak.asm # wcl $(AFLAGS) -zcm=tasm -c tweak.asm -asmyt.$(OBJ): asmyt.h asmyt.asm - wcl $(AFLAGS) -zcm=tasm -c asmyt.asm +# asmyt.$(OBJ): asmyt.h asmyt.asm +# wcl $(AFLAGS) -zcm=tasm -c asmyt.asm # #other~ diff --git a/plzpart.map b/plzpart.map index 49b26ff..74c9492 100755 --- a/plzpart.map +++ b/plzpart.map @@ -1,12 +1,11 @@ Open Watcom Linker Version 2.0 beta Feb 1 2016 01:01:49 (32-bit) Copyright (c) 2002-2016 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. -Created on: 16/02/17 09:44:39 +Created on: 16/02/17 10:02:42 Executable Image: plzpart.exe creating a DOS executable Error! E2028: init_copper_ is an undefined reference Error! E2028: close_copper_ is an undefined reference -Error! E2028: set_plzstart_ is an undefined reference Error! E2028: setplzparas_ is an undefined reference Error! E2028: plzline_ is an undefined reference @@ -18,7 +17,7 @@ Error! E2028: plzline_ is an undefined reference Group Address Size ===== ======= ==== -DGROUP 0193:0000 0000a650 +DGROUP 0197:0000 0000a650 @@ -33,23 +32,24 @@ plzpart_TEXT CODE AUTO 0000:0000 00000020 copper_TEXT CODE AUTO 0000:0020 0000099b tweak_TEXT CODE AUTO 0000:09c0 0000006d plz_TEXT CODE AUTO 0000:0a30 00000a30 -_TEXT CODE AUTO 0000:1460 000004c8 -FAR_DATA FAR_DATA AUTO 0192:0008 00000000 -_NULL BEGDATA DGROUP 0193:0000 00000020 -_AFTERNULL BEGDATA DGROUP 0195:0000 00000002 -CONST DATA DGROUP 0195:0002 00000000 -CONST2 DATA DGROUP 0195:0002 00000000 -_DATA DATA DGROUP 0195:0002 00000218 -XIB DATA DGROUP 01b6:000a 00000000 -XI DATA DGROUP 01b6:000a 00000006 -XIE DATA DGROUP 01b7:0000 00000000 -YIB DATA DGROUP 01b7:0000 00000000 -YI DATA DGROUP 01b7:0000 00000000 -YIE DATA DGROUP 01b7:0000 00000000 -STRINGS DATA DGROUP 01b7:0000 00000000 -DATA DATA DGROUP 01b7:0000 00000000 -_BSS BSS DGROUP 01b7:0000 00002406 -STACK STACK DGROUP 03f8:0000 00008000 +asmyt_TEXT CODE AUTO 0000:1460 00000041 +_TEXT CODE AUTO 0000:14a2 000004c8 +FAR_DATA FAR_DATA AUTO 0196:000a 00000000 +_NULL BEGDATA DGROUP 0197:0000 00000020 +_AFTERNULL BEGDATA DGROUP 0199:0000 00000002 +CONST DATA DGROUP 0199:0002 00000000 +CONST2 DATA DGROUP 0199:0002 00000000 +_DATA DATA DGROUP 0199:0002 00000218 +XIB DATA DGROUP 01ba:000a 00000000 +XI DATA DGROUP 01ba:000a 00000006 +XIE DATA DGROUP 01bb:0000 00000000 +YIB DATA DGROUP 01bb:0000 00000000 +YI DATA DGROUP 01bb:0000 00000000 +YIE DATA DGROUP 01bb:0000 00000000 +STRINGS DATA DGROUP 01bb:0000 00000000 +DATA DATA DGROUP 01bb:0000 00000000 +_BSS BSS DGROUP 01bb:0000 00002406 +STACK STACK DGROUP 03fc:0000 00008000 +----------------+ @@ -84,104 +84,106 @@ Module: tweak.o(/dos/z/plz/tweak.c) Module: plz.o(/dos/z/plz/plz.c) 0000:0a30 plz_ 0000:0cf8+ init_plz_ -0193:0022+ _ptau -0193:0122+ _curpal -0193:0124* _timetable -0193:0138+ _ttptr -0193:013a _l1 -0193:013c _l2 -0193:013e _l3 -0193:0140 _l4 -0193:0142 _k1 -0193:0144 _k2 -0193:0146 _k3 -0193:0148 _k4 -0193:014a _il1 -0193:014c _il2 -0193:014e _il3 -0193:0150 _il4 -0193:0152 _ik1 -0193:0154 _ik2 -0193:0156 _ik3 -0193:0158 _ik4 -0193:015a+ _inittable -0193:0240+ _pals +0197:0022+ _ptau +0197:0122+ _curpal +0197:0124* _timetable +0197:0138+ _ttptr +0197:013a _l1 +0197:013c _l2 +0197:013e _l3 +0197:0140 _l4 +0197:0142 _k1 +0197:0144 _k2 +0197:0146 _k3 +0197:0148 _k4 +0197:014a _il1 +0197:014c _il2 +0197:014e _il3 +0197:0150 _il4 +0197:0152 _ik1 +0197:0154 _ik2 +0197:0156 _ik3 +0197:0158 _ik4 +0197:015a+ _inittable +0197:0240+ _pals +Module: asmyt.o(/dos/z/plz/asmyt.c) +0000:1460 set_plzstart_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(stk086.asm) -0000:1465 __STK -0000:1485* __STKOVERFLOW_ +0000:14a7 __STK +0000:14c7* __STKOVERFLOW_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cstart) -0193:0000* __nullarea -0193:01fc* __ovlflag -0193:01fd* __intno -0193:01fe* __ovlvec -0000:14a2 _cstart_ -0000:1575* _Not_Enough_Memory_ -0000:16a7 __exit_ -0000:16c6 __do_exit_with_msg__ -0000:1723 __GETDS +0197:0000* __nullarea +0197:01fc* __ovlflag +0197:01fd* __intno +0197:01fe* __ovlvec +0000:14e4 _cstart_ +0000:15b7* _Not_Enough_Memory_ +0000:16e9 __exit_ +0000:1708 __do_exit_with_msg__ +0000:1765 __GETDS Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cmodel.asm) -0000:172e _big_code_ -0000:172e* CodeModelMismatch +0000:1770 _big_code_ +0000:1770* CodeModelMismatch Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(i4m.asm) -0000:172e __I4M -0000:172e* __U4M +0000:1770 __I4M +0000:1770* __U4M Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(pia.asm) -0000:174d __PIA -0000:1746* __PIS +0000:178f __PIA +0000:1788* __PIS Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(kbhit.c) -0000:1764 kbhit_ +0000:17a6 kbhit_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(xmsg.c) -0000:177b* __exit_with_msg_ -0000:1780 __fatal_runtime_error_ +0000:17bd* __exit_with_msg_ +0000:17c2 __fatal_runtime_error_ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(crwdata) -0193:0202 __curbrk -0193:020a __STACKLOW -0193:020c __STACKTOP -0193:020e __cbyte -0193:0210 __child -0193:0212 __no87 -0193:021f ___FPE_handler -0193:0204 __psp -0193:0213 __get_ovl_stack -0193:0217 __restore_ovl_stack -0193:021b __close_ovl_file -0193:0223 __LpCmdLine -0193:0227 __LpPgmName -0193:0206 __osmajor -0193:0207 __osminor -0193:0208 __osmode -0193:0209 __HShift +0197:0202 __curbrk +0197:020a __STACKLOW +0197:020c __STACKTOP +0197:020e __cbyte +0197:0210 __child +0197:0212 __no87 +0197:021f ___FPE_handler +0197:0204 __psp +0197:0213 __get_ovl_stack +0197:0217 __restore_ovl_stack +0197:021b __close_ovl_file +0197:0223 __LpCmdLine +0197:0227 __LpPgmName +0197:0206 __osmajor +0197:0207 __osminor +0197:0208 __osmode +0197:0209 __HShift Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(cmain086.c) -0000:179e __CMain +0000:17e0 __CMain Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(initrtns.c) -0000:1804 __InitRtns -0000:1804* __FInitRtns -0000:185f __FiniRtns -0000:185f* __FFiniRtns +0000:1846 __InitRtns +0000:1846* __FInitRtns +0000:18a1 __FiniRtns +0000:18a1* __FFiniRtns Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(uselfn.c) -0193:022c ___uselfn +0197:022c ___uselfn Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(dosseg) -0000:18c4 __DOSseg__ +0000:1906 __DOSseg__ Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(enterdb.c) -0000:18c5 __EnterWVIDEO_ -0193:022e+ ___WD_Present +0000:1907 __EnterWVIDEO_ +0197:022e+ ___WD_Present Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(___argc.c) -0193:2640 ____Argv -0193:2644 ____Argc +0197:2640 ____Argv +0197:2644 ____Argc Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(amblksiz.c) -0193:0230 __amblksiz +0197:0230 __amblksiz Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(exit.c) -0000:18e9+ _null_exit_rtn_ -0000:18e9+ __null_int23_exit_ -0000:18ea exit_ -0000:190b+ _exit_ -0193:0232+ ___int23_exit -0193:0236+ ___FPE_handler_exit +0000:192b+ _null_exit_rtn_ +0000:192b+ __null_int23_exit_ +0000:192c exit_ +0000:194d+ _exit_ +0197:0232+ ___int23_exit +0197:0236+ ___FPE_handler_exit Module: /dos/fdos/watcom2/lib286/dos/clibh.lib(sgdef086) -0193:023a __Start_XI -0193:0240 __End_XI -0193:0240 __Start_YI -0193:0240 __End_YI +0197:023a __Start_XI +0197:0240 __End_XI +0197:0240 __Start_YI +0197:0240 __End_YI +---------------------------+ @@ -193,7 +195,6 @@ Undefined Symbol Referenced by init_copper_ plzpart.o(/dos/z/plz/plzpart.c) close_copper_ plzpart.o(/dos/z/plz/plzpart.c) -set_plzstart_ plz.o(/dos/z/plz/plz.c) setplzparas_ plz.o(/dos/z/plz/plz.c) plzline_ plz.o(/dos/z/plz/plz.c) init_copper_ plz.o(/dos/z/plz/plz.c) -- 2.39.5