summaryrefslogtreecommitdiff
path: root/test/struct.s
blob: f8dd71cb5d37885c6e0c1ecf8f0d6e5344d71aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.struct lol
	oof .byte
	cia .word
	glo .dword
	nig .qword
	.union asd
		f  .qword
		ss .byte
		.struct aa
			lol .qword
			why .word
		.endstruct
	.endunion
	.union
		alkjf	.byte
		lksfja	.word
		.struct a
			asd	.byte
			dd	.byte
			.struct
				sdd	.byte
				aas	.byte
				.union no
					asd	.byte
					ss	.word
				.endunion
			.endstruct
		.endstruct
		aad	.byte
	.endunion
	why .word
.endstruct

.struct oof
	lol	.word
	.union
		.struct asd
			s	.word
			f	.byte
			e	.word
		.endstruct
		.struct a
			asd	.byte
			dd	.byte
			.struct
				sdd	.byte
				aas	.byte
				.union no
					asd	.byte
					ss	.word
				.endunion
			.endstruct
		.endstruct
		as	.word
		ll	.word
	.endunion
	ass	.word
.endstruct

.struct token
	next .byte
	val .byte
	id .byte

.endstruct

.org 0

lda #1
ldb #lol.asd.f
ldx #lol.asd.ss
ldy #lol.glo
lda #lol.oof
ldb #lol.asd.aa.lol
ldx #lol.asd.aa.why
ldy #lol.why

a
;l a
;v
q