Machine Code program

Post Reply
User avatar
mz-80a
Posts: 403
Joined: Thu Jan 25, 2018 10:46 am
Location: Devon, UK
Contact:

Machine Code program

Post by mz-80a »

Not sure on this one. Found on a random tape amongst other 80K stuff. Machine code program. Wonder if anyone's seen it before.
MACHINE CODE.zip
(1.92 KiB) Downloaded 199 times
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
https: //mz-sharpworks.co.uk/
psmart
Posts: 138
Joined: Thu Nov 21, 2019 10:12 am
Location: Leeds
Contact:

Re: Machine Code program

Post by psmart »

The code contains the title 'KNIGHT's M/C VSN 3.1" so would look like something from Knights Software but with the header name changed. Has a number of PRINTER messages with start/end so perhaps a disassembler?
Sharp MZ/X Series Projects and FPGA Emulator
engineers@work : https://eaw.app/sharpmz-series/
S_U_C
Posts: 69
Joined: Sun Feb 17, 2019 6:41 pm

Re: Machine Code program

Post by S_U_C »

I believe this to be someone’s attempt at converting KNIGHT'S M/C VSN 3.1 and it contains bugs the obvious one is the paper out error which prints paper out but then is coded to print out part of the “no printer” error message half way though a word.

Also the first 9 bytes have been corrupted with FF 00s as there is a partial LD DE, TITLE opcode followed by CALL $0015, print ASCII message. Opcode FF is RST 38, which jumps to the clock interrupt and reads time routine but why 6 times. Replace with 8 NOPs 00H and a 11H.

The tile message (in ASCII) begins with the clear screen code $16 and then displays "KNIGHT'S M/C VSN 3.1" and the command prompt "]".
There are 9 main single ASCII character options d, E, C, G, L, S, P, M, X in that order but there are another 18 single byte + execute address combinations in the program.

I have attached a 1st draft of as asm file I created, you can work what the options do.
Attachments
MACHINE CODE.TXT
(138.31 KiB) Downloaded 198 times
Post Reply