Getting HEXEDIT to work on the HEPAX itself



#3

There recently was a thread about getting DISASM to work on the CL, and a related topic was overcoming built-in features in the HEPAX to avoid its own disassembly.

here

Monte´s instructions solved the riddle for DISASM, but there was still another location checking on the same protection which stopped HEXEDIT to work.

To prevent this you need to patch bank'1 of the HEPAX ROM again, at location H´p474 (where p is the page number). Simply replace the current instruction with ¨10B¨ JNC +33d

If you´re using YPOKE on the CL you´d of course do:

"8xx474-010B"
YPOKE

where 8xx is the RAM location holding the HEPAX- bank1.

Caveat emptor: as always, this is not thoroughly tested yet. Initial checks show it works without a glitch - pls. report if you find any issues.

Cheers,
'AM


#4

Just occured to me that I should make a couple of additional remarks:

1. HEXEDIT on the HEPAX will only work while you stay on Bank'1, for obvious reasons

2. DISASM on the hepax will show the second bank code, as this is where the currently excecuting code resides.

On the DISASM patch, there is a simpler alternative to Monte´s solution. The FOCAL program below does all three patches for you, assuming the HEPAX ROM is plugged on page A and also using the same CL sRAM addresses as in Monte´s document.

01 LBL "HPXPTCH"

02 "HEPX"

03 PLUG2L

04 "030>83F"

05 AVIEW

06 YMCPY

07 "83F08D-0000" - patches the DISASM glitch

08 YPOKE

09 "8040AC-883F" - maps the patched bank'4 to the MMU

10 YPOKE

11 "02D<83E"

12 AVIEW

13 YMCPY

14 "83E12F-0033" - patches the self-DISASM limitation

15 YPOKE

16 "83E474-010B" - patches the self-HEXEDIT limitation

17 YPOKE

18 "8040A0-883E" - maps the patched bank'1 to the MMU

19 YPOKE

20 "DONE"

21 AVIEW

22 END

Enjoy,
'AM

Edited: 29 Jan 2012, 6:54 a.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  emu48 - copy stack doesn't work (as expected) Thomas Radtke 2 1,994 11-11-2013, 02:19 PM
Last Post: Thomas Radtke
  Another Prime mystery - templates don't work anymore Michael de Estrada 2 1,375 11-02-2013, 11:34 AM
Last Post: Michael de Estrada
  Does the HP Prime software only work with Win 7/ 8 ? Michael de Estrada 3 1,695 10-12-2013, 02:52 PM
Last Post: John Ioannidis
  Back to School/Work/Other Calculator Poll Eddie W. Shore 63 17,175 09-12-2013, 06:03 AM
Last Post: bhtooefr
  How I use my HP50G at work. David Bengtson 7 2,549 05-06-2013, 02:57 PM
Last Post: Ingo
  HEPAX Revisited: Revision 1E available Ángel Martin 4 1,646 05-03-2013, 01:57 PM
Last Post: Diego Diaz
  Does IR printing not work on your converted WP34s? Then read on... Harald 3 1,669 04-04-2013, 05:46 PM
Last Post: Harald
  No luck getting flash disk to work in 95lx Harald 7 3,017 03-18-2013, 08:11 AM
Last Post: Harald
  NOVRAM 64 / HEPAX bug? M. Joury 2 1,288 11-03-2012, 02:49 PM
Last Post: M. Joury
  35s refuses to work Silvio A. Bensi 19 5,769 10-18-2012, 12:48 AM
Last Post: Reth

Forum Jump: