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: 508
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: 2980
Quoting Slammer
- Use // instead of ; for comments
2016-06-21 13:51
TWW

Registered: Jul 2009
Posts: 545
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: 11386
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: 11386
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: 5094
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
Magic/Nah-Kolor
csabanw
Codey/Second Dimension
Metal Maniac/Dual Crew
MWR/Visdom
Genius/Xenon
Morpheus/IPC+C64.COM
Twoflower/ΤRIΛD
Xiny6581/Dees Produc..
Dan
Guests online: 95
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

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