| |
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? |
|
| |
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... |
| |
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. |
| |
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! |
| |
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. |
| |
Morpheus
Registered: Feb 2004 Posts: 152 |
Mager, please explain that a little bit more. What part do you need to see? |
| |
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. |
| |
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
? |
| |
Mace
Registered: May 2002 Posts: 1799 |
Looks like DASM. |
| |
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?). |
| |
Mace
Registered: May 2002 Posts: 1799 |
Interesting.
I was indeed guessing about DASM, no hands on experience. |
| |
Bitbreaker
Registered: Oct 2002 Posts: 508 |
a bunch of sed/awk/$painfullshellshits commands will fix it for any assembler anyway :-) |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
replace the db. shit with .BYT - then it works with turbo asm. |
| |
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) |
| |
Mace
Registered: May 2002 Posts: 1799 |
DM looks like a label to me.
As does BASSDM.
(Bass)drum? |
| |
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" |
| |
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? |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Quoting Groepazmy bet is on "buddy assembler"
Buddy uses .BYT (and line numbers). |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
OK :) |
| |
Moloch
Registered: Jan 2002 Posts: 2928 |
newer versions of Buddy don't use line numbers/basic editor ... runs in a similar editor as TurboAss |