From: sparky4 Date: Thu, 7 Apr 2016 20:03:10 +0000 (-0500) Subject: wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=c6bd0554a16e6b1f8c8d7eb1cfbd39b141ca5aba;p=plz.git wwww --- diff --git a/asmyt.c b/asmyt.c index e0b2959..aeee521 100755 --- a/asmyt.c +++ b/asmyt.c @@ -19,10 +19,16 @@ word anSelfModifyOffsets[5*84]; int ccc; -word anSelfModifyOffsets_ReadWord(word nOffset) +function lsini4_WriteWord(nIndex, nValue) { - //return anSelfModifyOffsets[nOffset]; - return 0; + var nByteOffset = lsini4_GetOffset() + (nIndex * 2); + psini_WriteWord(nByteOffset, nValue); +} + +void lsini16_WriteWord(word nIndex, word nValue) +{ + word nByteOffset = lsini16_GetOffset() + (nIndex * 2); + psini_WriteWord(nByteOffset, nValue); } void anSelfModifyOffsets_WriteWord(word nOffset, word nValue) @@ -133,12 +139,12 @@ int plzline(int y, int vseg) } */ -int setplzparas(int c1, int c2, int c3, int c4) +void setplzparas(int c1, int c2, int c3, int c4) { // static word psini; // static word lsini4; // static word lsini16; - __asm{ +/* __asm{ psini WORD .LABEL 'psini.inc' INCLUDE @@ -165,12 +171,10 @@ lsini16 WORD .LABEL mov [word (cs:lc4_&ccc)], ax ENDM ret - } - return 0; -} -/* var psiniOffset = 0; - var lsini16Offset = lsini16_GetOffset(); - var lsini4Offset = lsini4_GetOffset(); + }*/ + word psiniOffset = 0; + word lsini16Offset = lsini16_GetOffset(); + word lsini4Offset = lsini4_GetOffset(); for (var ccc = 0; ccc < 84; ccc++) { @@ -192,4 +196,4 @@ lsini16 WORD .LABEL } return 0; -}*/ +}