A couple of questions on the Sharp MZ core

User avatar
OldBoar
Posts: 9
Joined: Sat Jan 16, 2021 1:01 am
Has thanked: 8 times

A couple of questions on the Sharp MZ core

Unread post by OldBoar »

I am using the Sharp MZ core (dated 21.07.09) in the Sharp MZ-80K configuration, using the SP-1002 monitor ROM and BASIC SP-5025 from a .mzf file.

1. I cannot find the cursor keys. I found the SML/CAP key (Backspace), the INS/DEL key (Caps Lock), the CLR/HOME key (Tab) and the BREAK key (the key above Tab, left of 1), but no trace of the cursor keys.

2. If I save a BASIC program, it replies with "WRITING filename" and "READY" without error message, but I cannot find the .mzf file anywhere.

Any help would be appreciated.
alanswx
Core Developer
Posts: 300
Joined: Sun May 24, 2020 6:55 pm
Has thanked: 5 times
Been thanked: 154 times

Re: A couple of questions on the Sharp MZ core

Unread post by alanswx »

OldBoar wrote: Mon Jul 26, 2021 6:58 pm I am using the Sharp MZ core (dated 21.07.09) in the Sharp MZ-80K configuration, using the SP-1002 monitor ROM and BASIC SP-5025 from a .mzf file.

1. I cannot find the cursor keys. I found the SML/CAP key (Backspace), the INS/DEL key (Caps Lock), the CLR/HOME key (Tab) and the BREAK key (the key above Tab, left of 1), but no trace of the cursor keys.

2. If I save a BASIC program, it replies with "WRITING filename" and "READY" without error message, but I cannot find the .mzf file anywhere.

Any help would be appreciated.
The writing might be broken in the MiSTer binary. Interesting, send me a list of Sharp MZ basic commands and I will see if I can reproduce it.
User avatar
OldBoar
Posts: 9
Joined: Sat Jan 16, 2021 1:01 am
Has thanked: 8 times

Re: A couple of questions on the Sharp MZ core

Unread post by OldBoar »

alanswx wrote: Mon Jul 26, 2021 7:53 pm
The writing might be broken in the MiSTer binary. Interesting, send me a list of Sharp MZ basic commands and I will see if I can reproduce it.
1) This is just a keyboard problem, I just cannot find the cursor keys. I did find all the other keys.

sharp_mz-80k-keyboard.jpg
sharp_mz-80k-keyboard.jpg (75.68 KiB) Viewed 4552 times

2) I wrote a short BASIC program, and tried to save it:

10 PRINT "TEST"
RUN

TEST
READY

SAVE "TEST"
WRITING TEST
READY


Thanks for looking into this.
alanswx
Core Developer
Posts: 300
Joined: Sun May 24, 2020 6:55 pm
Has thanked: 5 times
Been thanked: 154 times

Re: A couple of questions on the Sharp MZ core

Unread post by alanswx »

OldBoar wrote: Mon Jul 26, 2021 8:10 pm
alanswx wrote: Mon Jul 26, 2021 7:53 pm
The writing might be broken in the MiSTer binary. Interesting, send me a list of Sharp MZ basic commands and I will see if I can reproduce it.
1) This is just a keyboard problem, I just cannot find the cursor keys. I did find all the other keys.

2) I wrote a short BASIC program, and tried to save it:

10 PRINT "TEST"
RUN

TEST
READY

SAVE "TEST"
WRITING TEST
READY


Thanks for looking into this.
The keymap seems to be in a ROM file as binary unfortunately. That will make it a bit harder to fix. We should probably make a more mister-like keymap where we have a switch with the ps2 codes and then map them into the Sharp MZ matrix. I think it makes sense to just map quote to quote, instead of shift-2 like the original. Some of the cores have an option to switch between them.

How do i get into Basic? I tried running these commands and I couldn't get it to print "test". Also, In the author's docs it save is crossed out. I am not sure why it doesn't work. A lot of code seems to be in the FPGA side and the MiSTer binary. I turned debug on in the mister binary to see if it is trying to write anything, but I don't know how to get into basic.

Thanks!
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: A couple of questions on the Sharp MZ core

Unread post by jca »

You have to load BASIC from tape.
alanswx
Core Developer
Posts: 300
Joined: Sun May 24, 2020 6:55 pm
Has thanked: 5 times
Been thanked: 154 times

Re: A couple of questions on the Sharp MZ core

Unread post by alanswx »

I think -/_ is one of the arrows (up).

How do I load the tape in basic to see if it works? I think I know why the file isn't writing, but I would like to see if this file is correct.
alanswx
Core Developer
Posts: 300
Joined: Sun May 24, 2020 6:55 pm
Has thanked: 5 times
Been thanked: 154 times

Re: A couple of questions on the Sharp MZ core

Unread post by alanswx »

oops.. it works! Let me work out a better patch. It is now putting the file in the saves directory with .sav instead of .mzf
alanswx
Core Developer
Posts: 300
Joined: Sun May 24, 2020 6:55 pm
Has thanked: 5 times
Been thanked: 154 times

Re: A couple of questions on the Sharp MZ core

Unread post by alanswx »

