A92: [Fwd: tutorial]


[Prev][Next][Index][Thread]

A92: [Fwd: tutorial]




Hmlacage@aol.com wrote:

> hi, sorry to bother but i have a small pb developping a small routine for my
> tutorial...
>
> here is a small mail i would like to send to A92...
> --------------------------------------------------------------------------
>
> *******************
>  include "tios.h"
>  include "flib.h"
>  xdef    _main
>  xdef    _comment
>
> _main:
>    move.l   #$F00+8,-(a7)
>    jsr      tios::HeapAlloc
>    add.l    #4,a7
>    move.w   d0,VU_handle
>    tios::DEREF d0,a0
>    move.l   a0,d0
>    add.l    #7,d0
>    asr.l    #3,d0
>    move.w   d0,VU_adress_8
>    asl.l    #3,d0
>    move.l   d0,VU_adress
>
>    bsr      initialize
>    jsr      flib::idle_loop
>    bsr      reset
>    rts
>
> initialize:
>    move.w   #VU_adress_8,($600010)
>    rts
>
> reset:
>    move.l   #tios::main_lcd,d0
>    asr.l    #3,d0
>    move.w   d0,($600010)
>    rts
>
> VU_handle:   dc.w 0
> VU_adress:   dc.l 0
> VU_adress_8: dc.w 0
>
> _comment:
>  dc.b "essai",0
>
>  end
>
> **************************
>
> This program doesn' t seem to compile... I get an error in "operand in the
> code section".. I have no idea what this means...
> This piece of code is rather simple and just builds a virtual screen for a few
> seconds...
> In case someone knows what is the pb, please mail back privatly ( i am no more
> on the list ) to <hmlacage@aol.com>
>
> thanks in advance, mathieu
>
> --------------------------------------------------------
>
> thank you, mathieu

Mathieu asked me to forward this to you guys...

--
Bryan Rabeler <brabeler@ticalc.org>
   File Archives, HTML, Features, and Support
   the ticalc.org project - http://www.ticalc.org/