From 2cf7e817358bc59fe630719aef5f143cfa191a88 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 17 Feb 2016 10:41:35 -0600 Subject: [PATCH] wtf --- asmyt.c | 16 ++++++++++------ asmyt.err | 24 +++++++++--------------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/asmyt.c b/asmyt.c index 5f98578..bc5818b 100755 --- a/asmyt.c +++ b/asmyt.c @@ -122,15 +122,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 +153,7 @@ INCLUDE 'lsini16.inc' ENDM ret } + return 0; } /* var psiniOffset = 0; var lsini16Offset = lsini16_GetOffset(); diff --git a/asmyt.err b/asmyt.err index 4a67b8a..9f16313 100755 --- a/asmyt.err +++ b/asmyt.err @@ -1,17 +1,11 @@ -asmyt.c(126): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(127): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(129): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(130): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(132): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(133): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(135): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(137): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' -asmyt.c(138): Error! E1156: Assembler error: 'Operator is expected' -asmyt.c(141): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' -asmyt.c(142): Error! E1156: Assembler error: 'Operator is expected' +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(148): Error! E1156: Assembler error: 'A constant operand is expected in multiplication' -asmyt.c(149): Error! E1156: Assembler error: 'Operator is expected' -asmyt.c(150): Error! E1156: Assembler error: 'Syntax error' -asmyt.c(153): Warning! W107: Missing return value for function 'setplzparas' +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(155): Error! E1011: Symbol 'LABEL' has not been declared -- 2.39.2