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

Registered: Jul 2009
Posts: 557
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: 449
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: 11523
for some strange reason for loops work just fine in any other assembler though =)
2016-06-21 15:10
Slammer

Registered: Feb 2004
Posts: 449
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: 11523
would it also use regular braces instead of this annoying [ ] stuff? :)
2016-06-21 15:16
Slammer

Registered: Feb 2004
Posts: 449
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: 5127
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
katon/Lepsi De
sLASH
kbs/Pht/Lxt
pievspie
lotus_skylight
Steffan/BOOM!
Tommy/Noice^DCS
Pac
algorithm
Guests online: 254
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 OTD  (9.8)
3 Antitrack  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.052 sec.