Quoting constructs: Difference between revisions

m
→‎{{header|6502 Assembly}}: additional details and clarification
m (→‎{{header|6502 Assembly}}: additional details and clarification)
Line 9:
Note: This is primarily for quoting constructs for data to be "embedded" in some way into a program. If there is some special format for external data, it may be mentioned but that isn't the focus of this task.
=={{header|6502 Assembly}}==
The following uses VASM syntax for quoting constructs. There is no built-in support for interpolation, escape characters, etc. What constitutes as an escape character depends on the code that is using embedded strings. A function that needs this embedded data can take as an argument a pointer to the data, which can easily be obtained by loading the low byte and high byte of the label into consecutive zero page RAM locations.
{{works with|VASM}}
 
<lang 6502asm>LookUpTable: db $00,$03,$06,$09,$12 ;a sequence of pre-defined bytes
 
1,489

edits