Category:83Plus:Ports:By Address:Protected

From WikiTI
Revision as of 17:50, 1 April 2005 by Aquanight (Talk | contribs)

Jump to: navigation, search

Protected Ports

Some of the I/O ports on the 83+ have been "protected" to prevent them from being written accidentally (in addition to preventing user programs from writing to them.)

The following restrictions are believed to apply to all protected ports:

  • These ports can only be written to from privileged ROM pages. The privileged ROM pages are two utility code pages and one or two boot code pages. On the normal 83+ the pages are 1Ch, 1Dh, and 1Fh. On the normal 84+ the pages are 3Ch, 3Dh, and 3Fh. On the 83+ SE the pages are 7Ch, 7Dh, and 7Fh. On the 84+ SE the pages are 6Fh, 7Ch, 7Dh, and 7Fh. (Pages 3C-3E/6C-6E on the 84+, and page 1E/3E/7E, may also qualify, but no code is currently placed on those pages.)
  • A specific sequence of instructions must be executed (all of them from a privileged page, with no interruptions) before the port will finally "listen." The sequence is:
nop
nop
im 1
di
out (...),a
A 'di' often precedes this sequence so that it cannot be broken by an interrupt, and a 'di' often follows it, after which the output value is re-checked, to prevent user programs from sneakily inserting their own output values.

The canonical protected port is, of course, the Flash write-enable port, port 14. Some of the other protected ports also appear to function only when Flash is write-enabled.

Pages in category "83Plus:Ports:By Address:Protected"

The following 8 pages are in this category, out of 8 total.