Language…
6 users online: AJ1Ayrton, masl, Nirv, Oskise, playagmes169, Tsquare07 - Guests: 246 - Bots: 241
Users: 64,795 (2,375 active)
Latest user: mathew

Is there a tutorial on this

Is there a tutorial on how to convert a custom sprite meant for TRASM into one for xkas? I'm curious about this

Originally posted by Alcaro
because TRASM is clearly possessed by some satanism.

There used to be stuff in this footer, but it's all gone now.
use this
Originally posted by Ladida
use this


Didn't work. Same error as before, just this time because the ".cfg" had info that wasn't compatible with the xkas sprite inserter.

Oh and by the way, here is the sprite I'm trying to insert.
There used to be stuff in this footer, but it's all gone now.
ok, for manual conversion:

1. replace
Code
dcb "INIT"

with
Code
print "INIT ",pc

same with MAIN

2. dcb/dcw/dcl must be changed to db/dw/dl:
Code
dcb $30,$20,$10

to
Code
db $30,$20,$10


3. put colons on all labels (not references to labels)
Code
LOLCODE
BRA LOLCODE

becomes
Code
LOLCODE:
BRA LOLCODE


4. prepend all defines with !
Code
XSPEED = $30
...
LDA #XSPEED

becomes
Code
!XSPEED = $30
...
LDA #!XSPEED

dont confuse defines and labels; they might be a bit hard to differentiate in TRASM code.

5. open the cfg with the cfg editor and check "use xkas for assembly", or open the cfg with a text editor and add a 6th line containing:
Code
1




thats all that comes to mind
Originally posted by Ladida
ok, for manual conversion:

thats all that comes to mind


I'm getting closer. The only things that are left are

A. Parts where I confused defines and labels
B. Me forgetting about putting at least one instance where the label comes before the define.
C.
Originally posted by Spritetool temp.log
error: tmpasm.asm: line 40{2}: invalid opcode or command [TABLE1,x]


And here is the line in specific.

Originally posted by WaterRise.asm
LDA: TABLE1,x


But that's the first instance of the label "LDA", and the next one is

Originally posted by WaterRise.asm
LDA #!$01


A define. And this is the case for all labels. What do I need to do?
There used to be stuff in this footer, but it's all gone now.
kjaf ihsdoi
lesgfoweingwlk
oiwehngfoiweg
ksjdbf
hioghsw gfiusdohf

the 3-letter mnemonics are opcodes AKA actual code. leave them alone
Originally posted by Ladida
kjaf ihsdoi
lesgfoweingwlk
oiwehngfoiweg
ksjdbf
hioghsw gfiusdohf


What one Earth does that mean. I'm sorry if I'm causing a problem for you. So anywho, now it's working in reverse.

Code
error: tmpasm.asm: line 43: define not declared (yet?)
error: tmpasm.asm: line 43: invalid opcode or command [LDA]


and the problem continues on with all references to the label. So, any idea.
There used to be stuff in this footer, but it's all gone now.
Originally posted by TheSuperRotom
Originally posted by Ladida
kjaf ihsdoi
lesgfoweingwlk
oiwehngfoiweg
ksjdbf
hioghsw gfiusdohf


What one Earth does that mean.

It quite clearly means kjaf ihsdoi lesgfoweingwlk oiwehngfoiweg ksjdbf hioghsw gfiusdohf.

Quote
Code
error: tmpasm.asm: line 43: define not declared (yet?)
error: tmpasm.asm: line 43: invalid opcode or command [LDA]


and the problem continues on with all references to the label. So, any idea.

Did you even read the second half of his post?
Originally posted by Ladida
the 3-letter mnemonics are opcodes AKA actual code. leave them alone

<blm> zsnes users are the flatearthers of emulation
Originally posted by Alcaro
Did you even read the second half of his post?


That would be a yes. And here's proof.

Originally posted by TheSuperRotom (Before)

error: tmpasm.asm: line 40{2}: invalid opcode or command [TABLE1,x]
LDA: TABLE1,x (Line 40)
LDA #!$01 (Line 43)


And here is how it is now.

error: tmpasm.asm: line 43: define not declared (yet?)
error: tmpasm.asm: line 43: invalid opcode or command [LDA]
LDA TABLE1,x (Line 40)
LDA !24 (Line 43)

So clearly I did something wrong.
There used to be stuff in this footer, but it's all gone now.