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 > Assemble code
2014-11-15 19:29
Morpheus

Registered: Feb 2004
Posts: 152
Assemble code

Hello guys, I have code in a TXT file. Into which WIN 7 assembler can I best copy and paste this code to see if it works?
2014-11-15 19:30
JackAsser

Registered: Jun 2002
Posts: 2014
Post a snippet of the text-file so that we can determine which assembler that is compatible with the source. There are several flavors of 6502-assembly...
2014-11-15 19:35
tlr

Registered: Sep 2003
Posts: 1790
I doubt there are any win7 specific assemblers. It's more of a 32-bit vs 64-bit thingy. Most ones compiled for win XP will work.
2014-11-15 21:17
Morpheus

Registered: Feb 2004
Posts: 152
Here's a snippet:

LDA #8
STA FINET
JMP TOP
DEC TEMPOBYT
BPL TOP
LDA TEMPO
STA TEMPOBYT
LDA TSIDINDEX,X
STA SIDVNUM
TAY
LDA FINET
BEQ J3
LDA TEMPOBYT
CMP TEMPO
BNE J3
LDA TBARORDER,X
STA Z0
LDA TBARORDER+3,X
STA Z0+1

If you need more, I'm gonna have to send it to your personally.

Let me know!
2014-11-15 21:25
MagerValp

Registered: Dec 2001
Posts: 1078
That's plain code, compatible with pretty much every assembler out there. They differ in how they handle labels, data bytes, org directives, etc - post a snippet with that.
2014-11-15 21:29
Morpheus

Registered: Feb 2004
Posts: 152
Mager, please explain that a little bit more. What part do you need to see?
2014-11-15 21:35
Mace

Registered: May 2002
Posts: 1799
We need to see the lables, the words that describe locations in the program, like TEMPO.
And then something like:
!TEMPO {code}
TEMPO: {code}
TEMPO {code}

Where {code} is the assembly code.

Or stuff that reads '.byte $00, $00' or other lists of bytes.
2014-11-15 21:41
Morpheus

Registered: Feb 2004
Posts: 152
Something like this:

TEMPO DB 2
FINET DB 0
XXXX DB 2
TEMPY DB 0
PLAYFLAG DB $C0
OSCH DB 0,0,0
OSCL DB 0,0,0
BENDL DB 0,0,0
BENDH DB 0,0,0

and

* ;DB $85,0,0,0,0,0,0,0,0,0,0,0,0,0
* ;DM DB $81,$2C,$81,$20,$15,$80,1,$11,0,1,$11,$55,2
* ;DB $11,$00,2,$85
* ;BASSDM DB $81,$2C,$81,$10,$41,$80,3,$40,0,1,$40,$55,3
* ;DB $40,$20,0,$40,0,0,$85

?
2014-11-15 22:27
Mace

Registered: May 2002
Posts: 1799
Looks like DASM.
2014-11-16 08:07
MagerValp

Registered: Dec 2001
Posts: 1078
No, that's not DASM, it uses dc.b etc. With the all uppercase source, db/dw for data, and * for comments it looks like something older, and possibly C64-native.

For more clues post the bit where there are label assignments (using = or equ?) and where the start of the code is defined (using * = or org?).
2014-11-16 10:45
Mace

Registered: May 2002
Posts: 1799
Interesting.
I was indeed guessing about DASM, no hands on experience.
2014-11-16 12:13
Bitbreaker

Registered: Oct 2002
Posts: 508
a bunch of sed/awk/$painfullshellshits commands will fix it for any assembler anyway :-)
2014-11-17 07:37
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
replace the db. shit with .BYT - then it works with turbo asm.
2014-11-17 07:39
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
DB, define byte
DM, im not sure...

make it all to .BYT - and if it dont work, then DM means something...?

or have Sir Allister look at it, he is hardcore.
Boz.

(Boz coded the php assembler to martin galways undocumented macro player)
2014-11-17 08:10
Mace

Registered: May 2002
Posts: 1799
DM looks like a label to me.
As does BASSDM.

(Bass)drum?
2014-11-17 09:26
chatGPZ

Registered: Dec 2001
Posts: 11386
just look at the bytes after it, clearly wavetable for drum - so indeed, its a label =)
my bet is on "buddy assembler"
2014-11-17 09:34
Mr. SID

Registered: Jan 2003
Posts: 424
The more important question here: Which unreleased tune from which famous composer is this? :)
And how can we help, so we can hear it?
2014-11-17 09:53
MagerValp

Registered: Dec 2001
Posts: 1078
Quoting Groepaz
my bet is on "buddy assembler"


Buddy uses .BYT (and line numbers).
2014-11-17 10:09
chatGPZ

Registered: Dec 2001
Posts: 11386
OK :)
2014-11-17 10:21
Moloch

Registered: Jan 2002
Posts: 2928
newer versions of Buddy don't use line numbers/basic editor ... runs in a similar editor as TurboAss
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
LordCrass
Guests online: 83
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 No Listen  (9.6)
2 Layers  (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 Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

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