Post Reply 
HP-41 Time Module VASM listing
03-25-2019, 09:52 PM
Post: #1
HP-41 Time Module VASM listing
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?
Visit this user's website Find all posts by this user
Quote this message in a reply
03-27-2019, 01:02 AM
Post: #2
RE: HP-41 Time Module VASM listing
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-30-2019, 07:01 AM
Post: #3
RE: HP-41 Time Module VASM listing
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
Find all posts by this user
Quote this message in a reply
03-30-2019, 03:45 PM
Post: #4
RE: HP-41 Time Module VASM listing
(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...
Visit this user's website Find all posts by this user
Quote this message in a reply
03-30-2019, 04:24 PM
Post: #5
RE: HP-41 Time Module VASM listing
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.
Find all posts by this user
Quote this message in a reply
03-30-2019, 05:00 PM
Post: #6
RE: HP-41 Time Module VASM listing
(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.
Find all posts by this user
Quote this message in a reply
03-31-2019, 12:05 AM (This post was last modified: 03-31-2019 12:06 AM by derekamos.)
Post: #7
RE: HP-41 Time Module VASM listing
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
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)