OSWRSC

From BeebWiki
Revision as of 23:58, 28 August 2013 by WikiSysop (talk | contribs) (1 revision)
Jump to: navigation, search

Writes a byte to screen.

Specification

On entry:
 ?&D6 = LSB of address to be read
 ?&D7 = MSB of address to be read
A = Byte to be written
On exit:
A,X,Y = preserved
C undefined

Stores a byte in an address the current display memory (in main or [[shadow RAM]]). The address to be written to is given in locations &D6 (low byte) and &D7 (high byte), and byte to be written is passed in A. Although this call is the complement of OSRDSC which is able to read from sideways ROMs, this call only writes to the currently displayed memory and the currently selected sideways RAM bank.

Also note that the address is passed in a different location to OSRDSC.

Calling from BBC BASIC

  • BASIC does not call OSRDSC

Entry points

  • BBC BASIC Entry Address: none
  • 6502 Entry Address: &FFB3
  • Z80 Entry Address: none
  • 6809 Entry Address:
  • 80x86 Entry Address: none
  • 32000 Entry Address: none
  • PDP-11 Entry Address: none
  • ARM Entry Address: none

Implementations

The call was introduced in MOS 2.00, and is absent in earlier versions. It is not implemented on non-6502 platforms and BBC BASIC does not emulate its entry point.

Jgharston 17:49, 12 December 2007 (UTC)