{"id":309,"date":"2011-12-26T18:41:25","date_gmt":"2011-12-27T00:41:25","guid":{"rendered":"http:\/\/tommysprinkle.com\/txxos\/?p=309"},"modified":"2021-04-17T18:24:10","modified_gmt":"2021-04-17T23:24:10","slug":"low-core","status":"publish","type":"post","link":"https:\/\/tommysprinkle.com\/txxos\/?p=309","title":{"rendered":"Low Core"},"content":{"rendered":"<p>There are several memory locations in low core that are mapped to specific CPU functions. \u00a0These memory locations provide a direct way for the program to communicate with the CPU. \u00a0We will reserve the first 1k of memory for CPU usage. \u00a0Here are some of the memory mapped locations we will need to use:<\/p>\n<pre>RSTNPSW  DS    D  RESTART NEW PSW\r\nRSTOPSW  DS    D  RESTART OLD PSW\r\n         DS    F\r\n         DS    F\r\nEXTOPSW  DS    D  EXTERNAL OLD PSW\r\nSVCOPSW  DS    D  SVC      OLD PSW\r\nPGMOPSW  DS    D  PROGRAM  OLD PSW\r\nMCKOPSW  DS    D  MACHINE CHECK OLD PSW\r\nIO$OPSW  DS    D  I\/O      OLD PSW\r\nCSW      DS    D  CHANNEL STATUS WORD\r\nCAW      DS    F  CHANNEL ADDRESS WORD\r\n         DS    F\r\nITIMER   DS    F  INTERVAL TIMER\r\n         DS    F\r\nEXTNPSW  DS    D  EXTERNAL NEW PSW\r\nSVCNPSW  DS    D  SVC      NEW PSW\r\nPGMNPSW  DS    D  PROGRAM  NEW PSW\r\nMCKNPSW  DS    D  MACHINE CHECK NEW PSW\r\nIO$NPSW  DS    D  I\/O           NEW PSW<\/pre>\n<p>I have created a macro (@LOWCORE) to map these memory locations. \u00a0We will use the two words following the Restart Old PSW as pointers to control blocks. \u00a0This will allow the control blocks to be easily located since they are anchored at a fixed location.<\/p>\n<p>[Next &#8211; <a title=\"TXXNUC00\" href=\"http:\/\/tommysprinkle.com\/txxos\/?p=314\">TXXNUC00<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are several memory locations in low core that are mapped to specific CPU functions. \u00a0These memory locations provide a direct way for the program to communicate with the CPU. \u00a0We will reserve the first 1k of memory for CPU &hellip; <a href=\"https:\/\/tommysprinkle.com\/txxos\/?p=309\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"template-page-builder-no-sidebar.php","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-309","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1CPQT-4Z","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/posts\/309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=309"}],"version-history":[{"count":4,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":488,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/posts\/309\/revisions\/488"}],"wp:attachment":[{"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}