open-watcom / open-watcom-v2

Open Watcom V2.0 - Source code repository, Wiki, Latest Binary build, Archived builds including all installers for download.
Other
993 stars 161 forks source link

real-mode trap files #926

Open Baron-von-Riedesel opened 2 years ago

Baron-von-Riedesel commented 2 years ago

Hello,

Currently I try to make a trap file for HX that worked with OW 1.9, to also work with OW 2.0. But it looks like no real-mode trap file works in current v2.0, AFAICS.

The trap helper file for HX can write a log, where one can see what requests are send. It's strange, because it begins so:

Rqst: READ_FPU
Rqst: 0F 00 64 6F 73 31 2E 65 78 65 00 00               ..dos1.exe..

Error: 00

Rply: 7F 12 FF FF 20 00 FF FF FF FF FF FF 00 00 00 00   
Rply: 00 00 00 00 00 00 00 00 00 00 FF FF 40 00 00 00   
Rply: 00 00 00 00 FF FF 10 0F 83 00 00 00 00 00 FF FF   
Rply: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   
Rply: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 AE E9   
Rply: FF 09 00 00 00 00 FF FF 00 00 00 00 00 00 40 9C   
Rply: 0C 40 00 00 00 00 00 00 00 00 00 00               

Rqst: WRITE_CPU
Rqst: 10 1A 60 0C 7B                                    

Error: 00

Rply:

Rqst: WRITE_CPU
Rqst:

Error: 00

Rply:                                                   

In OW v1.9, the log usually begins with a LOAD_PGM

Rqst: PROG_LOAD
Rqst: 14 00 00 00                                       ....

Rply: 00 00 00 00 00 00 00 00 00 00 00 00 00            .............

Rqst: GET_SYS_CONFIG
Rqst: 06                                                .

Rply: 31 31 07 0A 07 0C 01                              11.....

Rqst: GET_SYS_CONFIG
Rqst: 06                                                .

Rply: 31 31 07 0A 07 0C 01                              11.....

Rqst: READ_REGS
Rqst: 24                                                $

So there is really something messed up...

Baron-von-Riedesel commented 2 years ago

Ok, the mystery is solved: in v2.0, there were a few functions removed from the trap call vector: REQ_READ_CPU, REQ_WRITE_CPU, ...

After adjusting this, the hx trap file works with v2.0.

There are a few issues in WD ( in this context, it's always the DOS version I'm talking about), though: