shithub: rgbds

ref: c8e602dec130aba90f46cd462731b53e7e3e3820
dir: /test/asm/strsub.asm/

View raw version
SECTION "sec", ROM0

MACRO xstrsub
	PRINTLN STRSUB(\#)
ENDM

	xstrsub "ABC", 1, 1
	xstrsub "ABC", 2, 1
	xstrsub "ABC", 3, 1
	xstrsub "ABC", -3, 1
	xstrsub "ABC", -2, 1
	xstrsub "ABC", -1, 1
	xstrsub "ABC", 2
	xstrsub "ABC", 0
	xstrsub "ABC", -2
	xstrsub "ABC", 5
	xstrsub "ABC", -5
	xstrsub "ABC", 1, 2
	xstrsub "ABC", 2, 2
	xstrsub "ABC", 2, 32
	xstrsub "ABC", 2, 300
	xstrsub "ABC", -4, 300
	xstrsub "ABC", 4, 0
	xstrsub "ABC", 5, 0
	xstrsub "ABC", 4, 1
	xstrsub "カタカナ", 1, 2
	xstrsub "カタカナ", 3, 2
	xstrsub "カタカナ", 3, 10
	xstrsub "g̈", 1, 1
	xstrsub "g̈", 1, 2