HP Forums
HP-41 Time Module VASM listing - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: HP-41 Time Module VASM listing (/thread-12680.html)



HP-41 Time Module VASM listing - Monte Dalrymple - 03-25-2019 09:52 PM

I have a VASM listing for the Time Module in octal. But it's incredibly frustrating to try to use because I have to convert everything to hex in my head. Did HP ever release this listing in hex? If so, does anyone have a copy they would be willing to share?


RE: HP-41 Time Module VASM listing - Christoph Giesselink - 03-27-2019 01:02 AM

Not the thing you're looking for, I had also trouble fixing an emulation bug inside V41 in connection with the time module. Very frustrating working with octal numbers...

There's an undocumented feature in V41R9A, under the registry key

HKCU/Software/V41/ShowOctalDisasm

you can enable octal disassembly (be sure V41 is closed before changing the registry).

It's also possible to enter octal breakpoints, just append a small 'o' at the end of an octal number.


RE: HP-41 Time Module VASM listing - derekamos - 03-30-2019 07:01 AM

Hi Monte,
The MLDL2K.exe will disassemble the Timer 2C MOD file pronto & give a printout in HEX, with addressing starting at the Timer page you set & JDA mnemonic source code.
Maybe you had forgotten this software has a very good disassembler in it ???
DA


RE: HP-41 Time Module VASM listing - Monte Dalrymple - 03-30-2019 03:45 PM

(03-30-2019 07:01 AM)derekamos Wrote:  Hi Monte,
The MLDL2K.exe will disassemble the Timer 2C MOD file pronto & give a printout in HEX, with addressing starting at the Timer page you set & JDA mnemonic source code.
Maybe you had forgotten this software has a very good disassembler in it ???
DA

I have a disassembler listing from SDK41 in hex, but without the comments I still have to go back and forth between the hex listing and the HP in octal, and that's what's frustrating. Perhaps it's time to start transferring comments from the octal listing to the hex one...


RE: HP-41 Time Module VASM listing - jonese - 03-30-2019 04:24 PM

Side Q: Just causing looking at the disassembler portion, does MLDL2K.exe run on Windows 10? I tried for a few minutes, but it wanted a dll for the USB FTDI serial that I don't have handy.


RE: HP-41 Time Module VASM listing - hth - 03-30-2019 05:00 PM

(03-30-2019 03:45 PM)Monte Dalrymple Wrote:  I have a disassembler listing from SDK41 in hex, but without the comments I still have to go back and forth between the hex listing and the HP in octal, and that's what's frustrating. Perhaps it's time to start transferring comments from the octal listing to the hex one...

I did that almost two years ago, gave me carpal tunnel symptoms for a while.

Reconstructed source exists, but cannot be released as that is most likely illegal. There was an attempt a year or so ago, to try and get HP to release old source in open source, but I have not heard anything more about it.


RE: HP-41 Time Module VASM listing - derekamos - 03-31-2019 12:05 AM

Hi again Monte,
Yes, you will need a word processor like 'Word' to get results. My effort in this area was done on the HP41 listing:
; Oct-Hex-HP_Mnem
4 0004_ADRFCH 116_04E C=0 1CEF_GETX
5 1160_270 DADD=C
6 370_0F8 C=REGN 3
7 530_158 M=C X IS STORED IN M
10 1630_398 C=ST GET ADDRESS FROM STATUS
11 126_056 C=0 XS CLEAR 9 FROM XS
12 1204_284 S7= 0 KILL INDIRECT FLAG
13 1730_3D8 CST EX PUT ORIGINAL STATUS BACK
14 514_14C ?S6=1 STACK RCL?
15 133_05B GONC 0018_OVRSTK ( 30) NO
16 214_08C ?S5=1
17 113_04B GONC 0018_OVRSTK ( 30) NO
20 114_04C ?S4=1
21 73_03B GONC 0018_OVRSTK ( 30) NO
22 1434_31C PT= 1 SET TO CLEAR HIGH BITS
23 102_042 C=0 PT CLEAR HIGH BITS
24 1160_270 DADD=C PUT OUT ADDRESS
25 160_070 N=C SAVE ADDRESS IN N (160 70h N=C)
26 70_038 C=DATA GET REGISTER
27 113_04B GOTO 0020_FCHRTN ( 40) DONE
30 0018_OVRSTK 256_0AE AC EX SAVE RELATIVE ADDRESS (256 AEh AC EX)
31 1570_378 C=REGN 13 SET STATUS REGISTER. (1570 378h C=REGN 13)

(Sorry the inserted text above doesn't show the columns correctly)
Its a little easier than comment copying, which is very messy.
Basically I created a 2x column table in the VASM listing, split just after the octal column, then inserting a new table column between, just copied the hex straight into it, with the underline '_' as a delimiter between Octal_Hex.
DA