SPASM Internal Functions

Concat:

Usage:

concat(string1, string2)

This function concatenates two pieces of data, typically strings, together into a single piece of data.

Example:

#define worldString "world"
#define spaceChar $20
#define helloString concat("hello", spaceChar)
#define helloWorldString concat(helloString, worldString)

;helloWorldString now holds the data for "hello world"
;the following two statements are equivalent
.db helloWorldString,0
.db "hello world",0

Last edited Sep 28, 2011 at 7:30 PM by BuckeyeDude, version 2

Comments

No comments yet.