Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Coinoperator ! (Registered 2024-06-17) 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-22 10:24
Peacemaker

Registered: Sep 2004
Posts: 243
some talk about coding, the others actualy code =)
2016-06-22 11:07
Krill

Registered: Apr 2002
Posts: 2856
Which is entirely mutually exclusive, as everybody knows. Now those who don't contribute to this thread, kindly fuck off.
2016-06-22 11:12
Peacemaker

Registered: Sep 2004
Posts: 243
Krill, dont be so rude =)
2016-06-22 11:20
ChristopherJam

Registered: Aug 2004
Posts: 1382
Quoting Krill
Also it's not like most people can sneak-code at work, but many more can discuss in forums at work.


Very true. Besides, I can shitpost when I'm in bed or having breakfast; getting some code done actually requires a chunk of time to get my brain into gear.
2016-06-22 11:46
chatGPZ

Registered: Dec 2001
Posts: 11154
Quote:
Which is entirely mutually exclusive, as everybody knows.

loader fixed up for release yet? :=)
2016-06-22 12:35
Angel of Death

Registered: Apr 2008
Posts: 210
Quoting Slammer
Feel free to join https://www.facebook.com/groups/RetroAssembler/
A lot of the same people who hang around on CSDb is also is on RetroAssembler, but the discussion is a bit more friendly.

I'm off. Byebye, you bunch of cynical old b@stards! ;D
2016-06-22 14:57
Krill

Registered: Apr 2002
Posts: 2856
Peacemaker: Yeah sorry, was a bit annoyed. :)

Quoting Groepaz
Quote:
Which is entirely mutually exclusive, as everybody knows.

loader fixed up for release yet? :=)
Mostly. But it's more fun to do other stuff like Zoompinski [512 bytes] instead of boring patchwork. :)
2016-06-22 16:56
Compyx

Registered: Jan 2005
Posts: 631
I still don't get what is wrong with the de-facto way of doing self-modifying code:

foo ldx#0
    lda table,x
    sta $d020
    inc foo + 1


This immediately parses, in my head, as self modifying code. No need for assembler-masturbation, coming up with weird syntax that is just meant for assembler writers to feel cool.

We used to be happy with this, no need for braces, brackets, macro's, superfluous assignments, scripting languages, +1/+2 is enough.

God dammit :)
2016-06-22 17:08
Burglar

Registered: Dec 2004
Posts: 1051
foo lda table
    sta $d020
    inc foo + 1

there, fixed it for you ;)
2016-06-22 17:25
Compyx

Registered: Jan 2005
Posts: 631
No you didn't.

table = $10ff


Now we need:
.macro inc_table
    inc \1 + 1
    bne +
    inc \1 + 2
+
.endm


foo lda table
    sta $d020
    #inc_table foo


Which kind of defeats the purpose of my rant.

And thank fuck for editing posts ;)
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
Fungus/Nostalgia
sachy
Youth
Fred/Channel 4
Guests online: 74
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 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Comaland 100%  (9.6)
9 Wonderland XIV  (9.6)
10 Aliens in Wonderland  (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 Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Cash  (9.6)

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