Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums


Forums > C64 Coding > Kick Assembler Thread 2
2009-07-21 19:20
Slammer
Account closed

Registered: Feb 2004
Posts: 401
Kick Assembler Thread 2

The previous thread took a little long to load, so this is a new fresh one..
 
... 557 posts hidden. Click here to view all posts....
 
2016-11-12 12:27
Mace

Registered: May 2002
Posts: 1768
Ok, this is a confirmed bug that will be resolved in the next update.
2017-02-16 05:14
Norrland

Registered: Aug 2011
Posts: 14
Hellu...
Tried to code some stuff and ran into some problems, searched the manual but haven't found what I'm looking for.
Is it possible to modify names of variables when declaring or adressing them?

Maybe following snippet of non-working-code explains my question (in this example I would like to create 50 lists with the names list_1, list_2, list_3..):

.for (var i=0 ; i<50 ; i++)
.var list_+i=List()
2017-02-16 14:56
Knut Clausen

Registered: Apr 2013
Posts: 8
Kickassembler won't let you create dynamic variable names like that.

.var myLists = List(50)
.for(var i = 0;i<myList.size();i++){
.eval myLists.add(List())
}

or

.var ht = Hashtable()
.for(var i = 0;i<50;i++){
.eval ht.put("list_" + i, List())
}

will give you what you need
2017-02-16 15:44
Norrland

Registered: Aug 2011
Posts: 14
Thx Knut, will try that!
2017-07-04 17:09
Jammer

Registered: Nov 2002
Posts: 674
I may have spotted parser error. PseudoPC readressing doesn't modify BNE/BEQ branches. I had tough time to spot why my piece of code, relocated to zeropage, jams and Vice monitor ensured me that's the reason. Haven't checked other branches, yet.

edit: I'm probably wrong here. Branch value is unchanged in original piece of code (contained within PseudoPC block) but is correct after relocation. It's relative addressing after all, silly me. Jam trouble is, unfortunately, unsolved so far.
2017-07-04 22:54
Cruzer

Registered: Dec 2001
Posts: 893
Jammer: You might have discovered a special feature that detects the coder's handle and changes the output accordingly. :D
2017-07-04 23:38
Jammer

Registered: Nov 2002
Posts: 674
LOL xD Usual foolstart of mine. Vice monitor shows branches with absolute value afterwards hence I got confused for a 'while'. BTW, crash solved. I just forgot to remove .zp markers which left after previous version of code - earlier I moved entire interrupt to zp, later only key routines ;)
2017-07-04 23:52
Groepaz

Registered: Dec 2001
Posts: 8216
this is not normal method
2017-07-05 00:21
Jammer

Registered: Nov 2002
Posts: 674
Normal is boring? ;)
2017-08-10 15:25
TWW

Registered: Jul 2009
Posts: 400
Hello

I get the following error:

    .if (CopyStop-CopyStart >= 256) {
    ^

Error: The condition must be able to evaluate in first parse
at line 57, column 5 in Asset Manager.asm


I am using the pseudopc directive. I have found a (messy) workaround but wondered if there is a way to allow two parses?

Also, any future plans to allow pseudopc nesting in the future (useful for cartridge images where you need the assembled code pseudopc to $8000, then pseudopc code to $0800 (example) which is to be copied to RAM while it all in fact is located at $2040 in the .crt image. Again, I have a workaround but wondered if this is planned or if there might be some more delicate way to handle this?

EDIT:

Simplified question:

test1:
test2:
    .if ([test1 - test2] == 0) .print "This Works!"
    .if ([test3 - test4] == 0) .print "This Does Not Work!"
test3:
test4:


Is there a way to get the 2nd .if statement to work without getting the "Error: The condition must be able to evaluate in first parse" issue?
Previous - 1 | ... | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
saksofon
SigmaZeven/Alpha Fli..
Jazzcat/Onslaught
Alakran_64
hedning/G★P
Digger/Elysium 🇵🇱..
www.gb64.com
aNdy/AL/Cosine
Asthor/Exlusive ON
ZeSmasher/F4CG
E$G/I-IokutO ForcE
Guests online: 73
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 The Shores of Reflec..  (9.6)
5 Lunatico  (9.6)
6 Quad Core 100%  (9.5)
7 Comaland 100%  (9.5)
8 Incoherent Nightmare  (9.5)
9 Wonderland XII  (9.5)
10 Comaland  (9.5)
Top onefile Demos
1 Pandemoniac Part 2 o..  (9.6)
2 Synthesis  (9.6)
3 Dawnfall V1.1  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Field Sort  (9.4)
6 Treu Love [reu]  (9.4)
7 Dawnfall  (9.3)
8 Globe 2016 [reu]  (9.3)
9 KAOS 64  (9.3)
10 Hardware Accelerated..  (9.2)
Top Groups
1 Booze Design  (9.4)
2 Censor Design  (9.4)
3 Oxyron  (9.4)
4 Crest  (9.3)
5 Finnish Gold  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.5)
2 Peter  (9.4)
3 Newscopy  (9.4)
4 Remix  (9.3)
5 Vengeance  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2017
Page generated in: 0.434 sec.