Changes

Jump to: navigation, search

6502 Emulator

638 bytes added, 11:33, 11 January 2020
Peripherals
The checkbox labeled "Text Screen" can be used to hide the character display to free up more space for editing code.
== Peripherals and Memory Map ==The entire 64K address space is available and is populated with RAM except for peripherals. 
There are four peripherals available:
* a one-byte pseudo-random number generator (''PRNG'') at '''$fe'''.* a single-key buffer at '''$ff ''' - if you write to this address, it will remain unchanged until a new keypress is received. Printable characters plus Return/Enter and Backspace are reported as ASCII codes; cursor keys are reported as $80=up, $81=right, $82=down, $83=left.* a 32x32 pixel bitmapped display at '''$0200-$05ff''', with one byte per pixel. The lowest four bits of each byte select one of 16 colours.* an 80x25 character display at '''$f000-$7cff''', with one byte per pixel. Printable ASCII characters will be displayed. If the high-order bit is set, the character will be shown in <span style="background: black; color: white;">&nbsp;reverse video&nbsp;</span>. The <code>Reset</code> button clears the zero page, bitmap display, and character display, and resets the stack pointer (SP=$ff), program counter (PC=$0600), status register (P=$30), and the general purpose registers (A=X=Y=$00). Code is assembled starting at $0600 (unless the code changes the location with a <code>*=''address''</code> directive). Memory following the program is reset to $00. A <code>BRK</code> instruction ($00) will cause the program to stop and return control to the debugger.
For more details, press the <code>Notes</code> button in the emulator.

Navigation menu