Deleting sprites
15/04/2018 10:19
I want to delete a sprite from the sprite pool by name from a single-tasking BASIC program.

I can't see from PRM1 p781 how I would do this, as it doesn't seem to reference the WIMP sprite pool. Should I be using Wimp_SpriteOP instead - if so, how? Or do I actually have to search for the sprite name myself to find a pointer to it? I'm a bit puzzled.

John -- John Williams, Wirral, Merseyside, UK - no attachments to these addresses! Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject for reliable contact! Who is John Williams? http://www.picindex.info/author/

Source is Usenet: comp.sys.acorn.programmer
Sign in to add a comment

Answer score: 5
15/04/2018 10:19 - In article <4e602c350cUCEbin@tiscali.co.uk>, John Williams (News) <UCEbin@tiscali.co.uk> wrote: I see, you need to get the address of the area using :- SYS Wimp_BaseOfSprites TO ,rmasprites% Ian -- Ian Hamilton (RISC PC RO4) http://www.hamiltoni.pwp.blueyonder.co.uk/ (Iyonix RO5) Programs compatible with RISC OS 3/4/5

Source is Usenet: comp.sys.acorn.programmer
Sign in to add a comment

Answer score: 5
15/04/2018 10:19 - In article <4e6026ee22UCEbin@tiscali.co.uk>, John Williams (News) <UCEbin@tiscali.co.uk> wrote: SYS OS_SpriteOp,25,,nameofsprite Ian -- Ian Hamilton (RISC PC RO4) http://www.hamiltoni.pwp.blueyonder.co.uk/ (Iyonix RO5) Programs compatible with RISC OS 3/4/5

Source is Usenet: comp.sys.acorn.programmer
Sign in to add a comment

Answer score: 5
15/04/2018 10:19 - Ian Hamilton wrote: You could always read the PRM's, but that's obviously either too easy or not an option.

r1 -> sprite area r0 = OpCode => r2 -> sprite name in system sprite area r0 = OpCode + &100 => r2 -> sprite name r0 = OpCode + &200 => r2 -> sprite -- Buzby

Source is Usenet: comp.sys.acorn.programmer
Sign in to add a comment

Answer score: 5
15/04/2018 10:19 - In article <44fa0909$0$534$ed2619ec@ptn-nntp-reader03.plus.net>, Buzby <nospam@kdmsc.plus.com> wrote: Wimp_SpriteOp only allows read options.

I misread your original question.

It needs :- SYS OS_SpriteOp,25+&100,rmasprites%,nameofsprite Ian -- Ian Hamilton (RISC PC RO4) http://www.hamiltoni.pwp.blueyonder.co.uk/ (Iyonix RO5) Programs compatible with RISC OS 3/4/5

Source is Usenet: comp.sys.acorn.programmer
Sign in to add a comment

Answer score: 5
15/04/2018 10:19 - In article <4e6081822fIan.Hamilton@AAUG.Net>, Ian Hamilton <Ian.Hamilton@AAUG.net> wrote: Thank you, Ian, that's done the trick. I shall add it to my 'learning' file.

John -- John Williams, Wirral, Merseyside, UK - no attachments to these addresses! Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject for reliable contact! Who is John Williams? http://www.picindex.info/author/

Source is Usenet: comp.sys.acorn.programmer
Sign in to add a comment

Answer score: 5
15/04/2018 10:19 - In article <4e602b4bc5Ian.Hamilton@AAUG.Net>, Ian Hamilton <Ian.Hamilton@AAUG.net> wrote: That complains 'No memory is reserved for the system sprite area ...', suggesting that's where it's trying to point. It's the WIMP sprite pool I want to delete from.

John -- John Williams, Wirral, Merseyside, UK - no attachments to these addresses! Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject for reliable contact! Who is John Williams? http://www.picindex.info/author/

Source is Usenet: comp.sys.acorn.programmer
Sign in to add a comment

eDiscover
Helpforce eDiscover provides technical articles updated each dayHelpforce eDiscover RSS feed contains the latest technical articles in RSS
Click the logo to go back to the main page
Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS

Type your comment into the box below