User Tools

Site Tools


spo600:6502_emulator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
spo600:6502_emulator [2025/01/27 16:19] – [High and Low Label Bytes] chrisspo600:6502_emulator [2025/04/09 21:14] (current) chris
Line 1: Line 1:
 ====== 6502 Emulator ====== ====== 6502 Emulator ======
  
-A simple web-based [[6502]] emulator is available at [[http://6502.cdot.systems]] (note that this is an http link, not an https link). This emulator is used in the [[start|SPO600]] course to teach 8-bit [[Assembly Language|assembly language]] before transitioning to more complex 64-bit x86_64 and [[ARMv8#AArch64]] assembly language.+A simple web-based [[6502]] emulator is available at [[http://6502.proximity.on.ca]] (note that this is an http link, not an https link). This emulator is used in the [[start|SPO600]] course to teach 8-bit [[Assembly Language|assembly language]] before transitioning to more complex 64-bit x86_64 and [[ARMv8#AArch64]] assembly language.
  
 In most 6502 documentation, including this page, the ''$'' prefix indicates hexadecimal notation. (Note that in some other contexts, hexadecimal is indicated by a ''0x'' prefix or an ''h'' suffix). In most 6502 documentation, including this page, the ''$'' prefix indicates hexadecimal notation. (Note that in some other contexts, hexadecimal is indicated by a ''0x'' prefix or an ''h'' suffix).
Line 33: Line 33:
   *  Origin assignment: You can tell the assembler where to assemble the following code with this syntax: ''*=$XXXX'' where XXXX is an address in hexadecimal. Multiple origin assignments may be used. Example: ''*=$1800''   *  Origin assignment: You can tell the assembler where to assemble the following code with this syntax: ''*=$XXXX'' where XXXX is an address in hexadecimal. Multiple origin assignments may be used. Example: ''*=$1800''
   *  "define" directive: Macro assignments may be created with the "define" directive: ''define macro value'' -- for example: ''define WHITE $01'' -- the macro value will be substituted into lines wherever the macro name appears (e.g., ''LDA #WHITE'').   *  "define" directive: Macro assignments may be created with the "define" directive: ''define macro value'' -- for example: ''define WHITE $01'' -- the macro value will be substituted into lines wherever the macro name appears (e.g., ''LDA #WHITE'').
-  *  "dcb" directive: the Define Constant Byte (dcb) directive will cause the assembler to place individual byte values into memory. These byte values may be in hexadecimal prefixed with $, decimal with no prefix, or single printable non-space characters quoted with double quotes.+  *  "dcb" directive: the Define Constant Byte (dcb) directive will cause the assembler to place individual byte values into memory. These byte values may be in hexadecimal prefixed with $, decimal with no prefix, or single printable non-space characters quoted with double quotes. A label may be placed in front of a dcb directive.
  
 ====  High and Low Label Bytes  ==== ====  High and Low Label Bytes  ====
Line 58: Line 58:
  
 =====  Using the Monitor  ===== =====  Using the Monitor  =====
-Selecting the Monitor checkbox will display the specified region of memory as code is executed. For example, specifying a start of $00 and a length of $100 will display the entire zero page. Once enabled, the monitor may not display until the code is executed (via Run button). +Selecting the Monitor checkbox will display the specified region of memory as code is executed. For example, specifying a start of $00 and a length of $100 will display the entire zero page. The monitor display is updated with after each execution of one (or moreinstructions.
 =====  Turning the Text Screen On/Off  ===== =====  Turning the Text Screen On/Off  =====
 The checkbox labeled "Text Screen" can be used to hide the character display to free up more screen space for editing code. Note also that the character display can be used for additional program memory (whether the display is enabled or not) when it's not required for output. The checkbox labeled "Text Screen" can be used to hide the character display to free up more screen space for editing code. Note also that the character display can be used for additional program memory (whether the display is enabled or not) when it's not required for output.
spo600/6502_emulator.1737994760.txt.gz · Last modified: 2025/01/27 16:19 by chris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki