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....
 
2010-08-18 09:36
Pantaloon

Registered: Aug 2003
Posts: 124
i found a bug:

.const LINK = false

begin:
.if (LINK == false)
{
.import c64 "\datapata\myfile.prg"
}
end:

.print end - begin


the print won't work, it will output the address at begin:
if i remove .if () it works.

-P
2010-08-20 05:07
Slammer

Registered: Feb 2004
Posts: 416
I will have a look at it.. Right now im on vacation in Austria - will be home on monday.
2010-09-02 09:11
Pantaloon

Registered: Aug 2003
Posts: 124
Feature request:

a method to generate a random unique list, ie:

.var randomNumbers = randomUniqueList(numberOfElements)

the randomUniqueList would give you back a list of values
between 0 and numberOfElements, no number should me mapped twice in the list.

Generating this kind of list using the built in Hashtable takes forever today.


Edit:

i found out doing this,


.var random_table = Hashtable()
.for (var i = 0; i < 12*40; i++ )
{
.eval random_table.put(i,i)
}

would generate a somewhat unique list because of the nature of the hashtable, but still its not random.

2010-09-02 10:15
Slammer

Registered: Feb 2004
Posts: 416
Why dont you use the random function? Quick Pseudocode:
for (;hashtable.getKeys().getsize()< noOfDesiredElements;) {
   .var randomNo = random()
   .eval hashtable.put(randomNo, randomNo) 
}

Nb. Since we dont have a while statement (yet) I use the for statement as a while
2010-09-02 11:10
Pantaloon

Registered: Aug 2003
Posts: 124
i found a better way,

shuffle() that can be done on lists :)
2010-09-02 18:55
JackAsser

Registered: Jun 2002
Posts: 1997
Quote: i found a better way,

shuffle() that can be done on lists :)


@Slammer: Collections.shuffle(List<?> list); *hint* *hint* and while you're at it, Collections.sort(List<?> list); :D Heck, .reverse is useful too!
2010-09-02 21:19
Slammer

Registered: Feb 2004
Posts: 416
JackAsser: Shuffle is already implemented. Sort and Reverse are, as you said, pretty easy to implement so they will be in the next release.. (reverse is implemented by just one extra line of code *S*)
2010-09-04 12:56
Slammer

Registered: Feb 2004
Posts: 416
I posted some examples of pseudo commands on codebase64.


2010-09-30 19:20
Slammer

Registered: Feb 2004
Posts: 416
There is a new release on the site.

This is a one time notice, normally you will have to check the website yourself, however the site have been kind of unstable lately. It's now moved to a new host - hopefully this will help.
2010-11-06 16:40
Lobogris
Account closed

Registered: Oct 2010
Posts: 22
Hi! Is there any way to tell kickassembler to repeat a instruction x times?

for example, turning this:

nop
nop
nop
nop

into something like:

:nop (4)


That'll be great to follow better the .asm listings.

I think I have read that somewhere but I am unable to find that again.

Thanks!
Previous - 1 | ... | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | ... | 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
Sentinel/Excess/TREX
Starfox
The MeatBall
El Jefe/Slackers^sidD
E$G/hOKUtO fOrcE
Guests online: 81
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 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 No Bounds  (9.6)
9 Aliens in Wonderland  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Birth of a Flower  (9.5)
9 Morph  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Offence  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

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