s390guy / SATK

Toolkit for creating baremetal programs targeting mainframe compatible systems
GNU General Public License v3.0
42 stars 6 forks source link

TRAP64 generates 128-bit PSWs when assembled using -t s390x #22

Closed srorso closed 2 years ago

srorso commented 2 years ago

TRAP64 uses PSW directive to create PSWs for an ESA low core. With -t S390x, default PSW format is z/Arch or 128-bit.

A possible change would be to add code to test for Architecture Level 9 and override the default PSW with PSWE390 when encountered.

Source and listing attached.

ztest-002.zip

s390guy commented 2 years ago

Corrected TRAP64 PSW generation to inhibit creation of 128-bit PSW in some circumstances. Updated documentation is SATK.odt and SATK.pdf to reflect this restriction.