Re: A92: how to draw lines and stuff with TI-GCC
[Prev][Next][Index][Thread]
Re: A92: how to draw lines and stuff with TI-GCC
In a message dated 8/4/99 10:34:19 AM Eastern Daylight Time,
dysup@coah1.telmex.net.mx writes:
> You sould write an assembler interface like this:
>
> #define clrscr graphlib__0005
> #define fillrect graphlib__0000
> #define pause userlib__0000
>
> void fill(),fillrect(),clrscr(),pause();
> int _ti89,_ti92plus;
>
> _main()
> {
> clrscr();
> fill(10,10,135,10,0);
> pause();
> };
>
> void fill(x,y,width,height,color) /* interface inline assembler */
do l have to do the above void command? (or is that just for error checking?)
> int x;
> int y;
> int width;
> int height;
> int color;
> {
> asm("
do asm constructs have to be in quotation marks?
> move.w 8(%sp),%d0
> move.w 10(%sp),%d1
> move.w 12(%sp),%d2
> move.w 14(%sp),%d3
> move.w 16(%sp),%d4
what does the above do? and how do l know what values are going into what?
> ");
> fillrect();
> };