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


Forums > C64 Coding > Kick Assembler Thread 2
2009-07-21 17:20
Slammer

Registered: Feb 2004
Posts: 416
Kick Assembler Thread 2

The previous thread took a little long to load, so this is a new fresh one..
 
... 592 posts hidden. Click here to view all posts....
 
2016-11-11 22:09
ruk

Registered: Jan 2012
Posts: 43
Change the .print to .printnow and you will see that it prints out the expected value in the first pass, before the odd "null" output.

I would say that this is bug since the value clearly is available in the first pass. The "null" is probably due to something going south while processing the .import directive
2016-11-12 09:01
Mace

Registered: May 2002
Posts: 1799
Ok, this is weird:
.print theFile
does nothing
.printnow theFile
produces the correct filepath.
.import c64 theFile
produces null
.import c64 "[correct path to file]"
imports the file.
2016-11-12 11:27
Mace

Registered: May 2002
Posts: 1799
Ok, this is a confirmed bug that will be resolved in the next update.
2017-02-16 04: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 13:56
Knut Clausen

Registered: Apr 2013
Posts: 18
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 14:44
Norrland

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

Registered: Nov 2002
Posts: 1293
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 20:54
Cruzer

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

Registered: Nov 2002
Posts: 1293
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 21:52
chatGPZ

Registered: Dec 2001
Posts: 11149
this is not normal method
Previous - 1 | ... | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 - 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
krissz
chronos/Therapy
pcollins/Quantum
Guests online: 138
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 No Bounds  (9.6)
7 Aliens in Wonderland  (9.6)
8 Comaland 100%  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Happy Birthday Dr.J  (9.7)
2 Layers  (9.6)
3 It's More Fun to Com..  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.6)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Rainbow Connection  (9.5)
9 Dawnfall V1.1  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.052 sec.