DZ80 HVG Disassembly Script --------------------------- By Richard Degler August 16, 2009 It took me all weekend but it works great! No more adjusting garbage code following RST $38 syssuk'ed routines!! Here's my Bally HVG LUA script.zip LUA is like a pre-ANSI C so I was banging my head a lot. It didn't even have a % or MODulo operator, which made things difficult. Not everything mentioned on their website was included, and the error reporting is awful. Didn't test it with dZ80 1.50 but you can get 2.00 (from 2002) at : http://www.inkland.org.uk/dz80 - they let http://www.inkland.org lapse Just enable script at bottom of Options and Browse to BALLYHVG.LUA then dis-assemble a Bally game ROM and see it actually disassemble HVG code. I don't like the lower-case labels, they confuse me (and Zmac 1.3, too?) and you still have to type in the Start and Ending addresses (in DECIMAL) then the start in AGAIN as File Start, instead of just the ORGin offset. One caveat, if you want to leave the Hex as a 'h' suffix it will still show the DW's with a '$' prefix. Would have made it conditional, but not sure how to duplicate their '{' to put leading 0's before A to F digits. It did get confused by $FF as the last byte of a file, said it was a NOP. Update (March 4, 2010): ----------------------- dZ80 1.x won't work with this, but if you get 2.0 it now has a dz80.ini file (really another .LUA script) that you can edit to preset the Options in - like names, and Start & End addresses! Also lets you define areas NOT to treat as code (without making an opmap.MAP) using multiple d_SetDataRegion(start, size) defines. Takes only decimal numbers unless you use hex"start" as provided. Another caveat: My script only recognizes DO macro UPI calls between SYSTEM INTPC and DO XINTC (should be DONT XINTC) and not MCALL'ed routines, as found in the Light Pen code. Of course SYSTEM/SYSSUK macro works. Richard D.