Types

types
calendarsave
Technically xyw only understands one data type -- the byte -- or maybe two if you also include the word type (two-byte values). However, as it turns out, that's more than enough to build or at least approximate other data types as well. The following sections list all the data types conventionally supported by xyw, along with the abbreviation to use for each (see notation). === Flag - f
; Flag
$00 ; false
$01 ; true
=== Byte - b
; Byte
$C8
=== Word - w
; Word
$05D8
=== String - s
; String
.string "Hello, World!"
=== Byte Areay - ba
; Byte array
; A sequence of bytes (length must be known)
$10 $20 $30 $40
=== Word Array - wa
; Word array
; A sequence of words (length must be known)
$1000 $2000 $3000 $4000
=== String Array - sa
; String array
; Succession of \0-separated strings
.string "one"
.string "two"
.strint "three"
=== String Table - st
; String Table
; <byte> <string> <byte> <string> $FF
.byte $00
  .string "Monday"
.byte $01 
  .string "Tuesday"
.byte $02
  .string "Wednesday"
.byte $03
  .string "Thursday"
.byte $04
  .string "Friday"
.byte $05
  .string "Saturday"
.byte $06
  .string "Sunday"
.byte $FF