NutStudio 3.2.1 available
04-23-2021, 03:18 AM
Post: #1
 hth Senior Member Posts: 414 Joined: Mar 2014
NutStudio 3.2.1 available
For those interested I have put together a new version of NutStudio tools. It includes a couple of bug fixes and some new abilities for the debugger, mainly related to set up auto display or commands while single stepping.

There are installers available for macOS, Debian and Arch/Manjaro Linux (the Linux versions are both amd64).

There is still no Windows release, sorry. I ran into problems building it and had to postpone it further.

macOS
Debian Linux
Arch/Manjaro Linux

Guides:
Nut tools guide
Nut debugger guide

P.S.
In addition to this, I have also released a C compiler for the 6502 based on the same code base. I do not know if there are anyone interested in that here, but you can PM me in that case for details on how to download it.
6502 tools guide
05-10-2021, 12:48 PM
Post: #2
 kj.vandelooij Junior Member Posts: 2 Joined: Jan 2020
RE: NutStudio 3.2.1 available
Thank you Håkan,

that is super! I only recently found out about your initiative and converted the (Debian) 3.1.1 release to an Arch Linux package. I still needed to fully test the conversion. I will now continue with 3.2.1 however.

I like to congratulate you on the possibilities Nutstudio opens for writing and testing programs for the hp 41. The package documentation is excellent also.

Thanks again,

Kees Jan
10-08-2021, 02:20 PM (This post was last modified: 10-08-2021 02:26 PM by floppy.)
Post: #3
 floppy Member Posts: 153 Joined: Apr 2021
RE: NutStudio 3.2.1 available
I am using.

I was creating the first raw file. It works.
Now, I try to use functionality from the SandMath: "RCL* 07" for example.
But errors are coming.

First try without ".import 41cx, sandmath" in the top of the TXT file
rpncomp --raw-output PEREL6.TXT
PEREL6.TXT:41:1: unexpected "RC*" or 'R', expecting "RPN instruction", '"', '-', '>', '[' or digit
Terminating due to errors

Then with it in the top
rpncomp --raw-output PEREL6.TXT
unable to read XROM export file description file "sandmath.modexport"
Terminating due to errors

So, the use of external module functions has to be done.
I am now in the debugger and it seems I have to define a path with a list of all modules. Any help in-between is welcome.

Status for now; no modules seen
Quote:>dbnut
NutStudio debugger for Nut
listening for user interface connections on port 8080
(dbnut) module list
inserted modules pages
(dbnut)

HP71 & Multimod, HP41CV/CX & Nov64d, PILBOX, HP-IL 821.62A & 64A & 66A, Debian11 64bits-PC & Raspb PI4 w/ ILPER, VIDEO80, V41R9F & EMU71
10-09-2021, 06:32 PM
Post: #4
 hth Senior Member Posts: 414 Joined: Mar 2014
RE: NutStudio 3.2.1 available
While the description you provide is somewhat lacking, like it does not show what steps you have taken and the results you see, I still think I can give some input on this.

In order to use a module you need a module exports file and while 41cx is provided with the tools, Sandmath is one of several modules that are not provided ready to use in this way.

I downloaded the latest sandmath from TOS (smath44_4x4.mod) and tried to generate an exports file from it. It does not work and it results in:

Code:
 fatal error: bad bank switcher instruction 0x01b in secondary FAT header at address 0x8005

This is a rather confusing error, but I understand what it means.

The short explanation is that it will not work. My tools do not support the same scheme of using secondary function tables and postfix arguments as Angel is using. I follow the ideas in the OS4 module which provides rather nice generalization of these concepts and many others.

A little longer explanation follows.

There are two problems here. First, as I mentioned, my tools are modelled after the ideas in the OS4 module. They follow the module page layout as described by HP, but with one small extension in that it uses a (previously) unused marker bit in the ID field to signal that this module uses the extension layout as defined by the OS4 module. Some modules use these bits for other things, Advantage is one example and some of Angel's modules. The way I have interpreted the HP documentation is that it is not supposed to be anything but 0 there.

The presence of these bits causes modtool to think that this module has secondary function tables and set out to decipher them in order to include secondary functions in the export file. As the module is not organized that way, modtool detects that something is wrong and terminates with an appropriate error for that context. The problem is that it went down the wrong path earlier on and assumed that it was an OS4 module when it isn't.

Second, as the way Angel lay out secondary headers and do postfix arguments differs from the way it is done in OS4, so even if it was able to read and generate some form of export file, there would not be support for using secondary functions the way it is done in the Sandmath module.

References:
https://github.com/hth313/OS4
10-11-2021, 08:08 AM (This post was last modified: 10-11-2021 02:28 PM by floppy.)
Post: #5
 floppy Member Posts: 153 Joined: Apr 2021
RE: NutStudio 3.2.1 available
Perhaps is there a Workaround?

Using SandMath functions, example, not "RC* 01" but "XROMxx.yyyy 01" in NutStudio? (making NutStudio just putting the XROMxx.yyyy into the raw file without further checks).

HP71 & Multimod, HP41CV/CX & Nov64d, PILBOX, HP-IL 821.62A & 64A & 66A, Debian11 64bits-PC & Raspb PI4 w/ ILPER, VIDEO80, V41R9F & EMU71
10-18-2021, 05:00 PM
Post: #6
 hth Senior Member Posts: 414 Joined: Mar 2014
RE: NutStudio 3.2.1 available
(10-11-2021 08:08 AM)floppy Wrote:  Perhaps is there a Workaround?

Using SandMath functions, example, not "RC* 01" but "XROMxx.yyyy 01" in NutStudio? (making NutStudio just putting the XROMxx.yyyy into the raw file without further checks).

Yes, that should work. It should accept XROM ii,jj and a numeric literal. You can perhaps also use the C preprocessor to make it look tidier.

It may be possible to add support for it, but in that case I would need some documentation on how to introspect a ROM image to decipher the tables. That, and preferably some standard on the bits in the ID to properly mark what secondary function table scheme used.
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.17373745143413544, "perplexity": 4938.323513763723}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2023-14/segments/1679296948609.41/warc/CC-MAIN-20230327060940-20230327090940-00007.warc.gz"}