From: sparky4 Date: Wed, 17 Feb 2016 16:29:09 +0000 (-0600) Subject: dang it!! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=c7a2c3da1b2b97112ca29757ad1d6c7de962b78a;p=plz.git dang it!! --- diff --git a/asmyt.c b/asmyt.c index 4427c78..21a1f1c 100755 --- a/asmyt.c +++ b/asmyt.c @@ -15,6 +15,8 @@ // ; db 16384 dup(?) // } +int ccc; + word set_plzstart(word start) { __asm{ @@ -117,9 +119,42 @@ int plzline(int y, int vseg) return 0; } +*/ int setplzparas(int c1, int c2, int c3, int c4) { - var psiniOffset = 0; + __asm{ + LABEL psini BYTE +INCLUDE 'psini.inc' +; db 16384 dup(?) + +LABEL lsini4 WORD +INCLUDE 'lsini4.inc' +; db 16384 dup(?) + +LABEL lsini16 WORD +INCLUDE 'lsini16.inc' +; db 16384 dup(?) + + 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] + add ax, OFFSET psini+ccc*8 + mov [word (cs:lc1_&ccc)], ax + mov ax, [c2] + shl ax, 1d + add ax, OFFSET lsini16-ccc*8+80*8 + mov [word (cs:lc2_&ccc)], ax + mov ax, [c3] + add ax, OFFSET psini-ccc*4+80*4 + mov [word (cs:lc3_&ccc)], ax + mov ax, [c4] + shl ax, 1d + add ax, OFFSET lsini4+ccc*32 + mov [word (cs:lc4_&ccc)], ax + ENDM + ret + } +} +/* var psiniOffset = 0; var lsini16Offset = lsini16_GetOffset(); var lsini4Offset = lsini4_GetOffset(); diff --git a/asmyt.err b/asmyt.err new file mode 100755 index 0000000..0f958ee --- /dev/null +++ b/asmyt.err @@ -0,0 +1,17 @@ +asmyt.c(126): Error! E1156: Assembler error: 'Syntax error' +asmyt.c(127): Error! E1156: Assembler error: 'Syntax error' +asmyt.c(130): Error! E1156: Assembler error: 'Syntax error' +asmyt.c(131): Error! E1156: Assembler error: 'Syntax error' +asmyt.c(134): Error! E1156: Assembler error: 'Syntax error' +asmyt.c(135): Error! E1156: Assembler error: 'Syntax error' +asmyt.c(138): Error! E1156: Assembler error: 'Syntax error' +asmyt.c(140): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' +asmyt.c(141): Error! E1156: Assembler error: 'Operator is expected' +asmyt.c(144): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' +asmyt.c(145): Error! E1156: Assembler error: 'Operator is expected' +asmyt.c(147): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' +asmyt.c(148): Error! E1156: Assembler error: 'Operator is expected' +asmyt.c(151): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' +asmyt.c(152): Error! E1156: Assembler error: 'Operator is expected' +asmyt.c(153): Error! E1156: Assembler error: 'Syntax error' +asmyt.c(156): Warning! W107: Missing return value for function 'setplzparas' diff --git a/asmyt.o b/asmyt.o deleted file mode 100755 index 25cb086..0000000 Binary files a/asmyt.o and /dev/null differ