SA-5510 Disassembly

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

SA-5510 Disassembly

Post by mz-80a »

Is anybody aware of a disassembly listing for SA-5510 ?
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
http://mz-sharpworks.co.uk/
hlide
Posts: 602
Joined: Thu Jan 25, 2018 9:31 pm

Re: SA-5510 Disassembly

Post by hlide »

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

Re: SA-5510 Disassembly

Post by mz-80a »

OK, thanks. Although that doesn't show the memory addresses for the instructions. Pretty good though.
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
http://mz-sharpworks.co.uk/
User avatar
mz-80a
Posts: 295
Joined: Thu Jan 25, 2018 10:46 am
Location: Devon, UK
Contact:

Re: SA-5510 Disassembly

Post by mz-80a »

The reason I ask is because I have some software which asks you to load SA-5510 first and then load the software. This software has its own Loader program which I've disassembled to the following:

Code: Select all

LD A,67H
LD (15B5H),A
LD (15F1H),A
LD (15FBH),A
LD (16CEH),A
LD (1621H),A
LD HL,B028H
LD DE,10F0H
LD BC,0018H
LDIR
LD HL,1250H
LD (2F3CH),HL
LD SP,D000H
JP 2F0DH
There was a data block as well (which I haven't included here) which is copied into IBUFE by this code. So I was just trying to work out what on Earth it was doing as it clearly is making some changes to BASIC.
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
http://mz-sharpworks.co.uk/
hlide
Posts: 602
Joined: Thu Jan 25, 2018 9:31 pm

Re: SA-5510 Disassembly

Post by hlide »

This software is a bootloader which loads BASIC interpreter then the BASIC program?
hlide
Posts: 602
Joined: Thu Jan 25, 2018 9:31 pm

Re: SA-5510 Disassembly

Post by hlide »

mz-80a wrote: Sat Sep 25, 2021 10:08 pm OK, thanks. Although that doesn't show the memory addresses for the instructions. Pretty good though.
Well, one possibility is to assemble it while asking for a listing (addresses and bytes will be added). But I don't know the assembler the author uses.
hlide
Posts: 602
Joined: Thu Jan 25, 2018 9:31 pm

Re: SA-5510 Disassembly

Post by hlide »

So I removed the SD part to keep original code to issue a listing:
SA-5510.zip
(56.06 KiB) Downloaded 18 times
hlide
Posts: 602
Joined: Thu Jan 25, 2018 9:31 pm

Re: SA-5510 Disassembly

Post by hlide »

Quite easy to understand as it replaces the first letter of some BASIC commands with the white smiley to "disable" them:
- LIST
- SAVE
- POKE
- PEEK
- USR
User avatar
mz-80a
Posts: 295
Joined: Thu Jan 25, 2018 10:46 am
Location: Devon, UK
Contact:

Re: SA-5510 Disassembly

Post by mz-80a »

No, as I say, the instructions are to load BASIC SA-5510 first, then type in MON to get back to the Monitor and then you must load this 'loader' program. Just trying to transfer the software into MZF format but it's going to take a bit of work as there is no stored header on the tape (the loader program creates the header itself in the IBUFE locations in memory)
hlide wrote: Mon Sep 27, 2021 10:14 pm This software is a bootloader which loads BASIC interpreter then the BASIC program?
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
http://mz-sharpworks.co.uk/
User avatar
mz-80a
Posts: 295
Joined: Thu Jan 25, 2018 10:46 am
Location: Devon, UK
Contact:

Re: SA-5510 Disassembly

Post by mz-80a »

Thanks, I'll check this out
hlide wrote: Mon Sep 27, 2021 10:35 pm So I removed the SD part to keep original code to issue a listing:
SA-5510.zip
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
http://mz-sharpworks.co.uk/
Post Reply