| |
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.... |
| |
Mace
Registered: May 2002 Posts: 1799 |
Copied from "What assembler/compiler are you using?"
Quoting SlammerWhats 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. |
| |
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. |
| |
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. |
| |
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!
|
| |
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. |
| |
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
|
| |
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. |
| |
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 |
| |
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. |
| |
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 |