\r
int ccc;\r
\r
-word anSelfModifyOffsets_ReadWord(word nOffset)\r
+function lsini4_WriteWord(nIndex, nValue)\r
{\r
- //return anSelfModifyOffsets[nOffset];\r
- return 0;\r
+ var nByteOffset = lsini4_GetOffset() + (nIndex * 2);\r
+ psini_WriteWord(nByteOffset, nValue);\r
+}\r
+\r
+void lsini16_WriteWord(word nIndex, word nValue)\r
+{\r
+ word nByteOffset = lsini16_GetOffset() + (nIndex * 2);\r
+ psini_WriteWord(nByteOffset, nValue);\r
}\r
\r
void anSelfModifyOffsets_WriteWord(word nOffset, word nValue)\r
}\r
\r
*/\r
-int setplzparas(int c1, int c2, int c3, int c4)\r
+void setplzparas(int c1, int c2, int c3, int c4)\r
{\r
// static word psini;\r
// static word lsini4;\r
// static word lsini16;\r
- __asm{\r
+/* __asm{\r
psini WORD .LABEL\r
'psini.inc' INCLUDE\r
\r
mov [word (cs:lc4_&ccc)], ax\r
ENDM\r
ret\r
- }\r
- return 0;\r
-}\r
-/* var psiniOffset = 0;\r
- var lsini16Offset = lsini16_GetOffset();\r
- var lsini4Offset = lsini4_GetOffset();\r
+ }*/\r
+ word psiniOffset = 0;\r
+ word lsini16Offset = lsini16_GetOffset();\r
+ word lsini4Offset = lsini4_GetOffset();\r
\r
for (var ccc = 0; ccc < 84; ccc++)\r
{\r
}\r
\r
return 0;\r
-}*/\r
+}\r