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-03-17 19:50
Mace

Registered: May 2002
Posts: 1799
Copied from "What assembler/compiler are you using?"
Quoting Slammer
Whats your favorite feature of the assembler you are using? What feature really helps you? (...)
The main reason why I switched from 64TASS to KickAss is because of the List() directive, math functions like sin() so I don't need a sinus generator anymore.
Namespacing and scoping look useful too, but have had no need for them yet.

What I like less about KickAss compared to 64TASS is the import of binaries. In 64TASS it's a matter of .binary "file",offset,length and it's in the memory.
No need to do .fill stuff and such.
2010-03-17 20:52
Slammer

Registered: Feb 2004
Posts: 416
Mace: Have you tried

.import binary “Music.bin” or
.import c64 "prog.c64"

I'll se if I can add an optional offset and length parameter in a later version. (until then you can always write a macro (.macro importFile(filename,offset, length) {..})

Btw. The favorite feature question is intended for all assemblers.
2010-03-17 21:29
Mace

Registered: May 2002
Posts: 1799
Of course I tried .import, but it's not the same since it fetches the entire file and not just a part of it.
What I use the offset and length for is for importing parts of externally created data, like graphics.
2010-03-19 11:03
Digger

Registered: Mar 2005
Posts: 422
Slammer, I am getting a weird error after first pass:

Memory Map
----------
WARNING! No data in memory!

What's that about? I've searched the manual but no info there.
Thanks!
2010-03-19 11:56
Slammer

Registered: Feb 2004
Posts: 416
You have assembled a program that contains no bytes. Eg. if you assemble
.for(var i=0; i<10; i++)
   .print "i="+i
you will get the 'WARNING! No data in memory!'. The first two lines is the memory map which is empty.
2010-03-24 19:39
Iapetus/Algarbi/Wood

Registered: Dec 2004
Posts: 71
I am getting a problem when I use //, the compiler can't find lables after the use of //

For instance:

lda #$00
sta pintaTileX+1

pintaTileY: lda #$00 // y coord

.
.
.

pintaTileX: lda #$00

Error: Unknown symbol 'pintaTileX'

If I change the first line containing // to:

pintaTileY: lda #$00 /* y coord */

it works

2010-03-24 19:48
Slammer

Registered: Feb 2004
Posts: 416
If you use an editor that uses nonstandard codes for lineshift the linecomment won't be terminated.

Try using a different editor and examine the file with an hexeditor.
2010-03-24 20:37
Iapetus/Algarbi/Wood

Registered: Dec 2004
Posts: 71
I have been using scite for ages and never had problems. I clicked on "convert line end characters" under Options and it worked.

Thank you
2010-04-13 12:22
Slammer

Registered: Feb 2004
Posts: 416
Hi, My internet provider has been really unstable. This means that if you have given feedback in the form on the Kick Assembler website or written to mailaddress given in the manual the past one and and a half month I haven't recieved your mail.

It should be working now, so if you havn't recieved an answer -> write again. Sorry for the inconvenience.
2010-04-13 12:48
Pantaloon

Registered: Aug 2003
Posts: 124
i just tried to post a few bugs again and the same error.

here are 2 bugs i've found tho,

1. Script

when using a Hashtable like this, .var pixelTable = Hashtable() and then using it in a loop generates this:

parsing
flex pass 1

.if (pixelTable.get(key) != null)
^
Error: Unknown function : !=



2. Reading bytes from binary files

when loading binary files like this, .var dataFile = LoadBinary("data\hiresvector\lightwave.obj")

and then reading it byte by byte using vectorFile.get(i) gives back random signs of the byte. it can be solved by doing vectorFile.get(i) & 255 so it seems kickasm is reading 32 bits and gives back 8 without clearing the other 24 bits or something.

-Pantaloon
Previous - 1 | ... | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | ... | 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
apprentix
CA$H/TRiAD
HCL/Booze Design
Oswald/Resource
TBH
Nordischsound/Hokuto..
Airwolf/F4CG
Guests online: 75
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 Morph  (9.5)
9 Quadrants  (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 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.055 sec.