Disassembler in MS Basic for RC2014-Z80

239 views
Skip to first unread message

Bart Bozon

unread,
Dec 18, 2016, 11:10:37 AM12/18/16
to RC2014-Z80
Hi All,

This is my first post here. I received my RC2014 last week, assembled it (worked 1st time... nice...).

I've written yesterday a disassembler for the Z80 opcode's. The program can do 3 things:
1) disassemble, translate to opcodes etc.
2) mem dump
3) combination of 1 and 2

Have fun with the script.

Regards,
Bart Bozon
z80-decompiler.txt

Bart Bozon

unread,
Dec 18, 2016, 11:12:26 AM12/18/16
to RC2014-Z80

Example of the output:



Op zondag 18 december 2016 17:10:37 UTC+1 schreef Bart Bozon:

Scott Lawrence

unread,
Dec 18, 2016, 12:41:16 PM12/18/16
to rc201...@googlegroups.com
Awesome work!  :D

Sent from my fancy-schmancy phone.
--
You received this message because you are subscribed to the Google Groups "RC2014-Z80" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rc2014-z80+...@googlegroups.com.
To post to this group, send email to rc201...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rc2014-z80/18c11fba-1903-49a8-8057-6d4cb7195f2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Spencer Owen

unread,
Dec 19, 2016, 7:27:39 AM12/19/16
to rc201...@googlegroups.com
Thanks Bart,

That looks great, and has actually taught me a few BASIC tricks that I didn't know before!  (Or maybe I knew them 20 years ago but had forgotten!).

I've put it up on the RC2014 GitHub account as discussed, so hopefully it'll be useful to other people; https://github.com/RC2014Z80/RC2014/tree/master/BASIC-Programs/Disassembler

Cheers

Spencer

--
You received this message because you are subscribed to the Google Groups "RC2014-Z80" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rc2014-z80+unsubscribe@googlegroups.com.

To post to this group, send email to rc201...@googlegroups.com.

Alard Eales

unread,
Jan 21, 2017, 2:07:09 AM1/21/17
to RC2014-Z80
Hi Bart,

i have noticed what i believe is an ERROR  in your code.
I was reading through it to see how it worked and i came across this piece of text.

1120 ON (RES AND &HF0)/16+1 GOSUB 1121,1121,1123,1124:RETURN
1121 PRINT "RLCA";:RETURN
1122 PRINT "RLA";:RETURN
1123 PRINT "DAA";:RETURN
1124 PRINT "SCF";:RETURN

The Error is in line 1120,  You have 2 Gosub's with the same address jump " 1121"
I think the second one is meant to be 1122 if you are following the sequence of jumps.
There does not seem to be a gosub or jump to 1122 in the code.

If i am in error just delete this message, but you might want to fix it
and re upload it to here and github as it is incorrect there aswell before
it is downloaded a million times.

Thanks ... AJ
Reply all
Reply to author
Forward
0 new messages