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 > Converting ACME code to Kick Assembler
2016-06-19 03:24
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....
 
2016-06-21 08:44
Bitbreaker

Registered: Oct 2002
Posts: 501
And those many choices will keep people away from finishing their productions, because they are stuck in circlejerks about syntactic sugar :-D
2016-06-21 10:17
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)!
2016-06-21 13:04
Krill

Registered: Apr 2002
Posts: 2856
Quoting Slammer
- Use // instead of ; for comments
2016-06-21 13:51
TWW

Registered: Jul 2009
Posts: 541
Quoting ChristopherJam
Happy 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.
2016-06-21 14:52
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... 
2016-06-21 14:58
chatGPZ

Registered: Dec 2001
Posts: 11154
for some strange reason for loops work just fine in any other assembler though =)
2016-06-21 15:10
Slammer

Registered: Feb 2004
Posts: 416
Quoting Groepaz
for some strange reason for loops work just fine in any other assembler though =)

Would it be a 'proper' assembler otherwise?
2016-06-21 15:12
chatGPZ

Registered: Dec 2001
Posts: 11154
would it also use regular braces instead of this annoying [ ] stuff? :)
2016-06-21 15:16
Slammer

Registered: Feb 2004
Posts: 416
Quoting Groepaz
would it also use regular braces instead of this annoying [ ] stuff? :)

Sorry, I don't understand your question, please explain.
2016-06-21 16:12
Oswald

Registered: Apr 2002
Posts: 5031
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 - 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
Thunder.Bird/HF/MYD!..
Skylab/The Movers
Twilight/Excess/Arcade
Guests online: 87
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 Aliens in Wonderland  (9.6)
7 Comaland 100%  (9.6)
8 Uncensored  (9.6)
9 No Bounds  (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 Daah, Those Acid Pil..  (9.5)
9 Birth of a Flower  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Original Suppliers
1 Black Beard  (9.7)
2 Derbyshire Ram  (9.5)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Jazzcat  (8.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.079 sec.