| |
Pixman Account closed
Registered: Dec 2001 Posts: 42 |
Converting ACME code to Kick Assembler
In this code there are some confusing lines (since there are no proper ACME manuals):
http://codebase64.org/doku.php?id=base:double_irq
lda #$00 ;Reload A,X,and Y
reseta1 = *-1 ;registers
ldx #$00
resetx1 = *-1
ldy #$00
resety1 = *-1
Someone on #c-64 told me = is for the current Program Counter.
But there is no equivalent to this in Kick Assembler.
Solve it with branches?
I seriously have no idea how to fix this problem.
Any suggestions?
Tnx,
Pix |
|
... 80 posts hidden. Click here to view all posts.... |
| |
Bitbreaker
Registered: Oct 2002 Posts: 508 |
And those many choices will keep people away from finishing their productions, because they are stuck in circlejerks about syntactic sugar :-D |
| |
Pixman Account closed
Registered: Dec 2001 Posts: 42 |
FINALLY! It works, thanks to NOICE's Tasm to KickAss-converter.
Output looks like this:
lda #$00 //Reload A,X,and Y
.label reseta1 = *-1 //registers
ldx #$00
.label resetx1 = *-1
ldy #$00
.label resety1 = *-1
Works perfectly and smooth.
Thanks for all the help (and fish)! |
| |
Krill
Registered: Apr 2002 Posts: 2980 |
Quoting Slammer- Use // instead of ; for comments |
| |
TWW
Registered: Jul 2009 Posts: 545 |
Quoting ChristopherJamHappy to be using +1 to get to the high byte; I already do that for zero page pointers anyway, this way I'd not be using +0/+1 for zp, +1/+2 for SMC.
I use:
.var ZP = $02
.const ZP_Vector = ZP .eval ZP = ZP + 2
.const ZP_VectorLo = ZP_Vector
.const ZP_VectorHi = ZP_Vector+1
And then use like this:
lda <Destination
sta ZP_VectorLo
lda >Destination
sta ZP_VectorHi
jmp (ZP_Vector)
Assuming I understood correctly.
Edit: And if You also have defined some 16 bit pseudos You can do: : CWA destination ; ZP_Vector and forget all about lo and hibytes. |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Krill: Because if ; where comments you wouldn't get far with high level for loops.
.for(var i=0;i<8;i++) Ooops... |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
for some strange reason for loops work just fine in any other assembler though =) |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Quoting Groepazfor some strange reason for loops work just fine in any other assembler though =)
Would it be a 'proper' assembler otherwise? |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
would it also use regular braces instead of this annoying [ ] stuff? :) |
| |
Slammer
Registered: Feb 2004 Posts: 416 |
Quoting Groepazwould it also use regular braces instead of this annoying [ ] stuff? :)
Sorry, I don't understand your question, please explain. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
|
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 - Next |