mindx assembler bug

PM development, programming, hacking and all that fun stuff.
Orion_

mindx assembler bug

Post by Orion_ » June 7th, 2004, 17:00

I got a syntax error with: subw x1,hl
it work with pmas, and when I disassemble with mindx, it write: subw x1
same thing with: subw x1,ba
Even if the opcode at the left is correct.

DaveX
Team Pokémé
Posts: 9
Joined: May 31st, 2004, 13:45

mindx assembler bug

Post by DaveX » June 7th, 2004, 17:26

Thanks, Ive corrected the problem for both disassembler and assembler - forgot to put the 2nd parameter for subw. It will be available in next mindx revision

Orion_

mindx assembler bug

Post by Orion_ » June 8th, 2004, 17:00

mmh, another thing that I dont understand, why: movw hl,[x1]
or with anyother 16bits reg
the assembler say Syntax Error ?
in mindx.txt there is, movw rw,[x1]
so why ?

Orion_

mindx assembler bug

Post by Orion_ » June 8th, 2004, 18:27

another bug that work with pmas and not mindx (syntax error),
movb a,[x1]

Orion_

mindx assembler bug

Post by Orion_ » June 8th, 2004, 18:32

mmh, sorry, thats not a bug, it work but mindx assembler seems not to handle a label and an asm instruction on the same line. ^^

Orion_

mindx assembler bug

Post by Orion_ » June 9th, 2004, 13:44

I found an error in both pmas and mindx about MOVW rw,[x1]
it say: symbol not found, so maybe the assembler try to find a label named "x1", using opcode $B8 movw rw,[ofs16], instead of using opcode: CF:D0 and CF:D8
same when I try do disassemble, mindx tell me that CF:D1 is unknow, but this opcode work without problem under PokeKaMini debugger.
so, for the moment I use: .db $CF
.db $D1 instead of "movw hl,[x1]" that is not reconised both assembler.

Orion_

mindx assembler bug

Post by Orion_ » June 9th, 2004, 13:52

and another bug in mindx (and not pmas) ^^ (sorry) "addw hl,ba" opcode $CF $20, mindx tell "addw hl, n" when disassembling o_O

DaveX
Team Pokémé
Posts: 9
Joined: May 31st, 2004, 13:45

mindx assembler bug

Post by DaveX » June 9th, 2004, 14:59

Thanks for the report, all those bugs are fixed now (it will be in next mindx revision, or you can come on irc channel #pmdev if you want the latest one ;)

Orion_

mindx assembler bug

Post by Orion_ » June 10th, 2004, 17:37

ok, just tested the new v10 of mindx and all those bug are gone, except one line that worked on the v9 and dont work anymore with the v10 :D
movw x1,%0000100100001000
"symbol not found"

DaveX
Team Pokémé
Posts: 9
Joined: May 31st, 2004, 13:45

mindx assembler bug

Post by DaveX » June 10th, 2004, 19:33

I just fixed both problems, take the new minx_v10 when you see the time of the file changed ;) (and jdbnz was typed as "jbdnz" in asm/disasm, i changed that too)

Post Reply