| |
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.... |
| |
JackAsser
Registered: Jun 2002 Posts: 1997 |
Quote: Making the char class a subclass of the number class is absolutly a possibility. Im a bit defensive about these things since its easy to implement features with unwanted side effects you cant get rid of cos of backward compatibility.
In java 'o'+'k'=218 but 'o'+'k'="ok" seems more logical, so taking the java approach may also lead to surprises (In this example you can consider the char a subclass of a string).
Imo if you wish to include the more logical approach ('o'+'k'="ok") then do it via some specific concatenate operator, like the dot (.) in PHP. Let +-*/&| always be arithmetical imho, to keep things more clean and predictable.
Having char as a subclass of string sounds just weird actually. It's more like a string is composed by chars which might be a subclass of a number or not.
But then again... :) It's your assembler and your decision and I don't even use it, although I'm deeply impressed by it so keep up the good work! :D |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Jackasser: For java strings the '+' operator is used for append, so it would counter intuitive to use another operator here for chars, and ind java 'o'+"k"= "ok" (char+string appending).
The string subclassing example was just point out that a char can be viewed as a string of length 1 as well as a number. If you write print('x') you would expect the string "x" as output and not the string "120", so in some respect it is a string and in other cases its a number.
However, I guess the number class is probably the most dominant one (it has more useful methods) so i guess that the primary object of inheritance. (So I actually agree with you, but just dont wan't to rush into an implementation with unwanted sideeffects)
|
| |
Angel of Death
Registered: Apr 2008 Posts: 210 |
Call me n00b, call me blind, call me stupid, whatever. But where were the executables of kick assembler again?
(can't find them on the designated spot)
Because Java just isn't my thing... |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Hi,
The exe version ain't supported anymore. Dependend on which os you use, java might already be installed which means the only difference between the exe version and the java version is that you have to write java -jar KickAss.jar mySource instead of KickAss.exe mySource Usually people set this up in some kind of configuration (scripfile or editor command), so it aint that much of a difference.
Also check out Pantaloons KickVice.exe (KickVice)
Btw. I made a few improvements on LCP.. V3.19 should be out soon.
|
| |
Angel of Death
Registered: Apr 2008 Posts: 210 |
@Slammer
thx for the quick reply. I have a working config already. But I like to work with executables. (has to do with mobile workstations etc.) And last time I updated java it somehow changed the location of the javaw.exe and I spend some time fixing the problem. (was a pain since I was a long way away from my server)
It's just to make my life a lot easier.
thanks again for this great product. |
| |
Trap
Registered: Jul 2010 Posts: 223 |
I am trying to load a piece of music that is located at $f000 using the LoadSid directive. However, when I do that the program crashes the machine. Is there anything I need to be aware of when trying to do this with KickAssembler? |
| |
tlr
Registered: Sep 2003 Posts: 1739 |
Quote: I am trying to load a piece of music that is located at $f000 using the LoadSid directive. However, when I do that the program crashes the machine. Is there anything I need to be aware of when trying to do this with KickAssembler?
Does KickAssembler crash or does the resulting binary crash? |
| |
Killsquad Account closed
Registered: Jun 2005 Posts: 17 |
Quote: I am trying to load a piece of music that is located at $f000 using the LoadSid directive. However, when I do that the program crashes the machine. Is there anything I need to be aware of when trying to do this with KickAssembler?
I guess Vice is crashing because you're trying to load over ROM. Try to add the following parameter to the Vice cmdline: -autostartprgmode 1
An alternative is to pack it before you run it.
|
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Also remember to switch off the rom and use $fffe/$ffff for irq. |
| |
Trap
Registered: Jul 2010 Posts: 223 |
Thanks for the replies everyone. Decided to go with a simple relocation, but I'll try the Vice switch next time. |
Previous - 1 | ... | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | ... | 61 - Next |