From c7a2c3da1b2b97112ca29757ad1d6c7de962b78a Mon Sep 17 00:00:00 2001
From: sparky4 <sparky4@cock.li>
Date: Wed, 17 Feb 2016 10:29:09 -0600
Subject: [PATCH] dang it!!

---
 asmyt.c   |  37 ++++++++++++++++++++++++++++++++++++-
 asmyt.err |  17 +++++++++++++++++
 asmyt.o   | Bin 447 -> 0 bytes
 3 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100755 asmyt.err
 delete mode 100755 asmyt.o

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 25cb08606d8d9507b53fecc72190c2de68eb5506..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 447
zcmZn=VGz<!$uHKg(l5xV(oZbTtt`<?KH0&{(6BJ1gM*=Awn2t}LCUNSDTaoZeF1?U
zSXAEzOD^-oCYf;*t7J)KL29vH#y*feFL|b^F)*+=`@6WZxHyJ5GCKtaGl%#Dv$?nj
z`G*E@f!!1z;u;ZBJcFGf!;yiViE&*AD?`ISf5xTL*cn)z{r!SNt^?&f7#KL18F{C1
zFtCBej21%#Ihh%GKnmkQ#y^FKaWOM;&jKp^&-9=9KTA*#2T(dbIK-P_`vO-6Mg|7g
z(9Wj;JA@c!F#thCa9~hac)+eJ%o`-SmVNpEegk{gvakOyJb}Q5Cjt#;_}_QCed$g6
z79STC86E3;I&cmv!x_#nM&k)03=E9C#i=Fnzz{AjNh~Uf2O4=`iZD=E2*?rvLS+VH
z1{DS~hP)nL2Cn#|%=Gx={FKyqhT;w`hKBih`Kh_37Up}voZQ5c3=8v&b6rdf3?%^N
CE|LKN

-- 
2.39.5