English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 28 October 2019, 10:59   #1
slademania
Registered User
 
slademania's Avatar
 
Join Date: Oct 2019
Location: Spain
Posts: 23
Smile Doubts with InitCopList command

Hi to all, I started recently to code in Blitz-Basic and I have some doubts about the "custom" parameter in the InitCopList. According to the manual,
this parameter create space for copper instructions used in the "custom" commands.
Using only a custom command in my code is easy to set the value there,
DisplayDblScan needs 2 copper ins, CustomSprites requires 4 or 2, etc.
But, when you put more than one command.. the final value of the custom
paramente is the sum of the values of all the commands? Should i put the
greatest value?

I'm very confused about this. I would like someone to help me with this
question...!!

Thank you very much in advance!!!
slademania is offline  
Old 28 October 2019, 12:20   #2
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,374
Basically, yes, the custom value should be the sum of all the required custom values of all custom commands. But, there are two different "families" of custom commands, and they're not compatible with each other. You can only use one set or the other. The first set begins with "Custom...", e.g. CustomColors, CustomSprites... these values are positive. The second set begins with "Display...", e.g. DisplayDblScan, DisplayUser... these values are negative. You can't combine them and use one command that requires +2 and one command that uses -2, all custom commands need to be from the same set.
Daedalus is offline  
Old 31 October 2019, 08:54   #3
slademania
Registered User
 
slademania's Avatar
 
Join Date: Oct 2019
Location: Spain
Posts: 23
Ok Daedalus, Understood, sometimes I used commands from both "families" (at the same time) and sometimes I had quite strange results and other times, nothing just happened.

Again thank you very much for your help. I hope to control this language soon. I'll be posting the results I get.
slademania is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
VLINK doubts: Can't reference "re-linked" symbols? Hcktrox Coders. Asm / Hardware 3 17 December 2017 18:57
CIA doubts ross Coders. Asm / Hardware 3 09 July 2017 07:44
Collision detection: 2 doubts nandius_c Coders. Asm / Hardware 6 30 November 2014 00:53
First doubts for game developing nandius_c Coders. Asm / Hardware 21 25 October 2013 12:21
some doubts on the rom (kickstart) management in rommgr.cpp pucci support.WinUAE 2 11 September 2011 14:42

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:20.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10807 seconds with 13 queries