X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=asmyt.c;h=e0b29592c55e16ab6ad013fd342f6b3a4b9aec7c;hb=9fd48b9191180c0979ed15162ae099dbd4721a7b;hp=5f985787ad76ceb929ec6fdb7d63665b8b120645;hpb=3021f9396aa7ef6f67644f51e99a2abb3911d739;p=plz.git diff --git a/asmyt.c b/asmyt.c index 5f98578..e0b2959 100755 --- a/asmyt.c +++ b/asmyt.c @@ -15,8 +15,21 @@ // ; db 16384 dup(?) // } +word anSelfModifyOffsets[5*84]; + int ccc; +word anSelfModifyOffsets_ReadWord(word nOffset) +{ + //return anSelfModifyOffsets[nOffset]; + return 0; +} + +void anSelfModifyOffsets_WriteWord(word nOffset, word nValue) +{ + anSelfModifyOffsets[nOffset] = nValue; +} + word set_plzstart(word start) { __asm{ @@ -122,15 +135,18 @@ int plzline(int y, int vseg) */ int setplzparas(int c1, int c2, int c3, int c4) { +// static word psini; +// static word lsini4; +// static word lsini16; __asm{ -LABEL psini BYTE -INCLUDE 'psini.inc' +psini WORD .LABEL +'psini.inc' INCLUDE -LABEL lsini4 WORD -INCLUDE 'lsini4.inc' +lsini4 WORD .LABEL +'lsini4.inc' INCLUDE -LABEL lsini16 WORD -INCLUDE 'lsini16.inc' +lsini16 WORD .LABEL +'lsini16.inc' INCLUDE IRP ccc, <0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83> mov ax, [c1] @@ -150,6 +166,7 @@ INCLUDE 'lsini16.inc' ENDM ret } + return 0; } /* var psiniOffset = 0; var lsini16Offset = lsini16_GetOffset();