From 60fdc229c67a2a61315fe0c9631df551a058a1da Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 11 May 2016 09:01:34 -0500 Subject: [PATCH] .... --- asmyt.c | 21 ++-- asmyt.err | 12 +- asmyt.h | 9 ++ copper.o | Bin 878 -> 878 bytes plz.h | 2 +- plz.o | Bin 5374 -> 5374 bytes plzpart.map | 344 ++++++++++++++++++++++++++-------------------------- plzpart.o | Bin 601 -> 601 bytes tweak.o | Bin 537 -> 537 bytes 9 files changed, 196 insertions(+), 192 deletions(-) diff --git a/asmyt.c b/asmyt.c index aeee521..6cf2569 100755 --- a/asmyt.c +++ b/asmyt.c @@ -17,11 +17,11 @@ word anSelfModifyOffsets[5*84]; -int ccc; +//int ccc; -function lsini4_WriteWord(nIndex, nValue) +void lsini4_WriteWord(nIndex, nValue) { - var nByteOffset = lsini4_GetOffset() + (nIndex * 2); + word nByteOffset = lsini4_GetOffset() + (nIndex * 2); psini_WriteWord(nByteOffset, nValue); } @@ -139,7 +139,7 @@ int plzline(int y, int vseg) } */ -void setplzparas(int c1, int c2, int c3, int c4) +int setplzparas(int c1, int c2, int c3, int c4) { // static word psini; // static word lsini4; @@ -175,25 +175,26 @@ lsini16 WORD .LABEL word psiniOffset = 0; word lsini16Offset = lsini16_GetOffset(); word lsini4Offset = lsini4_GetOffset(); + word ccc; + word lc1, lc2, lc3, lc4; - for (var ccc = 0; ccc < 84; ccc++) + for (ccc=0; ccc < 84; ccc++) { - var lc1 = c1 + psiniOffset + (ccc * 8); + word lc1 = c1 + psiniOffset + (ccc * 8); lc1 &= 0xFFFF; anSelfModifyOffsets_WriteWord((1 * 84) + ccc, lc1); - var lc2 = (c2 * 2) + lsini16Offset - (ccc * 8) + (80 * 8); + 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 = c3 + psiniOffset - (ccc * 4) + (80 * 4); lc3 &= 0xFFFF; anSelfModifyOffsets_WriteWord((3 * 84) + ccc, lc3); - var lc4 = (c4 * 2) + lsini4Offset + (ccc * 32); + lc4 = (c4 * 2) + lsini4Offset + (ccc * 32); lc4 &= 0xFFFF; anSelfModifyOffsets_WriteWord((4 * 84) + ccc, lc4); } - return 0; } diff --git a/asmyt.err b/asmyt.err index 209b101..e46f96a 100755 --- a/asmyt.err +++ b/asmyt.err @@ -1,11 +1 @@ -asmyt.c(151): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(153): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' -asmyt.c(154): Error! E1156: Assembler error: 'Operator is expected' -asmyt.c(157): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' -asmyt.c(158): Error! E1156: Assembler error: 'Operator is expected' -asmyt.c(160): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' -asmyt.c(161): Error! E1156: Assembler error: 'Operator is expected' -asmyt.c(164): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' -asmyt.c(165): Error! E1156: Assembler error: 'Operator is expected' -asmyt.c(166): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(168): Error! E1011: Symbol 'LABEL' has not been declared +asmyt.c(25): Warning! W131: No prototype found for function 'psini_WriteWord' diff --git a/asmyt.h b/asmyt.h index 74e66e9..2f6065a 100755 --- a/asmyt.h +++ b/asmyt.h @@ -6,4 +6,13 @@ void anSelfModifyOffsets_WriteWord(word nOffset, word nValue); int plzline(int y, int vseg); int setplzparas(int c1, int c2, int c3, int c4); word set_plzstart(word start); +inline word lsini16_GetOffset() +{ + return 16384 + (8192 * 2); +} + +inline word lsini4_GetOffset() +{ + return 16384; +} #endif diff --git a/copper.o b/copper.o index a1e4264016088b24a11fd412f2a073a55c00a0cb..70852af8f3a26f2c20e2d25159f9ae36938845e0 100755 GIT binary patch delta 62 zcmaFI_Kt0W9`hluz=?*UoBB1-D*b|-D*ckm Pg4ANYjAI*{-Y@|G#_kts delta 62 zcmaFI_Kt0W9y4!D&_qK~&QBfE3=J>A91;19w;fVIUQdv}hmd|sezAU)enC!^eo19P NYO!9%#f?pGm;k&M7ij6#cGz*xKo0@^l>B1-D*b{SFxE?M?T}z-cp2-y8bc~$Qil{!O2}iihY*sk z#Nyn_61@xtu;enwz=@3_QO7!@fhv!C1$qc0sZ7o-0*06s-j%iKTi4MX8n>-}8$A0O*!SqW}N^ delta 191 zcmeyT`A>6#b{KC=kcWVNN`A3^m3~1E80#f#cStZayzFfB$B@eC=#Tb{WEdJ=f_Y+`uR5fF93hX@6AMJ@8NeK%jE9hZN`A3^ zm3~1^m3~QOL29vH#xd-Y<*A9;dKvdSq=Cj9_X_k7M$(y_Ur>-*q?h5=Apw+)bzkiv bfFuhvTQ6f$2QyHLXPO2B1IuP+#xOc;8HR?JM?!!+G0wdmQb5j!oc4(YBK1mOPEU}(hmd|s zezAU)enC!^eo19PYO!9%MX+RNBbsD+YGSrt#=Z_|pfS8LK_0?LI+ODY3Q~*oGTwGb g0A)d11(0NcX6t2ibT9*@c&2GEFtBW9W(;El0P5^MtN;K2 diff --git a/tweak.o b/tweak.o index cc845754150dec777ed39db4ebd7cd8d0c805bdf..6bb852ec2ce761e560b327c7774b57c25bdbc4d9 100755 GIT binary patch delta 77 zcmbQqGLvP3F7qt!6-QZ}3=JC4nkY RB`XV3i}f-tZmgfh2mnC>9P$7F -- 2.39.2