]> 4ch.mooo.com Git - plz.git/blob - asmyt.c
wwwww
[plz.git] / asmyt.c
1 #include "asmyt.h"\r
2 void set_plzstart(word start)\r
3 {\r
4 __asm{\r
5         mov     dx, 3d4h\r
6         mov     al, 18h         ; linecompare\r
7         mov     ah, [Byte start]\r
8         out     dx, ax\r
9         mov     al, 07h\r
10         mov     ah, [Byte start+1]\r
11         shl     ah, 4d\r
12         and     ah, 10h\r
13         or      ah, 0fh\r
14         out     dx, ax                  ; 8th bit\r
15 }\r
16         return start;\r
17 }\r