Open main menu

CDOT Wiki β

Changes

Assembler Basics

42 bytes added, 18:22, 15 September 2022
6502 Assembly Language in the Emulator
== 6502 Assembly Language in the Emulator ==
The [[6502 Emulator]] provides a very simple assemblerfor [[6502]] code:
* Simple text-substitution macros can be defined with <code>define ''name'' ''value''</code> like this:
define SCREEN $f000
* The DCB (Declare Constant Byte) directive can be used to create a group of bytes in memory. Byte values are comma-separated and may be double-quoted single printable characters (except space, double quote, or comma), decimal values, or hexadecimal values prefixed with $, like this:
dcb 12,34,56
dcb $33,$66,$CC,$FF