Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luner lander crash #2311

Open
drforbin opened this issue Jun 9, 2024 · 23 comments
Open

luner lander crash #2311

drforbin opened this issue Jun 9, 2024 · 23 comments

Comments

@drforbin
Copy link

drforbin commented Jun 9, 2024

Luner lander crashes when gtloaded.

:gtload
*gt40;gtlem bin

No luck
any ideas?

@larsbrinkhoff
Copy link
Member

I have also seen that loading GT40 software from ITS often crashes, but I don't know why. @Isysxp, you have been using the GT40, do you have any idea?

@Isysxp
Copy link

Isysxp commented Jun 10, 2024

This is a problem I have seen as well. I have tracked this down to the VT11 cycle time which is set in pdp11_vt.c line 65.
This parameter determines how often the VT11 does a dma cycle for the next instruction. The loader used by GTLOAD which
is from bootvt.img as in:

set rom enabled
set rom0 address=17766000
at rom0 bootvt.img
boot rom0

cannot keep up with the VT11 cycle time. If you change line 65 to #define VT11_DELAY 20 it should work.
However, the copy of GTLEM BIN I have never moves off the initial text screen. To test, I have set a simh breakpoint
at the line clock interrupt vector and it never occurs. The CLK reg is OK with ena+inta. But the CPU int priority is 7
according to the PSW so a CLK int will not happen. I can't see anything in the source to suggest that the PSW is setup
prior to enabling the line clock. Any suggestions?

@Isysxp
Copy link

Isysxp commented Jun 10, 2024

Just tried this appalling hack!!! After you get the Lander text screen, pause the GT40 (^e) ,
type d psw 0 and then c. The app will startup after the specified 10 secs. I suspect that
GTLOAD leaves the PSW at PRI 7 and the delay will not expire.

@drforbin
Copy link
Author

Thxs vlad and lars for your timely reply. I will try the suggestion tonight and report back.
Also vlad. I wanna try and contribute again to lepton.
let me know what to do.

@drforbin
Copy link
Author

Oh,

I don't get the lander screen or any other. It just crashes.
I am able to load the vt07? code into the gt40 and it works as an terminal emulator.

@drforbin
Copy link
Author

This is what I'm getting

PDP-11 simulator Open SIMH V4.1-0 Current git commit id: 348f5f29
Disabling XQ
/home/mercou/Downloads/its/build/pdp10-ka/gt40-17> set dli address=17775610
%SIM-INFO: Device auto configuration is now disabled.
%SIM-INFO: Explicitly setting any address or vector value tells the system
%SIM-INFO: that you are planning a specific configuration that may not use
%SIM-INFO: use standard values. You must explicitly specify bus address and
%SIM-INFO: vector values for any device you enable or otherwise add to the
%SIM-INFO: system configuration after this message is issued. Changing the
%SIM-INFO: number of lines on a terminal multiplexer is such a change.
%SIM-INFO: To avoid complexities dealing with this, it is recommended that
%SIM-INFO: you configure all devices which can use standard addresses before
%SIM-INFO: changing the address or vector for an unusual device situation.
/home/mercou/Downloads/its/build/pdp10-ka/gt40-19> at -u dli 10005,connect=localhost:10019
%SIM-INFO: Listening on port 10005

HALT instruction, PC: 000004 (RTI)
sim> cont

HALT instruction, PC: 000002 (HALT)
sim> cont

HALT instruction, PC: 000004 (RTI)
sim> d psw 0
sim> c

@drforbin
Copy link
Author

It appears I'm getting nothing but 0's in the pdp11 memory after the load.
I tried loading the vt07 and I'm getting alternating data.
Could the gtlem bin file be bad?
how do I test this. I dont have alot of tools on ITS to work with.

@Isysxp
Copy link

Isysxp commented Jun 11, 2024

