[riscosfr] Re: A la recherche d'information pour un projet.y

  • From: Rick Murray <heyrick@xxxxxxxxx>
  • To: riscosfr@xxxxxxxxxxxxx
  • Date: Thu, 04 Jan 2018 15:24:37 +0100

Salut,


        _kernel_swi_regs regs;  // défini dans kernel.h  librairie C du DDE
     regs.r[0] = 0; //plot commande:
     regs.r[1] = 300; // xcentre
     regs.r[2] = 700; // ycentre
     _kernel_swi(OS_Plot,&regs,&regs);

Avec DDE, on peut aussi fait:
__asm{   MOV   R0, 0     // plot   MOV   R1, 300  // x centre   MOV   R2, 700  
// y centre   SWI   (OS_Plot + XOS_Bit), {R0-R2}, {}, {LR, PSR}}
:-)

Avec la librairie OsLib:
os_plot(os_MOVE_TO, xcentre, ycentre);

Avec DeskLib, il sont dispo sur GFX_Plot().Je croire RISC_OSLib offre 
bbc_plot() ou quelque chose.


Amicalement,
Rick.

Other related posts: