Assembler - Pseudo Operations C64ASM

C64Studio currently only implements a subset of pseudo operations of C64ASM. These pseudo ops are supported:




.BYTE

This pseudo op allows to insert text, characters, or one ore more bytes at the current location.

Allowed are text literals, character literals, constant values, expressions and labels as content.
text literals are surrounded by ", character literals by '
Constant values can be set as decimal, hexadecimal (with prefixed $), chars (surrounded by ' or ").
Labels are treated as 16-bit values. To get the high or low byte prefix the label with < (low byte) or > (high byte)
Expressions are evaluated during the final pass. They must evaluate to a valid byte value.
CBM works like !TEXT, but reverses character casing.



.BYTE "HELLO WORLD" .BYTE " SCORE",60," 00000000 ",224,224," LEVEL",60," 00 ",225,225," LIVES",60," 03 *" .BYTE 206,184,191,182,198,196,184,0,203,198,0,202,198,204,191,191,184,202,202,0,0


.WORD

This pseudo op allows to insert words (2 bytes) at the current location.

Allowed are constant values, expressions and labels as content.
Constant values can be set as decimal, hexadecimal (with prefixed $).
Labels are treated as 16-bit values.
Expressions are evaluated during the final pass. They must evaluate to a valid word value.



;inserts $80, $77 .WORD $7780