Welcome, Guest. Please login or register.


Author Topic: How can one switch between WP versions? (Read 401 times)

Offline Wolfgang

  • Beginner
  • *
  • Posts: 36
  • Country: de
  • OS:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 81.0 Firefox 81.0
    • View Profile
How can one switch between WP versions?
« on: 2020.September.27. 19:46:25 »
Beginner question:
EXDOS 2.4 ROM contains two WP versions (2.1 and 2.6). How can I load each version?
:WP seems to load WP2.6

 
 

Online gflorez

  • EP addict
  • *
  • Posts: 2978
  • Country: es
  • OS:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Firefox 80.0 Firefox 80.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #1 on: 2020.September.27. 21:30:56 »
I think there is only one version, 2.6. The text "WP version 2.1" is added by the EXOS Rom, because WP is included in the internal Rom, and it can't be listed on a :HELP command like the other "normal" Roms found in memory.

Of course, I could be wrong.

But you have a lot of advantages with WP 2.6 over 2.1, it starts directly on 80 col, and has been translated(German, Hungarian, Spanish, etc). Also, some Star printer commands were added(bad for me... I have an Epson printer...)

Offline dangerman

  • User
  • *
  • Posts: 77
  • OS:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Firefox 79.0 Firefox 79.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #2 on: 2020.September.28. 10:39:46 »
I think that 2.6 was designed to replace 2.1 so you can't actually call it with an EXOS command. 2.6 does everything the original does so there's really no reason to use the original.

However the code is still there in the ROM so you can always call it directly if you want. For example, from BASIC...

Code: [Select]
CALL USR(62907,0)

Offline Wolfgang

  • Beginner
  • *
  • Posts: 36
  • Country: de
  • OS:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 81.0 Firefox 81.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #3 on: 2020.September.28. 10:53:07 »
I think that 2.6 was designed to replace 2.1 so you can't actually call it with an EXOS command. 2.6 does everything the original does so there's really no reason to use the original.

However the code is still there in the ROM so you can always call it directly if you want. For example, from BASIC...

Code: [Select]
CALL USR(62907,0)
Thanks, this works.
Not that I would be using it anyway, it is more curiosity than anything else. :)



Online gflorez

  • EP addict
  • *
  • Posts: 2978
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 81.0 Firefox 81.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #4 on: 2020.September.28. 15:25:28 »
Code: [Select]
CALL USR(62907,0)

Great to know it, thanks.

Offline szipucsu

  • EP addict
  • *
  • Posts: 8602
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 81.0 Firefox 81.0
    • View Profile
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: How can one switch between WP versions?
« Reply #5 on: 2020.September.28. 21:04:55 »
Code: [Select]
CALL USR(62907,0)
How did you find out the number 62907?
100 SOUND SOURCE 3,STYLE 16,LEFT 16,RIGHT 64,SYNC 2
110 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 2
120 SOUND PITCH 25,SYNC 2
Videos

Offline dangerman

  • User
  • *
  • Posts: 77
  • OS:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Firefox 79.0 Firefox 79.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #6 on: 2020.September.28. 23:41:28 »
How did you find out the number 62907?

Years ago I think I worked it out by disassembling the EXOS 2.1 ROM. But more recently, I "rediscovered" it by using the built-in debugger in the excellent EP128emu.

Online gflorez

  • EP addict
  • *
  • Posts: 2978
  • Country: es
  • OS:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Firefox 80.0 Firefox 80.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #7 on: 2020.September.29. 00:33:35 »
Is that address the WP2.1 entry on the list of Roms found?

I imagine that WP2.6 usurps the :WP command from the WP2.1 version. Owning the same start command, the 2.6 version is always firstly executed, because is the first of both versions on the Rom list.

Offline geco

  • EP addict
  • *
  • Posts: 5750
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 68.0 Firefox 68.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #8 on: 2020.September.29. 08:46:15 »
Great finding, i checked what is called, and a small correction CALL USR(62905,0) should be used instead of CALL USR(62907,0), because it skips setting type of EXOS reset, it jumps to
Code: [Select]
   LD    C,A
    EXOS 0
and skips
Code: [Select]
   LD    A,60h

Now it works, because A register contains always 7Fh, but if it contains ex 80h a Hard reset would occur.
« Last Edit: 2020.September.29. 10:47:03 by geco »

Offline dangerman

  • User
  • *
  • Posts: 77
  • OS:
  • Linux (Ubuntu) Linux (Ubuntu)
  • Browser:
  • Firefox 79.0 Firefox 79.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #9 on: 2020.September.29. 10:32:47 »
Great finding, i checked what is called, and a small correction CALL USR(62905,0) should be used instead

Aha - good point! I just looked at it again and you are absolutely right. Thanks for the correction.

Online Zozosoft

  • EP addict
  • *
  • Posts: 13731
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 81.0 Firefox 81.0
    • View Profile
    • http://enterprise.iko.hu/
Re: How can one switch between WP versions?
« Reply #10 on: 2020.October.01. 10:50:17 »
If you have Zozotools in your configuration the :RL 02h command will remove 2.6 from the ROM list.
Anyway 2.1 is planned to be fully removed. But I am thinking about adding :WP21 command, to start WP in the old looking.
« Last Edit: 2020.October.01. 20:26:41 by szipucsu »

Online gflorez

  • EP addict
  • *
  • Posts: 2978
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 81.0 Firefox 81.0
    • View Profile
Re: How can one switch between WP versions?
« Reply #11 on: 2020.October.01. 14:22:55 »
Better if you remove it completely, to save space for your great modifications.

Edit: Ah, now I understand, you can launch WP2.6 with the old look.
« Last Edit: 2020.October.01. 14:27:43 by gflorez »