Try this binary:
MiSTer.zip
(579.88 KiB) Downloaded 229 times
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: A couple of questions on the Sharp MZ core

Unread post by jca »

alanswx wrote: Wed Jul 28, 2021 3:52 pm I think -/_ is one of the arrows (up).

How do I load the tape in basic to see if it works? I think I know why the file isn't writing, but I would like to see if this file is correct.
You have to find a MZ-700 archives which contains Games, Applications, Firmware. One application is BASIC Interpreter 1Z-013B v1.0 (1983)(Sharp Corp).mzf which you load with the fast tape load and execute by jumping at the address provided by the tape loader.
alanswx
Core Developer
Posts: 300
Joined: Sun May 24, 2020 6:55 pm
Has thanked: 5 times
Been thanked: 154 times

Re: A couple of questions on the Sharp MZ core

Unread post by alanswx »

alanswx wrote: Wed Jul 28, 2021 4:29 pm Try this binary:MiSTer.zip
This saved from basic for me and dumps it in the top level of the sharpmz game folder.
User avatar
OldBoar
Posts: 9
Joined: Sat Jan 16, 2021 1:01 am
Has thanked: 8 times

Re: A couple of questions on the Sharp MZ core

Unread post by OldBoar »

alanswx wrote: Wed Jul 28, 2021 4:29 pm Try this binary:
MiSTer.zip
Thanks!

I downloaded and installed your archive but it did not change anything, I still cannot find the file (searched using both F12 and F9).

I guess I am doing something wrong. I was a bit surprised you posted a new MiSTer file, I had expected a SharpMZ.rbf file.
alanswx wrote: Wed Jul 28, 2021 3:52 pm I think -/_ is one of the arrows (up).
No, that just gives me a - sign.
alanswx wrote: Wed Jul 28, 2021 3:52 pmHow do I load the tape in basic to see if it works? I think I know why the file isn't writing, but I would like to see if this file is correct.
This is what I use:
Machine: MZ80K
Monitor SP-1002 ROM: https://www.sharpmz.no/dl/download.php?file=80KMONI.zip
European version of the character ROM: https://www.sharpmz.no/dl/download.php?file=80KCG.zip
BASIC SP-5025 tape: https://www.sharpmz.no/dl/download.php?file=sp-5025.zip

Loading BASIC from tape:
** MONITOR SP-1002 **
*
LOAD (Queue .mzf file using F12 menu.)
LOADING BASIC SP-5025
* SHARP BASIC SP-5025
34680 BYTES
READY


Loading tape in BASIC:
LOAD
or
LOAD "filename"
alanswx
Core Developer
Posts: 300
Joined: Sun May 24, 2020 6:55 pm
Has thanked: 5 times
Been thanked: 154 times

Re: A couple of questions on the Sharp MZ core

Unread post by alanswx »

OldBoar wrote: Thu Jul 29, 2021 12:22 am
alanswx wrote: Wed Jul 28, 2021 4:29 pm Try this binary:MiSTer.zip
Thanks!

I downloaded and installed your archive but it did not change anything, I still cannot find the file (searched using both F12 and F9).

I guess I am doing something wrong. I was a bit surprised you posted a new MiSTer file, I had expected a SharpMZ.rbf file.
alanswx wrote: Wed Jul 28, 2021 3:52 pm I think -/_ is one of the arrows (up).
No, that just gives me a - sign.
alanswx wrote: Wed Jul 28, 2021 3:52 pmHow do I load the tape in basic to see if it works? I think I know why the file isn't writing, but I would like to see if this file is correct.
This is what I use:
Machine: MZ80K
Monitor SP-1002 ROM: https://www.sharpmz.no/dl/download.php?file=80KMONI.zip
European version of the character ROM: https://www.sharpmz.no/dl/download.php?file=80KCG.zip
BASIC SP-5025 tape: https://www.sharpmz.no/dl/download.php?file=sp-5025.zip

Loading BASIC from tape:
** MONITOR SP-1002 **
*
LOAD (Queue .mzf file using F12 menu.)
LOADING BASIC SP-5025
* SHARP BASIC SP-5025
34680 BYTES
READY


Loading tape in BASIC:
LOAD
or
LOAD "filename"
I have:

/media/fat/games/sharpmz/

I loaded basic from a folder in the sharpmz
wrote a basic program, and saved it:
SAVE "ALAN"
and it put ALAN.mz into /media/fat/games/sharpmz/
User avatar
OldBoar
Posts: 9
Joined: Sat Jan 16, 2021 1:01 am
Has thanked: 8 times

Re: A couple of questions on the Sharp MZ core

Unread post by OldBoar »

alanswx wrote: Wed Jul 28, 2021 4:29 pm Try this binary:MiSTer.zip
Thank you, I got saving to work using your file.

This is truly awesome.
alanswx wrote: Wed Jul 28, 2021 3:12 pm The keymap seems to be in a ROM file as binary unfortunately. That will make it a bit harder to fix. We should probably make a more mister-like keymap where we have a switch with the ps2 codes and then map them into the Sharp MZ matrix. I think it makes sense to just map quote to quote, instead of shift-2 like the original. Some of the cores have an option to switch between them.
Since the MZ series has such peculiar keyboards, having options would certainly be nice.
Post Reply