1;
2;       Z88 Graphics Functions - Small C+ stubs
3;
4;       Written around the Interlogic Standard Library
5;
6;       Stubs Written by D Morris - 30/9/98
7;
8;
9;	$Id: plot.asm,v 1.8 2016-04-13 21:09:09 dom Exp $
10;
11
12;Usage: plot(int x, int y)
13
14
15
16		SECTION code_graphics
17                PUBLIC    c_plot
18                PUBLIC    _c_plot
19                EXTERN     swapgfxbk
20                EXTERN    __graphics_end
21
22                EXTERN     c_plotpixel
23
24.c_plot
25._c_plot
26IF __CPU_INTEL__ | __CPU_GBZ80__
27		pop	bc
28		pop	hl
29		pop	de
30		push	de
31		push	hl
32		push	bc
33		ld	h,e
34ELSE
35		push	ix
36		ld	ix,2
37		add	ix,sp
38		ld	l,(ix+2)
39		ld	h,(ix+4)
40ENDIF
41                call    swapgfxbk
42                call    c_plotpixel
43                jp      __graphics_end
44
45