Hi,
Have you got the proper boot code running in the GT40?
See the its script and instead of run 1000 do boot rom0.
Then you should be able to login to its from the GT40.(^z)
:login gt40 (this gets you into the correct directory.
You need to load the gtlem bin file from its into the GT40 first using gtload
:gtload
( is from its then type)gtlem bin
The GT40 screen should blank and then after about 1 min, the Lander startup screen should appear.
In the GT40 console, do as you did above with the PSW.

@drforbin
Copy link
Author

Yes all of that is being done.

this is the ini fle fore the pdp11

set cpu 11/05
set lpt disabled
set dz disabled
set rk disabled
set rl disabled
set hk disabled
set rx disabled
set rp disabled
set rq disabled
set tm disabled
set tq disabled
set cpu 16k
set tti 8b
set dli enabled
set dlo enabled
set dli lines=1
set dli address=17775610
set dlo0 8b
at -u dli 10005,connect=localhost:10019
set vt enabled
set vt crt=vr14
set vt scale=1
set vt address=17772000
set vt vec=320
set vt keyboard=nospacewar
dep sr 0
set rom enabled
set rom0 address=17766000
at rom0 out/pdp10-ka/bootvt.img
boot rom0

Once the pdp11 sim halts I dumped the memory above and the memory is just alternating 0's and 2's.

remember the vt07 code runs fine.

@Isysxp
Copy link

Isysxp commented Jun 11, 2024

Do you ever see the Lunar Lander startup screen?

@drforbin
Copy link
Author

no,
The pdp11 just halts.

@drforbin
Copy link
Author

/home/mercou/Downloads/its/build/pdp10-ka/gt40-19> at -u dli 10005,connect=localhost:10019
%SIM-INFO: Listening on port 10005

HALT instruction, PC: 000004 (RTI)
sim> cont

HALT instruction, PC: 000002 (HALT)
sim> cont

HALT instruction, PC: 000004 (RTI)
sim> d psw 0
sim> c

@drforbin
Copy link
Author

The entire memory space is nothing but 0's and 2's.
The lunar lander code is cross compiled with palx from the mac code.
gtlem.91

@drforbin
Copy link
Author

anything?

@Isysxp
Copy link

Isysxp commented Jun 12, 2024

OK, firstly, I have patched the repo to correct the crashes that may occur using the its script. I also have updated this script to use the bootvt.img system. The app now works file ... tested on Pi5 (Bookworm) and Windows. And the Lunar Lander hack works as well.
Specifically, when you start the its (do its script, are you able to login to ITS via the GT40 screen? Then, when you use GTLOAD to load GTLEM BIN does the GT40 screen blank for about 40 sec while the binary loads? Using this sequence of commands, when does the GT40 app halt?

@drforbin
Copy link
Author

The it's script? you mean start?

Yes all of that occurs. But then after the blank it halts.
Please look at screen and memory dump above.
It looks to me like either the binary is NOT being loaded or the binary is just full of 0's and 2's
Please note.

Loading vt07 bin29 works fine

@Isysxp
Copy link

Isysxp commented Jun 12, 2024

I am sorry but I have no further suggestions. I cannot replicate this error.
Please confirm your OS and that you have the latest GT40 build from https://github.com/Isysxp/GT40.git.
Are you running the GT40 app on the same machine as the PiDP10. (Tested OK on mine: Pi5 Bookworm).

@drforbin
Copy link
Author

The it's script? you mean start?

Yes all of that occurs. But then after the blank it halts.
Please look at screen and memory dump above.
It looks to me like either the binary is NOT being loaded or the binary is just full of 0's and 2's
Please note.

Loading vt07 bin29 works fine

@drforbin
Copy link
Author

I'm running it on intel i7 laptop running gentoo.
The gt40 build is from the its repo.
Should I try the above repo build?

@drforbin
Copy link
Author

I cloned the GT40 repo and built it. It built fine.
I will try and start ITS tonight and connect to the ITS system.
Hopefully it will work.
I was using the ITS build of GT40 started with the ITS 'start' script before.
Stay turned.

@drforbin
Copy link
Author

Ok.. I have reproduced your experience using the GT40 repo.
Everything seems to work as you describe. But this is NOT the case using the GT40 emulator in ITS repo.
Also, Can I get ride of the gt40 motif around the terminal?

@Isysxp
Copy link

Isysxp commented Jun 15, 2024

I am only responsible for the GT40 app. The repo you are referring to is Simh. You will have to ask them to fix this problem.

@drforbin
Copy link
Author

I understand that. I am sure they use your code though.
How do I get rid of the motif around terminal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants