| |
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.. |
|
... 590 posts hidden. Click here to view all posts.... |
| |
Murphy
Registered: Jul 2006 Posts: 10 |
Thanks Slammer!
Your solution is much more elegant than mine!
It's a shame that I haven't noticed this in the documentation. :) |
| |
TWW
Registered: Jul 2009 Posts: 541 |
From my -PNGtoKOALA routine I get the following error:
.for (var Pixel = 0 ; Pixel < 4 ; Pixel++) {
.eval PixelColor = Graphics.getPixel([[8*BlockNumber]+[[Pixel<<1]&7]]-[320*[floor(BlockNumber/40)]] , [8*floor(BlockNumber/40)]+Byte)
.eval BMPPattern = ColorIndex.get(PixelColor)
.eval BMPByte = BMPByte|[BMPPattern << [6 - Pixel*2]]
^
Error: Unknown function : <<
I've used it before and it worked fine so what the heck am I missing?
EDIT: Found out. Had some "ghost pixels" with different RGB codes in the GFX I was converting... Funtion works as intended. SOLVED. |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
BMPPattern contains a value for which the << operator is not defined. Could it be null? |
| |
TWW
Registered: Jul 2009 Posts: 541 |
Yepp. That was precisely it. |
| |
Killsquad Account closed
Registered: Jun 2005 Posts: 17 |
Any update on .ifdef/.ifndef directives? Would be very handy. |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
The basic directives are implemented as know from C# (#define, #if, #else, #elif, #endif, #undef). Currently missing is setting definitions from the commmand line and boolean operatiors. But they will be there, don't worry.
Other nice things which are already implemented are:
- The * is back, *=$1000. (You can still use .pc)
- You can now use normal ( ) aswell as [ ]
- You can add an optional ; in the end of commands, eg: .eval x=27;
+ Some other goodies
The reason it takes time is that they are part of a bigger modification, where the entire parsing routine is reimplemented. Instead og using a parsergenerator, most of it is now done by handwritten code which gives more flexability. This will be in the next major version (4.0). I guess it will take at least a couple of months finish. |
| |
Murphy
Registered: Jul 2006 Posts: 10 |
Slammer: Really great improvements!
I can't wait! :) |
| |
Killsquad Account closed
Registered: Jun 2005 Posts: 17 |
That is great news, Slammer. Looking forward to it. |
| |
subjik
Registered: Dec 2001 Posts: 5 |
Is anyone else having problems after updating OSX to El Capitan? On Build & Run everything works fine except that Vice exits immediately after it starts. Any tips how to solve this? |
| |
Pantaloon
Registered: Aug 2003 Posts: 124 |
great news, will 4.x version be released before christmas ? |
Previous - 1 | ... | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | ... | 61 - Next |